Repository navigation
The repo scan collects the consumed trust-anchor kinds, or every real chain is a forged identity - #566
Conversation
… chain is a forged identity Found building the 5.8 canary pair, which is what a canary exercise is for: a tier-2 identity's issuance COMPOSES the certificate record and the issuance evidence, and the repo scan collected only this family's own kinds — so the records that discharge the composition could never reach the scope that resolves them, and EVERY real-tree chain would have been refused forged_attestation_identity and controller_anchor_not_held regardless of its actual state. The packaged corpora never saw it because their loaders read whole files. The scan now collects CONSUMED_KIND_TO_SCHEMA kinds into scope exactly as the packaged corpora load them (validated against the same carried canonical schemas), and excludes trust-anchor's OWN packaged examples/ for the same reason it already excluded this family's: a corpus's deliberately-invalid negatives belong to their own reader, not to a live sweep. Measured with both canaries in the tree: each now draws EXACTLY its one named refusal (dispatched_leaf_never_written; orphan_pull_request) instead of a page of forged-identity noise. Family suite green (22 passed). Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR fixes the whole-repo scan in validate-signed-execution-chain.py so it includes the trust-anchor record kinds that tranche-two chain attestations consume, aligning repo-scan behavior with how the packaged corpora are loaded and preventing false “forged identity”/anchor-resolution noise on real chains.
Changes:
- Extend
repo_scan()’s kind filter to admitCONSUMED_KIND_TO_SCHEMAkinds into validation scope (in addition to the family’s ownKIND_TO_SCHEMA). - Exclude
contracts/trust-anchor/examples/from repo scanning to avoid re-adjudicating another family’s negative fixtures.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Adoption notice — this pull request has changed handsBrett Heap ruled today (2026-09-02): "adopt #566, take it to green, merge on my Why it matters now: #566 is the enabling precondition for What I will do, in order:
No canary pull request will be opened from this lane. § 5.8's act belongs I do not merge. This goes to merge-ready and waits for Brett's word. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e5ab636c03
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…`main` is MERGED IN rather than rebased onto The branch protection on `fix/*` (opensoft ruleset 8981805) carries `non_fast_forward`, so the rebase this adoption started with was refused at the push. Merging `main` in reaches the same tree — `main` moved nineteen commits (the `contract-v3.0` cut `ff9ed815` among them) and touched `scripts/validate-signed-execution-chain.py`, `scripts/signed_execution_chain/` and neither family's corpus not at all, so the merge is clean and the fix is measured against today's `main` either way — and it keeps this pull request and its review history rather than superseding it with a fresh one. Co-Authored-By: Claude Fable 5 <[email protected]>
… are red-proven
ADOPTED on Brett Heap's ruling of 2026-09-02 ("adopt #566, take it to green"),
the authoring lane having ended. The author's design is unchanged: the widened
kind filter and the trust-anchor `examples/` exclusion are exactly as written.
What this commit adds is the truthfulness and the coverage that change owed.
THE NOTE NO LONGER MISREPORTS WHY A FILE WAS SKIPPED (Copilot's one unresolved
finding on this pull request). It said skipped documents were "not a
signed-execution-chain kind" while the sweep also admits the three CONSUMED
trust-anchor kinds, which would send an operator diagnosing a skip after the
wrong cause; and it said "packaged examples/ excluded" in the singular while
TWO families' packaged corpora are now excluded. The layer-2 docstring carried
the same staleness one form worse — "one of the FOUR family kinds", tranche-one
language that tranche two extended to eleven — and it is the paragraph that
describes the sweep this change alters, so it is corrected here rather than
left to contradict the code beneath it.
THREE TESTS, AND EACH ONE IS LOAD-BEARING, measured by breaking the fix and
watching exactly one of them go red:
* narrowing the filter back to `KIND_TO_SCHEMA` alone reddens
`test_the_sweep_collects_and_adjudicates_the_consumed_trust_anchor_kinds`;
* deleting the trust-anchor `examples/` exclusion reddens
`test_the_sweep_excludes_the_consumed_familys_own_packaged_examples`;
* the old note text reddens `test_the_sweeps_skipped_count_does_not_misreport_why`.
ONE FIXTURE, TWO PATHS, OPPOSITE OUTCOMES is the whole statement of the fix, so
it is the whole statement of its tests: `add-trust-anchor`'s own
`anchor-shortfall-cited-with-no-claim-moment.yaml` refuses under
`carried-vocabulary` at a live path — proving the record was really READ and not
merely counted — and draws nothing under a packaged `examples/` tree. Both are
hermetic (tmp trees), so they still stand if either family's corpus moves. The
whole-tree test above them already guards the exclusion non-hermetically: with
the exclusion deleted it sweeps 54 artifacts and refuses 2, which is #579's
diagnostic reproduced as a test failure.
THE MEASUREMENT ON THE REBASED TREE, recorded because the pull request's body
claim disagreed with issue #579 and one of them had to be wrong. Gate
invocation, `--require-pinned-wallet-vocabulary`, `wallet-v1.3` initialized:
control (the tranche-two POSITIVE corpus in-tree, nothing broken) 0 errors;
canary A 2 errors (`dispatched_leaf_never_written` +
`open_decision_enumeration_incomplete`); canary B 3 errors
(`orphan_pull_request` + `chain_binding_names_another_chain` +
`orphan_chain_identity`). #579 IS RIGHT AND THE BODY WAS WRONG about singularity;
the body is right that the control goes clean, and it goes to ZERO here rather
than to #579's diagnostic 2, which is the exclusion doing its work. No canary is
carried by this change, and none is opened from this lane.
Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
repo_scan() can crash on malformed YAML where kind is unhashable (e.g., a list), because it tests dict membership without first enforcing kind is a string.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8cbbe11443
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… on it and may not resolve it last-write-wins
Two findings from the first round on the adopted head, both real, both about the
same thing — the sweep's inputs are not a curated corpus, and admitting the
consumed vocabulary means an arbitrary checkout's records now reach the view
that resolves them.
COPILOT: A `kind` THAT IS NOT A STRING CRASHED THE WHOLE SCAN. `{"a": 1} in
some_dict` RAISES rather than returning False, so one unrelated file writing
`kind: [a, b]` felled the required gate with a `TypeError` and discarded every
other file's findings. Verified before fixing: `TypeError: unhashable type:
'list'`, and `'dict'` for a mapping. The `kind` is now type-guarded before it is
looked up — every key in both maps is a string, so a non-string kind is a skip by
construction. THE DEFECT PREDATES THIS CHANGE (the narrow filter had the same
shape) but the line is this change's, and a gate felled by a document it does not
own is not a gate.
CODEX (P1): TWO CONSUMED RECORDS SHARING AN ID WERE RESOLVED BY FILE ORDER.
`build_view` keeps the LAST document it sees for each certificate, issuance
evidence and anchor id. In a curated corpus that is harmless; over an arbitrary
tree it lets lexicographic file order decide which fingerprint a tier-2 signature
is compared against, which issuance act discharges the composition, or which
anchor a certificate hangs from. THIS FINDING BELONGS TO THIS CHANGE: before it,
only the packaged corpora reached that view. It is refused on EVERY copy rather
than resolved, which is `add-trust-anchor`'s own `record-id-duplicate` doctrine
and this reader's own doctrine one vocabulary over, where a key id two wallets
claim differently is AMBIGUOUS and never last-seen. Checked at the sweep, not in
the shared scope builder: the sweep is where an uncurated set can arise, and a
duplicate inside a packaged corpus is a corpus defect layer 1 owns.
Both guards are red-proven the same way as the three before them — remove the
guard, watch exactly its own test go red. `tests/signed_execution_chain`: 96
passed (91 at the branch point, +5). The gate invocation is 0 errors, 0 warnings,
and the § 5.8 canary measurement is unchanged: control 0, A 2, B 3.
The round's THIRD finding — Codex P1, the composed issuance evidence never
compared against the certificate it is composed WITH — is confirmed real, is NOT
this change's, and is filed as **issue #582** rather than patched: it is a realization gap against
a ratified scenario, it is reachable through the packaged corpus this change does
not touch, and closing it widens what a REQUIRED gate refuses and owes a
red-proving fixture.
Co-Authored-By: Claude Fable 5 <[email protected]>
|
@codex review Second round, on |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
… filter, or a required gate is evadable by placement
CODEX, ROUND TWO (P1), and it is the most serious finding this branch has drawn:
`"examples" in path.parts and "<family>" in path.parts` asks only whether two
words appear ANYWHERE in a path, so THE REQUIRED GATE WAS EVADABLE BY PLACEMENT.
Measured before the repair, on a record the reader owns:
governance/trust-anchor/live/examples/invalid.yaml
-> 0 artifact(s) checked, 0 skipped, no refusal
governance/signed-execution-chain/live/examples/invalid.yaml
-> 0 artifact(s) checked, 0 skipped, no refusal
somewhere/examples/deep/trust-anchor/invalid.yaml
-> 0 artifact(s) checked, 0 skipped, no refusal
A pull request could park a malformed chain record at such a path and the gate
would report nothing at all — not a skip it counted, but a file it never saw. THE
SECOND CASE IS INHERITED: the `signed-execution-chain` exclusion has had this
shape since tranche one, and this change copied it one family over. Both are
repaired, because leaving a known evasion in the line above the one being fixed
is not a fix.
CODEX'S OWN REMEDY IS REFUSED, AND FOR THE REASON THE ORIGINAL COMMENT ALREADY
GAVE. Matching "the actual vendored `contracts/trust-anchor/examples` subtree
relative to the scan root" would re-adjudicate every vendored negative as a live
record: a domain repo that vendors openxFactory scans a COPY at its own prefix,
which is precisely why the exclusion was written over path COMPONENTS rather
than over this checkout's paths. The finding is right; its proposed fix trades
one defect for another.
THE REPAIR IS ADJACENCY. `under_packaged_examples()` requires `<family>` and
`examples` to be ADJACENT components in that order, which keeps every vendored
copy of a real packaged corpus excluded — `.../contracts/trust-anchor/examples/negative/x.yaml`
at any prefix — and admits the arbitrary paths that merely mention the words.
Measured: no path in this tree carries the two components non-adjacently, so the
sweep's reading over `main` is unchanged (0 artifacts checked, 0 errors, 0
warnings), and the § 5.8 canary measurement is unchanged (control 0, A 2, B 3).
`test_the_corpus_exclusion_is_not_evadable_by_placement` holds BOTH halves — the
three evasive paths are adjudicated, and a vendored packaged corpus at a foreign
prefix is still excluded — and is verified red against the bare membership test.
`tests/signed_execution_chain`: 97 passed (91 at the branch point, +6).
Co-Authored-By: Claude Fable 5 <[email protected]>
|
@codex review Third round, on |
There was a problem hiding this comment.
🔵 Needs a closer look
repo_scan() reports consumed-record-id-duplicate but still proceeds into tranche-two validation where consumed resolution remains last-write-wins, enabling order-dependent secondary findings unless the scan short-circuits on that ambiguity.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/validate-signed-execution-chain.py:1914
repo_scan()detectsconsumed-record-id-duplicate, but still proceeds tovalidate_scope(). Downstream tranche-two validation resolves consumed records via dict assignment (last-write-wins inscripts/signed_execution_chain/attestation.py:318-323), so continuing after a duplicate means later findings can still be influenced by scan order, contradicting the intent of “never resolved by file order” and potentially producing misleading secondary errors.
Consider skipping validate_scope() when this specific duplicate condition is present (or otherwise short-circuit tranche-two validation) so the scan fails closed on the ambiguity without performing order-dependent resolution.
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…2 and not "the sweep" Copilot, round three: `check_consumed_identifiers_are_unambiguous()` claimed to be checked "at the SWEEP", while `repo_scan()` is the entry point for a directory sweep AND for an explicitly named single file (`sweep = target.is_dir()`). The wording was misleading for exactly the caller it did not name, which is the class of defect the note fix earlier in this branch already answered once. The claim is now LAYER 2'S ENTRY POINT, both callers named — and it is pinned rather than asserted: a single named file carrying the same certificate twice in one multi-document stream draws `consumed-record-id-duplicate`, measured, and asserted in the same test that holds the sweep half. That is the honest reading either way: one file can carry a whole stream, so the ambiguity it can express is the same ambiguity. `tests/signed_execution_chain`: 97 passed. The gate invocation is unchanged at 0 errors, 0 warnings. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Lane: openxfactory-1d (session openxfactory-42) Catch-up #2 to
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
A newly added docstring includes a host-absolute path example (/work/...), which violates the repo constitution’s “no host-absolute paths in committed files” rule.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
|
Lane: openxfactory-1d § 5.8 canary pair re-measured on
|
| case | refusal codes | count | vs #579 |
|---|---|---|---|
| control — positive corpus, nothing broken | — | 0 | unchanged (0) |
| A — dropped runner attestation | dispatched_leaf_never_written, open_decision_enumeration_incomplete |
2 | unchanged (one fact seen twice, per #579) |
| B — no signed open decision | orphan_chain_identity, chain_binding_names_another_chain, orphan_pull_request |
3 | unchanged (three real findings, per #579) |
Baseline on the untouched tree: 0 artifact(s) checked, 1737 skipped, 0 error(s), 0 warning(s) — matches this PR's own report.
Checkout-location control (the 9582c2b8 fix itself)
Built a scan root at <scratch>/contracts/signed-execution-chain/examples/domain-repo/
(a checkout whose own ancestor path is shaped like the packaged-corpus exclusion
pattern) holding a live malformed record at
governance/signed-execution-chain/canary-malformed.yaml
(kind: xfactory_signed_execution_chain_log_leaf, all other fields omitted).
Measured both heads via git worktree add for 048fbaaf (no changes to the
tracked clone):
- at
048fbaaf:repo scan (...): 0 artifact(s) checked, 0 skipped— the record was excluded outright, not even counted as skipped-for-kind. - at
9582c2b8:repo scan (...): 1 artifact(s) checked, 1737 skipped— the record is now adjudicated: 7[schema]required-property errors plus[leaf_hash_link_broken](12 errors, 1 warning total).
Confirms the scan-root-relative fix: a checkout's own on-disk ancestry can no
longer switch the packaged-corpus exclusion off (048fbaaf) or on for records
that were never part of the packaged corpus.
What this means for #579
Remedy (1) — repo_scan admitting the consumed vocabulary and generalizing the
packaged-corpus exclusion — is delivered by this PR, red-proven by the tests
above and by this re-measurement landing at control=0. Remedy (2) — a singular
negative fixture per named § 5.8 scenario (or an amendment accepting "one fact
seen twice") — remains open; case A still reads as one fact seen twice, case B
still draws three independent findings, exactly as #579 found.
…ct, not host-absolute `/work/…` in the new docstring read as a machine-local path, which committed files do not carry; the example now reads `<checkout>/contracts/signed-execution-chain/ examples/domain-repo`, which is the shape the finding is about. Prose only. Lane: openxfactory-1d Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-1d Round on @codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 Changes recommended
repo_scan() still applies SKIP_DIR_NAMES to absolute path.parts, which can silently bypass the sweep if the checkout is located under a skipped ancestor directory (e.g. node_modules or .venv).
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Lite
…er .venv/ or node_modules/ no longer switches the sweep off Copilot's finding on #566 (thread 3928177541): `repo_scan()` matched SKIP_DIR_NAMES over the ABSOLUTE path, one check before `under_packaged_examples()` runs — so a checkout parked under a `.venv/`, `node_modules/`, `.git/` or `__pycache__/` ANCESTOR gave every file in it one of those names by inheritance, and the whole sweep switched off. The same checkout-location evasion the previous commit closed for the packaged-corpus exclusion, one check earlier. Measured over a tree at `<scratch>/.venv/domain-repo/governance/` holding one live malformed trust-anchor record: before: "repo scan (.../.venv/domain-repo): 0 artifact(s) checked, 0 skipped (...)" after: "repo scan (.../.venv/domain-repo): 1 artifact(s) checked, 0 skipped (...)" plus a drawn refusal (carried-vocabulary: 'declared_at' is a dependency of 'declared_shortfall_ref') Fix mirrors `under_packaged_examples()`: the skip-dir test now runs against `path.relative_to(scan_root).parts`, with a `ValueError` fallback that fails CLOSED (never skips) rather than excluding a path whose relation to the tree is unknown. In-tree behaviour is unchanged: a `node_modules/` or `.venv/` INSIDE the scanned tree is still skipped. One new test beside `test_the_exclusion_ignores_components_above_the_scanned_tree`: `test_skip_dir_names_ignore_components_above_the_scanned_tree`, asserting the ancestor case is adjudicated (1 checked) and the in-tree control is still skipped (0 checked). Red-proven by stashing the validator fix: 1 failed, 31 deselected. Green with it restored: `pytest tests/signed_execution_chain` 101 passed. Lane: openxfactory-1d Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-1d Round on c530025 — Copilot's SKIP_DIR_NAMES finding TAKENCopilot found (thread 3928177541) that Fix mirrors Measured over a tree at
One new test, The pytest-suite red on 7e5e255 is INHERITED from main at ea117d4: six tests in tests/factory_identity/test_mint_script.py fail on @codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟢 Approval recommended
The validator behavior change is tightly scoped, defensively implemented (fail-closed where needed), and is backed by extensive red-proven tests that pin the previously-misbehaving scenarios.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-1d (session openxfactory-55) MERGING — RULING for lane openxfactory-1d's PR #566, Brett Heap, 2026-09-03 ~20:45Z in session: "merge 566". Adopted by this lane on his 2026-09-02 ruling after the authoring lane (7c) ended. Head Bots at the final head: Copilot 🟢 approval recommended, 0 comments; 0 unresolved threads (all dispositioned in-thread); Codex: non-review (usage limit) throughout. What lands: the repo scan collects the consumed trust-anchor kinds (the original fix, four rounds 2026-09-02); the packaged-corpus exclusion and |
#624) contract-v3.1 was cut by #616 (squash 19d0087) and its annotated tag pushed there. It does not verify at its own commit. verify-tag --tag contract-v3.1 and verify-commit --commit 19d0087 both report: HGR-RELEASE-DIGEST-MISMATCH error path=requirements/hermes-runtime-contracts.in: digest does not match the raw Git blob at the pinned commit HGR-RELEASE-DIGEST-MISMATCH error path=requirements/hermes-runtime-contracts.lock: digest does not match the raw Git blob at the pinned commit MEASURED CAUSE. The v3.1 inventory was built last at #616's head a981c98 and verified there. The branch forked at 0bf37d1 and three first-parent landings reached main before the squash: ea117d4 (#610), 4fc7b94 (#566) and 995c0ad, the merge of 11db75e (#621, "The mint script's Ed25519 dependency is declared where the suite installs it"). Intersecting the eighteen paths of `git diff --name-only a981c98 19d0087` with the 283 registered members of contract-v3.1.digests.yaml leaves exactly two, both #621's: requirements/hermes-runtime-contracts.in and .lock. The lane published the tag without re-running verify-commit at the merge commit — Bundle Realization Order step 4, skipped. That was lane repo-shape's error, in the cutting session itself. REMEDY, per docs/contract-versioning-policy.md § Immutable Tag Correction: the published tag is never moved, deleted or re-tagged. The defect is corrected by a superseding release allocated through the same realization order. contract-v3.1's tag and inventory remain in place as immutable provenance, its number is never reused, and nothing is declared spent — v3.1 was PUBLISHED, so it is DEFECTIVE rather than a number that could never be published. Ruled by Brett Heap, convener, 2026-09-03: "cut 3.2". CLASS: ADDITIVE (minor). `git diff --name-status contract-v3.1 HEAD` at the branch point is empty — the tag peels to origin/main's tip — so this bundle is v3.1's realized surface with the two requirements files as they now stand. The only registered movement is #621's cryptography==50.0.0 declaration and its lock closure: a build dependency added, no required field, no shape removed, no semantics changed. No consumer pinned at contract-v3.1 is made non-conformant. One candidate commit, per Bundle Realization Order step 2: manifest, changelog, the release-boundary hand statement and the rebuilt inventory move together. Membership is 283 rows in both inventories, unchanged; five digests move — this cut's own three release-surface files plus the two requirements files. No new capability is realized beyond what contract-v3.1 named. contracts/releases/contract-v3.1.digests.yaml is byte-identical. Lane: repo-shape Claude-Session: https://claude.ai/code/session_015WekBEXf55Xv64psGe5t3T Co-authored-by: Claude Fable 5.1 <[email protected]>
… tranches meet in one leaf grammar The branch forked at `1a69b7cb` on 2026-09-01 and stopped; `main` moved 93 commits, including the whole of tranche two. Six conflicts, every one of them the SAME conflict: two tranches widening one closed enumeration from opposite sides. Each is resolved as a UNION and never as a choice, because both sides are additive by construction and picking one would silently delete a ratified capability's members. * `digest-construction.schema.yaml` / `canonical.py` — 5 + 11 + 11 = TWENTY-SEVEN digest subjects, one construction, in the shape's own order. * `transparency-log-leaf.schema.yaml` — 4 + 7 + 12 = TWENTY-THREE leaf types. AND THE COMPLEMENT IS WIDENED WITH THEM: the `allOf` conditional that refuses an `anchor_event` on a non-anchoring leaf was authored over the four types that existed at the fork, so tranche two's seven would have been admitted to carry an anchoring block — the exact claim the conditional exists to refuse. * `validate-signed-execution-chain.py` — `LEAF_TYPES` becomes the sum of three named tuples; #566's scan-root-relative exclusions and consumed-kinds logic are untouched. * `contracts/manifest.yaml` — main's `contract_bundle_version: contract-v3.2` and all 180 of its entries kept; only the two moved per-file digests are this branch's, recomputed against the merged bytes. * `contracts/signed-execution-chain/README.md` — thirteen files, and the leaf row says what the grammar now carries for all three tranches. Four tests were pinned to the 4 + 12 world and are moved forward, not weakened: the corpus-coverage obligation is now over the ELEVEN acts this capability governs (tranche one's four AND tranche two's seven, each still holding a packaged example) rather than over four, and the positional slices name all three groups. Lane: openxfactory-1d Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-1d
Found building the §5.8 canary pair (add-chain-attestation), which is what a canary exercise is for. The repo scan collected only this family's own record kinds, so the two CONSUMED trust-anchor records a tier-2 issuance composes with could never reach the scope that resolves them — every real-tree chain would have drawn
forged_attestation_identity+controller_anchor_not_heldnoise regardless of its actual state, and the canaries could not draw their single named refusals. The packaged corpora never saw it because their loaders read whole files.Fix: the scan collects
CONSUMED_KIND_TO_SCHEMAkinds into scope exactly as the packaged corpora load them, and excludes trust-anchor's own packagedexamples/on the same ground it already excluded this family's.This PR is the enabling precondition for the canary pair and carries no canary itself.
ADOPTED 2026-09-02 — and the body's own measurement is CORRECTED
Brett Heap ruled "adopt #566, take it to green, merge on my word"; the
authoring lane (
openxfactory-7c) had ended. The author's design is unchanged.Two things were added: the truthfulness the change owed its own operator-facing
note, and the tests it owed both of its halves.
mainis merged in ratherthan rebased under, because
fix/*carriesnon_fast_forward(opensoft ruleset8981805) and the rebase was refused at the push; the resulting tree is
byte-identical to the rebased one at that point (
1effe769).THE ORIGINAL BODY CLAIMED "canary A → exactly one error … canary B → exactly
one error", AND THAT CLAIM IS WITHDRAWN AS FALSE. It disagreed with issue
#579, which measured both fixtures as non-singular even in a clean scope,
and #579 is the reading that survives re-measurement. The claim is struck here
rather than quietly edited away, because a pull request that changes a REQUIRED
gate is a record.
The re-measurement, re-run on every head through
ddc83756Method exactly #579's: the tranche-two POSITIVE corpus (106 documents from
chain-t2/t3/t4/t5, the tranche-two conformance declaration, and the consumedtrust-anchor records) concatenated verbatim as one YAML stream at
governance/signed-execution-chain/probe.yaml, one fixture appended verbatim ata time, then the gate's own invocation
python3 scripts/validate-signed-execution-chain.py . --require-pinned-wallet-vocabularyagainst an initialized
openXwallet(wallet-v1.3,6b248d40, pin verified, 8digests recomputed). Nothing was committed; the probe was removed after each run.
contract-v3.0(#579)carried-vocabulary, against trust-anchor's negatives)dispatched-task-whose-attestation-never-arrives.yamlattestations-presented-with-no-signed-decision.yamlThe control going to ZERO is this PR's result, and it is the number that
matters: #579's filter-only instrument left 2, and the difference is the
trust-anchor
examples/exclusion doing exactly the work #579 said the naive fixwould skip. A valid tranche-two chain now validates in the tree.
Canary A → 2 refusals, and the extra is (a) one fact seen twice:
One mutation, one dropped task, named identically by both — refused from link 5's
side and from link 6's side. This is inside #549's discipline of recording the
corollary red as one fact, and it is exactly what #579 said it was.
Canary B → 3 refusals, and the extras are (b) real, and not one fact:
The fixture introduces a chain identity of its own that resolves to no signed
ratification, and reuses a binding minted for chain t2. Those are two further
true facts about the record set, not the same fact re-read, and not a
validator over-report — the packaged corpus's own doctrine is that "a negative
fixture that introduces a chain of its own therefore also draws the completeness
findings its own incompleteness earns", and its self-test asserts only that the
expected code is AMONG those found. Nothing is fixed here in response. The
fixture is correct for the job it was built for; §5.8's third conjunct asks for a
different job, and re-cutting a packaged fixture that ships at
contract-v3.0isthat packet's work with its own review — not a fix PR's, and emphatically not a
canary PR's.
(c) VALIDATOR OVER-REPORT: none found. Every refusal in every case above is a
true statement about the records in scope.
A diagnostic for §5.8's next attempt, offered and NOT carried here
A hand-built canary — chain t5, complete and conforming, with its single link-6
pr-open-decision(dec-t5) removed and nothing else touched — draws 2:orphan_pull_requestpluspredecessor_digest_break(the closure record chainsfrom the record that is now gone). That is canary A's shape: one removal read
from two sides. So a §5.8 canary of the dropped-decision scenario in "one fact
seen twice" form is producible from the packaged positives without cutting a new
fixture, where the packaged negative's own extra chain is not. This is a
measurement, not a proposal, and no byte of it is in this branch.
What was added on adoption
unresolved finding, answered and resolved on the thread. It said skipped
documents were "not a signed-execution-chain kind" while the sweep also
admits the consumed vocabulary, and said "packaged examples/ excluded" in
the singular while two families' corpora are now excluded. The layer-2
docstring carried the same staleness one form worse — "one of the FOUR family
kinds" — and is the paragraph describing the sweep this PR changes, so it is
corrected too.
reddens
test_the_sweep_collects_and_adjudicates_the_consumed_trust_anchor_kinds;deleting the exclusion reddens
test_the_sweep_excludes_the_consumed_familys_own_packaged_examples; the oldwording reddens
test_the_sweeps_skipped_count_does_not_misreport_why; twomore landed with the bot rounds below, for seven in all. One
fixture, two paths, opposite outcomes:
add-trust-anchor's ownanchor-shortfall-cited-with-no-claim-moment.yamlrefuses under
carried-vocabularyat a live path — proving the record is READand not merely counted — and draws nothing under a packaged
examples/tree.Both hermetic, so they stand if either corpus moves.
with the exclusion deleted,
test_the_reader_exits_zero_on_the_corpus_and_the_treesweeps 54 artifacts and refuses 2, which is add-chain-attestation § 5.8's canary pair is not producible: the whole-tree sweep drops the consumed trust-anchor vocabulary, so a VALID tranche-two chain produces 53 refusals #579's diagnostic reproduced as a
test failure. Verified by deleting the exclusion and watching it go red.
Bot rounds on the adopted head — nine findings, all real, eight fixed and one filed
Every thread is answered with a commit sha or a reason, and every one is
resolved. Codex's only run before adoption hit its usage limit and reviewed
nothing, so these are the first real benches this change has seen.
Copilot — a
kindthat is not a string CRASHED the sweep. Reproduced beforefixing:
kind: [a, b]→TypeError: unhashable type: 'list', and'dict'for amapping, because
{"a": 1} in some_dictraises rather than returning False. Theexception propagated out of
repo_scan, so ONE unrelated file anywhere in acheckout took the whole sweep down and discarded every other file's findings.
The defect predates this change — the narrow filter had the same shape — but the
line is this change's. Fixed in
c8327fec; thekindis read once andtype-guarded before lookup.
Codex P1 — two consumed records sharing an id were resolved BY FILE ORDER.
This one belongs to this change:
build_viewkeeps the last document it seesper certificate, issuance-evidence and anchor id, and before this change only the
curated corpora reached it. Over an arbitrary tree, lexicographic file order
could choose which fingerprint a tier-2 signature is compared against. Now
refused as
consumed-record-id-duplicatenaming every copy, onadd-trust-anchor's ownrecord-id-duplicatedoctrine and on this reader's ownrule one vocabulary over, where a key id two wallets claim differently is
AMBIGUOUS and never last-seen. Checked at layer 2's entry point — the whole-tree
sweep and an explicitly named single file alike — rather than in the shared scope
builder: a duplicate inside a packaged corpus is a corpus defect layer 1 owns.
Codex P1 (round 2) — the corpus exclusion was EVADABLE BY PLACEMENT, and this
is the branch's most serious finding.
"examples" in path.parts and "<family>" in path.partsasks only whether two words appear anywhere in a path. Measured ona record the reader owns:
governance/trust-anchor/live/examples/invalid.yaml,governance/signed-execution-chain/live/examples/invalid.yamlandsomewhere/examples/deep/trust-anchor/invalid.yamleach gave0 artifact(s) checked, 0 skipped, no refusal — not skipped-and-counted, never seen. Thesecond case is inherited: that shape has been on the
signed-execution-chainexclusion since tranche one and this change copied it one family over. Both
repaired in
6b800e84. Codex's own remedy — match the vendoredcontracts/trust-anchor/examplessubtree relative to the scan root — isrefused, for the reason the original comment beside that line already gave: a
domain repo vendors openxFactory and scans a COPY at its own prefix, which is why
the test was written over path COMPONENTS. The repair went two rounds:
adjacency of
<family>/examplesfirst, then — after Copilot foundgovernance/signed-execution-chain/examples/x.yamlstill dropped — theTHREE-COMPONENT SEQUENCE
contracts/<family>/examples, adjacent and in thatorder, at any prefix, so
vendor/openxFactory/contracts/trust-anchor/examples/negative/x.yamlstaysexcluded. The residual is stated in the docstring rather than implied: any
component-shaped exclusion is evadable by FABRICATING the shape, and
governance/contracts/<family>/examples/x.yamlis still skipped — but that nowrequires a SECOND
contracts/tree, the packaged-corpus shape itself. Closing itcompletely means identifying a vendored corpus POSITIVELY (a
manifest.yamlbeside the
contracts/component), trading a path rule for a filesystemassumption about how consumers carve the bundle, which is a bigger change than
this fix carries. The sweep's reading over
mainis unchanged either way (0artifacts, 0 errors).
Copilot (round 4) —
check_consumed_identifiers_are_unambiguous()returnedTrue when the set WAS ambiguous. Name and boolean disagreed at a fail-closed
call site — the shape somebody later "simplifies" the wrong way. Renamed to
consumed_identifiers_are_ambiguous(), call site moved with it.Copilot (round 3) — the duplicate check's docstring said "at the SWEEP" while
repo_scan()also serves an explicitly named single file. True, and the sameclass of defect as the repo-scan note this branch already corrected once. Fixed
in
53029070: the claim is now layer 2's entry point with both callers named,and it is pinned rather than asserted — a single named file carrying the same
certificate twice in one multi-document stream draws
consumed-record-id-duplicate, measured and asserted in the same test.Copilot (round 3, in the review BODY rather than on a thread) — the new
duplicate refusal was followed by a walk of the very scope it declared
ambiguous. Right: the refusal said "never resolved by file order" and the next
line resolved through those identifiers, so the secondary findings could still be
order-dependent. Fixed in
ddc83756: an ambiguous scope is refused asUNEVALUABLE and not walked — this family's own fail-closed doctrine, "a
chain the gate cannot EVALUATE is refused … an unevaluable answer never reads as
permission" — and the refusal SAYS the walk did not run, so a reader does not
take a silence for an absence. Pinned by
test_an_ambiguous_scope_is_not_walked_at_all, which first asserts the treerefuses on its own so the test cannot pass vacuously.
Codex P1 — the composed issuance evidence is never compared against the
certificate it composes WITH. Confirmed, and FILED AS #582 rather than patched
here. The code reading is right and a ratified scenario does require the
comparison ("whose ISSUANCE EVIDENCE … references that certificate"), so it is
a realization gap against ratified text. It predates this change and is reachable
through the packaged corpus regardless of the sweep; closing it widens what a
REQUIRED gate refuses and owes a red-proving negative fixture, which is packet
work and not a fix PR's. #582 carries the full reading, the suggested shape, and
the sibling last-write-wins hazard on the family's OWN
bindings_by_id.Local runs
tests/signed_execution_chain98 passed (91 at the branch point, +7);together with
tests/trust-anchorandtests/openxwallet_pin, 229 passedbefore the bot round. The body's original "22 passed" was
test_chain_reader.pyalone, not the family suite.covers and watching only that one fail.
scripts/verify-openxwallet-pin.pyOK; the gate invocation 0 errors, 0warnings, with the sweep's note present for the anti-vacuity step to grep.
The canary measurement is unchanged after the bot round: control 0, A 2, B 3.
8cbbe114:signed-execution-chain-gatePASS,wallet-validationPASS,merge-master-approvalPASS.pytest-suiteRED onexactly one test —
tests/doc-health/test_release_tag_publication.py::test_this_repository_reads_zero_and_the_probe_can_fire,1 failed, 8623 passed, 21 skipped (run
33616028441). That is issuerelease-tag-publication has no state for a SPENT, never-publishable bundle — contract-v2.6 makes it ERROR permanently #575 inherited from
main, whose ratification (Ratify declare-spent-bundle-state: the release-tag family has no third state, and contract-v2.6 is that state (DO NOT MERGE) #578) is not yetmerged, and it is the ONLY failure. Re-verified on the bot-round head.
On whether this owes a spec delta — read, and the answer is no
Issue #579 wrote that a correct fix "changes what a REQUIRED gate refuses, so
it owes its own scenarios and its own review", so the question was put rather
than assumed.
It does not owe scenarios, because it adds no rule. The promoted
capability's scope sentence is about LINKS — "exactly the links the ratified
tranches of this capability have put in force", links 1–6 from tranche two —
and tranche two's tier-2 identity requirements already compose the certificate
record and the issuance evidence, already require carried records to be held to
"the shape that owns them, never to a local restatement of it", and already
name those records as admitted to the scope. The sweep not collecting them was
a realization defect against an already-ratified requirement: the reader
could not walk links 4–6 over any real tree at all, which is the very reach the
ratified scope sentence gives it. What it owed was a TEST, and that is what is
added.
The visible consequence worth naming: the chain gate can now emit
carried-vocabularyagainst a trust-anchor record at a live path, where beforeit silently skipped one. That is not a new rule — it is the already-required
"held to the shape that owns them" reaching the records it was written for —
but it does mean this required check and
validate-trust-anchor.pycan refusethe same defect. Two gates refusing one true defect is not a false refusal, and
it is recorded here rather than discovered later.
Two things read and deliberately NOT changed
packaged-corpus exclusion that "generalizes to any owning family's
examples/"; what landed is a second literal,"trust-anchor" in path.parts. It is correct and complete for today's vocabulary — trust-anchoris the only consumed family, and every trust-anchor record in this tree lives
under one of the two excluded
examples/trees (swept and confirmed) — but athird consumed family would be admitted to the scope and have its negatives
swept as live, silently, until someone measured it. Left as the author wrote
it; recorded here so the next consumed vocabulary does not inherit it as a
surprise.
four kinds" and lists four of the eleven. That sentence was false before
this PR and is untouched by it — it describes the family's ownership, not the
sweep — so it is not swept into a fix PR. It is a real inherited staleness
and wants its own one-line correction.
No canary pull request is opened from this lane. §5.8's act belongs after
this merges: a canary's job is to fail, and it must not carry the fix that makes
its failure meaningful.
🤖 Generated with Claude Code