Repository navigation
Conversation
The manifest already records the dossier root as its second graph root. Compute its closure the way the form closure is computed, and assert that it is the ten reviewed resources, disjoint from the 139-resource form closure and holding both resources that carry a DOCTYPE. Nothing is read or fetched.
Add a second Limits profile for containers that carry whole documents as base64 text, and a dossier module that recognises the 2026 namespace, reads the profile and the document list through the shared bounded entry point, matches the 194 document-role patterns the schema pins, decodes one plain-base64 XML payload into memory under a pre-decode length check, and evaluates the deterministic preflight findings. Nothing is resolved, decrypted, verified, or accepted.
File::open on a FIFO blocks until a writer appears, so a named pipe given as a form, a manifest, or a bundle resource hung the command. Check the path type first, refuse it as input_unreadable without opening, and keep the re-check on the opened handle so nothing swapped in between is read. Behaviour and messages are otherwise unchanged.
dossier inspect reports what one .es3 container says about itself and about the form it carries; dossier preflight turns that into findings and, with a bundle whose dossier closure verifies, one XSD result from the existing xmllint adapter. schemas verify reports dossier_closure_verified additively. A text node past the validator's own ceiling stops the check at exit 5 without spawning it.
Fifteen hand-built CC0 containers plus generated ones exercise recognition, the payload precedence, the value gating, every finding status, the receipt rule, the exit paths, and the preflight XSD path through the fake validator. One ignored test runs the two evidence dossiers against an operator's own mirror.
Record the two commands, their fixed codes and messages, the finding detail strings, the fixture rows, and the skill wording that a passed preflight means those findings and the outer XML and nothing more. Note in the specification inventory that the role patterns and the enumerated titles and categories are reproduced as interoperability data.
The single file was 863 lines, past the 800-line source limit the checks enforce. Move the JSON data objects and the human reports into a sibling module; no behaviour, output, or message changes.
A conforming dossier printed an empty heading; form validate prints none.
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.
Change
Adds
dossier inspect(structural account of a 2026 company-court e-dossier and of the form it carries) anddossier preflight(eleven deterministic findings plus, with a verified bundle, XSD conformance of the outer dossier through the existing xmllint adapter), implementing the reviewed contract indocs/dossier-preflight.md. Also fixes a pre-existing hang: a FIFO given as an input path is now refused before it is opened.Verification
./scripts/check.sh, release build, MSRV check, cross-targetcargo checkfor Windows and macOS under-D warnings, coverage 97.49% (gate 90), all green locally; the#[ignore]real-bundle tests pass against a hash-verified mirror.--show-values.Boundaries
Nothing is resolved, decrypted, or acknowledged: receipts are recognised and reported
not_applicable, never acknowledged; signatures and timestamps are counted, never verified;preflight.status: passedmeans the listed findings passed and the outer XML conforms, and nothing more. Values appear only with--show-values.Checklist
./scripts/check.shpasses locallytests/fixtures/README.mdCHANGELOG.mdhas an entry under Unreleased