Repository navigation
feat: admit enterprise-document evidence into query and packet - #52
Merged
Merged
Conversation
Route import through the conformance registry by format and wrap the projection in a #20 envelope: anchors, fidelity, digests, and truncation/unavailable receipts. DLP and public-boundary findings keep their typed refusals; anything that cannot become a valid envelope is refused, never invented. DOCX/PPTX plug in as a projection reader arm. Refs #46
CLI tests for document inspect, query/packet XLSX and PDF anchors, typed malformed/DLP refusals, unsupported-format routing, and byte-identical output without document evidence. Registered in the test budget. Refs #46
New read-only document inspect command plus an appended document_evidence member on query and packet: admitted sources with digests and fidelity, ranked anchor matches with native locators and derivation, typed refusals, and unsupported formats. Document paths no longer rank as Markdown sources; roots without document files return byte-identical output. Closes #46
Validate emitted locators and envelope receipts, omit unsafe refusal paths, budget document excerpts, and include document matches in query coverage. Preserve exact reviewer packages for five red-to-green CLI regressions. Refs #46
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.
Summary
Admits enterprise-document evidence into
bran queryandbran packet(#46). This connects the four adapters (DOCX, XLSX, PPTX, PDF) to the normal query surface.oversized.document_evidencemember, capped at 32 matches, with source type, native locator, source digest, fidelity and derivation. Document matches count toward query coverage and outcome. Packet excerpts obey the byte and token budgets and are included in the accounting.bran document inspectprints an envelope and writes nothing.bran-clinow depends on the in-workspacebran-documentcrate;bran-corestill has no dependencies.Closes #46
Verification
./tools/ci/check.sh --fastand--fullpass on the branch, which is current withmain. No new external dependencies.document_admissionCLI tests: 15 pass, covering all four formats, inspection, refusals, DLP, budgets, coverage, determinism and unchanged document-free output.f846fc1with tests that failed first:Not covered: no real OCR producer exists here, so the OCR labelling is pinned by unit tests.
🤖 Generated with Claude Code
https://claude.ai/code/session_01GXsmZAgLAftTb8E5oswz82