Repository navigation
docs: define typed assistant response and citation contract - #25
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The public assistant response contract left the claims container, citation root and value types open to interpretation. Real model runs produced metric dictionaries,
/content-prefixed references and quoted booleans. Define a preferred JSON Schema, field shapes and general decision/caveat rules; document pointers relative to each source's content.This clarifies the existing interface without changing cases, scoring code, frozen labels or model answers. The documentation explicitly states that v1 requires exact citation sets, cannot recognize all semantically equivalent references, and has a parsed-integer restriction beyond JSON Schema's mathematical integer type.
Validation: 26 local Notebook/assessment regressions pass. An independent JSON Schema validator accepts the schema; 10 type checks and claim-key coverage checks pass. Independent review accepts the clarification after documenting citation and integer limitations. The final live public regression generated 13 responses with no retries: 18/18 values correct, strict case score 9/13, with four citation failures retained. This is a public regression, not an unseen holdout; several prompt-contract revisions preceded the final run.
Before merging on 2026-10-22, all 6 hosted CI checks passed on the updated PR head and the 26 local Notebook/assessment regressions passed again. Real historical market data remains pending. No runtime dependencies or financial scoring rules change; rollback is a two-file revert.