Repository navigation
feat: expose exact bounded evidence windows - #781
Merged
Merged
Conversation
roborev: Combined Review (
|
wesm
force-pushed
the
feat/exact-evidence-windows
branch
from
October 4, 2026 18:25
ea55aa9 to
7dc50d2
Compare
roborev: Combined Review (
|
Exact evidence reads need the same rendition checks as other readers. Share those checks within the caller's catalog snapshot so they cannot drift when rendition validation changes. Use Huma's typed request and response handling and the existing storage error codes. Schema violations now follow the standard 422 response; strict decoding and shared-reader reference errors retain 400 responses. Remove the unrelated loadfile rewrite from the feature diff. Generated with Codex Co-authored-by: Codex <noreply@openai.com>
roborev: Combined Review (
|
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.
Applications can resolve a saved citation to the same extracted text through
Vault.ReadEvidenceWindoworPOST /api/v1/evidence/windows. Each read requires the vault, node, content version and hash, rendition attachment, build, and rendition hash. A stale, hidden, or mismatched reference returns404 evidence_unavailablewithout text. Reads never start processing or substitute a newer rendition.Offsets count Unicode scalars. Windows default to 8,000 characters and accept up to 16,000. Requests are limited to 16 KiB; the character and identity limits keep JSON responses below 128 KiB. The HTTP route uses typed Huma input and output with
Cache-Control: no-store. Schema violations return 422, while strict decoding and shared-reader reference failures return 400. Unavailable physical storage uses the existing 503 codes:content_missing,store_fenced, andstore_unavailable.Both window routes share the active-rendition checks in one catalog snapshot. The existing
/renditions/windowsrequest fields and defaults remain intact; it now also requires a nonempty source blob hash. Embedded reads hold the vault lease through the internal read and cleanup, releasing it before returning the text.Closes #780