Skip to content

The repo scan collects the consumed trust-anchor kinds, or every real chain is a forged identity - #566

Merged
brettheap merged 15 commits into
mainfrom
fix/chain-repo-scan-consumed-kinds
Sep 3, 2026
Merged

brettheap merged 15 commits into
mainfrom
fix/chain-repo-scan-consumed-kinds

Conversation

@brettheap

@brettheap brettheap commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

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_held noise 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_SCHEMA kinds into scope exactly as the packaged corpora load them, and excludes trust-anchor's own packaged examples/ 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. main is merged in rather
than rebased under, because fix/* carries non_fast_forward (opensoft ruleset
8981805) 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 ddc83756

Method exactly #579's: the tranche-two POSITIVE corpus (106 documents from
chain-t2/t3/t4/t5, the tranche-two conformance declaration, and the consumed
trust-anchor records) concatenated verbatim as one YAML stream at
governance/signed-execution-chain/probe.yaml, one fixture appended verbatim at
a time, then the gate's own invocation
python3 scripts/validate-signed-execution-chain.py . --require-pinned-wallet-vocabulary
against an initialized openXwallet (wallet-v1.3, 6b248d40, pin verified, 8
digests recomputed). Nothing was committed; the probe was removed after each run.

case as shipped at contract-v3.0 (#579) filter widened ALONE (#579's throwaway) with this PR
baseline, no probe in tree 0 — 0 errors, 0 warnings
control — POSITIVE corpus, nothing broken 53 2 (both carried-vocabulary, against trust-anchor's negatives) 0
A — dispatched-task-whose-attestation-never-arrives.yaml 56 4 2
B — attestations-presented-with-no-signed-decision.yaml 59 5 3

The 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 fix
would skip. A valid tranche-two chain now validates in the tree.

Canary A → 2 refusals, and the extra is (a) one fact seen twice:

ERROR [dispatched_leaf_never_written] chain sha256:269a80d8…: task 'task:t5-dropped' is in link 4's committed expectation and produced NO link-5 attestation and no leaf …
ERROR [open_decision_enumeration_incomplete] …probe.yaml#72: the enumeration omits ['task:t5-dropped'] from link 4's committed expectation …

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:

ERROR [orphan_chain_identity] chain sha256:64b95694… resolves to no signed ratification …
ERROR [chain_binding_names_another_chain] …probe.yaml#108: the signing identity's binding serves chain sha256:269a80d8…, not this one
ERROR [orphan_pull_request] chain sha256:64b95694…: runner attestations are presented and NO link-6 record exists …

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.0 is
that 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_request plus predecessor_digest_break (the closure record chains
from 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

  • The note no longer misreports why a file was skipped — Copilot's one
    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.
  • Three tests, each red-proven by breaking the fix. Narrowing the filter back
    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 old
    wording reddens test_the_sweeps_skipped_count_does_not_misreport_why; two
    more landed with the bot rounds below, for seven in all. One
    fixture, two paths, opposite outcomes:
    add-trust-anchor's own anchor-shortfall-cited-with-no-claim-moment.yaml
    refuses under carried-vocabulary at a live path — proving the record is READ
    and not merely counted — and draws nothing under a packaged examples/ tree.
    Both hermetic, so they stand if either corpus moves.
  • The whole-tree test already guarded the exclusion half non-hermetically:
    with the exclusion deleted, test_the_reader_exits_zero_on_the_corpus_and_the_tree
    sweeps 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 kind that is not a string CRASHED the sweep. Reproduced before
fixing: kind: [a, b] → TypeError: unhashable type: 'list', and 'dict' for a
mapping, because {"a": 1} in some_dict raises rather than returning False. The
exception propagated out of repo_scan, so ONE unrelated file anywhere in a
checkout 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; the kind is read once and
type-guarded before lookup.

Codex P1 — two consumed records sharing an id were resolved BY FILE ORDER.
This one belongs to this change: build_view keeps the last document it sees
per 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-duplicate naming every copy, on
add-trust-anchor's own record-id-duplicate doctrine and on this reader's own
rule 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.parts asks only whether two words appear anywhere in a path. Measured on
a record the reader owns: governance/trust-anchor/live/examples/invalid.yaml,
governance/signed-execution-chain/live/examples/invalid.yaml and
somewhere/examples/deep/trust-anchor/invalid.yaml each gave 0 artifact(s) checked, 0 skipped, no refusal — not skipped-and-counted, never seen. The
second case is inherited: that shape has been on the signed-execution-chain
exclusion since tranche one and this change copied it one family over. Both
repaired in 6b800e84. Codex's own remedy — match the vendored
contracts/trust-anchor/examples subtree relative to the scan root — is
refused
, 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>/examples first, then — after Copilot found
governance/signed-execution-chain/examples/x.yaml still dropped — the
THREE-COMPONENT SEQUENCE contracts/<family>/examples, adjacent and in that
order, at any prefix, so
vendor/openxFactory/contracts/trust-anchor/examples/negative/x.yaml stays
excluded. 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.yaml is still skipped — but that now
requires a SECOND contracts/ tree, the packaged-corpus shape itself. Closing it
completely means identifying a vendored corpus POSITIVELY (a manifest.yaml
beside the contracts/ component), trading a path rule for a filesystem
assumption about how consumers carve the bundle, which is a bigger change than
this fix carries. The sweep's reading over main is unchanged either way (0
artifacts, 0 errors).

Copilot (round 4) — check_consumed_identifiers_are_unambiguous() returned
True 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 same
class 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 as
UNEVALUABLE 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 tree
refuses 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_chain 98 passed (91 at the branch point, +7);
    together with tests/trust-anchor and tests/openxwallet_pin, 229 passed
    before the bot round. The body's original "22 passed" was
    test_chain_reader.py alone, not the family suite.
  • All seven added tests are red-proven by breaking exactly the part each one
    covers and watching only that one fail.
  • scripts/verify-openxwallet-pin.py OK; the gate invocation 0 errors, 0
    warnings
    , 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.
  • CI on 8cbbe114: signed-execution-chain-gate PASS,
    wallet-validation PASS, merge-master-approval PASS. pytest-suite RED on
    exactly 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 issue
    release-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 yet
    merged, 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-vocabulary against a trust-anchor record at a live path, where before
it 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.py can refuse
the 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

  1. The exclusion is per-family, not generalized. 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 asked for a
    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-anchor
    is 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 a
    third 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.
  2. The module's opening docstring still says "the canonical validator for the
    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

… 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]>
Copilot AI lite review requested due to automatic review settings September 1, 2026 13:34

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 admit CONSUMED_KIND_TO_SCHEMA kinds into validation scope (in addition to the family’s own KIND_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.

@brettheap

Copy link
Copy Markdown
Contributor Author

Adoption notice — this pull request has changed hands

Brett Heap ruled today (2026-09-02): "adopt #566, take it to green, merge on my
word."
The chain-realization lane that authored it (openxfactory-7c) is no
longer running, so an adopting session picks it up here. Nothing about the
author's design is being rewritten on adoption; where I disagree with it I will
say so on the record rather than change it silently.

Why it matters now: #566 is the enabling precondition for
add-chain-attestation § 5.8's canary pair, which issue #579 measured as
not producible against the reader as shipped at contract-v3.0 — the sweep
admitted only KIND_TO_SCHEMA, so a valid tranche-two corpus in the tree
drew 53 refusals, and #579 also showed that widening the kind filter alone
is wrong because the packaged-corpus exclusion tests both examples and
signed-execution-chain, which would sweep contracts/trust-anchor/examples/negative/
as live records. This pull request claims both halves.

What I will do, in order:

  1. Rebase the branch onto today's origin/main (main has moved a long way:
    the contract-v3.0 cut ff9ed815 and the Resolve the doxBench sentinel to the published contract-v3.0 commit, and record the tag where three packets were waiting on it #576/Record instance six: contract-v2.6 is superseded, and the policy says so where a consumer reads #577-era changes).
  2. Measure rather than argue. The repo scan collects the consumed trust-anchor kinds, or every real chain is a forged identity #566's body reports canary A → exactly one
    error and canary B → exactly one; 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 reports that neither fixture is
    singular even in a clean scope (A draws 2, B draws 3). Those two readings
    disagree. I will re-run the gate's own invocation on the rebased tree with
    each § 5.8 fixture placed in-tree one at a time and record the exact refusal
    set, then say for every extra refusal whether it is (a) one fact seen twice,
    (b) a second real defect in the fixture, or (c) a validator over-report.
    Whatever the measurement says goes in this pull request and back onto 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.
  3. Answer and resolve the open Copilot thread (the repo-scan summary note still
    tells the operator that skipped files were "not a signed-execution-chain
    kind", which stops being true the moment consumed kinds are admitted).
  4. Run the chain validator's own suite and self-test, plus the gate invocation,
    and take a fresh @codex review — the only one on record hit Codex's usage
    limit and never ran.

No canary pull request will be opened from this lane. § 5.8's act belongs
after this merges, and a canary's job is to fail — it must not carry the fix
that makes it meaningful.

I do not merge. This goes to merge-ready and waits for Brett's word.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

brettheap and others added 2 commits September 2, 2026 05:47
…`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]>
Copilot AI review requested due to automatic review settings September 2, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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]>
Copilot AI review requested due to automatic review settings September 2, 2026 10:08
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

Second round, on c8327fec. The first round's three findings are all answered on their threads: the non-string kind crash and the last-write-wins consumed-id resolution are fixed and each pinned by a test verified red without its guard; the issuance-evidence/certificate comparison is confirmed real and filed as issue #582 rather than patched, because it predates this change, is reachable through the packaged corpus regardless of the sweep, and widens what a required gate refuses — which owes a red-proving fixture this fix PR has no business cutting.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change set is narrow, well-tested in-repo, and addresses a concrete scope defect without introducing new validation rules.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: c8327fec90

ℹ️ 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".

… 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]>
Copilot AI review requested due to automatic review settings September 2, 2026 10:20
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

Third round, on 6b800e84. Round two's P1 is fixed: the packaged-corpus exclusion required only that examples and a family name appear ANYWHERE in a path, which made the required gate evadable by placement — measured at 0 artifact(s) checked, 0 skipped, no refusal, for records the reader owns, on the inherited signed-execution-chain exclusion as well as on the one this change added. The proposed remedy (anchor to the vendored subtree relative to the scan root) was refused with its reason on the thread — it would re-adjudicate every vendored negative as a live record — and replaced with an ADJACENCY test that keeps vendored corpora excluded at any prefix. Round one's two fixes stand; the issuance-evidence gap remains filed as #582.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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() detects consumed-record-id-duplicate, but still proceeds to validate_scope(). Downstream tranche-two validation resolves consumed records via dict assignment (last-write-wins in scripts/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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 6b800e8452

ℹ️ 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".

…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]>
Copilot AI review requested due to automatic review settings September 3, 2026 19:30
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1d (session openxfactory-42)

Catch-up #2 to main (0bf37d1) and two gate fixes, on head 9582c2b8

The lane's agent brought this PR forward (048fbaaf, main at 2b0615d, 42 commits, no conflicts; all five checks green) and then found, while re-measuring, two defects in the required gate that the bot rounds had already named without disposition. It died on a session limit mid-verification; the orchestrator verified and landed its authored fix.

1. The packaged-corpus exclusion could be switched off by the checkout's own location (Codex P2 "ignore ancestors outside the scanned tree", 2026-09-02; Copilot's off-by-one on 048fbaaf). under_packaged_examples() matched contracts/<family>/examples over the ABSOLUTE path while main() resolves the target, so a checkout under …/contracts/signed-execution-chain/examples/… excluded every file by inheritance — 0 artifact(s) checked, 0 skipped over a live malformed record. Now searched relative to the scan root, failing closed off-tree; the sliding window also never tested its last index (range(n - width) → + 1).
2. An unadjudicated scope was reported as "checked" (Copilot, 2026-09-02). Under an ambiguous consumed-identifier set the note now says 0 artifact(s) checked (N collected and then NOT ADJUDICATED …).

Proof: two new tests; with the validator fix stashed exactly they fail (2 failed / 98 deselected); with it 100 passed. Gate self-run over the tree: 0 error(s), 0 warning(s), self-test 113 packaged records across 2 corpora, 95/95 refusal codes red-proven, repo scan 0 checked / 1737 skipped (expected: no chain incepted yet). All three review threads dispositioned and resolved.

Still owed on this record before the merge word: the § 5.8 canary re-measurement against this head (issue #579: A = 2 one-fact-twice, B = 3), being run now. Codex has answered recent requests with a usage-limit message; a repeat is recorded as a non-review. Merge = Brett Heap's explicit word only.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1d

§ 5.8 canary pair re-measured on 9582c2b8

Method identical to #579 and to this PR's own 8cbbe114 measurement: tranche-two
positive corpus (106 documents: chain-t2/t3/t4/t5, the conformance declaration,
consumed trust-anchor records) concatenated verbatim as one YAML stream at
governance/signed-execution-chain/probe.yaml in a scratch copy of the tree
(never inside the tracked clone), each § 5.8 negative fixture appended verbatim
one at a time, then python3 scripts/validate-signed-execution-chain.py . --require-pinned-wallet-vocabulary
against the pinned openXwallet (wallet-v1.4, as currently checked out at this head).

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.

brettheap and others added 2 commits September 3, 2026 15:50
…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]>
Copilot AI review requested due to automatic review settings September 3, 2026 19:51
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1d

Round on 7e5e2558: Copilot's docstring finding TAKEN (abstract <checkout>/… example path; prose only), thread resolved; catch-up merge #3 to main (ea117d4e). Family tests 100 passed. The § 5.8 canary re-measurement is on the record above (A = 2, B = 3, unchanged from #579; checkout-location control: skipped at 048fbaa, adjudicated at 9582c2b). Codex: no response to the previous request — recorded as a non-review if it repeats.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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]>
Copilot AI review requested due to automatic review settings September 3, 2026 20:19
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1d

Round on c530025 — Copilot's SKIP_DIR_NAMES finding TAKEN

Copilot found (thread 3928177541) that repo_scan()'s SKIP_DIR_NAMES test ran over the ABSOLUTE path, one check before under_packaged_examples() — the same checkout-location evasion the previous commit closed for the packaged-corpus exclusion, one check earlier. A checkout parked under a .venv/, node_modules/, .git/ or __pycache__/ ANCESTOR gave every file in it one of those names by inheritance, switching the whole sweep off.

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.

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')

One new test, test_skip_dir_names_ignore_components_above_the_scanned_tree, beside test_the_exclusion_ignores_components_above_the_scanned_tree, asserting the ancestor case is adjudicated (1 checked, over every SKIP_DIR_NAMES entry) while 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 -q — 101 passed.

The pytest-suite red on 7e5e255 is INHERITED from main at ea117d4: six tests in tests/factory_identity/test_mint_script.py fail on ModuleNotFoundError: No module named 'cryptography' from scripts/mint-factory-origin-key.py, landed by another lane; this PR's family file is 101 passed and its diff touches no factory-identity path.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@brettheap

Copy link
Copy Markdown
Contributor Author

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 c5300251. Four checks PASS: merge-master-approval 33801558297, signed-execution-chain-gate 33801562257, wallet-validation 33801562592, openreposhape-pin 33801562196. pytest-suite is RED ON A DISPOSITIONED, INHERITED FAILURE SET ONLY: run 33801562470 = 6 failed, 8945 passed, the six being tests/factory_identity/test_mint_script.py on ModuleNotFoundError: cryptography — main itself fails identically at ea117d4e (#610; issue #620, the #610 lane's fix). This PR's diff touches no factory-identity path; its own family suite is 101 passed. --admin satisfies the review-count rule and, for this one inherited set, the required pytest-suite check — recorded here as the owner's explicit word.

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 SKIP_DIR_NAMES are applied INSIDE the scanned tree and fail closed off-tree (a checkout's own location can no longer switch the required gate off — measured: 0 checked → 1 checked); the sliding window tests its last position; an unadjudicated scope is reported as 0 checked. § 5.8 canary pair re-measured on this head: A = 2 (one fact twice), B = 3 — unchanged from #579, whose remedy (1) this PR delivers; remedy (2) (singular fixtures) stays open on #579.

@brettheap
brettheap merged commit 4fc7b94 into main Sep 3, 2026
5 of 6 checks passed
brettheap added a commit that referenced this pull request Sep 3, 2026
#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]>
brettheap pushed a commit that referenced this pull request Sep 4, 2026
… 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]>
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.

2 participants