Skip to content

feat: inspect and preflight a 2026 company dossier - #5

Open
hdkiller wants to merge 11 commits into
developfrom
codex/dossier-preflight
Open

hdkiller wants to merge 11 commits into
developfrom
codex/dossier-preflight

Conversation

@hdkiller

Copy link
Copy Markdown
Member

Change

Adds dossier inspect (structural account of a 2026 company-court e-dossier and of the form it carries) and dossier preflight (eleven deterministic findings plus, with a verified bundle, XSD conformance of the outer dossier through the existing xmllint adapter), implementing the reviewed contract in docs/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-target cargo check for 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.
  • Cold review of the head is in progress; 22 independently constructed dossier variants behaved as the contract specifies, with sentinels hidden unless --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: passed means the listed findings passed and the outer XML conforms, and nothing more. Values appear only with --show-values.

Checklist

  • ./scripts/check.sh passes locally
  • Implemented capabilities, documentation, JSON fields, and exit statuses agree
  • New fixtures are synthetic and documented in tests/fixtures/README.md
  • CHANGELOG.md has an entry under Unreleased
  • No real filing, private path, identity, credential, or signing material appears in code, tests, commits, or this description

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant