Skip to content

Realize add-binding-consumer-identity: cut contract-v2.4 (a credential binding declares who holds it and what it fetches with) - #526

Merged
brettheap merged 3 commits into
mainfrom
change/cut-contract-v2.4
Aug 31, 2026
Merged

brettheap merged 3 commits into
mainfrom
change/cut-contract-v2.4

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

What this is

The §5 release ritual of add-binding-consumer-identity — not an OpenSpec
change of its own. That packet was ratified 2026-08-29 and realized in two acts:
act one landed the code surface as PR #516 (squash 5e8a33cf) — the schema's
optional consumer: block, the validator's warning channel, the packaged corpus,
the generator sweep. Act two is this PR: the cut, contract-v2.4.

§5.3 deliberately declined to number the release in the packet, because
allocation is by MERGE ORDER and a number written before the merge is a number
the next packet to land would have to renumber. This PR allocates it, at the
merge order that actually exists.

Change class: ADDITIVE (minor). Nothing narrows, and that is a measurement:
the binding object has never been closed, so a consumer: key of ANY shape
already validated at contract-v2.3. Six shapes a domain could hold today were
built and driven against the shipped schema in
tests/credential_contracts/test_consumer_block_phasing.py, and all six
validate. Five of the six are refused at contract-v3.0 — which is exactly why
the narrowing is deferred to the major behind a served minor of warnings.

The two release-inventory-drift findings this cut discharges

Quoted from the pre-cut doc-health run:

- severity=error family=release-inventory-drift repo=openxFactory
  path=docs/contract-versioning-policy.md
  rule="bytes differ from the digest 'contract-v2.3' records"
  action="cut a release through the bundle realization order; never hand-edit an
  inventory or contract_bundle_version to make this comparison pass"
  class="auto-fixable"
- severity=info family=release-inventory-drift repo=openxFactory
  path=contracts/manifest.yaml
  rule="bytes differ from the digest 'contract-v2.3' records (editorial member —
  expected between cuts)"
  action="cut a release through the bundle realization order; never hand-edit an
  inventory or contract_bundle_version to make this comparison pass"
  class="auto-fixable"

The remedy line forbids the shortcut, which is why §6.3 was left UNTICKED at act
one with its reason measured rather than ticked with an excuse. It closes here,
by §5.3, in the same act.

doc-health, same-clock, both checkouts named exactly openxFactory (finding
identity is (family, repo, path) with repo = basename, so a differently-named
baseline manufactures phantoms), both at --as-of 2026-08-30:

critical error warning info findings release-inventory-drift
baseline origin/main (1d7e9bd2) 4 5 38 12 59 2
this branch 4 4 38 11 57 0

Set difference taken in BOTH directions over the machine block: no new finding
of any family
, and the two the baseline holds and the branch does not are
exactly the two quoted above. Every other family identical.

The bundle number, fresh-counted at the tip

  • CHANGELOG top entry: contract-v2.3 (2026-08-29).
  • contracts/releases/: inventories present through contract-v2.3.
  • git tag: contract-v2.0, contract-v2.1, contract-v2.2 published — and
    not contract-v2.3.
  • No Unreleased block pending.

contract-v2.3 is SPENT (declared and consumed as a number) but untagged, so
contract-v2.4 is the next additive number.

contract-v2.3 disposition — measured, PENDING an owner act

contract-v2.3 is declared by manifest + changelog + inventory and its annotated
tag was never published. Per the policy's own § Untagged Bundles After
Enforcement Began — DISCHARGED 2026-08-25, the remedy class is
retro-publication, not re-dating, at "the EARLIEST FIRST-PARENT COMMIT on
published main that DECLARES the bundle and at which verify-commit PASSES."

Both halves measured, not asserted:

  • walking git rev-list --first-parent origin/main, the bundle is declared at
    1d7e9bd2, 5e8a33cf, 698073f7, ec8be5aa; the commit below ec8be5aa
    (afe29561) declares contract-v2.2. Earliest = ec8be5aa (PR Add the standing policy compliance contract #514
    merge).
  • verify-commit --commit ec8be5aa62179713f37ee12dab53a948d791e147 →
    release verify-commit: pass, inventory=contracts/releases/contract-v2.3.digests.yaml,
    exit 0, zero findings.

So the candidate satisfies the rule as written. Tag publication is the
repository owner's act and is recorded as PENDING.
This PR measures; it does
not publish, and it does not treat the measurement as the act.
contracts/releases/contract-v2.3.digests.yaml is untouched.

Gates

gate result
verify-commit --commit <tip> release verify-commit: pass, inventory contract-v2.4.digests.yaml, exit 0, zero findings
verify-promotion --remote origin --tag contract-v2.4 6 findings, ALL the reachability class: HGR-RELEASE-CANDIDATE-UNREACHABLE + 5 × HGR-RELEASE-SURFACE-DRIFT. EXPECTED pre-merge — the candidate is not an ancestor of published main yet. No HGR-RELEASE-TAG-EXISTS; no finding from the inventory/version-agreement check at the commit
validate-manifest-digests.py OK contracts/manifest.yaml: 150 per-file digest(s) verify
validate-credential-contracts.py . self-test: 6 positive + 16 negative + 10 warning example(s) confirmed, 8 deprecation code(s) probed; 0 contract(s) checked … -> PASS
verify-openxwallet-pin.py OK openxwallet-pin verified: openXwallet@6b248d40 (tag label wallet-v1.3), gitlink read from HEAD, 8 digest(s) recomputed
openspec validate add-binding-consumer-identity --strict Change 'add-binding-consumer-identity' is valid
openspec validate --all --strict Totals: 78 passed, 0 failed (78 items)
pytest tests/ -q -m "not postgres" 8230 passed, 21 skipped, 338 deselected, 9 warnings, 46 subtests passed, 0 failed / 0 errors, exit 0 (8251 selected, skip count unchanged at 21)
doc-health same-clock release-inventory-drift 2 → 0, zero new findings of any family

The inventory

Built LAST, after every editorial member was final, by
validate-contract-release.py build --tag contract-v2.4 → release build: pass, entries=283. Never hand-edited.

Membership is UNCHANGED — 283 in contract-v2.3, 283 in contract-v2.4,
zero added, zero removed. An additive release shows in what the members ASSERT,
not in which members exist. Exactly five digests move, and each is a file this
PR edits: contracts/CHANGELOG.md, contracts/README.md,
contracts/manifest.yaml, docs/contract-versioning-policy.md, and
tests/intent-compliance/test_release_boundary.py (below). It was built twice
for that last one: once after the four editorial members, then discarded and
REBUILT when the suite forced a fifth member to move — "inventory built last"
means last, not first-drafted.

The one pin the bump forced — ADVANCED, not broadened

The suite's first run at the cut reported 2 failed, both the same guard:

FAILED tests/intent-compliance/test_release_boundary.py::test_release_membership_when_registration_changes_then_transition_is_atomic
FAILED tests/intent-compliance/test_release_boundary.py::test_release_inventory_when_registration_changes_then_schema_pins_are_atomic
E   Failed: unsupported release state: contract-v2.4

The tripwire worked. That file holds the intent-compliance family's release
membership and its manifest registration together across the boundary its
introducing release created, and it classifies the bundle from an ENUM OF NAMED
VALUES — contract-v2.1 before the family existed, contract-v2.3 at its
introducing release — failing loudly on any bundle it has not been told about.
Nothing else would have caught the bump: the library floor is
INTENT_RELEASE_FLOOR = (2, 3) and the membership rule is an at-or-after
comparison, so release_membership accepted contract-v2.4 silently and
correctly. The enum is the one place a human must say which side a new bundle
falls on.

contract-v2.4 is past the floor, the family is registered in the manifest, and
the family's files are present — so it is classified WITH the introducing
release and asserts exactly the same membership.

The tempting fix is to replace the enum with the library's own >= (2, 3)
comparison, which would make this and every future bump pass silently, deleting
the only mechanism that forces a conscious classification at a cut. So the enum
gains ONE named member handled by the SAME match arm, and the next bundle trips
it again. No test added, removed, renamed, weakened or skipped — 13 tests in
that file before, 13 after, all passing. The file is itself a release-inventory
member, which is why the inventory was rebuilt after this edit rather than
before it.

The asymmetry, stated so its absence is not read as an omission

contracts/schemas/xfactory-credential-contracts.schema.yaml — the file the
whole change edits — is registered in contracts/manifest.yaml and is NOT a
release-inventory member.
That is by design, not a gap:

  • the POLICY DOCUMENT's bytes are the inventory's business, which is why
    docs/contract-versioning-policy.md is the ERROR-band member that drifted and
    re-baselines here;
  • the SCHEMA's identity travels via its manifest row sha256
    (d0e936fc…6a47028), verified estate-wide by
    scripts/validate-manifest-digests.py and, scoped to this one row, by
    tests/credential_contracts/test_manifest_row_digest.py, which recomputes it
    from the file on disk so it reds for THIS capability's reason and cannot be
    greened by an unrelated row's drift. Re-verified green at this cut.

Coordination

  • PR A validated chain is not an audit trail, it is a permission — realize tranche one #524 (change/realize-signed-execution-chain) is open and driven by a
    separate session. Disjoint by construction: it touches neither
    contracts/manifest.yaml nor contracts/CHANGELOG.md, and this PR registers
    none of its family and does not touch its change directory. If it lands first,
    this branch re-merges main and REBUILDS the inventory — its
    contracts/README.md edits move an editorial member — with the scope
    unchanged.
  • add-credential-escrow-checkout is a RATIFIED, frozen sibling that owes an
    additive minor on this same schema file and mentions this change nowhere.
    "Whichever cuts second re-reads" binds only the packet that wrote it, so §5.4
    built the invariant instead: the row-digest test above binds every writer —
    this change, escrow, main, or a hand edit — without editing a frozen packet.

What does NOT happen here

  • No tags. Neither contract-v2.4 nor the contract-v2.3 retro-publication.
    Both are post-merge repository-owner acts; the policy publishes the annotated
    tag against the commit that actually LANDS.
  • No archive. §7.1 (README OpenSpec Records active → archived) belongs to the
    later archive PR, after the merge and a green run — a code-surface change never
    archives with its cut. It is left UNTICKED here on purpose.
  • No new manifest rows. The credential-contracts row already existed and
    already carried A credential binding declares who holds it and what it fetches with #516's digest; its only edit here is the deictic "DECLARED AT
    THIS RELEASE" resolved to the literal contract-v2.4 (the contract-v2.2
    precedent).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc

brettheap and others added 3 commits August 30, 2026 23:05
…record the entry

Realizes add-binding-consumer-identity (PR #516, squash 5e8a33c), whose §5.3
deliberately left the number unallocated because allocation is by merge order.

- contracts/manifest.yaml: contract_bundle_version contract-v2.3 -> contract-v2.4,
  and the credential-contracts row's deictic "DECLARED AT THIS RELEASE" resolved
  to the literal contract-v2.4 (the contract-v2.2 precedent). The row's sha256
  is #516's and is verified unmoved against the schema bytes on disk.
- contracts/CHANGELOG.md: the contract-v2.4 entry, ADDITIVE (minor), with the
  nothing-narrows measurement, the fresh count, and the contract-v2.3
  disposition (declared, untagged; retro-publication candidate ec8be5a
  measured green; tag publication PENDING as the owner's act).
- docs/contract-versioning-policy.md: the consumer: block entry's three deictic
  phrases resolved to contract-v2.4, plus the terminal audit line the section's
  other three entries carry.
- contracts/README.md: the credential-contracts schema row records the v2.4
  growth and cites add-binding-consumer-identity.
- tests/intent-compliance/test_release_boundary.py: the intent-compliance
  release-boundary pin, ADVANCED not broadened. Its ReleaseState enum names the
  bundles it has been told how to classify and fails loudly on any other; the
  bump tripped it, correctly, because the library floor is an at-or-after
  comparison that would never have noticed. contract-v2.4 is past the floor with
  the family registered and present, so it is classified with the introducing
  release and asserts the same membership. One named enum member, same match
  arm; no test added, removed, renamed or weakened, and a future bundle trips it
  again.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Built LAST, by scripts/validate-contract-release.py build --tag contract-v2.4,
after every other member was final; never hand-edited. Built twice for that
reason: once after the four editorial members, then discarded and rebuilt when
the suite forced a fifth member to move.

283 entries, the same membership as contract-v2.3 — an additive release shows in
what the members ASSERT, not in which members exist. Five digests move:
contracts/CHANGELOG.md, contracts/README.md, contracts/manifest.yaml,
docs/contract-versioning-policy.md and
tests/intent-compliance/test_release_boundary.py.

contracts/releases/contract-v2.3.digests.yaml is untouched.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
tasks.md — four boxes close on measured evidence, and one stays open on purpose:

- 5.2 the CHANGELOG half (the manifest half was #516's; its row digest is
  re-verified from the file on disk at the cut rather than trusted).
- 5.3 THE CUT, contract-v2.4, fresh-counted at the branch tip. One clause of
  5.3 is named rather than glossed: "tag verified from an independent clone" is
  not discharged here, because no tag is published by this packet.
- 6.3 doc-health, re-measured same-clock at the cut from two identically-named
  checkouts: baseline 4/5/38/12 (59 findings, release-inventory-drift 2),
  branch 4/4/38/11 (57, drift 0), set difference taken in BOTH directions with
  no new finding of any family.
- 6.5 verify-commit green at the cut, wallet pin re-verified, and
  verify-promotion's six reachability-class findings reported rather than
  chased.
- 6.2 gains the measured re-run and the one pin the bump forced.
- 7.1 stays UNTICKED: the README active->archived move belongs to the archive
  PR, after the merge and a green run.

realization-evidence.md — the #498-precedent working record: the fresh count,
the two discharged release-inventory-drift findings quoted, the doc-health
table in both directions, the inventory (283, membership unchanged, five
digests moved, built twice so it was genuinely last), the schema-is-not-an-
inventory-member asymmetry and the row-digest invariant that carries its
identity instead, the gate table, the contract-v2.3 measurement, and what is
NOT here.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
Copilot AI lite review requested due to automatic review settings August 31, 2026 03:28

@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 ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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

Cuts the contract-v2.4 additive minor release to realize add-binding-consumer-identity’s §5 release ritual, updating the contract bundle version, editorial policy surfaces, and adding the generated release digest inventory for the new bundle.

Changes:

  • Bump contract bundle version to contract-v2.4 and add a new contract-v2.4 entry to contracts/CHANGELOG.md.
  • Add the generated release inventory contracts/releases/contract-v2.4.digests.yaml and update policy/manifest/README language to explicitly reference contract-v2.4.
  • Advance the intent-compliance release boundary enum to classify contract-v2.4 alongside the introducing release for membership/registration atomicity checks.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/intent-compliance/test_release_boundary.py Adds contract-v2.4 classification to the release-boundary tripwire enum and match arms.
openspec/changes/add-binding-consumer-identity/tasks.md Marks cut-related checklist items complete and records cut measurements/outcomes.
openspec/changes/add-binding-consumer-identity/realization-evidence.md Adds a dedicated realization evidence record for the contract-v2.4 cut.
docs/contract-versioning-policy.md Updates deprecation text to name contract-v2.4 explicitly and adds the audit-trailer line.
contracts/releases/contract-v2.4.digests.yaml Introduces the generated digest inventory for the contract-v2.4 bundle.
contracts/README.md Updates the credential-contracts manifest row narrative to include growth at contract-v2.4.
contracts/manifest.yaml Bumps contract_bundle_version to contract-v2.4 and resolves “DECLARED AT THIS RELEASE” wording.
contracts/CHANGELOG.md Adds the contract-v2.4 release entry documenting the cut and its additive scope.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: a749d17fa0

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

Copy link
Copy Markdown
Contributor Author

Provenance: merging on Brett's in-session authorization (session openxfactory-f5, 2026-08-31): "run it all the way thru and merge it when clear." Clear is measured: pytest-suite / merge-master-approval / wallet-validation all pass at tip a749d17, Codex review clean at the same tip ("Didn't find any major issues", zero inline findings), mergeable. reviewDecision is REVIEW_REQUIRED per the standing browser-approve pattern; admin merge per the recorded resolution lane. Tags (contract-v2.4, and contract-v2.3 retro-publication at ec8be5a) remain the owner's post-merge acts and are NOT part of this merge.

@brettheap
brettheap merged commit afdf0e8 into main Aug 31, 2026
4 checks passed
brettheap pushed a commit that referenced this pull request Aug 31, 2026
…he next number is v2.5

Merges `origin/main` (18 commits) and corrects a number this branch asserted
twice. The correction is the packet's own rule firing, not a repair of it.

`tasks.md` 4.7 said, in terms: *"if #516 cuts alone first, this one re-counts
again rather than reserving a number."* THAT IS WHAT HAPPENED.
`add-binding-consumer-identity` cut and TAGGED `contract-v2.4` alone (#526,
`afdf0e88`, now on `main`), and its inventory carries ZERO `signed-execution-chain`
members — verified by grep against the inventory, not assumed from the intent.
So v2.4 covers none of this family, and at this tip the next additive number is
`contract-v2.5`: the manifest declares `contract-v2.4` and
`contracts/releases/contract-v2.4.digests.yaml` is a cut inventory in the tree.

THE RULE IS WHAT MADE THIS CHEAP. Because a proposed change must not reserve a
minor number before merge order is known, no contract byte, no manifest row and
no changelog heading in this branch ever named a number — so a figure that has
now moved twice cost two prose corrections and nothing else. Both sites that
named it are updated and the grep re-run to empty; `tasks.md` 4.7 and the staging
INDEX detail now record the second count and why there was one.

AND WHAT THE CUTTING SESSION WILL FIND IS MEASURED HERE RATHER THAN LEFT TO
SURPRISE THEM: at this tip `verify-commit --commit HEAD` reports EXACTLY ONE
mismatch, `HGR-RELEASE-DIGEST-MISMATCH` on `contracts/README.md`, while
`origin/main` PASSES the same check. That is the expected uncut state — this
realization adds two rows to the contracts index, and `contracts/README.md` is
one of the three EDITORIAL members that legitimately move between cuts, which is
why doc-health's `release-inventory-drift` family calls it INFO and reports zero
new findings where the strict release tool reports an error. The cut resolves it
by construction. A mismatch on any NON-editorial member would be a real finding,
and there is none.

Verification at this tip, all re-run against the NEW main: openspec 79/79 (the
merge brought a new change packet); the reader 0 errors with 24/24 refusal codes
red-proven; the pinned wallet gate 0/0; trust-anchor, worker-enrollment,
identity-brokering, credential-contracts and manifest-digests all exit 0;
doc-health zero-new against a baseline regenerated at `b0d754bd`.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 31, 2026
… tranche one (#524)

* A validated chain is not an audit trail, it is a permission — realized

Realizes the ratified `add-signed-execution-chain` (#495, squash `91cf0a46`),
tasks §3 and §4.1-§4.4. The family already signs the decision and then loses the
signature: `add-wallet-carried-review-authority` made review authority a
wallet-carried grant, and what happens next runs in a lane that cannot prove it
descended from that ratification. This is the chain a gate WALKS before the
terminal act, so the record and the control are the same object.

THREE THINGS §3 REQUIRED SETTLED BEFORE ANY SCHEMA WAS AUTHORED, and each is
settled against a published standard rather than invented. The digest
construction is `xfc-jcs-sha256-1` — RFC 8785 JSON Canonicalization Scheme,
SHA-256, algorithm-tagged — declared ONCE in `digest-construction.schema.yaml`
and taken by `$ref` everywhere else, so the family cannot grow a second
construction rule beside the first; its admitted value classes are BOUNDED and a
non-integer number is REFUSED, because ECMAScript number serialization is the one
part of JCS a second implementation reliably gets wrong and a digest two readers
compute differently is worse than a digest one of them refuses. The exact byte
range is the `signed_ratification` block and nothing outside it. The leaf grammar
is RFC 6962 / Rekor taken as a HASH-LINKED SIGNED LEAF SEQUENCE, and the
realization says which form it took rather than leaving a reader to assume a
Merkle tree: THE HEAD IS THE NEWEST LEAF, so no separate tree-head record exists.
The log's home is this repository, on the register precedent — forced rather than
preferred, because requirement 9 wants a reader required ON THE REPOSITORY THAT
HOLDS THE RECORDS and requirement 5 wants a point-of-use checker to work with no
live service in reach.

THE FOUR RECORD KINDS `code_surface` NAMES, AND A FIFTH FILE THAT DECLARES NO
KIND. `contracts/signed-execution-chain/` carries chain inception, the traveling
contract, the transparency-log leaf and the realization conformance declaration
on `trust-anchor`'s ratified declared-shortfall pattern, plus the
definitions-only digest construction. NO SECOND VOCABULARY IS INVENTED: the
presentation is the shipped `xfactory_wallet_grant_exercise` and the signing
wallet the shipped `xfactory_wallet_record`, carried VERBATIM inside the signed
bytes and validated against the PINNED schemas through the `openXwallet/`
gitlink; the actor is `identity-brokering`'s `actor_subject_reference` carrying
an `xfactory_wallet_subject_attestation`. They are carried as well as referenced
because the gate's presentation, actor, holder-class and signature checks READ
them, and a reference nothing can resolve at the point of use leaves four of
eight checks unrunnable — which requirement 9 says confers nothing.

WHERE EACH RESTRICTION LIVES IS ITSELF A RULE. Shapes this capability OWNS are
made unrepresentable (an actor with no wallet attestation cannot be written
down); restrictions it imposes on a SHIPPED vocabulary are refused BY NAME
(`object_ref` absent, `signed_over` not `request_digest`), because requirement
1's own doctrine is that a refusal must name what was actually lacking, and "does
not match const" does not.

THE READER VERIFIES THE SIGNATURE RATHER THAN READING A CLAIM ABOUT IT.
`scripts/validate-signed-execution-chain.py` walks all EIGHT ordered checks over
links 1-3 plus the FOUR rules a gate cannot see — atomicity, per-act uniqueness,
the log's append-only property, and the declaration closed in both directions —
and it performs Ed25519 verification (RFC 8032, verification only, no secret, no
signing) pinned by that RFC's published vectors and their mutations. Checks 2 and
3 are never collapsed: the chain identity is over the SIGNED bytes and the
`object_ref` comparison is over the CONTENT digest, and a record equating them is
refused by name. `ecdsa-p256` and `ecdsa-secp256k1` are refused as UNEVALUABLE
rather than accepted unchecked.

EVERY CLOSED REFUSAL CODE IS RED-PROVEN, AND THE SELF-TEST REFUSES A CODE WITH NO
PROBE. Seven positives compose ONE whole chain; twenty-six negatives are
single-fault variants adjudicated IN THAT CORPUS'S SCOPE, because a refusal of a
chain is a property of a SET of records and a fixture adjudicated alone could not
express one. All nine refusals `tasks.md` 4.2 names are among the twenty-four.

THE GATE IS RUNNING AND IT CONFERS NOTHING YET, and both halves are stated in the
present tense. `.github/workflows/signed-execution-chain-gate.yml` verifies the
openXwallet pin BEFORE trusting it, walks the whole tree with
`--require-pinned-wallet-vocabulary` so an unreachable pin REFUSES instead of
silently checking less, and asserts POSITIVELY that the walk happened. Its
invocation is pinned by `tests/signed_execution_chain/test_gate_wiring.py` inside
the required `pytest-suite` job, because a comment in a workflow protects
nothing. It is NOT required in the branch ruleset — that is task 4.5, an OPERATOR
act — so the packaged conformance declaration records
`is_required_in_ruleset: false`, SEC-R9 is `partial`, the reader warns on every
run, and a test refuses a declaration that records SEC-R9 satisfied while the
reader is unrequired.

TWO RESIDUALS ARE DECLARED RATHER THAN COVERED. SEC-R1: the pinned exercise
record carries no field holding the SIGNED digest value, so the record alone
cannot prove the signed request included `object_ref`; the durable repair is an
additive optional field belonging to `opensoft/openXwallet` as a NAMED SUCCESSOR,
and defining it here would mint the second proof vocabulary the requirement
exists to avoid. SEC-R6: suffix truncation no party has yet observed, closed by
tranche-three anchoring. The reader REFUSES either recorded `satisfied`.

WHAT IS DELIBERATELY NOT DONE. 4.5 is an operator act; 4.6 depends on it by
construction and a box closed on three of four conjuncts would be closure on
intention; 4.7 rides a bundle cut whose number is allocated by merge order, so
this commit registers nothing in `contracts/manifest.yaml` and bumps nothing.
`contract-v2.3` is SPENT — the manifest declares it and its inventory is in the
tree — so the next additive number is `contract-v2.4`, which
`add-binding-consumer-identity`'s realization also owes; several changes may ride
one cut, and if that one cuts first this re-counts rather than reserving.

D7.9's SWEEP WAS RUN, AND ITS ONE DELIBERATE NON-EDIT IS RECORDED. Ticking §4
changes what the packet asserts about itself, so every site asserting "realization
is a later commission" was grepped and edited — `tasks.md`, the README OpenSpec
record, and `ideation/staging/INDEX.md` in both its row and its detail section —
then the grep re-run. `proposal.md`, `.openspec.yaml` and the ratification record
are NOT edited: their sentences are about what the RATIFYING ACT authorized, they
were true when written and remain true, and rewriting a ratified baseline to
reflect a later act would make the ratification look like the thing that built the
family. `tasks.md` says so in terms rather than leaving the reader to infer it.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Apply the round-one bench: a live signature forgery, and three checks that only looked like checks

Four findings on #524, all real, all taken. Three were confirmed by RUNNING THE
MUTATION AGAINST THE PRE-FIX CODE rather than by reasoning about it, which is the
only way to know a repair is anchored to something.

THE FIRST WAS A FORGERY, NOT A HARDENING — found by Codex and Copilot
independently in the same round, both P1. The Ed25519 verifier accepted
SMALL-ORDER public keys. With an identity key the `[h]A` term of `[S]B == R + [h]A`
vanishes, the equation stops depending on `h` and therefore on the message, and
`R = identity, S = 0` satisfies it for EVERY message — no private key involved.
Every public half in this family arrives inside a record: a `did:key` in a CARRIED
wallet, chosen by whoever assembled the chain. Measured against the pre-fix code
before the repair: the identity key accepted that forgery over every message
tried, and two of the order-4 points accepted it over some.

`_is_small_order` refuses the whole class by `[8]P == identity` — exactly "the
order divides 8" — rather than a hard-coded list of encodings a non-canonical
spelling could slip past. A small-order `R` is refused too: not the forgery
vector, but an honest signer produces one only at probability about 2**-252, so it
costs no legitimate signature and removes the last case whose acceptance would
depend on a cofactored reading. Six negative controls land with it, including one
that confirms the published small-order list really is small-order BY ARITHMETIC
— which caught a transcription slip in that list on its first run, one byte too
long.

THE APPEND-ONLY PROPERTY WAS CHECKED OVER PAIRS, SO A DELETED PREFIX WAS INVISIBLE
(Codex, P1). The lowest retained leaf had no predecessor in scope, so its carried
digest was compared against nothing — and a store that deleted a prefix presented
a set in which every surviving pair linked correctly and every `tree_size` still
agreed with its own index. Pre-fix: ZERO findings over a log whose genesis leaf
was deleted. `check_log` now requires the retained set to begin at leaf 0 and run
consecutively BEFORE any digest comparison, and reports an unverifiable link as
unverifiable rather than as a pass. "Leaves are appended and never removed" is the
contract's sentence; a check that cannot see a removal is not checking it.

AN INTEGER CAN OUTRUN THE ONE CONSTRUCTION (Codex, P2). `str(value)` is not
ECMAScript number serialization once a value leaves the range a double holds
exactly: pre-fix, `9007199254740993` was emitted unchanged where an RFC 8785
reader emits `9007199254740992`, so two conforming readers could derive different
chain identities in silence. The repair is the SAME bound one value class wider —
not a second rule, which is what this capability's own digest requirement demands
of a fix — declared in the contract beside the non-integer refusal, with a sweep
test asserting every integer the packaged corpus actually declares is inside it.

`uniqueItems` CLOSED NOTHING (Copilot). Two entries naming the same check with
different outcomes are distinct objects, so a verdict could record
`actor_bound_to_signing_wallet` twice — once passing, once failing — omit
`standing_and_holder_class_at_exercise` entirely, carry eight items, and be
schema-valid beside prose calling the list closed and ordered. Pre-fix: zero
schema errors for exactly that verdict. `prefixItems` pins each position to its
own `const`, so a duplicate, an omission AND a reordering are all
unrepresentable. Repairing the reader alone would have left the SHAPE admitting
it.

THE COUNT SWEEP RAN, because the corpus grew from 26 negatives to 28 and a count
restated in three places is one invariant: `tasks.md` 4.2, the `contracts/README.md`
row and the family README were all updated from one grep, and the grep was re-run
to empty. `tasks.md` §4 now records the round in a table, on the footing
`design.md` D7 records the packet's own.

Verification at this tip: openspec 78/78; the reader 0 errors with 28 negatives
and 24/24 refusal codes red-proven; the pinned wallet gate 0/0; trust-anchor,
worker-enrollment, identity-brokering, credential-contracts and manifest-digests
all exit 0; doc-health zero-new against `origin/main`.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Apply the round-two bench: two facts that looked like one fact

Round two produced four findings. TWO OF THEM THE AUTHOR HAD JUST CAUGHT in the
same window — the ratification leaf's uncompared payload, and the missing-leaf
pair — which is evidence the defect class was correctly identified rather than
guessed at. Both were already repaired in this branch's working tree when Codex
raised them. The other two were missed by that sweep, both P1, and both are one
shape.

A REFERENCE AND ITS REFERENT COULD MOVE INDEPENDENTLY. That is the round-two
class, and it is not the round-one class: round one was a check that looked like
it was working, this is two facts that looked like one fact. A capability whose
whole subject is binding one record to another should expect it.

PER-ACT UNIQUENESS KEYED ON A LABEL THE PRODUCER COULD REPLACE (Codex, P1, and
the sharpest finding of this bench). The rule keyed on
`presentation.exercise_ref`. A producer could carry the ALREADY-CONSUMED exercise
VERBATIM — same `exercise_id`, same proof, same revocation check — and replace
only that outer reference with a fresh value: the signed bytes changed, so the
chain identity changed, and the uniqueness map saw a value it had never seen. THE
CONSUMED EXERCISE WAS REPLAYABLE PAST THE RULE WRITTEN TO PREVENT EXACTLY THAT.
Measured against the pre-fix code: the fixture drew `act_unproven` and
`missing_link` and no `per_act_value_reused` at all.

Both halves of the repair land, because either alone leaves a hole: the reference
must AGREE with the carried record, and uniqueness is keyed on the CARRIED
identifier so it does not depend on that agreement check having run. A rule that
relies on another rule to be sound has a second failure mode.

A VERIFICATION RESULT DECIDED BY ITERATION ORDER (Codex, P1). The scope-wide key
map was built with `dict.update`, so when two carried wallets declared one
`key_id` for DIFFERENT public halves, whichever was read last silently won: valid
leaves of the other chain would fail, and leaves signed by the colliding wallet's
key would be ACCEPTED for a chain that never authorized it. An `AMBIGUOUS_KEY`
marker is now carried forward — never overwritten, and never dropped, since a
reader that discarded it would resolve from a second wallet an identifier the
first had already made unanswerable — at all three sites that resolve a key. An
ambiguous identifier makes every signature naming it UNEVALUABLE, which is a
refusal: verifying against a guess is worse than declining to verify. Pinned by a
test that presents the two wallets in BOTH orders, because order-independence is
the actual property.

AND THE SHAPE WAS SWEPT FOR IN THE SAME SESSION IT WAS NAMED, rather than waiting
for a third round to find the next instance. Every remaining pair of the shape in
the signed bytes is now compared: the outer `grant_ref` against the carried
exercise's, the carried wallet's id and holder against the exercise's
`attribution`, and the wallet's DECLARED CUSTODY against the exercise's
`custody_model_in_force`. Custody is the load-bearing one — `add-trust-anchor`'s
ratified rule is that declared custody BOUNDS WHAT A SIGNATURE EVIDENCES, so an
exercise free to record a stronger model than its wallet declares would let a
`holder_readable` key evidence a human act, and requirement 8's narrowing rests
on that being impossible.

THE SELF-CAUGHT PASS FROM THE SAME WINDOW IS HERE TOO, and it measured its own
value rather than asserting it. Every packaged negative was run through both
readers and diffed: the missing-leaf strengthenings changed the verdict on FOUR
committed fixtures, so they were anchored already; the ratification-leaf digest
comparison changed the verdict on NONE, which made it dead code until
`ratification-leaf-committing-to-another-subject.yaml` was written for it. A
refusal no fixture provokes is a refusal nobody has seen work. The diff harness
also reported one row this round could not have caused, and that row was the
harness's own defect — the anchor worktree had no `openXwallet` gitlink, so the
two readers were validating carried blocks against different vocabularies. A
measurement instrument gets the same scrutiny as the thing it measures.

The corpus is 7 positives and 31 negatives; the count sweep ran again across its
three sites and was re-grepped to empty.

Verification at this tip: openspec 78/78; the reader 0 errors with 24/24 refusal
codes red-proven; the pinned wallet gate 0/0; trust-anchor, worker-enrollment,
identity-brokering, credential-contracts and manifest-digests all exit 0;
doc-health zero-new against `origin/main`; pytest 8287 passed, 21 skipped, 0
failed, with 21 skipped matching the workflow's exact pin.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Apply the round-three bench: a leaf belongs to the chain it names

One P1, and it is round two's shape ONE LEVEL UP — found in the rule the
previous round's self-run sweep had just added, which is the honest measure of
how far such a sweep gets.

A `traveling_contract_issued` LEAF COULD NAME CHAIN A WHILE RECORDING CHAIN B'S
CONTRACT (Codex, P1). Both checks that should have caught it looked SCOPE-WIDE:
the payload-digest recomputation resolved the traveling contract by IDENTIFIER
across the whole store, so it matched and recomputed cleanly, and the missing-leaf
rule collected recorded identifiers GLOBALLY, so chain A's leaf discharged chain
B's obligation. Chain B then passed with its primary custody record SILENT about
an act the contract requires to be recorded as a signed leaf — which is exactly
the hole the missing-leaf rule had been added to close one round earlier.

Measured against the pre-fix code: the fixture validated CLEANLY. Not "refused
for the wrong reason" — accepted.

The lookup is now chain-scoped and requires exactly one match, and the recorded
set is keyed on the (chain, contract) PAIR, so an issuance is discharged only by
a leaf on the ISSUING chain. The other three leaf types were checked for the same
defect in the same pass: all were already chain-scoped, so this was the only site.

THE FIXTURE WAS WRONG ON ITS FIRST DRAFT, AND IT NEARLY HID THE FINDING. It
reported as refused-for-the-intended-reason, and the reason was an INCIDENTAL
defect the draft had introduced — its `inception_leaf_ref` named the wrong leaf —
rather than the cross-chain filing under test. A negative fixture that fails for a
second reason is not a probe; it is a fixture that agrees with you. The anchor
became real only once the fixture was corrected to a single fault and the pre-fix
reader was seen to ACCEPT it.

That is the second time this realization has had to turn its own scrutiny on its
own harness — the first was a diff instrument comparing two readers against
different pinned vocabularies. **A measurement instrument gets the same scrutiny
as the thing it measures**, and both instances are recorded in `tasks.md` §4
rather than quietly corrected.

Corpus is 7 positives and 32 negatives; the count sweep ran across its three
sites and was re-grepped to empty.

Verification at this tip: openspec 78/78; the reader 0 errors with 24/24 refusal
codes red-proven; the pinned wallet gate 0/0; trust-anchor, worker-enrollment,
identity-brokering, credential-contracts and manifest-digests all exit 0;
doc-health zero-new against `origin/main`.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Refuse an unpaired surrogate as a refusal, not as a crash

Copilot, on `eb1241fc`, and it is a class of its own: not a missing check, but a
check whose ANSWER came out in the wrong currency.

Python strings can hold unpaired surrogates — a YAML reader using
`surrogatepass`, or crafted input. `_escape` passed them through and `digest`'s
`.encode("utf-8")` then raised `UnicodeEncodeError`, which is NOT
`ConstructionError`: it escaped the refusal path every caller handles and
surfaced as a HARNESS FAILURE rather than as a finding. Measured against the
pre-fix code, for both a string value and a member name.

`_escape` now refuses U+D800-U+DFFF as a `ConstructionError` — the code point has
no UTF-8 encoding at all, so it has no serialization for any reader to agree
with. The bound is DECLARED in the contract beside the integer one, and the test
that pinned the integer bound's presence there was WIDENED into the site that has
to grow with each new refusal rather than a second test being added beside it.

The test carries a VALID astral-character control alongside five refused shapes,
because a fix that refused legitimate records would pass every negative in it.

A CONSTRUCTION THAT CRASHES ON AN INPUT IT SHOULD REFUSE HAS TWO ANSWERS, and the
whole point of one construction is that there is one. The general form is carried
in `tasks.md` §4: every refusal must reach the caller as the same kind of answer.

Verification at this tip: openspec 78/78; the reader 0 errors; 59 tests in
`tests/signed_execution_chain`; doc-health zero-new against `origin/main`.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Apply the rest of round three: the fourth leaf type, the reason a refusal names, and one spelling per signature

Three more findings on `eb1241fc`, all Codex, all real, and one of them is the
missing-act class a THIRD time.

THE FOURTH GOVERNED LEAF TYPE WAS STILL NOT REQUIRED (P1). The missing-act fix
had just added the ratification and traveling-contract leaves and never required
`gate_verdict`, so a chain could pass with its own adjudication absent from the
primary custody record. Measured against the pre-fix code: ACCEPTED.

It is not a chicken-and-egg, and the packaged corpus is the proof: a producer
WRITES the verdict leaf it expects, and this reader holds it to the reader's own
walk — a leaf claiming `permitted` over a chain the walk refuses is itself a
refusal. So requiring the leaf demands no trust in the producer and deadlocks no
first landing. Pinned by a test rather than a fixture, because a fixture is ADDED
to the corpus and cannot take a leaf away.

A VERDICT COULD NAME THE WRONG REASON (P2). The rule checked only that a
`refusal` object EXISTED, so a verdict could record any enum-valid code while the
walk failed for another. The walk now collects the codes it emitted and the
recorded code must be among them. The enumeration is CLOSED precisely so a
refusal names what was actually lacking — the same rule that keeps a missing
proof from being reported as a missing grant — and the false reason is what an
operator would act on: the packaged probe sends them looking for a signature that
was never missing instead of at a revoked grant. Measured pre-fix: only the real
reason was reported, and nothing about the false one.

ONE SIGNATURE HAD SIXTEEN SPELLINGS (P2). For 64 bytes the final base64url
character carries two data bits and a decoder ignores the remaining four, so
fifteen other spellings decoded to the same bytes, verified identically, and
matched the schema's 86-character pattern. `decode_signature` now re-encodes and
requires an exact match. A record admitting sixteen textual forms of one signature
admits sixteen distinct signed ratifications BY DIGEST, and the chain identity is
a digest over those bytes. Measured pre-fix: a re-spelled packaged signature
verified cleanly.

Both probeable findings got packaged fixtures and both were anchored against the
pushed tip `c150dd87` before the repairs: the wrong-code verdict drew only
`authority_revoked_at_exercise`, and the re-spelled signature drew only the
incidental completeness findings.

Corpus is 7 positives and 34 negatives; the count sweep ran across its three
sites and was re-grepped to empty.

Verification at this tip: openspec 78/78; the reader 0 errors with 24/24 refusal
codes red-proven; the pinned wallet gate 0/0; trust-anchor, worker-enrollment,
identity-brokering, credential-contracts and manifest-digests all exit 0;
doc-health zero-new against `origin/main`; 61 tests in
`tests/signed_execution_chain`. All four checks were green on `c150dd87`.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Take Copilot's two suppressed findings on the gate-wiring test

Both were on test code, both real, and the first is this module's own defect one
level up.

A SECOND STATEMENT OF THE INVOCATION THAT NOTHING COMPARED. `INVOCATION` was
defined as a literal and never used, so the file held two statements of the gate's
invocation — the constant and the assertions — with nothing keeping them in
agreement. That is exactly the drift this module exists to prevent for the
workflow, reproduced inside the test that prevents it. The constant is gone and
the assertions are the single source of truth; a comment records why the three
parts that carry meaning are named individually rather than pinning a whole line
whose shell-continuation formatting is not itself a governed fact.

A TEST THAT DIES WITH `StopIteration` SAYS NOTHING ABOUT WHAT WENT MISSING. The
ordering assertions resolved each step with a bare `next(...)`, which raises when
the workflow changes rather than reporting WHICH step is absent. `_step_index`
now asserts that exactly one step matches, names the needle it looked for, and the
two ordering assertions carry their own reasons — the pin verifier must follow the
init because it recomputes digests against the nested checkout, and must precede
the walk because carried blocks may not be held to a pin nothing verified.

Five step lookups collapsed into one helper on the way through, so the job's step
list is read in one place.

Verification at this tip: openspec 78/78; 61 tests in
`tests/signed_execution_chain`; doc-health zero-new against `origin/main`. All
four checks were green on `6b72244d`, pytest-suite included (18m28s).

Co-Authored-By: Claude Fable 5 <[email protected]>

* Pin that the walk step runs under pipefail, which nothing did

Copilot's last suppressed finding, and it was right that nothing pinned it:
`shell: bash` was ALREADY declared on the walk step, so there was no live defect
— and removing that line left all eight assertions in this module passing.
Measured, before the assertion existed.

WITHOUT PIPEFAIL, `tee` RETURNS 0 OVER A FAILING READER. The default shell for a
`run` step does not set `-o pipefail`; declaring `shell: bash` does. This gate
pipes the reader's verdict into `tee` so the next step can grep it, so without
pipefail the job would be green whatever the reader decided — the vacuous pass
this whole module exists to prevent, by the one route its command-string
assertions cannot see.

IT WAS ALSO A DIVERGENCE FROM A RULE THIS REPOSITORY HAD ALREADY WRITTEN DOWN.
`tests/openxwallet_consumer_gate/test_gate_invocation.py`'s
`test_the_validator_step_runs_under_pipefail` asserts exactly this for the wallet
gate. Writing a second gate-wiring module without carrying that assertion across
is the inherited-precedent gap, not a new judgement.

The asserting step is pinned too, since its own `set -euo pipefail` needs bash.

AND THE NEEDLE FOR IT HAD TO CHANGE, WHICH IS THE OTHER FINDING PAYING OFF:
`chain-gate.log` appears in BOTH the walk step's `tee` and the grep step's reads,
so `_step_index` refused it as ambiguous — the helper added one commit ago doing
exactly the job it was added for, on its author. The needle is now
`set -euo pipefail`, which belongs to the asserting step alone.

Verified both directions: the assertion passes on the real workflow and FAILS when
`shell: bash` is removed from the walk step.

Verification at this tip: openspec 78/78; the reader 0 errors; 62 tests in
`tests/signed_execution_chain`; doc-health zero-new against `origin/main`.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Re-count the target release: v2.4 was cut for the sibling alone, so the next number is v2.5

Merges `origin/main` (18 commits) and corrects a number this branch asserted
twice. The correction is the packet's own rule firing, not a repair of it.

`tasks.md` 4.7 said, in terms: *"if #516 cuts alone first, this one re-counts
again rather than reserving a number."* THAT IS WHAT HAPPENED.
`add-binding-consumer-identity` cut and TAGGED `contract-v2.4` alone (#526,
`afdf0e88`, now on `main`), and its inventory carries ZERO `signed-execution-chain`
members — verified by grep against the inventory, not assumed from the intent.
So v2.4 covers none of this family, and at this tip the next additive number is
`contract-v2.5`: the manifest declares `contract-v2.4` and
`contracts/releases/contract-v2.4.digests.yaml` is a cut inventory in the tree.

THE RULE IS WHAT MADE THIS CHEAP. Because a proposed change must not reserve a
minor number before merge order is known, no contract byte, no manifest row and
no changelog heading in this branch ever named a number — so a figure that has
now moved twice cost two prose corrections and nothing else. Both sites that
named it are updated and the grep re-run to empty; `tasks.md` 4.7 and the staging
INDEX detail now record the second count and why there was one.

AND WHAT THE CUTTING SESSION WILL FIND IS MEASURED HERE RATHER THAN LEFT TO
SURPRISE THEM: at this tip `verify-commit --commit HEAD` reports EXACTLY ONE
mismatch, `HGR-RELEASE-DIGEST-MISMATCH` on `contracts/README.md`, while
`origin/main` PASSES the same check. That is the expected uncut state — this
realization adds two rows to the contracts index, and `contracts/README.md` is
one of the three EDITORIAL members that legitimately move between cuts, which is
why doc-health's `release-inventory-drift` family calls it INFO and reports zero
new findings where the strict release tool reports an error. The cut resolves it
by construction. A mismatch on any NON-editorial member would be a real finding,
and there is none.

Verification at this tip, all re-run against the NEW main: openspec 79/79 (the
merge brought a new change packet); the reader 0 errors with 24/24 refusal codes
red-proven; the pinned wallet gate 0/0; trust-anchor, worker-enrollment,
identity-brokering, credential-contracts and manifest-digests all exit 0;
doc-health zero-new against a baseline regenerated at `b0d754bd`.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Aug 31, 2026
…both tags are now published (#532)

`contract-v2.4`'s changelog entry carried a careful `contract-v2.3`
disposition subsection — target commit measured by the ratified rule,
`verify-commit` run, and "TAG PUBLICATION IS THE REPOSITORY OWNER'S ACT
AND IS RECORDED HERE AS PENDING" — and said nothing about its own tag,
which the same clause binds the moment the bundle is declared. This adds
the subsection that was missing.

Both tags were published by the repository owner on 2026-08-31 and both
peel to the commit the rule names:

- `contract-v2.3` → tag `9fe9a742` → `ec8be5aa` (the #514 merge)
- `contract-v2.4` → tag `3374ad2f` → `afdf0e88` (the #526 squash)

`verify-commit` passes at both against their own inventories, exit 0. The
rule — the earliest first-parent commit on published `main` that declares
the bundle and at which `verify-commit` passes — was re-validated against
a live control before being trusted here: it returns `8ccfb67b` for
`contract-v2.2`, and that bundle's already-published tag peels to exactly
that commit.

The v2.3 subsection is NOT edited. Its heading still reads PENDING and
that was true when written; the completion is recorded in the new
subsection instead. This is the handling the versioning policy already
requires of `docs/archive-record-discrepancies.md`, which still states
that `contract-v1.33` and `contract-v1.35` are not git tags and is
deliberately left uncorrected, because rewriting a statement to match
today's state destroys the evidence of what was true then.

The new subsection also records why the omission is structural rather
than careless, and cites **#528**: no gate anywhere asserts that a
declared bundle has a published tag. `verify_tag` exists but is called
only by unit tests over synthetic repositories, no workflow calls the
release validator at all, `release-surface-integrity` deliberately does
not anchor on tags, and `tag-hygiene` is a different family entirely
(document prose tags). That is why the same shape reached
`contract-v1.33`/`v1.35`/`v1.39` in August and needed a ruling to
discharge, and why the policy's sentence "every bundle from
contract-v1.7 is now tagged" has now been false twice with nothing
noticing.

Docs-only, one file. tests/hermes_runtime_contracts/test_release_inventory.py
+ tests/intent-compliance/test_release_boundary.py: 81 passed. doc-health
with and without the change: identical, zero new findings.

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 31, 2026
…ain is not an audit trail, it is a permission) (#533)

* Realize add-signed-execution-chain: cut contract-v2.5 (a validated chain is not an audit trail, it is a permission)

Task 4.7 — the cut-dependent box act one (PR #524, squash 9af98c4) left to the
cutting session, because a proposed change MUST NOT reserve a minor number before
merge order is known.

THE NUMBER, FRESH-COUNTED AT THE CUT — THE THIRD COUNT, and it has moved twice:
the packet read contract-v2.3 (PR #514 took it), the realization read
contract-v2.4 (#526 afdf0e8 cut AND tagged it alone). At this tip
contracts/manifest.yaml:3 declared contract-v2.4, contracts/releases/ held
inventories through v2.4, git ls-remote published v2.0-v2.4, no Unreleased block
was pending, and `grep -c signed-execution-chain
contracts/releases/contract-v2.4.digests.yaml` returned 0 — so v2.4 is spent and
covers none of this family. Next additive number: contract-v2.5.

Nothing had to be renumbered when a sibling took v2.4, because act one wrote the
re-count INSTRUCTION into tasks.md and no number into any contract byte.

ADDITIVE (minor), AND NOTHING NARROWS — MEASURED, NOT CLAIMED.
`git diff --name-status contract-v2.4 9af98c4 -- contracts/` reports 47
additions and exactly ONE modification, and that modification is
contracts/README.md, the editorial index. Not one schema, template, example or
registry already published moved a byte, so there is no shared file in which a
prior-bundle instance could be refused. contract_schema_version unchanged.

WHAT MOVED, IN ORDER, WITH THE INVENTORY LAST:

- contracts/manifest.yaml: contract_bundle_version contract-v2.4 -> contract-v2.5,
  plus the signed-execution-chain family block registering all FIVE schemas with
  per-file sha256. 167 rows -> 172; validate-manifest-digests.py 150 -> 155
  verify. The corpus, the family README, the reader and its pytest wiring are
  content-addressed by commit with no per-file digest (the openxWallet,
  client-identity-roster, identity-brokering and trust-anchor precedent).
- contracts/CHANGELOG.md: the contract-v2.5 entry, with the nothing-narrows
  measurement, the fresh count, the two structural residuals, the
  registration-is-not-enforcement section and the contract-v2.3 discharge.
- contracts/README.md + contracts/signed-execution-chain/README.md: the three
  "REALIZED and NOT YET REGISTERED" sentences act one wrote, resolved to the
  literal contract-v2.5, each keeping its enforcement line.
- docs/contract-versioning-policy.md: contract-v2.3 recorded as a FOURTH untagged
  instance and its discharge, in the section that already holds three. The
  section's "Every bundle from contract-v1.7 ... is now tagged" was true when
  written, became false, and is true again; a reader must not take it as evidence
  the practice never lapsed.
- tests/intent-compliance/test_release_boundary.py: the boundary pin ADVANCED, not
  broadened. The tripwire fired on the bump, correctly — the library floor is an
  at-or-after comparison that would never have noticed. One named enum member,
  same match arm, 13 tests before and 13 after. The reason it needs a hand act is
  sharper here than at v2.4: this cut registers a DIFFERENT family, so nothing
  about it touches intent-compliance's membership, which is exactly the fact a
  human has to state because the library cannot tell "unchanged" from "unnoticed".
- tests/signed_execution_chain/test_manifest_row_digests.py: NEW. The five rows
  this cut adds are recomputed from the files on disk, and the registration is
  closed in BOTH directions with the on-disk set derived from the DIRECTORY.
  It exists because scripts/validate-manifest-digests.py, which sweeps all 155
  rows, is wired into NO workflow and NO test — a tool that catches drift when a
  human remembers to run it is the failure mode it was written to close, one
  level up.
  RED-PROVEN, AND THE PROOF FOUND A DEFECT IN THE TEST ITSELF: a 64-zero digest
  is parsed by PyYAML as an INT, so slicing it raised TypeError where a MISMATCH
  was the answer owed — this realization's own round-three lesson, that every
  refusal must reach the caller as the same kind of answer, arriving in its own
  gate. Repaired with str() (the sweeper's precedent) plus an explicit
  isinstance(..., str) assertion, since an int-parsed digest also silently loses
  leading zeros. Both mutation classes now report as findings.
- contracts/releases/contract-v2.5.digests.yaml: built LAST, by
  scripts/validate-contract-release.py build, never hand-edited. 283 entries —
  MEMBERSHIP UNCHANGED from v2.4's 283, zero added and zero removed, which is what
  an additive release looks like in an inventory: the growth is in what a member
  ASSERTS. Exactly five digests move, each a file this cut edited. Built TWICE for
  that reason: rebuilt after two members moved during review of the entry text.

REGISTRATION IS NOT ENFORCEMENT, and every artifact this cut touches says so.
Tasks 4.5 and 4.6 are OPEN and are not this session's to close, and they are the
ones that decide whether any of the rest confers anything: 4.5 makes the named
reader a REQUIRED check in the branch ruleset, an OPERATOR act whose evidence is
the live ruleset state and never a merged workflow file; 4.6 is its canary
evidence and is blocked on 4.5 by construction. Requirement 9 is UNMET rather
than partially met, the packaged conformance declaration still records
is_required_in_ruleset: false, and the reader still warns on every run.

contract-v2.3 — THE PENDING OWNER ACT IS DISCHARGED, surfaced by this cut's fresh
count. The tag exists on the remote, verify-tag passes, and it dereferences to
ec8be5a — exactly the commit the contract-v2.4
entry measured as the earliest first-parent commit on main declaring the bundle at
which verify-commit passes (the PR #514 merge). Tag object dated 2026-08-31
03:14 -0400, the same timestamp as contract-v2.4's: the owner published both
together. Untagged window about nineteen hours, during which afdf0e8 consumed
v2.3 as a spent number. RECORDED, NOT SOFTENED, and nothing here tags or re-tags
anything.

The uncut mismatch 4.7 predicted was found exactly as predicted: verify-commit
--commit HEAD at 9af98c4 reported ONE HGR-RELEASE-DIGEST-MISMATCH, on
contracts/README.md, and nothing else. No non-editorial member drifted. The cut
resolves it by construction.

Full working record: openspec/changes/add-signed-execution-chain/realization-evidence.md

Co-Authored-By: Claude Fable 5 <[email protected]>

* Bot round: derive the on-disk schema set from the whole directory, not one level of it

Copilot, PR #533 round one, and the finding is real. The closure test derived the
on-disk set with Path.glob("*.schema.yaml"), which reads the family ROOT ONLY —
so a schema placed in a SUBDIRECTORY would bypass the closure this test exists to
enforce and ship UNREGISTERED while the test stayed green.

Not hypothetical: this repository already carries
contracts/hermes-runtime/migrations/v1-to-v2-mapping.schema.yaml, the only nested
schema under contracts/ today and proof the layout is reachable.

MEASURED AGAINST THE PRE-FIX PREDICATE, not reasoned about. With an unregistered
nested sixth schema on disk, glob returned exactly the five expected paths and the
assertion PASSED; rglob fails. glob and rglob return the identical five paths at
this cut, so the fix changes nothing today and closes the hole for whoever adds
the sixth file.

The docstring said "derived from the DIRECTORY" while the code read one level of
it — this capability's own round-one defect class, a check that looked like it was
doing its job, arriving one level up in the cut's own instrument. The instrument
gets the same scrutiny as the thing it measures.

realization-evidence.md records the round. No inventory member moved, so the
contract-v2.5 inventory is unchanged and verify-commit stays green.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 31, 2026
…falsified scenario struck, one ruling consenting to five packets (#538)

* Declare the four standing pairs and strike custody's falsified scenario

THE §6 SWEEP OF `govern-sibling-added-modified-deltas`, WHICH THAT PACKET
OBLIGES AND DELIBERATELY DOES NOT PERFORM. Five ratified packets are edited
in place under ONE consent.

THE RULING. Brett Heap, the ratifying owner of all five packets, ruled in
session on 2026-08-31 (session openxfactory-f5): OQ-4 is routed as (a), ONE
SWEEP, and his consent covers all five ratified-packet edits below. The route
is the in-place dated amendment with the owner consenting — the route this
corpus already uses for a ratified document (precedent
`openspec/specs/ideation-dashboard/spec.md:1870`).

THE STANDING OF THE AUTHORITY, STATED WHEREVER IT IS CITED.
`govern-sibling-added-modified-deltas` merged as squash `8f986c39` and is
RATIFIED BUT NOT CANON: its deltas promote only at its own future archive. Every
citation of its clauses in this commit says "ratified-but-unpromoted delta" and
points at the change-directory path, never at `openspec/specs/`.

FOUR `Modified over` MARKERS, one per live pair, each one paragraph inside its
MODIFIED block after the body and before the first scenario:

  add-binding-consumer-identity        over add-notebook-hosting-credential-custody
  add-wallet-carried-review-authority  over add-substantive-review-lane
  implement-keycloak-install-repo      over add-identity-brokering
  implement-openxpki-install-repo      over add-trust-anchor

THE FOUR BASE STANDINGS WERE RE-READ AT THIS TIP, as §6.1 orders, rather than
trusted from §4.1: all four are `Status: ratified` on `main` at `8f986c39`.
NONE MOVED, so no marker owes the unratified disclosure and none carries the
word — writing it would have been a defect, not caution.

§6.3 — THE MIS-CITATION FIX. `add-wallet-carried-review-authority`'s delta
preamble cited the ALREADY-MODIFIED antecedent and called "Two changes touch one
requirement" a MUST for a shape it does not cover: `add-substantive-review-lane`
ADDS that requirement. Corrected in place and dated, to the EXTENDED antecedent
and its own scenario in the ratified-but-unpromoted release-realization delta.
`add-binding-consumer-identity` is untouched on this ground — its LA-A3 sentence
already carries the corrected reading.

§6.6 — CUSTODY'S FIFTH SCENARIO IS STRUCK, NOT RE-SCOPED. "The published binding
shape cannot yet express the access identity" is falsified in every clause by
`contract-v2.4`: the schema now declares `consumer:` with `holder_ref` and
`fetch_identity` (contracts/schemas/xfactory-credential-contracts.schema.yaml:185-229;
contracts/CHANGELOG.md § contract-v2.4 — 2026-08-31). A dated amendment note
stands in its place carrying authority, ground, evidence, the successor that
discharged the gap (add-binding-consumer-identity, #516 squash `5e8a33cf`, cut
#526 `afdf0e88`, tag published), and the statement that THE ARCHIVE ORDER IS
UNCHANGED. Nothing else in that block was touched.

THE STRIKE FORCED A RE-MEASUREMENT, so it is recorded rather than left stale.
`add-binding-consumer-identity`'s preamble said ALL SIX scenarios are carried,
five byte-identical and the sixth replaced. Custody's block now carries FIVE. The
re-measurement, verified by diff: all five restated byte-identical, and the sixth
this block carries is now an ADDITION. That packet's own §7.4 carriage re-run
stays owed AT ITS ARCHIVE GATE and is not discharged here.

THE MARKERS ARE INVISIBLE TO THE CHECKER TODAY, BY MEASUREMENT: all four blocks
resolve `pending` and are dropped at
scripts/doc_health/modified_block_currency.py:1394, and a same-clock single-repo
doc-health run against a clone at origin/main produces a BYTE-IDENTICAL report —
5 critical, 4 error, 38 warning, 11 info on both, zero new findings.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc

* Tick §6 of govern-sibling-added-modified-deltas on the sweep's evidence

The boxes are ticked ONLY where the evidence is in the commit before this one,
and each tick carries what it rests on.

- 6.1 DONE. Four markers, one per pair, each file named. The four base standings
  RE-READ AT THIS TIP as the box orders — all four `Status: ratified` on `main`
  at `8f986c39`, none moved — so no marker owes the unratified disclosure and
  none carries the word. OQ-4 routed (a), ONE SWEEP, by the owner's 2026-08-31
  ruling; his consent covers all five packet edits.
- 6.2 ROUTE RECORDED: the in-place dated amendment with the owner consenting. No
  second note beside any marker — a marker IS a dated declaring paragraph. The
  three non-marker edits each carry their own dated note.
  `add-binding-consumer-identity`'s §7.4 carriage re-run is OWED AT ITS ARCHIVE
  GATE and is not discharged here; what this act records is the re-measurement
  its edit occasioned.
- 6.3 FIXED, with the before and the after quoted.
- 6.4 OBSERVED, not performed — it is a prohibition. No disposition was recorded
  for any of the four, anywhere. The citation limb is MOOT (§6 ran before §2, F1
  unbuilt, no finding was ever emitted), and the availability bound's population
  stays ZERO.
- 6.5 THE ROUTE WAS TAKEN, NOT THE EXCEPTION. §8.1's figure note recorded here:
  the order taken is §6 FIRST — the `0 warning` figure — and this run moves
  NEITHER figure, because F1 is unbuilt and no check exists to emit anything.
- 6.6 PERFORMED as a strike, with the note's five elements and the measurement
  that nothing else in the block moved.

The file's header, which described a ratification that deliberately did not
perform §6, is left as written and carries a dated line saying §6 has since been
performed by a separate act. §2, §3, §7 and §8 are unmoved.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Sep 1, 2026
…s not published until its tag exists, and nothing checks it (#544)

* Propose add-release-tag-publication-check: the policy says a bundle is not published until its tag exists, and nothing checks it

Issue #528. `docs/contract-versioning-policy.md` holds that the manifest
version, the changelog heading and the annotated tag MUST match, that the
tag SHALL point to the realized commit, and that "a bundle is not published
until its tag exists" — a rule it says "WAS NEVER ADVISORY, INCLUDING WHILE
IT WAS BEING BROKEN". Four places could enforce it and none does: no
workflow calls the release validator; `verify_tag` runs only over synthetic
repositories in unit tests; `release-surface-integrity` deliberately does
not anchor on tags, so its own drift obligation stays evaluable in the
window before one exists; and `tag-hygiene` is `document-lifecycle`'s
prose-tag grammar over document text, which is the trap in its name.

The gap reached `contract-v1.33`/`v1.35`/`v1.39` in August and was
discharged only on a ruling; it recurred on `contract-v2.3` and
`contract-v2.4` this week. A human found it both times. The observation
that makes it structural rather than careless: the #526 cut wrote a careful
disposition subsection for its PREDECESSOR's missing tag and said nothing
about its own, which is what a process with no place to notice looks like.

Proposes a twenty-third deterministic family, distance-graded in first-parent
landings so the legitimate declare-then-tag window stays green, splitting an
ABSENT tag from a MISPLACED one because the second is worse than the first
and must not be reported in its words, refusing a lightweight ref, silent
below the `contract-v1.7` enforcement line, and skipping — never passing —
where the question cannot be asked.

CARRIES THE `## MODIFIED` BLOCK A NEW FAMILY OWES. "Deterministic check
families" names every family and counts them three times in prose, and
`family-enumeration` measures those numerals against the code registry
because that restatement was left incomplete three times in three days with
all three catches human. The block is restated whole from canon, all eight
scenarios carried unchanged, with only the enumeration moving.

Five design decisions are flagged for veto, none covered by the
commissioning: D1 a new requirement rather than a MODIFIED of
`Release-inventory drift`, whose non-`contested` class rests on its findings
being resolved by a release cut — a tag finding is not; D2 a new family
rather than a finding class inside it; D3 the window, whose threshold is a
governance number the authoring session declined to pick; D4 what the check
asserts about the target, with the expensive conjunct disclosed as out of
scope rather than hidden; D5 not building on `verify_tag` while #338 stands,
which fails identically on `contract-v2.2`, a tag that is definitively
correct.

Predicts ZERO findings from the family on the day it lands, and says why a
nonzero answer there would be a finding about the estate rather than about
the check. Separately measures what the PACKET adds while it sits
unratified — +3 `warning` from `family-enumeration` reading a delta that
declares twenty-three against a registry still holding twenty-two, +1 `info`
from `modified-block-currency` naming the two body units this packet
deliberately rewrites — and explains why each is the correct answer to the
question its arm asks, and how each clears at realization.

openspec validate --all --strict: 82 passed, 0 failed.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Record the ruling of 2026-08-31: D1, D2, D5 accepted, N=5 ruled, and D4 carried because it was not named

Brett Heap, in session, verbatim: "accept D1, D2, D5; threshold N=5".

D1 (a new requirement rather than a MODIFIED of Release-inventory drift),
D2 (a new family rather than a finding class inside it) and D5 (not built
on `verify_tag` while #338 stands) are ACCEPTED. D3 is RULED at N = 5, and
the delta now states five as the ruled default rather than a placeholder,
with the calibration it answers to: `contract-v2.3` sat untagged across six
first-parent landings before a human noticed, so any threshold above five
would have stayed silent through the recurrence this family exists to
catch.

**D4 WAS NOT NAMED AND IS NOT RECORDED AS RULED.** It decides what the
family PROVES about a tag's target — the packet asserts that the tag peels
to a commit DECLARING the bundle, and discloses that it does not prove the
target is the EARLIEST such declaring commit, so a tag on a later one passes
and stays a defect under the policy. Reading silence as acceptance would
narrow a ruling by omission, which is the failure this estate records
against itself most often, so D4 is carried as owed and task 1.4 holds it.

Status stays `draft` and task 1.1 stays open: the ruling disposed the
flagged decisions and did not cite a ratification, and whether it also
authorizes realization is a separate act.

openspec validate --strict: valid.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Realize add-release-tag-publication-check: the twenty-third family, landed with its delta because a family addition is one landing

Ratified 2026-08-31 in two acts ("accept D1, D2, D5; threshold N=5", then
"accept D4, and yes that's the ratification"), and then re-sequenced on
evidence: the proposal-only shape RED A GREEN GATE.

`family-enumeration`'s self-gate asserts the real corpus reads ZERO on both
halves. A delta declaring twenty-three families against a registry holding
twenty-two cannot satisfy it, so the +3 warnings the proposal disclosed as
an acceptable cost were not a report movement to tolerate — they were a
broken gate. The precedent settles the shape: `add-family-enumeration-check`,
which WROTE that gate, landed its delta, its module and its tests in ONE
commit (bc779dc), because a family addition is one landing. Put to Brett
with three options, he ruled: land realization together on this branch.

What lands:

- `scripts/doc_health/release_tag_publication.py` — the family. Distance-
  graded in first-parent landings at the ruled N=5, ABSENT split from
  MISPLACED in different words at different severities, a lightweight ref
  refused, silent below the contract-v1.7 line, and skipping rather than
  passing where the question cannot be asked.
- `corpus.py` — two git primitives: `tag_ref`, which reads PUBLISHED refs via
  `ls-remote` and distinguishes annotated from lightweight by the peeled
  `^{}` entry, and `first_parent_shas`.
- Registration as the twenty-third family, and the count ripple in the same
  commit. FOUR live count sites moved, not the seven the tasks predicted:
  three of those are marked history or describe canon, which does not move
  until this block promotes, and sweeping them would have falsified a record
  and a true statement.
- `tests/doc-health/test_release_tag_publication.py` — 17 tests, every
  fixture a REAL git repository with real annotated tags, a real lightweight
  ref, a real misplaced tag and a real origin, because published-versus-local
  and annotated-versus-lightweight exist in git and nowhere else. The
  self-gate carries its positive control: the probe must FIRE on a
  constructed untagged tree, or reading zero proves nothing.
- The registry-coupled pins that move with a new family: seven
  `family-enumeration` fixtures, four assertions there, the non-reader
  classification and its count, the FAMILY_IDS length pin, and the currency
  self-gate's ledger subject and active-writer count — the last re-aimed
  exactly as its own docstring predicted the twenty-third family would.

TWO DEFECTS THE TESTS CAUGHT IN MY OWN CODE, recorded because both were
silent: `blobs_at` answers raw bytes and the parser was handed a str pattern;
and the distance window was `threshold + 1`, which SATURATES — a landing does
not touch the manifest, so every commit above the cut still declares the
bundle, and the walk looks for where the declaration STOPS. At +1 the error
band was unreachable. Fixed to `threshold + 2` with the reason in the
docstring.

Gates: pytest tests/doc-health 1364 passed / 0 failed; openspec validate
--all --strict 82 passed / 0 failed; doc-health against merge-base 8f986c3
moves +1 `info` and nothing else — the modified-block-currency arm naming the
two body units this packet's MODIFIED block deliberately rewrites, which
clears at archive. The family itself reports ZERO over this tree, run
directly: a genuine answer, not a skip.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Inspect every bundle the repository has CUT: the ratified family would have read zero through the incident it was built for

Codex's P1 on #544, accepted by Brett 2026-09-01 ("accept the amendment") as
an amendment to the ratified baseline rather than folded into the
realization.

THE DEFECT. The family checked only the bundle the manifest CURRENTLY
declares. A bundle is legitimately silent while its declaring commit is the
published tip — but when the next cut advances the manifest, the family
begins checking the new bundle and NEVER REVISITS the old one. Run against
the incident that produced issue #528 it would have reported nothing at all:
contract-v2.3 untagged, contract-v2.4 declared on top, silence. Proven
RED-first by test_a_superseded_bundle_that_was_never_tagged_is_still_reported
before a line of the fix was written.

THE FIX. Every bundle with a release inventory at or above the enforcement
line is inspected. The distance grading still applies ONLY to the current
declaration, which is the one still inside a legitimate window; a SUPERSEDED
untagged bundle is an `error` without grading, because its window closed when
the next cut replaced it, and its remedy is retro-publication at the commit
the policy's rule names.

A SECOND DEFECT, FOUND BY RUNNING THE FIX AGAINST THIS REPOSITORY, and the
worse of the two in kind: the family reported "no contract bundle declared"
against a repository declaring contract-v2.5. `blobs_at` answers None PER
PATH for a blob it cannot read, and the published tip was not in the local
object store. THAT IS THE #338 CONFLATION — "not fetched" read as a
substantive answer — reproduced inside the family whose D5 exists to avoid
exactly it. Both reads are guarded now, at the manifest and at the commit a
tag peels to, and the case is pinned.

The delta gains two scenarios and one amended paragraph. The threshold, the
severities, the two failure classes and the enforcement floor are unchanged
from the ruling of 2026-08-31.

Codex's P2 is also taken: task 2.3's "complete" ripple list was not, and its
correction now names what actually moved.

Gates: pytest tests/doc-health 1366 passed / 0 failed (the two new tests are
the RED-first proof and the conflation pin); openspec validate --strict
valid. The self-gate over the real tree no longer asserts a bare zero — a
SKIP is not a defect, and this family reads PUBLISHED refs, so its answer
depends on whether the checkout has fetched the tip, which is an environment
fact and not a corpus one. What it asserts is that no `error` and no
`warning` is invented, and the positive control still must fire.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Complete task 2.3's ripple list: Codex's P2 was only partly discharged

The correction named the four live count sites and the family-enumeration
fixtures, and stopped there. It did not name
tests/doc-health/test_modified_block_currency.py:1428, the four assertion
pins in test_family_enumeration.py individually, or
tests/doc-health/test_lifecycle_scan_set.py's NON_READERS set and its
len(FAMILIES) - 4 pin — all of which moved in the realization and every one
of which reds the suite if left behind. A ripple list that is still
incomplete after being corrected for incompleteness is worth more than a
tick, so the entry now names the whole set and says why they belong in the
registration commit.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
@brettheap
brettheap deleted the change/cut-contract-v2.4 branch September 2, 2026 18:55
brettheap added a commit that referenced this pull request Sep 25, 2026
…n, and the intake requires the render's bootstrap

Copilot's third review of PR #1166: `Path.is_file()` follows a link, so a
sealed render could make its `snapshot.json` a link, and the parent would
validate, and quote in its findings, whatever file on the host it named.

The output is now read only when it is a regular file with one link: never
a symbolic link, a hard link, a directory or a FIFO. It is opened without
following a link and checked again through the descriptor, so a swap after
the first check is refused too. The validator then judges a copy of exactly
those bytes, in a directory made after the render exited.

The same verifier gap Copilot found in the child's intake (opensoft/xFactory
PR #526) is in this reference verifier too. The entry imports its host
bootstrap before it reaches either product, and a seal missing one of those
four files passed an intake that checked the entry alone, failing only once
the render started. `verify_seal` now requires each of them
(`RENDER_BOOTSTRAP`).

Tests: four output shapes refused with nothing validated; a swap after the
check; the validator handed a copy of the render's bytes from outside its
output directory; each bootstrap file's absence reported by name. Each of 5
mutations that undoes part of this fails a named test. A real seal of this
checkout under a relative name still answers the tracked rejection, 3 of 3
findings cited against #1159.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
…le, and require each leg's schema provenance

Copilot's seventh review of PR #1166 found two gaps, and a third came from
the same check in the child's intake (opensoft/xFactory PR #526).

- The seal result sits outside the seal, at the one path the workflow
  gates the dispatch on, and it was written with `write_text`, which follows
  a link. Sealed code runs before it is written. Its path is now cleared
  before the seal starts, and an entry found there afterwards was made by
  sealed code: the seal is refused, the entry is removed without being
  followed, and the lane's own result is created exclusively in its place.
  The manifest and the result share one exclusive-create primitive.
- `verify_seal` now requires each leg record's schema provenance: `schema_leg`
  must be `spec`, and `schema_leg_revision` a full revision.
- A leg is sealed as its `src/` alone, so a file of the leg indexed outside
  `src/` is refused, even when `file_count` counts it.

Tests: a link and a file planted at the result path during the seal; a stale
result and a stale link cleared before it; four schema-provenance tampers; a
leg carrying a file beside its `src/`. Each of 5 mutations that undoes part
of this fails a named test.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
… only what must

Copilot's ninth review of PR #1166: the render-unit checks read only the
manifest's `files` map, so a regular file present in the seal but absent
from that map was invisible. The child renders, validates and bakes out of
that tree, and an extra module under a leg's `src/` would be importable
with bytes the digest never covered.

`verify_seal` now walks the tree and refuses every entry the index does not
name, the manifest itself excepted, reporting the first ten and a count of
the rest. The child's intake makes the same check (opensoft/xFactory PR
#526). The render-unit comment now counts its files right: the entry, and
the four its host bootstrap is made of.

Tests: an unindexed file beside the corpus, a module in a leg, and a
standard-module shadow in a leg's `src/`; the bound on how many are named.
The mutation that accepts them fails both tests.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
…eal and at the intake

Copilot raised this on the child's intake (opensoft/xFactory PR #526,
thread PRRT_kwDOTK9OtM6mEotr): `validator_probe` and `precheck` were
checked on their outcome alone, so an internally inconsistent record such
as `{"outcome": "validated", "returncode": 2}`, or one with no return code,
passed. The parent's reference intake had the same gap, so it is closed
here before it is asked.

The validator's contract is "0 ok, 1 findings, 2 harness error", and the
product reads a verdict on a readable document from that number alone.
Both documents the parent validates are readable JSON by construction: the
probe is the parent's own, and the render's output is parsed before a copy
of it is judged. So a verdict and its exit code are one fact.

- `verify_seal` requires `validated` with 0 or `not-conformant` with 1 for
  the probe, and `validated` with 0 for the pre-dispatch render, each as a
  real `int` and not a `bool` (`True == 1`). `VALIDATOR_VERDICT_RETURNCODES`
  is held equal to the product's own by a test.
- The seal refuses first what the intake refuses. A probe verdict beside
  another code is refused rather than recorded. The pre-dispatch answer
  must be a verdict before either branch, with its pass flag agreeing, so
  it is neither recorded as a pass nor reported as `strict_failed` unless
  the validator reached one. The sealed product module the runs are
  classified with could otherwise print any pairing.

Tests: eleven probe records and seven precheck records at the intake,
bools, a float, a string and a missing code among them; a sealed product
module answering a mismatched probe verdict, a mismatched pass, and a
finding passed as ok. At e88ea23 every mismatch verified or sealed.

Refs #1161

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
…n the nightly (#1161) (#1166)

Brings the nightly dashboard refresh back to working end to end after the split-opendox shed, on the openxFactory side, on Brett Heap's word of 2026-09-27, verbatim "land #1166, #526 and #322 when green" (issue #1161, taken over by lane openXfactory-5 from lane openxfactory-4's released draft). The refresh renders through the pinned openDox/openXdox products, not the shed path. The seal and its intake now: require a full validator_revision and a product tree to hold it to; remove a real directory planted at the seal result path, with the path confined to the checkout; require the probe and precheck verdicts to pair with their exit codes as integers (mirrored from the aggregation side); hold corpus-side validator sources to the bytes source_head holds; require by name every product module the render unit imports; hold the result directory open from before sealed code runs; write the recipe create-exclusive without following links; and fail closed with exit 3 when a seal phase cannot write its own result, so the workflow never reads a planted result. 36 of 36 mutants killed; 26 review threads resolved. Refs #1161, #1164. Omnigent-Install#322 (the recipe) landed at 6b7da477 before this; the aggregation child opensoft/xFactory#526 re-points at this landed sha and lands after it; the seal 2.2.0 pair (#1179, xFactory#535) follows.

Lane: openxfactory-5 (openXfactory-5)
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