Repository navigation
feat: versioned JSON evidence schema for query APIs (#16) - #44
Conversation
Every /v1/query/* response now includes schema_version 1.0 and an llm provenance block so consumers can store structured evidence instead of scraping prose. Closes #16. Co-authored-by: Leonardo <leo-aa88@users.noreply.github.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Review — PR #44 (G7 JSON evidence schema)Issue #16 acceptance is met. Explain/timeline/compare (plus ask/clusters) return Must-fix(None) Should-fix(None) Nice-to-have
VerdictReady to merge (0 must-fix, 0 should-fix) |
Closes #16
Summary
Versioned JSON evidence schema (
schema_version: "1.0") andllmprovenance (used,provider,model,fell_back) on every/v1/query/*response so consumers can store discrete fields instead of scraping prose.Covered endpoints:
POST /v1/query/explain(and deprecated/query/explain, same handler)POST /v1/query/timelinePOST /v1/query/comparePOST /v1/query/askPOST /v1/query/clustersContract
src/api/schemas/v1.pyclients/jsonschema/(explain,timeline,compare,ask,clusters)response_model=plus re-exportedclients/openapi.jsonrendered_text(textkept as an alias for timeline/compare; markdown path unchanged)Tests
Unit tests in
tests/unit/test_query_schema.pyplus API/OpenAPI contract coverage.python -m pytest tests/unit/passed locally.Deferred (out of G7 scope)
llm.fell_back