Repository navigation
A credential binding declares who holds it and what it fetches with - #516
Conversation
Realizes the ratified `add-binding-consumer-identity` (#497), tasks §1-§4, §5.1/§5.1a/§5.1b/§5.4 and §6. The custody change of 2026-08-23 ratified per-system authority for a shared operated identity and recorded, five times, that the published shape could not express it: nothing in a binding record said which system it belonged to or which identity it fetched with. It does now. THE BLOCK IS DECLARED AND NOTHING NARROWS. Each entry of `credential_bindings` may carry `consumer:` — `holder_ref`, `fetch_identity`, a QUALIFIED `requirement_ref`, and the const-true `shared_credential_acknowledged` and `instantiation_stub` tokens — as a DESCRIBED, UNCONSTRAINED property: no type, no requiredness, no closure, no member grammar. The binding object has never been closed, so a `consumer:` key of any shape already validated; requiring members, closing the block and imposing the grammar each refuse a shape this major accepts, so all of them wait for contract-v3.0 behind one deprecation window. The same test governs three narrowings that sit OUTSIDE the block and are not exempt for it: the `credential_bindings` map-key grammar, the closed `access_mode` vocabulary and the `requirements_document_ref` path grammar. Six shapes a domain could already hold — an object with neither member, a scalar, a list, placeholder values, an undeclared extra, and no block — are BUILT AND DRIVEN against both releases in `tests/credential_contracts/test_consumer_block_phasing.py`, against the shipped schema and against `major_projection.py`, which is the prescription for the major made executable. That file exists because of this packet's own finding: a prescribed fix applied without a verifier is an unverified change, whatever its provenance. A WARNING CHANNEL THE VALIDATOR DID NOT HAVE, AND EIGHT CODES ENUMERATED AGAINST THE REFUSALS. `validate-credential-contracts.py` printed ERROR and counted errors, so the deprecation posture was inexpressible there. It now follows `validate-client-identity-roster.py`'s `WARN [code] message` shape and carries one code per shape the major refuses — undeclared, incomplete, unknown member, member grammar, false token, binding-key grammar, access-mode vocabulary, document-reference grammar — each with a packaged probe under `examples/credential-contracts/warning/`, and the self-test refuses a code with no probe. THE REFUSAL IS SHARPENED AND THE ARITY IS EVERY PAIR. `shared-secret-identity` keeps its predicate and its refusal as the default, lifted only where SIX fail-closed conditions hold over EVERY PAIR sharing the reference; the sixth — the reference's `requirement_id` equals its own binding's map key — is what makes the other five mean anything, and the packaged serving-tier negative now carries the four declarations that granted the lift under the five-condition draft so condition six can be seen refusing them. The inherited first-against-rest shape is REPLACED: with three bindings on one secret the second and third were never compared, and a record where those two shared a fetch identity was accepted. An access mode that is absent, non-string or outside the vocabulary makes the lift UNAVAILABLE rather than satisfied. `shared-authority-identity` is new, names two systems on one authority rather than two credentials collapsed into one, replaces the default finding where it applies, and is NOT scoped to a shared `secret_ref`. THE SCREEN'S SCOPE AND THE SCREEN ITSELF BOTH MOVED (openxFactory#506). `_looks_like_raw_secret` read `secret_ref` and nothing else, so the two new free-string members would have been two unscreened sinks on the record kind whose invariant is "never bake a secret". Widening the scope of a leaky screen without fixing the screen would ship the gap wider, so the detector gained credential-bearing URIs, `key=value` assignments and dotted JWTs in the same act, with a registered negative per field. The 40-character floor on the base64 arm stays a recorded limit rather than a coverage claim. THE GENERATOR EMITS `consumer: {instantiation_stub: true}` and nothing else. Not a placeholder, which fails the grammar; not an omission, which cannot stay clean at the major. `test_scaffolded_repo_conformance.py` generates a real repository and runs the real validator over its bytes at BOTH releases, with both rejected drafts as negative controls — a one-release assertion would have passed for the draft that breaks every domain repo on the upgrade. Also: a `Deprecations Currently In Force` entry naming all eight codes and all seven acts, gating the requiredness on a declarable degraded fetch-identity mode; the `credential-contracts` manifest row's digest and consumption rule; and a gate that recomputes that digest from the file on disk, which binds every writer of this schema without editing a frozen packet. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 439d5bbf58
ℹ️ 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".
| def _declares_stub(consumer: object) -> bool: | ||
| return isinstance(consumer, dict) and consumer.get("instantiation_stub") is True |
There was a problem hiding this comment.
Reject live fields from the stub exemption
When an instantiator adds only holder_ref but leaves instantiation_stub: true, this predicate still treats the block as a stub, so _consumer_block_warnings suppresses the missing-fetch_identity warning; the presence-based condition in tests/credential_contracts/major_projection.py also accepts it at the projected major. This lets a partially instantiated binding evade requiredness even though openspec/changes/add-binding-consumer-identity/specs/credential-contracts/spec.md:218-221 says live values must not coexist with the token. Recognize the exemption only for a stub-only block and mirror that exclusivity in the major projection.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
| if not all(isinstance(v, str) for v in (holder_a, holder_b, fetch_a, fetch_b)): | ||
| continue | ||
| if holder_a != holder_b and fetch_a == fetch_b: |
There was a problem hiding this comment.
Keep malformed identities on the warning path
When two bindings have different secret_ref values but the same grammar-invalid fetch_identity—for example, two empty strings—this string-only guard reaches the equality check and emits a hard shared-authority-identity error. That contradicts the introducing-minor contract in openspec/changes/add-binding-consumer-identity/specs/credential-contracts/spec.md:183-186, under which identifier-grammar failures remain valid and produce warnings; it can therefore invalidate an existing locally shaped record during a minor upgrade. Only compare values that pass the identifier grammar, leaving malformed values to the deprecation warning until the major.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
| doc_ref = ref.get("requirements_document_ref") | ||
| if not isinstance(doc_ref, str) or not DOCUMENT_REF.fullmatch(doc_ref): | ||
| out.append(("consumer-requirement-ref-grammar", |
There was a problem hiding this comment.
Warn for paths exceeding the projected limit
A repository-relative YAML reference longer than 300 characters can satisfy this regex and receive no warning at the introducing minor, while CONSUMER_AT_THE_MAJOR in tests/credential_contracts/major_projection.py:77-80 rejects it with maxLength: 300. Thus this accepted shape reaches the major without the full warning release required for every planned narrowing. Add the length check to consumer-requirement-ref-grammar now, or remove the unannounced limit from the projection.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Pull request overview
Implements the ratified add-binding-consumer-identity change by (1) declaring an optional consumer: block on credential bindings at the current minor, (2) adding a warning channel with enumerated consumer-* deprecation codes to support major-release tightening, and (3) strengthening validator semantics and test corpus to preserve serving-tier separation while allowing a narrowly defined lift for deliberate operated-identity sharing.
Changes:
- Extend the credential-contract schema descriptions to introduce the
consumer:block and to document (but not yet enforce) future major constraints (map-key grammar, access-mode vocabulary, doc-ref grammar). - Update
scripts/validate-credential-contracts.pyto emit structured WARN lines with 8 enumerated deprecation codes, index requirement records for qualified reference resolution, and enforce the revised shared-secret / shared-authority logic. - Add extensive tests + packaged examples across positive/negative/warning/support channels to evidence the phasing behavior and the new refusal/lift semantics.
Reviewed changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/credential_contracts/test_scaffolded_repo_conformance.py | Generates a scaffolded repo and asserts the emitted stub binding template stays clean under both minor and projected major behaviors. |
| tests/credential_contracts/test_manifest_row_digest.py | Ensures the credential-contracts manifest row digest matches the on-disk schema bytes and that the consumption rule reflects the new block/phasing. |
| tests/credential_contracts/test_dispatch_credential_contract.py | Expands fixture inventory to include warning/support channels and derives self-test expectations from explicit inventories. |
| tests/credential_contracts/test_consumer_identity_refusals.py | Adds condition-by-condition tests for the shared-secret lift, shared-authority finding, resolution behavior, and a mutation round. |
| tests/credential_contracts/test_consumer_block_phasing.py | Drives six pre-existing consumer-block shapes against minor vs projected major, ensuring “no narrowing at this minor” is measured. |
| tests/credential_contracts/major_projection.py | Provides an executable “next-major projection” fixture used by tests to verify intended major constraints. |
| scripts/validate-credential-contracts.py | Adds WARN severity + deprecation codes, requirement indexing/resolution, expanded baked-secret screening, and revised shared-secret/shared-authority logic. |
| scripts/apply-domain-starter.py | Updates the scaffolded bindings template to emit consumer: {instantiation_stub: true}. |
| openspec/changes/add-binding-consumer-identity/tasks.md | Marks completed tasks and records the intentional deferral of “the cut” (version allocation) work. |
| examples/credential-contracts/warning/live-values-in-stub-named-file.template.yaml | Warning probe demonstrating that filename-based “stub naming” does not exempt a record. |
| examples/credential-contracts/warning/consumer-token-not-true.yaml | Warning probe for const-true token declared false. |
| examples/credential-contracts/warning/consumer-requirement-ref-grammar.yaml | Warning probe for invalid requirements_document_ref grammar. |
| examples/credential-contracts/warning/consumer-member-grammar.yaml | Warning probe for placeholder-style values that fail the identifier grammar. |
| examples/credential-contracts/warning/consumer-identity-undeclared.yaml | Warning probe for the “no consumer block” legacy shape. |
| examples/credential-contracts/warning/consumer-block-unknown-member.yaml | Warning probe for undeclared consumer: members. |
| examples/credential-contracts/warning/consumer-block-locally-shaped.yaml | Warning probe for non-object consumer: shapes (scalar). |
| examples/credential-contracts/warning/consumer-block-incomplete.yaml | Warning probe for present-but-incomplete consumer: blocks. |
| examples/credential-contracts/warning/consumer-binding-key-grammar.yaml | Warning probe for ungrammatical credential_bindings map keys. |
| examples/credential-contracts/warning/consumer-access-mode-vocabulary.yaml | Warning probe for out-of-vocabulary access_mode values. |
| examples/credential-contracts/two-consumer-operated-identity.requirements.example.yaml | Requirements half of the positive two-consumer operated-identity fixture. |
| examples/credential-contracts/two-consumer-operated-identity.binding-template.example.yaml | Binding-template half of the positive two-consumer operated-identity fixture. |
| examples/credential-contracts/support/ambiguous-requirement-ids.requirements.yaml | Support fixture to evidence ambiguous requirement-id resolution behavior. |
| examples/credential-contracts/openxdox-dispatch.binding-template.example.yaml | Updates an existing packaged positive to include consumer: blocks with synthetic identifiers. |
| examples/credential-contracts/negative/three-bindings-two-share-authority.yaml | Negative probe for “every pair” arity and shared-authority detection. |
| examples/credential-contracts/negative/dispatch-reuses-content-secret.yaml | Re-arms the key serving-tier separation negative with declarations that previously defeated a weaker lift. |
| examples/credential-contracts/negative/dispatch-content-pair-declares-sharing.yaml | Negative probe showing dispatch/content sharing remains refused even when “honestly declared.” |
| examples/credential-contracts/negative/consumer-shared-holder-reference.yaml | Negative probe for condition-2 failure (shared holder_ref). |
| examples/credential-contracts/negative/consumer-shared-authority-identity.yaml | Negative probe for shared-authority finding independent of shared secret_ref. |
| examples/credential-contracts/negative/consumer-requirement-ref-unresolvable.yaml | Negative probe for qualified reference resolving to nothing. |
| examples/credential-contracts/negative/consumer-requirement-ref-escapes-tree.yaml | Negative probe for escaping/foreign document references. |
| examples/credential-contracts/negative/consumer-requirement-ref-ambiguous.yaml | Negative probe for qualified reference resolving to >1 requirement record. |
| examples/credential-contracts/negative/consumer-one-sided-acknowledgment.yaml | Negative probe for condition-4 failure (one-sided acknowledgment). |
| examples/credential-contracts/negative/consumer-holder-ref-raw-secret.yaml | Negative probe for expanded baked-secret screen on consumer.holder_ref. |
| examples/credential-contracts/negative/consumer-fetch-identity-raw-secret.yaml | Negative probe for expanded baked-secret screen on consumer.fetch_identity (JWT-shaped). |
| examples/credential-contracts/negative/consumer-acknowledgment-valued-false.yaml | Negative probe distinguishing warning vs lift-withholding for false-valued const-true tokens. |
| examples/credential-contracts/instantiation-stub.binding-template.example.yaml | Packaged positive showing the exact emitted scaffold stub bytes. |
| docs/domain-factory-starter-pack.md | Updates starter-pack guidance to include the stub consumer: token and instantiation guidance. |
| docs/credential-access-model.md | Updates the access model doc to include consumer: semantics and extend the “no raw secret” discipline to new sinks. |
| docs/contract-versioning-policy.md | Adds a detailed deprecation entry enumerating the seven major acts + warning codes for this change. |
| contracts/schemas/xfactory-credential-contracts.schema.yaml | Adds schema descriptions for the new consumer: block and for the future major constraints being phased. |
| contracts/manifest.yaml | Updates the credential-contracts row sha256 and extends the consumption_rule narrative for this capability. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| if not isinstance(ref, dict): | ||
| return "malformed", None | ||
| rid = ref.get("requirement_id") | ||
| doc_ref = ref.get("requirements_document_ref") | ||
| if not isinstance(rid, str) or not isinstance(doc_ref, str): | ||
| return "malformed", None |
Bot round on PR #516: two Codex P1s, one Codex P2, one Copilot finding. All four are real and all four are taken; one half of one is refuted on the record. A STUB DECLARES THE TOKEN AND NAMES NOBODY (Codex P1). `_declares_stub` read the token alone, so an instantiator that filled in `holder_ref` and left `instantiation_stub: true` behind KEPT the exemption — the missing `fetch_identity` crossed the whole minor unwarned and the requiredness it should have been served by would have reached the major with no deprecation behind it. The ratified scenario is explicit on both halves ("carries the const-true stub token AND NO IDENTIFIERS"; "a record carrying LIVE values MUST NOT declare the token"), so the exemption is withheld the moment either identifier appears and the ordinary warnings resume. The two layers then split as they do for a missing block: the major's schema accepts it, its validator refuses it. REFUTED, with the reason recorded in `major_projection.py`: the same finding asked that the exclusivity be mirrored in the projected major schema. A block declaring the token beside BOTH identifiers is accepted on the current major, so refusing it there would add a refused-at-the-major shape that no deprecation code warns about now — the exact unphased narrowing four council seats convened over. §1.6 prescribes that conditional verbatim, and "a record carrying live values MUST NOT declare the token" stays the REQUIREMENT's obligation, on the footing the ratified text already gives the persona scenario. A MALFORMED IDENTITY STAYS ON THE WARNING PATH (Codex P1). `shared-authority- identity` is the one arm of this change that can raise a NEW error on a record carrying no shared secret, so it is the one place a malformed value could turn a deprecation into a refusal: two bindings whose consumers both carry `fetch_identity: ""` validate on the current major, and reading them as "the same identity" would refuse in a MINOR a shape that major accepts. It now compares only values that pass the identifier grammar; malformed ones are warned by `consumer-member-grammar` and refused at the major with everything else. THE LENGTH BOUND OWES ITS WARNING RELEASE LIKE EVERY OTHER NARROWING (Codex P2). A 400-character reference matched the path pattern, so it was accepted silently here and would have met `maxLength: 300` at the major undeprecated. `_is_document_ref` now carries the bound, on the warning and on the resolver. AN EXTRA MEMBER IS MALFORMED, NOT A DECORATED SUCCESS (Copilot). The resolver's docstring promised "the two-member object" while the code checked only that the two were present, so a reference carrying a third key could resolve and satisfy the lift — accepting a shape the major's closed block refuses, on the exemption path where fail-closed matters most. Refusing to RESOLVE it refuses no record: it withholds an exemption, and the default refusal it leaves standing is the one that already stands. Each fix carries its test, and the two that tighten a predicate carry a negative control beside it, so a tightening that cost the check its real catches would fail here rather than pass quietly. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Bot round 1 disposition — all four findings taken, one half of one refuted on the record. Fixed in Codex P1, Its second half — REFUTED, with the reason in Codex P1, Codex P2, the 300-character bound — TAKEN. A 400-character reference matched the path pattern, so it was accepted silently and would have met Copilot, Each fix carries its test, and the two that tighten a predicate carry a negative control beside it, so a tightening that cost the check its real catches fails rather than passes quietly. Local re-run after the fixes: @codex review |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 41 out of 41 changed files in this pull request and generated no new comments.
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/validate-credential-contracts.py:693
- _self_test() only stores fixtures that load as dicts and doesn’t catch yaml.YAMLError. If a fixture file becomes non-mapping YAML (or fails to parse), later lookups like docs[rel] will raise KeyError (or the load will raise) and the validator will crash instead of reporting a controlled self-test error.
This issue also appears on line 792 of the same file.
scripts/validate-credential-contracts.py:794
- In PASS ONE, YAML files under credentials/ that load to a non-dict are silently ignored (
if not isinstance(doc, dict): continue). The module docstring says “files with no kind envelope are errors”, and ignoring non-mapping YAML can hide malformed contract files from validation.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ae309d7bfe
ℹ️ 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".
|
|
||
| ref = consumer.get("requirement_ref") | ||
| if ref is not None: | ||
| if not isinstance(ref, dict) or sorted(ref) != sorted(REQUIREMENT_REF_MEMBERS): |
There was a problem hiding this comment.
Compare unconstrained reference keys without sorting
When a YAML requirement_ref mixes string and non-string keys—for example the two expected keys plus 1: extra—sorted(ref) raises TypeError before consumer-member-grammar can be emitted. Because consumer remains unconstrained at this minor, this malformed shape reaches the validator and aborts the entire repository check instead of remaining valid with its required deprecation warning; compare the key set without ordering heterogeneous values, and make the same change in resolve_requirement.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
… file Bot round 2 on PR #516: one new P2, real and sharp, and one stale re-flag refuted with its test. A CRASH IS NOT A VERDICT. The `consumer:` block is UNCONSTRAINED at this minor — that is the whole point of the phasing — so a record may hold a mapping whose keys are not all strings; YAML writes `1: extra` as an int key. `sorted()` over mixed types raises TypeError, so a `requirement_ref` carrying one aborted the ENTIRE repository scan on a record this release promises stays VALID and warned. The reference is now compared as a SET, which needs no ordering at all. AND THE SWEEP IS THE WHOLE FILE, not the line the bot pointed at. The finding is a property of sorting record-controlled keys, and this validator sorted them in THREE places: the qualified reference (twice) and the unknown-member list this change added, plus `issuance_preconditions`, which is closed by the schema but read by a semantic pass that runs BESIDE the schema pass rather than behind it — so the crash was reachable there too. All four take `key=repr` or a set comparison. The estate's own lesson about incomplete sweeps is the reason: a settled fact is chased to the whole file. The test drives all three sites, and the anchor was verified rather than assumed — the pre-fix code raises `'<' not supported between instances of 'int' and 'str'` on the same record, so the test fails against the mutation it names and passes against the repair. REFUTED: the re-flagged P2 about the 300-character bound. It was taken in `ae309d7b` — `_is_document_ref` carries `1 <= len <= DOCUMENT_REF_MAX`, the warning message names the limit, and `test_an_OVERLONG_document_reference_is_warned_at_the_minor_too` drives a 400-character reference through the warning arm and the projected major. The comment cites the pre-fix head. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Bot round 2 disposition — one new finding taken with a sweep, one re-flag refuted with its test. Fixed in Codex P2, And the sweep is the whole file, not the line that was pointed at. The finding is a property of sorting record-controlled keys, and this validator sorted them in THREE places: the qualified reference (twice), the unknown-member list this change added, and The test drives all three sites, and the anchor was verified rather than assumed: the pre-fix code raises Codex P2, the 300-character bound — REFUTED as already fixed. It was taken in the previous round ( Local after the fixes: @codex review |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/validate-credential-contracts.py:69
- The comment claims a JWT 'always begins eyJ'. That’s only true for common headers like {"alg":...}; base64url-encoded JSON objects can start with other prefixes (e.g., if the first key begins with a digit or the JSON begins with whitespace). Since this is a security-adjacent detector, the comment should avoid an absolute claim.
scripts/validate-credential-contracts.py:661
- _deprecation_warnings() iterates (doc.get('credential_bindings') or {}).items(). If credential_bindings is present but not a dict (schema-invalid but still parsed), this raises AttributeError and aborts the scan. Since warnings are computed even when schema errors are present, this should be guarded the same way as other malformed-shape handling.
| out: list[str] = [] | ||
| bindings = [(n, b) for n, b in (doc.get("credential_bindings") or {}).items() | ||
| if isinstance(b, dict)] |
| # PASS TWO: adjudicate. | ||
| for rel, doc in parsed: | ||
| checked += 1 | ||
| for err in sorted(validator.iter_errors(doc), key=lambda e: list(e.absolute_path)): |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b14fb9aa7
ℹ️ 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".
| modes: list[str] = [] | ||
| for name, con in ((name_a, con_a), (name_b, con_b)): | ||
| ref = con.get("requirement_ref") | ||
| status, record = resolve_requirement(ref, index) |
There was a problem hiding this comment.
Resolve references outside shared-secret pairs
When a template has only one binding, or every binding uses a distinct secret_ref, this resolution code is never reached because _lift_refusal_detail is called only by the duplicate-secret loop in _binding_findings. Consequently, a declared requirement_ref that resolves to zero or multiple requirements produces no finding, despite openspec/changes/add-binding-consumer-identity/specs/credential-contracts/spec.md:106-109 requiring every such reference to be reported. Resolve each declared reference independently of whether its binding participates in the shared-secret lift.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
…e sweep Bot round 3 on PR #516: three findings of one class, all taken; one repeat refuted for the third time; and one substantive finding STOPPED ON rather than guessed, because answering it would amend the ratified packet. THE SCHEMA PASS AND THE SEMANTIC PASS RUN BESIDE EACH OTHER, NOT ONE BEHIND THE OTHER, so a schema-INVALID record reaches every semantic arm. Round two answered that for sorted KEYS; Copilot found the same class in assumed TYPES, and it is the same defect wearing the other face: credential_bindings: [a, b] -> .items() raised AttributeError requirements: 7 -> iterated, raising TypeError a `1: foo` mapping key -> error paths mix int and str at one position, so sorting SCHEMA ERRORS raised Each aborted the WHOLE repository scan, so one malformed record silenced every finding about every other file in the tree — the worst possible failure for a validator whose job is to report. `_mapping` and `_sequence` answer it at every site rather than at the three that were pointed at, and the schema-error sort takes `repr` per path element. The anchors are verified rather than assumed: the pre-guard code raises `'list' object has no attribute 'items'` and `'int' object is not iterable` on the same records, so the tests fail against the mutation they name. REFUTED, third time: the P2 about the 300-character bound, taken in `ae309d7b` and driven by `test_an_OVERLONG_document_reference_is_warned_at_the_minor_too`. Its own AGENTS.md link still cites `439d5bb`, the pre-fix head. STOPPED, not guessed: Codex's finding that a `requirement_ref` resolving to zero or to more than one requirement is reported only for bindings that share a `secret_ref`. The observation is CORRECT. Every answer to it, though, is a packet amendment rather than a realization act — an ERROR is an unphased narrowing on a record this major accepts; a WARNING needs a NINTH code, and the ratified rule is that the set is "ENUMERATED against the refusals", with a self-test that refuses an unprobed code; and resolution failure is not a shape the major refuses. The ambiguity is between the block requirement's general "SHALL be reported" and the lift requirement's own scenario, which scopes the reporting to a sharing pair — exactly where it is implemented. Recorded on the pull request for a ruling. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Bot round 3 disposition — three findings taken as one sweep, one repeat refuted, and one substantive finding I am stopping on rather than guessing. Fixed in Taken: the type half of round 2's sweep (Copilot ×3)The schema pass and the semantic pass run BESIDE each other, not one behind the other, so a schema-INVALID record reaches every semantic arm. Round 2 answered that for sorted KEYS; this is the same class wearing the other face:
Each aborted the whole repository scan, so one malformed record silenced every finding about every other file — the worst failure available to a validator whose job is to report. Refuted (third posting): the 300-character boundTaken in STOPPED — a ruling is needed, and it is not mine to makeCodex P2: a I am not fixing it, because every available answer amends the ratified packet rather than realizing it:
The packet is genuinely ambiguous here: the block requirement says a reference that "resolves to zero or to more than one requirement SHALL be reported and SHALL NOT be treated as resolved", while the lift requirement's own scenario scopes that reporting to a sharing pair — "WHEN two bindings share a Note what the current behaviour does NOT do: it never treats an unresolved reference as resolved, at any binding. The narrow question is whether a non-sharing binding's dangling reference must additionally produce a finding, and under what severity. For the record, if this is ruled a real gap the cheapest honest shape is probably a successor change adding a resolution-integrity code with its own probe — not a ninth code smuggled into a deprecation set whose defining property is that it enumerates the major's refusals. @codex review |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 41 out of 41 changed files in this pull request and generated no new comments.
Suppressed comments (2)
Previously missed (1) — in code that hasn't changed since the last review.
tests/credential_contracts/test_consumer_identity_refusals.py:191
- Test function name has a typo (
is_is), which makes it harder to read/search and also forces the mutant table to carry the same typo.
This issue also appears on line 694 of the same file.
tests/credential_contracts/test_consumer_identity_refusals.py:696
- The mutant table references the condition-6 test name with the same
is_istypo; if the test name is corrected, this string should be updated to match so the anchor check stays meaningful.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2fd8a419dc
ℹ️ 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. holder references differ | ||
| holder_a, holder_b = con_a.get("holder_ref"), con_b.get("holder_ref") | ||
| if not isinstance(holder_a, str) or not isinstance(holder_b, str): |
There was a problem hiding this comment.
Require grammatical identities before granting the lift
When two bindings share a secret but use distinct grammar-invalid strings such as <holder-a>/<holder-b> and <fetch-a>/<fetch-b>, these string-only checks treat them as established identities; with acknowledgments and resolvable non-dispatch requirements, _lift_refusal_detail returns success and removes the pre-existing shared-secret-identity error, leaving only deprecation warnings. Because malformed values do not establish distinct consumers, validate both holder and fetch values with _is_identifier before granting this fail-closed exemption.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
| ref = consumer.get("requirement_ref") | ||
| if ref is not None: |
There was a problem hiding this comment.
Warn when requirement_ref is explicitly null
When YAML explicitly declares requirement_ref: null alongside valid identifiers, .get() returns the same value as an absent optional member and this branch emits no warning. The introducing-minor schema accepts that record, while CONSUMER_AT_THE_MAJOR requires any declared reference to be an object and will reject it, so this shape crosses the deprecation release silently. Test membership with "requirement_ref" in consumer before validating the value so an explicit null receives consumer-member-grammar.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
Bot round 4 on PR #516: one new P1 — the sharpest finding of the whole arc — and one new P2. Both taken. Two repeats and the stop stand unchanged. A GRAMMAR-INVALID IDENTITY NEVER GRANTS THE EXEMPTION (Codex P1). A pair carrying `<holder-a>`/`<holder-b>` and `<fetch-a>`/`<fetch-b>` is DISTINCT as strings while naming nobody, and with the acknowledgment and two resolvable non-dispatch requirements it TOOK the lift — REMOVING a `shared-secret-identity` error that stands today. That is the one direction this change promised it would never move in: it tightens before it lifts, and "nothing that is refused today becomes accepted by silence". A placeholder is exactly the grammar-passing sentinel this packet calls worse than omission, arriving through the exemption door rather than the front one. Conditions two and three now require `_is_identifier` on all four values. Note the phasing direction, because it is what makes this safe to fix in a minor: WITHHOLDING a lift is not a new refusal. The record this refuses is one the current major already refuses — which is precisely why the round-two fix ran the other way, guarding `shared-authority-identity` (the one arm that can raise a NEW error) so malformed values stay on the warning path there. MEMBERSHIP, NOT TRUTHINESS (Codex P2). `requirement_ref: null` is a DECLARED member whose value is not an object, and the major refuses it — but `.get()` made it indistinguishable from an absent optional member, so the shape crossed the deprecation release in silence. The test is whether the KEY is there, and an absent member stays silent, which its own negative control asserts. Anchors verified for both: the pre-fix code GRANTS the lift on the placeholder pair and warns NOTHING on the explicit null. Unchanged: the 300-character P2 (fourth posting, fixed in `ae309d7b`) and Copilot's `.items()` finding (fixed in `2fd8a419` by `_mapping`, at both sites) are refuted as already taken; Codex's resolution-scope P2 remains STOPPED for a ruling, for the reasons recorded on the pull request. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Bot round 4 disposition — two new findings, both taken; two repeats refuted; the stop stands. Fixed in Codex P1: a grammar-invalid identity granted the lift — TAKEN, and it is the sharpest finding of the whole arc. A pair carrying Why this fix runs opposite to round 2's, stated because the pair looks contradictory and is not. Withholding a LIFT is not a new refusal: the record it refuses is one the current major already refuses, so tightening it in a minor is free. Raising Codex P2: Anchors verified for both: the pre-fix code GRANTS the lift on the placeholder pair and warns NOTHING on the explicit null. Refuted as already taken: the 300-character bound (fourth posting; fixed in Still STOPPED, unchanged: the resolution-scope P2. A ruling is needed on whether a dangling Local at this tip: @codex review |
| import yaml | ||
| from jsonschema import Draft202012Validator | ||
|
|
||
| from major_projection import load_minor_schema, project_major_schema |
| from major_projection import (ACCESS_MODES, DOCUMENT_REF_PATTERN, IDENTIFIER_PATTERN, | ||
| branch_for_kind, load_minor_schema, project_major_schema) |
|
Bot round 5 disposition — two new findings taken, one claim refuted by measurement, two repeats and the stop unchanged. Fixed in Codex: Codex: a Copilot, both test files: Unchanged: the 300-character P2 (fifth posting; fixed in Anchors verified for both fixes: the pre-fix code warns Local at this tip: @codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7c2856349e
ℹ️ 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".
| consumer = _consumer(binding) | ||
| sinks = [("secret_ref", binding.get("secret_ref"))] | ||
| if isinstance(consumer, dict): | ||
| sinks += [(f"consumer.{m}", consumer.get(m)) for m in CONSUMER_IDENTIFIERS] |
There was a problem hiding this comment.
Avoid treating opaque consumer IDs as raw secrets
When holder_ref or fetch_identity is a legitimate opaque identifier containing 40 or more alphanumeric characters—for example, a SHA-1-derived principal ID—it satisfies the declared 1–200-character identifier grammar, but _B64ISH.fullmatch() also classifies it as secret-like. Adding both identity fields to these sinks therefore emits a hard baked-secret error for a conforming record and blocks validation during the additive release. Restrict the broad base64 heuristic to secret_ref, or use stronger evidence before applying it to identity fields.
AGENTS.md reference: AGENTS.md:L9-L10
Useful? React with 👍 / 👎.
|
Bot round 6 disposition — the bench has converged: NO new findings. Every comment on this round re-posts an item already disposed, each citing a pre-fix head. Verified at the current tip
Arc summarySix rounds, twelve distinct findings taken, each with its own test — and every predicate-tightening paired with a negative control, so a fix that cost the check its real catches fails rather than passes quietly:
Three claims refuted on the record, with evidence rather than assertion: mirroring stub-exclusivity into the projected major (it would add a refused-at-the-major shape that no deprecation code warns about — the very defect four council seats convened over), and Copilot's import claim, twice, measured. Anchors verified for every fix, never assumed: each repair was re-run against the pre-fix code to confirm the defect was real and that the test names the thing that kills it. One item stopped, not guessed — the reporting scope for a dangling This PR is ready for review on its merits. Do not merge without the orchestrator's cut decision — §5.3 is deliberately unperformed, and §6.3/§6.5 are honestly unticked because the cut is what discharges them. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 41 out of 41 changed files in this pull request and generated no new comments.
Suppressed comments (3)
Previously missed (1) — in code that hasn't changed since the last review.
contracts/schemas/xfactory-credential-contracts.schema.yaml:54
- The access_mode description says “a variant spelling and an absent mode both validate today”, but
access_modeis required for each requirement item (see therequired:list just above). This makes the description inaccurate/misleading for schema consumers.
its own additive act. It is typed as an unconstrained string on
THIS major because closing it would refuse a value the current
major accepts, which is the breaking class however sensible the
vocabulary looks: a variant spelling and an absent mode both
validate today. The canonical validator warns
tests/credential_contracts/test_scaffolded_repo_conformance.py:34
from major_projection import ...relies on the test module directory being onsys.path(pytest’s prepend import mode). Under--import-mode=importlib(explicitly supported elsewhere in this repo), this import can fail. Consider making the helper import explicit by adding this directory tosys.pathbefore importing.
tests/credential_contracts/test_consumer_block_phasing.py:27from major_projection import ...depends on the test module directory being onsys.path. In this repo,--import-mode=importlibis treated as a supported configuration, and in that mode this import can fail. Make the helper import explicit (e.g., add the local directory tosys.pathbefore importing).
Provenance — merged on Brett Heap's explicit in-session word, 2026-08-30Brett's instruction to the orchestrating session: "merge #516, file the deprecations issue, successor for the ref point." The |
…l binding declares who holds it and what it fetches with) (#526) * Cut contract-v2.4: bump the bundle, resolve the introducing release, 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 * Build the contract-v2.4 digest inventory after the bundle bump 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 * Tick the realization tasks and record the realization evidence 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 --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
…air by the rule rather than by hand (#502) THE RULE AS DRAFTED WAS STRICTLY NARROWER THAN THE PER-PACKET TEXT IT CLAIMS TO SUBSUME, and the live pair proves it. `add-binding-consumer-identity` is fully realized — PR #516 squash `5e8a33cf`, the cut `contract-v2.4` at `afdf0e88`, tag published and verified — and its archive is blocked by exactly this rule's shape: its task 7.2 greps canon for the requirement title and FAILS BY DESIGN while `add-notebook-hosting-credential-custody` is unarchived. That same 7.2 carries a CONVERSION CLAUSE ("if the order ever inverts, the block CONVERTS TO ADDED first") which the general rule did not reach at all. A general rule that reaches less than the per-packet text it replaces is a narrowing wearing a generalization's label. Both amendments ADD to the already-open MODIFIED block; the restated canon text is untouched and still byte-identical, verified with the family's own derivation (8 canon units, 0 not carried, 0 scenario titles missing). A. THE CONVERSION CLAUSE — one body paragraph plus `#### Scenario: The modifying change converts its block rather than waiting`. Re-shaping the block to `## ADDED` does NOT dissolve the obligation: the antecedent attaches to the PAIRING, not to the block's form, and conversion leaves two changes adding one requirement — the ordering question unresolved and no longer declared anywhere. Conversion is lawful ONLY AS A PAIRED ACT ruled by the authority that ratified both packets: one ruling amends BOTH, the adding change strikes or re-scopes its addition, and the converting block RETAINS the `Modified over` marker as provenance. That retention is a retention, not a new marker obligation — `document-lifecycle` scopes the form's requirement to MODIFIED blocks and this widens it in no way. An unpaired conversion is a breach whose surviving evidence is the D5 collision class's own subject: an active addition for a title canon then carries. The "SHALL NOT be read as the source" paragraph is widened to name the per-packet conversion clauses alongside the pre-archive `grep`, so the subsumption is stated rather than assumed. B. THE FALSIFIED-SCENARIO OBLIGATION — one body paragraph plus `#### Scenario: Landed reality falsifies the adding change's scenario before its archive`. The SAFE order holds the adding change open while the repository moves under it, so a cut contract, a merged realization or a promoted specification may falsify a scenario the archive would then promote. The ADDING change SHALL amend that scenario BEFORE it archives, by the route a ratified packet's amendments take and with its owner consenting; the ordering obligation is UNCHANGED by the falsification, which is never itself licence to invert the order or to convert the block. C. THE WORKED DISPOSITION — new proposal.md section "The one live pair this rule already disposes". DISPOSED AS (a), CHAIN ORDER: `add-notebook-projection-identity` → `add-notebook-hosting-credential-custody` → `add-binding-consumer-identity` (custody's own task 6.2 holds it open on projection-identity; #516's task 7.3 records the same dependency from the far end). Three obligations, all STATED and none PERFORMED here: * CUSTODY OWES THE FIFTH-SCENARIO AMENDMENT under (B). Its ADDED scenario "The published binding shape cannot yet express the access identity" says "the shape carries no consumer or access-identity field". `contract-v2.4` FALSIFIED IT: the published 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`). Archiving custody unamended IN THE CHAIN ORDER would promote a scenario the repository's own published schema contradicts — the safe order delivering the loss the unsafe order was supposed to have a monopoly on. New tasks § 6.6 carries it. * `add-binding-consumer-identity` OWES THE MARKER, already § 6.1; § 6.2 now records that its own § 7.4 obliges the carriage diff to be re-run because the marker touches the block (a marker is not a carriage unit, so the answer does not move). * CONVERSION WITHOUT PAIRING was considered and is FORBIDDEN by (A). It is the one route that would unblock #516's packet today without waiting on custody. § Why, § What Changes and § What this proposal does NOT claim are corrected where they called all four pairs benign — that is now false for this one, and the falsification is named rather than averaged back in. D. OQ-3 STAYS OPEN, with the note that disposition (a) creates no second-ADDED population — chain order leaves exactly one addition for the title throughout — and that (A) forecloses the unpaired route into it. The population stays zero by this packet's own disposition rather than by luck. NOT DONE, DELIBERATELY: OQ-1/2/4/5 unsettled, D1/D2/D3/D5 untouched, no § 1 task ticked, and NOTHING written into `add-binding-consumer-identity`'s or `add-notebook-hosting-credential-custody`'s change directories — both amendments are post-ratification acts on ratified packets that this change only OBLIGES. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` valid; `--all --strict` 80 passed, 0 failed; same-clock doc-health against an origin/main clone — 0 NEW findings. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
…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]>
… 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]>
…rker for MODIFIED-over-a-sibling's-ADDED (#502) (#504) * Propose govern-sibling-added-modified-deltas: the MODIFIED-over-a-sibling's-ADDED shape gets a rule, an arm and a marker (#502) PROPOSAL ONLY. `Status: draft`, no `Ratified:` line. Brett authorized the DECISION TO FILE on 2026-08-29, verbatim "file the successor now", out of the §7.4 sitting on PR #497; `.openspec.yaml` records that and says plainly that it does not reach this packet's content. Five decisions are flagged for veto and five open questions are routed to the sitting. THE THREE HOLES ISSUE #502 MEASURES, AND WHAT THIS PACKET DOES ABOUT EACH. 1. NO NORMATIVE RULE REACHES IT. `release-realization`'s "Ordered deltas and branch vocabulary" has the antecedent "already MODIFIED by an active ratified change", in its body and in its only scenario; a sibling that ADDS does not satisfy it. Two of the four live pairs cite that rule in their own delta preamble — one as though it applied, the other carrying the corrected reading only because a seat caught it. The packet MODIFIES that requirement to EXTEND the antecedent to a requirement an active ratified change ADDS (the two antecedents are disjoint by construction, a requirement being either one canon carries or one it does not), and adds the archive-ordering obligation in the same requirement. Both promoted body sentences and both promoted scenarios are restated byte-identical; everything added is new text, so the currency family reports zero against this packet's own delta and `_LEDGER_SUBJECTS` gains no row — measured, not argued. 2. NO ARM EVALUATES IT. `modified_block_currency.py` drops the block at `if status == "pending": continue`, before any arm runs, so the arms' silence is uncomparability rather than clearance. The packet adds a `doc-health` requirement for a new finding class that evaluates the PAIRING — undeclared, misdeclared, self-referential; SILENT on the fourth state, declared and resolving, because a standing row for a correct pair is an advisory nobody should act on. THE 2026-08-27 RULING IS NOT REOPENED: nothing compares requirement text and no fourth comparison arm is added. `warning` at launch, the family staying absent from `FAMILY_RESOLUTION`; the flip follows the discharge of the standing four and is not proposed here. The class renders through a registered `_ArmTemplate` per the fifth-class rule — one template, one shape, one map entry — with the three states carried in one interpolated clause on the `TEMPLATE_UNRESOLVED` precedent. 3. NO MARKER DECLARES IT, AND THE ORDERING HAS NO BACKSTOP. `document-lifecycle` gains a THIRD reserved form, `**Modified over `<basis change-id>`'s addition by <change-id> (<date>):**`, one paragraph inside the MODIFIED block, recognized by a complete prefix and never by prose, naming NO units and therefore never a suppression, never a defective marker, and never a carriage unit. The proposal cross-reference stays owed and is explicitly not a substitute: it exists in 4 of 4 today and is measured over-broad — the same four proposals each name two to three other active changes as whole tokens, only one of which is the adder. For the ordering, `doc-health` gains a second class reporting an active ADDED block for a title canon already carries, which is the surviving evidence of the unsafe archive order and the only mechanical backstop that can exist from inside a health run; its population is ZERO today, which is the argument for landing it before the first instance rather than after. MEASURED AT 91cf0a46: 19 active MODIFIED blocks, 15 `canon`, 4 `pending`, zero markers, all four adding siblings `ratified`. Predicted movement +4 `warning`, zero in every other band. Four is the live number and eight the cumulative one — LQ-C5 counted the docstring's historical seven plus #497's block; LA-C2's own return says four. IT DOES NOT CLOSE #502 HERE, and the proposal says why: both seats bound the change that SURFACED the gap not to close it, and an unratified proposal closing a governance issue would be the shape #502 complains about. It states that it MAY say `Closes #502` on archive, as intent rather than as an act. Validated: `openspec validate govern-sibling-added-modified-deltas --strict` and `--all --strict` (79 passed, 0 failed); `python3 -m pytest tests/doc-health` 1333 passed; the family run over this tree reports 0 `warning` and 8 `info`, none of them naming this packet's delta. Co-Authored-By: Claude Fable 5 <[email protected]> * Re-anchor the packet at the catch-up merge, and correct four claims the two days since 91cf0a46 spent (#502) MECHANICAL CLEANUP ONLY. `Status: draft` is unchanged, no `Ratified:` line is added, no § 1 task is ticked, and D1/D2/D3/D5's rulings are untouched. The packet sat orphaned for two days while `main` moved 67 commits under it; every fix below is a claim that measurement made false, corrected to what the tree at the merge now says. 1. RE-MEASURED AT THE MERGED TIP, as tasks.md § 4.2 obliges at every catch-up rather than permits. Run with the currency family's own `resolve` at `7f656980`, the `main`-side parent of the catch-up merge: **20 active MODIFIED blocks, 16 `canon`, 4 `pending`** (was 19/15/4 at `91cf0a46`). THE PENDING SET DID NOT MOVE — the same four pairs #502 measured, zero markers, all four adding siblings still `ratified`. The twentieth block is `add-structured-scope-substrate`'s (#525) over `release-realization`'s "Realization axis declaration", a DIFFERENT requirement of the same spec, resolving `canon`. Over the branch tree WITH this packet present the same resolver reads 21/17/4, the twenty-first being this packet's own block resolving `canon` — § 4.2 measured, not restated. Every `91cf0a46` anchor in proposal.md, tasks.md § 4.1/§ 4.2 and the README row is re-anchored, and § 7.5's "stays owed" is corrected to SPENT: § 7.2's reserved flip landed at `7f656980` (#529). 2. THE MARKER FORM'S DATE FIELD NOW AGREES WITH ITS OWN DELTA (Copilot's finding). The README row wrote `(<date>)`; `document-lifecycle`'s ADDED requirement requires `(<YYYY-MM-DD>)`. The README row spells it the way the normative text does. 3. THE `release-realization` DELTA PREAMBLE NAMES ITS NEIGHBOUR INSTEAD OF BEING TRUE BY SILENCE. "no other active change writes it" now reads "no other active change writes THIS REQUIREMENT", and names `add-structured-scope-substrate`, which holds an active MODIFIED block on the same specification over "Realization axis declaration" — a different requirement this block neither restates nor touches, raising no ordering question because the currency family's ordering arm groups by `(capability, requirement)`. 4. THE `FAMILY_RESOLUTION` CONTRADICTION, RECONCILED TO MEASURED REALITY. The packet asserted in § Impact and in the `doc-health` delta that the family "stays absent from `FAMILY_RESOLUTION`". It does not: `families.py:117` carries `"modified-block-currency": CONTESTED`, landed at `7f656980` (#529, 2026-08-31) as the second half of § 7.2's flip. That table has NO PER-CLASS GRAIN — `runner.main` applies it by `Finding.family` alone — so it reaches both classes this change adds; measured, all 8 findings the family emits on this tree carry `class="contested"`. THE CONSEQUENCE IS CARRIED RATHER THAN DROPPED. A pairing finding discharged by its marker is a `contested` finding that vanishes, and `report.uncited_resolutions` keys on `(family, repo, path)` — and it is measured that NONE of the four pending delta paths carries another finding of this family (each change holds exactly one MODIFIED block, and a pending block is dropped before the arms run), so all four keys would vanish outright and raise an `error` on the night each marker lands. THE ANSWER IS WORKED FROM HOW THIS FAMILY'S EXISTING CLASSES DISCHARGE TODAY, in two limbs: (i) § 6's marker sweep is SEQUENCED BEFORE the class lands, so it launches at a population of zero — a finding never emitted never vanishes, and this is the discipline `promotion-fidelity`, `duplicate-packet` and this family's own scenario-title flip each observed before joining the table; (ii) where sequencing is unavailable, the act that ADDS the marker records the citation the contested-finding rule already requires, in the same act. § 6.4's prohibition is NARROWED to what it always guarded — no disposition standing IN PLACE OF a marker — not lifted. New tasks § 6.5 (the sequencing) and § 2.11 (the exact set launches empty) carry it. AND THE CANON/CODE CONTRADICTION IS NAMED RATHER THAN INHERITED: #529 landed the row and amended no specification, so promoted canon still reads "The family SHALL remain absent from `FAMILY_RESOLUTION`" (`openspec/specs/doc-health/spec.md:2088`, scenario at `:2126`). NOT this packet's to resolve; D4's design is stated so it is sound under either limb. D4 STAYS A FLAGGED DECISION, re-argued from the true ground rather than silently redesigned: the band half is unchanged and still vetoable, the absence half is spent, and the veto's cost is now named. Consequently § 8.1's archive gate and § Impact's predicted movement are stated as the CONDITIONAL they now are: `0 warning` under the sequencing D4 asks for, `+4 warning` against the population undischarged, and a run matching neither is the finding. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` valid; `--all --strict` 80 passed, 0 failed; `pytest tests/doc-health` 1339 passed; `validate-manifest-digests.py` 150 digests verify; same-clock doc-health against an origin/main clone — 0 NEW findings, 0 gone, identical severity lines. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Close the two routes around the archive order, and dispose the live pair by the rule rather than by hand (#502) THE RULE AS DRAFTED WAS STRICTLY NARROWER THAN THE PER-PACKET TEXT IT CLAIMS TO SUBSUME, and the live pair proves it. `add-binding-consumer-identity` is fully realized — PR #516 squash `5e8a33cf`, the cut `contract-v2.4` at `afdf0e88`, tag published and verified — and its archive is blocked by exactly this rule's shape: its task 7.2 greps canon for the requirement title and FAILS BY DESIGN while `add-notebook-hosting-credential-custody` is unarchived. That same 7.2 carries a CONVERSION CLAUSE ("if the order ever inverts, the block CONVERTS TO ADDED first") which the general rule did not reach at all. A general rule that reaches less than the per-packet text it replaces is a narrowing wearing a generalization's label. Both amendments ADD to the already-open MODIFIED block; the restated canon text is untouched and still byte-identical, verified with the family's own derivation (8 canon units, 0 not carried, 0 scenario titles missing). A. THE CONVERSION CLAUSE — one body paragraph plus `#### Scenario: The modifying change converts its block rather than waiting`. Re-shaping the block to `## ADDED` does NOT dissolve the obligation: the antecedent attaches to the PAIRING, not to the block's form, and conversion leaves two changes adding one requirement — the ordering question unresolved and no longer declared anywhere. Conversion is lawful ONLY AS A PAIRED ACT ruled by the authority that ratified both packets: one ruling amends BOTH, the adding change strikes or re-scopes its addition, and the converting block RETAINS the `Modified over` marker as provenance. That retention is a retention, not a new marker obligation — `document-lifecycle` scopes the form's requirement to MODIFIED blocks and this widens it in no way. An unpaired conversion is a breach whose surviving evidence is the D5 collision class's own subject: an active addition for a title canon then carries. The "SHALL NOT be read as the source" paragraph is widened to name the per-packet conversion clauses alongside the pre-archive `grep`, so the subsumption is stated rather than assumed. B. THE FALSIFIED-SCENARIO OBLIGATION — one body paragraph plus `#### Scenario: Landed reality falsifies the adding change's scenario before its archive`. The SAFE order holds the adding change open while the repository moves under it, so a cut contract, a merged realization or a promoted specification may falsify a scenario the archive would then promote. The ADDING change SHALL amend that scenario BEFORE it archives, by the route a ratified packet's amendments take and with its owner consenting; the ordering obligation is UNCHANGED by the falsification, which is never itself licence to invert the order or to convert the block. C. THE WORKED DISPOSITION — new proposal.md section "The one live pair this rule already disposes". DISPOSED AS (a), CHAIN ORDER: `add-notebook-projection-identity` → `add-notebook-hosting-credential-custody` → `add-binding-consumer-identity` (custody's own task 6.2 holds it open on projection-identity; #516's task 7.3 records the same dependency from the far end). Three obligations, all STATED and none PERFORMED here: * CUSTODY OWES THE FIFTH-SCENARIO AMENDMENT under (B). Its ADDED scenario "The published binding shape cannot yet express the access identity" says "the shape carries no consumer or access-identity field". `contract-v2.4` FALSIFIED IT: the published 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`). Archiving custody unamended IN THE CHAIN ORDER would promote a scenario the repository's own published schema contradicts — the safe order delivering the loss the unsafe order was supposed to have a monopoly on. New tasks § 6.6 carries it. * `add-binding-consumer-identity` OWES THE MARKER, already § 6.1; § 6.2 now records that its own § 7.4 obliges the carriage diff to be re-run because the marker touches the block (a marker is not a carriage unit, so the answer does not move). * CONVERSION WITHOUT PAIRING was considered and is FORBIDDEN by (A). It is the one route that would unblock #516's packet today without waiting on custody. § Why, § What Changes and § What this proposal does NOT claim are corrected where they called all four pairs benign — that is now false for this one, and the falsification is named rather than averaged back in. D. OQ-3 STAYS OPEN, with the note that disposition (a) creates no second-ADDED population — chain order leaves exactly one addition for the title throughout — and that (A) forecloses the unpaired route into it. The population stays zero by this packet's own disposition rather than by luck. NOT DONE, DELIBERATELY: OQ-1/2/4/5 unsettled, D1/D2/D3/D5 untouched, no § 1 task ticked, and NOTHING written into `add-binding-consumer-identity`'s or `add-notebook-hosting-credential-custody`'s change directories — both amendments are post-ratification acts on ratified packets that this change only OBLIGES. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` valid; `--all --strict` 80 passed, 0 failed; same-clock doc-health against an origin/main clone — 0 NEW findings. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: the disposition retires with its basis, and canon catches up with #529's row (#502) TWO FINDINGS, BOTH ABOUT A REMEDY THIS PACKET PRESCRIBED WITHOUT READING THE MACHINERY THAT WOULD CARRY IT. Neither is a wording repair. P1 — THE PRESCRIBED DISPOSITION OUTLIVED ITS PURPOSE AND SILENCED THE ARMS. `fam_modified_block_currency` calls `promotion_fidelity.disposed(...)` BEFORE it calls `resolve(...)`, and dispositions match `(repo, path)` with an optional `(requirement)` narrowing and NO finding-class grain (`promotion_fidelity.py:714-773`). So the entry the packet told an author to record for a pairing finding does not stop at that finding: it drops the block before it is resolved, and it goes on dropping it AFTER the declared basis archives and the requirement enters canon — the first moment the three comparison arms can read that block at all. A stale MODIFIED block could then delete newly promoted clauses and scenarios unreported, which is the exact defect family those arms exist for. The remedy would have ended by disabling the checks its own subject had finally become eligible for. THE FIX WORKS WITH THE MACHINERY'S GRAIN RATHER THAN AROUND IT, in the `doc-health` pairing requirement: * THE TWO ROUTES ARE ORDERED, NOT OFFERED. "THE CLASS'S REMEDY IS THE MARKER, AND THE TWO ROUTES TO IT ARE ORDERED RATHER THAN OFFERED" — (1) SEQUENCING IS THE ROUTE (declare before the check runs; "a finding never emitted never vanishes and owes no citation, so this route ends the question rather than answering it"), and only then (2) THE CITATION IS THE EXCEPTION, AND IT CARRIES ITS OWN RETIREMENT. § 6.5 already sequenced the sweep first; the delta now says so normatively instead of leaving the two side by side. * GRAIN. "The entry SHALL name the REQUIREMENT and not the delta path alone, so that it reaches the one block it answers rather than every finding this family raises against a delta file that may carry several blocks." * RETIREMENT, WITH AN OWNER AND AN EVIDENCE. "The entry SHALL be retired when the declared basis archives, that being the act after which it silences a comparison instead of answering a disappearance. The retirement is an obligation of THE ARCHIVING CHANGE — the act that promotes the requirement is the act that makes the arms able to read the block — and it is evidenced at that change's own archive gate. The MODIFYING change's archive gate SHALL confirm that no such entry stands over its block." The ORDER of the two archive acts stays `release-realization`'s and is neither restated nor widened, per D1. * FALSIFIABLE, by scenario. New `#### Scenario: The declared basis archives while a pairing disposition still stands` — the entry MUST be retired by the archiving act, "the run's silence on that block MUST NOT be read as those arms clearing it, the disposition being read before the block resolves so that the silence is suppression rather than comparison", and the modifying change MUST NOT meet its archive gate while it stands. The existing dispositioned-finding scenario is amended to say the entry reaches THE WHOLE BLOCK rather than the class, and to require the requirement narrowing. P2 — THE PACKET NAMED A CANON/CODE CONTRADICTION AND ARCHIVED INTO IT. Promoted `doc-health` says the family "SHALL remain absent from `FAMILY_RESOLUTION`" (`openspec/specs/doc-health/spec.md:2088`) and rests a MUST on that absence at `:2126`. `7f656980` (PR #529, 2026-08-31) added `"modified-block-currency": CONTESTED` at `families.py:117` and amended NO specification. An ADDED-only delta requiring both new classes to be `contested` while that requirement stands would archive two mutually contradictory requirements into one specification — and this packet is not a bystander to the row: both its classes are `contested` BY it and its whole discharge design is built on it being real. THE FIX IS A `## MODIFIED Requirements` BLOCK over "A modified-block-currency finding its own class map cannot place is itself a finding", superseding the absence rule honestly and PRESERVING what it protected: * THE ROW IS RECORDED, CITED. "THE FAMILY IS PRESENT IN `FAMILY_RESOLUTION`, AND THIS REQUIREMENT RECORDS THAT ROW RATHER THAN CONTRADICTING IT" — `families.py` reads the row "as of `7f656980` (PR #529, 2026-08-31)", the table "has NO PER-CLASS GRAIN", and "the finding this requirement defines is `contested` from that landing". * THE PROTECTIVE INTENT IS KEPT AND RE-SEATED. "THE PROTECTION THE ABSENCE BOUGHT IS OWED STILL, AND IT IS NOW OWED BY THE ACT RATHER THAN BY THE TABLE": a finding designed to stop being emitted as soon as the class map is extended SHALL NOT become an uncited-resolution error for having worked, so the act that EXTENDS THE MAP records the citation in the same act, and SHALL NOT record it IN PLACE OF the extension. * RECONCILED WITH P1. The citation "SHALL be scoped so that it cannot outlive the disappearance it answers", at requirement grain, "retired once the report that first omits the finding has been rendered, that report being the last one the entry can be read on" — the same mechanical reason, stated once in each place it binds. * The scenario bullet at `:2126` is REPLACED rather than dropped: "the disappearance MUST NOT be reported as an uncited resolution, AND the act that extended the map MUST carry the citation that makes it so, the family being PRESENT in `FAMILY_RESOLUTION`". One new scenario (`The family's resolution class is read from the table and not from this requirement`) pins where a reader gets the answer. * THIS REGULARIZES #529 rather than reverting it. No code moves: the row and `_LAUNCH_SEVERITY` stay exactly where that PR put them; what moves is promoted text, which is what #529's landing left owed. THE THIRD `FAMILY_RESOLUTION` MENTION IS NAMED AND LEFT STANDING, AS A DECISION. Canon says `FAMILY_RESOLUTION` three times; two are superseded. The third is `:1726`, inside "Currency of an active change's MODIFIED requirement blocks" — the requirement D2 declines to open. It is not in the same position, and the difference is in the promoted text: `:1726` sits under "This family SHALL be advisory AT LAUNCH" and its own paragraph RESERVES the reversal ("Raising the scenario-completeness arm to `error` and adding the contested classification are ONE later decision taken together by ruling, and SHALL follow the discharge of the standing population rather than precede it") — which is exactly what `7f656980` took, together, on a measured population of zero. A launch state a requirement provides for leaving is SPENT when the reserved act is taken; `:2088` provides for nothing, being an unconditional SHALL with a MUST resting on it. Superseding `:1726` anyway means restating a ~290-line requirement with 14 scenarios — the cost D2 measured and declined. Recorded in the delta preamble, in D2 and as tasks § 4.6, so a seat can reverse it. CARRIAGE OF THE NEW MODIFIED BLOCK — DERIVED, NOT TRANSCRIBED. The carried lines were sliced from the promoted spec itself, so byte-identity is a property of the construction. Canon carries 35 units for that requirement (10 body sentences, 6 scenario titles, 19 scenario bullets). THIRTY-THREE are restated byte-identical. TWO are dropped and both are named as code spans by ONE marker: **Removed from canon by govern-sibling-added-modified-deltas (2026-08-31):** the `FAMILY_RESOLUTION`-absence body sentence, and the last bullet of "The class map grows the pattern the drift named" Measured with the family's own `promoted`/`resolve`/`suppression` and its three arms over this tree: status `canon`, 2 units suppressed, 0 defective markers, 0 scenario-title findings, 0 ledger findings, 0 marker-defect findings. The marker's reason clause carries no code span, so it parses as a reason and the marker names exactly the two units (an earlier draft put backticks in the reason and silently turned them into two junk names). The `release-realization` block is unchanged and still reads zero. PROSE BROUGHT FORWARD. proposal.md: § Why's branch-tree read moves 21/17/4 → 22/18/4 (the twenty-second block is this packet's own `doc-health` one, and it resolves `canon`); § What Changes gains the MODIFIED-block bullet; § Impact's affected-specs, own-delta-reads-zero and `FAMILY_RESOLUTION` bullets are re-measured for two blocks; D2 keeps its measurement and gains "D2 IS ABOUT THOSE TWO REQUIREMENTS AND NOT ABOUT THE CAPABILITIES" plus the third-mention decision; D4 is re-argued from this ground and its limb 2 gains the grain and the retirement; the "one finding this packet will not quietly inherit" paragraph becomes "the contradiction this packet will not leave standing under itself"; a new NOT-CLAIMED line refuses any reversal of #529. tasks.md: 4.2 re-measured for both blocks, NEW 4.5 (the canon/code reconciliation) and NEW 4.6 (the third mention, left standing on purpose), with 2.11, 6.4, 6.5, 7.5 and 8.3 updated. README's active-change row carries the MODIFIED block, the ordered discharge path and the bounded citation. NOT DONE, DELIBERATELY: no code, no test and no fixture moves — F1/F2 remain unbuilt features; D1/D3/D5 untouched; OQ-1..OQ-5 unsettled; no § 1 task ticked; nothing written into any other change's directory. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` valid; `--all --strict` 80 passed, 0 failed; `pytest tests/doc-health -q` 1339 passed; full `pytest tests/ -q -m "not postgres"` 8281 passed, 21 skipped (the exact CI pin), 338 deselected, 0 failed; same-clock doc-health against an origin/main clone at `7f656980` — 58 findings each side, 0 NEW and 0 gone, headline unchanged at 5 critical / 4 error / 38 warning / 11 info. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: the unratified basis discloses or is reported (#502) Codex's only round-2 finding: `document-lifecycle` requires the reason clause of a `Modified over` marker naming an unratified basis to state that standing, and nothing read it. The pairing class fell silent the moment a marker named a matching sibling, so a marker that names its basis and says nothing about its acceptance passed as DECLARED AND RESOLVING — the disclosure obligation was declared in one capability and enforced in none. TAKEN AS A FOURTH REPORTED STATE, not as marker validation folded into MISDECLARED. MISDECLARED is defined by a basis that does not exist — "the change it names neither ADDS nor RENAMES to the title" — and its remedy is to name a different change. Here the basis exists, the pairing is right, and what is missing is a warning to the reader; one class row carrying two unrelated remedies would be the wrong finding wearing the right band. The states share one `_ArmTemplate` and one map entry either way, so the fourth state costs the registry nothing: it is one more branch of the interpolated `why`. UNDISCLOSED — a marker names an active change, other than this one, that does add or rename to the title, that change is NOT `ratified`, and the marker's reason clause does not carry the disclosure `document-lifecycle` requires of it. `document-lifecycle` stays the SOURCE and gains the FORM the check needs: the reason clause discloses by carrying the word `unratified`, read case-insensitively, in prose or as a code span. A checker asked to decide whether a sentence discloses would be the prose rule this whole marker design refuses; a reserved word is what the two existing forms already trade on. The enumerations move together: the doc-health requirement body ("EXACTLY FOUR STATES, and be silent on the fifth"), its arm-template paragraph, the "correctly declared" scenario (now scoped to a `ratified` basis) plus two new scenarios — the state reported, and its complement silent — the `## What Changes` bullets, § Impact's predicted movement, the README row, and tasks 2.2, 2.3, 2.5, 2.6, 2.9, 4.1, 6.1 and 8.1. The per-class counts do not move: two templates, two `FindingClass` entries, two `_CLASS_PATTERNS` entries, as before. LAUNCH POPULATION ZERO, MEASURED: all four live pairs have `ratified` bases (§ 4.1), so no marker the § 6 sweep writes owes the disclosure and the new state moves neither of § 8.1's figures. Two implementation facts follow and are recorded rather than left to be rediscovered — `sibling_titles` must carry the adding change's DECLARED STANDING (`active_blocks` never reads it for a pure adder), and the `Modified over` reason must be the whole tail after ` — `, because the `Removed from canon` path takes the reason from after the LAST code span and would swallow a code span written inside it. Gates: `openspec validate` strict green for the change and `--all` (80/80); `pytest tests/doc-health` green; full suite green; same-clock doc-health over the branch tree reads 5 critical / 4 error / 38 warning / 11 info, identical to both a baseline clone at the branch's merge-base with main (`7f656980`) and a worktree at the pre-edit tip — zero new findings against either. * Apply the Codex round: one block one state, and the marker's by-hand is the carrier (#502) Two P2 spec-text findings from the round-3 bench, both in this packet's ADDED requirements. The doc-health MODIFIED block over promoted canon is untouched and its three arms still read zero. FINDING 1 — the four states overlapped. A change carrying both an ADDED and a MODIFIED block for one title with no marker satisfied UNDECLARED and SELF-REFERENTIAL at once, and their scenarios' WHEN clauses overlapped too, so an implementation could emit two findings with two remedies for one defect and still claim to report "EXACTLY FOUR STATES". The states are now MUTUALLY EXCLUSIVE BY DEFINITION: classification is ORDERED, the self-addition condition is examined FIRST and excludes the block from every state below it, and each state's antecedent carries that exclusion in its own words so the branch and the delta text say the same thing. The two scenarios' WHEN clauses are disjoint and the self-referential scenario asserts exactly one finding. FINDING 2 — only the basis was validated. A marker with the right basis and a `by` naming an unrelated change passed as DECLARED AND RESOLVING and promoted with FALSE PROVENANCE. document-lifecycle now REQUIRES the `by` identifier to EQUAL the change whose delta carries the block — the reading the other two reserved forms already have, and the reading the conversion clause's marker retention already assumes, the converting change being the same change that wrote the block — and doc-health folds the comparison into MISDECLARED, widened to two halves with the remedy prose split per half so each stays singular. The state count stays FOUR. Tasks 2.1 (resolvable -> equal to the carrier, with recognition kept apart from validation so a wrong `by` reports misdeclared instead of falling back to undeclared), 2.5, 2.6 and 2.9 carry both fixes; the enumeration sweep moves proposal.md's code_surface and summary bullets and the README row. Catch-up merge of origin/main first (PR #504 was CONFLICTING on README's active-changes list; resolved as a union). Section 4.2's re-measure obligation re-run against the new main-side parent 9af98c4d: openspec/specs/ is byte-identical to 7f656980, both of this packet's MODIFIED blocks still resolve canon, the population still reads 20/16/4 with the same four pairs, zero markers and four ratified adders, and the family emits the same 8 findings, none against this packet. Gates: openspec validate --strict and --all --strict green (81/81); tests/doc-health 1339 passed; full suite 8343 passed, 21 skipped (pin), 338 deselected, 0 failed; same-clock doc-health against a baseline at 9af98c4d identical at 5 critical / 4 error / 38 warning / 12 info, ZERO new findings. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: a map extension cites nothing, because nothing disappears (#502) One P1 from the round-4 bench, on the doc-health MODIFIED block over the promoted unplaced-class requirement. The round-2 catch-up re-seated the absence's protection as an obligation — "THE PROTECTION THE ABSENCE BOUGHT IS OWED STILL, AND IT IS NOW OWED BY THE ACT" — requiring the act that extends the class map to record a health/dispositions.yaml citation in the same act. Measured against the machinery, that rule fires on no reachable state, and obeying it is itself the defect. THE MEASUREMENT, taken before the rewrite rather than reasoned from the shape of the rule. report.uncited_resolutions keys a resolution on (family, repo, path) — Finding.match_key(), which reads neither rule text nor severity — and _drift_findings constructs the unplaced-class finding from the repo and path of the very finding it names. The two therefore share a key, verified directly against the module: extending the class map changes what classify() PLACES and nothing an arm EMITS, so the named finding is still emitted at that same key on the next run, the key never leaves `current`, and uncited_resolutions returns []. No citation could ever have been owed. AND RECORDING ONE WOULD HAVE BEEN THE DEFECT. promotion_fidelity.disposed is consulted at modified_block_currency.py:1386-1390, BEFORE resolve(), at family/repo/path grain with an optional requirement narrowing and no finding-class grain — so the entry would suppress the three comparison arms over that block, hiding the SURVIVING finding on every report until retirement. A map extension classifies a defect; it does not fix one. THE REWRITE states the prohibition Codex asks for: an act extending the class map SHALL NOT record a disposition for the finding it reclassifies. Three body paragraphs replace the two removed — the measurement, the prohibition, and what the uncited-resolution rule still reaches unchanged (some OTHER act emptying a (repo, path) the previous report carried, which promoted canon already governs and which this requirement neither widens nor restates). The replacement bullet of "The class map grows the pattern the drift named" now says no citation AND no disposition is recorded, and a new scenario makes the prohibition falsifiable from both sides. THE PAIRING DISPOSITION DESIGN IS UNDISTURBED, and it is load-bearing for the opposite mechanical reason: a pairing finding sits on a `pending` block whose three arms do not run, so when the marker discharges it NOTHING replaces it at that key — measured in the proposal as all four pending delta paths carrying no other finding of this family. There the disappearance is real and the citation genuinely owed; its grain and retirement bound an entry that would otherwise silence the arms once the basis archives. One mechanism ends a key, the other never touches it, and the two texts now say so distinctly. § 6.4 and 2.11 are unchanged. CARRIAGE RE-DERIVED with the family's own suppression() after the rewrite, since the operative text moved: canon still 35 units (10 body, 6 scenario titles, 19 scenario bullets); the block's own units 45 -> 56 (body 16 -> 23, titles 7 -> 8, bullets 22 -> 25); the SAME two units missing and the SAME two suppressed by the SAME single marker; 0 defective. All three arms read zero — the rewrite touched only text canon does not carry. The delta preamble's new-text tally moves to four body paragraphs, one replacement bullet and two scenarios, and the marker's tail to "the four paragraphs above". Prose sweep: proposal.md § What Changes, D2, D4 (which gains the explicit two-mechanisms contrast) and § does-not-claim; tasks 4.2 (the re-derived figures) and 4.5; the README row. Gates: openspec validate --strict valid, --all --strict 81 passed / 0 failed; pytest tests/doc-health 1339 passed; full pytest -m "not postgres" 8342 passed, 21 skipped (the pin), 338 deselected, 1 failed — the --require-realization arm of test_release_mode_field_is_preserved_on_the_ real_repository, a 30s subprocess timeout that REPRODUCES IDENTICALLY on this branch's merge-base 9af98c4d, so it is environmental and not this round's. Same-clock doc-health against a merge-base baseline tree also named openxFactory: 59 rows on each side, byte-identical, ZERO new findings. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: a rename is a basis everywhere or nowhere, and one's own rename is not a collision with oneself Two P2 findings, both on the RENAMED-basis seam, both verified against the code and the promoted text before a word moved. SELF-REFERENTIAL IS THE CARRIER'S OWN ADDITION, AND NOTHING ELSE. The state read "the change that carries the block is itself a change that ADDS or RENAMES to the block's title", which labels the rename-and-amend shape a defect. Promoted canon decides that shape the other way: `openspec/specs/doc-health/spec.md:1568-1574` resolves a MODIFIED title FIRST against the carrying change's own `## RENAMED Requirements` block and runs the three comparison arms against canon under the OLD name, with the scenario at `:1783-1786` resting a MUST on it — and `modified_block_currency.resolve()` implements exactly that order (canon, own-rename, pending, unresolved), so the own-rename branch returns `own-rename` with a real basis and never reaches the `pending` shape this class reads. The literal reading would therefore have added a spurious warning where it reached and stood as unreachable words where it did not. The state is now the carrier's OWN `## ADDED Requirements` block for the title, because the defect is TWO TEXTS FOR ONE REQUIREMENT and a `## RENAMED` block carries a pair of titles rather than a second text; a new paragraph states the precedence, cites both promoted spans, and says what becomes of the residual shape whose rename names a `FROM:` title canon does not carry. The exclusivity ordering from the prior round survives verbatim, and MISDECLARED's basis half is rewritten as the EXACT NEGATION of the silent state's — a marker naming the carrier itself is misdeclared — so the narrowing leaves no block outside all five states. THE ORDERING RULE AND ITS BACKSTOP ARE EXTENDED, NOT NARROWED. The pairing side already accepted a basis that RENAMES to the title and `document-lifecycle`'s marker is already owed wherever "an active change ADDS or RENAMES to that title", but `release-realization`'s new ordering obligation reached additions alone and the D5 collision class scanned only ADDED blocks — so a rename-based pair had neither the pre-archive hold nor the post-archive finding. The antecedent and its operative text now reach a requirement an active ratified change ADDS OR RENAMES TO; the basis change (adding or renaming) archives first; the conversion clause amends the BASIS change's addition or rename; and the falsification clause says plainly that it reaches the adding case, a `## RENAMED` block carrying no scenarios of its own to falsify. The collision class now reads active ADDED blocks AND the `TO:` titles of active RENAMED blocks — the direction stated and argued: the `FROM:` half is a title canon is EXPECTED to carry, so reading it would report every lawful rename, while the `TO:` half is the collision, which is the half canon's own resolution rule reads. MEASURED, NOT ASSUMED. Collision population re-measured across both basis forms on this tree: 159 active `## ADDED Requirements` blocks, zero naming a title the promoted specification carries; ZERO active `## RENAMED Requirements` pairs, so the `TO:` half is zero by an empty set. Recorded in tasks 4.3, proposal § Impact and the delta. CARRIAGE RE-DERIVED. The `release-realization` MODIFIED block moved: canon still 8 units (2 body sentences, 2 scenario titles, 4 scenario bullets); the block's own units 40 -> 52 (body 17 -> 23, titles 6 -> 7, bullets 17 -> 22); ZERO uncarried, ZERO suppressed, ZERO markers, ZERO defective — all three arms read zero. The `doc-health` MODIFIED block was not touched by this round (its edits are all inside the two ADDED requirements) and re-measures unchanged at 56 block units with the same two units suppressed by the same single marker. Both recorded in tasks 4.2. SWEPT FOR ONE VOCABULARY: proposal `code_surface` (the collision reader gains RENAMED `TO:` titles; `sibling_titles` gains the ADDED-vs-rename discriminator the narrowed self-addition state needs), § Why hole 3 and its order table, § What Changes, § Impact, D5, OQ-3, the worked disposition; tasks 2.3, 2.4, 2.5, 2.6, 2.9, 3.1, 3.4, 4.2, 4.3; the README row; `document-lifecycle`'s marker requirement and its self-reference scenario, which already read "ADDS or RENAMES" and now say what the rename-and-amend shape is instead. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` and `--all --strict` green (81/81); `pytest tests/doc-health -q` 1339 passed; full `pytest tests/ -q -m "not postgres"` 8342 passed, 21 skipped (the pinned count), 338 deselected, 46 subtests passed, and ONE failure — the known environmental `test_release_mode_field_is_preserved_on_the_real_repository` 30s subprocess timeout, re-run in isolation on this branch (1 failed, 1 passed) and on the merge-base `9af98c4d` baseline, where it fails IDENTICALLY (1 failed, 1 passed), so it is not this branch's; same-clock doc-health against a merge-base (`9af98c4d`) baseline byte-identical after path normalization — zero new findings. No catch-up merge: PR #504 reports MERGEABLE. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: one pairing one marker, and the citation opens only where the arm is silent (#502) Round 6 on PR #504. Two P2 findings, both in the `doc-health` delta, each answered from the module rather than from the shape of the rule. FINDING 1 — MULTIPLE PAIRING MARKERS HAD NO CLASSIFICATION. `derive_units` preserves EVERY recognized marker in `block.markers` (`scripts/doc_health/modified_block_currency.py:777-790`), but the five states reasoned about a singular marker. A block carrying one valid `Modified over` marker and one naming a wrong basis satisfied MISDECLARED and DECLARED AND RESOLVING at once — the exactly-one-state promise broken, and the same false provenance accepted or refused according to which marker an implementation reached. BOUNDED AT THE SOURCE, ON THE PRECEDENT THAT EXPLAINS THE OTHER TWO FORMS. Neither promoted canon nor this packet bounded the count of any reserved form, and the reason is structural: `Removed from canon by` and `Merged into` NAME UNITS, so their declarations ACCUMULATE — both are read, each voided per NAME rather than wholly — and a bound on their count would bound how many units a change may lawfully remove. This form names no units; it declares ONE RELATION, so a second marker states a SECOND BASIS for one text and a block resting on two bases rests on neither. `document-lifecycle` therefore admits AT MOST ONE marker of this form per block, with its own scenario. `doc-health` NOW READS THE WHOLE MARKER SET AND READS ITS COUNT FIRST. The checks run: the carrier's own addition; then the COUNT of pairing markers; then, for the single marker a lawful block carries, its basis, its `by`, its disclosure. A block is DECLARED AND RESOLVING, or UNDISCLOSED, ONLY where EXACTLY ONE pairing marker stands and passes every check above it; otherwise it is placed by the FIRST check it fails. The number of REPORTED states stays FOUR — multiplicity is MISDECLARED's first GROUND, one state with one action and one template, the three grounds differing only in the interpolated clause. FINDING 2 — THE CITATION ROUTE COULD HIDE A CONCURRENT ORDERING DEFECT. `_arm_ordering` is armed by a COUNT of `ratified` writers and returns nothing below two of them, runs BEFORE resolution (`:1381-1387`), emits one finding per ratified block against that block's own delta path, and its findings are filtered through the SAME family/repository/path disposition read narrowed by the SAME requirement title. So a citation-route entry recorded for a pairing finding also hid the ordering finding over that block, and the packet's "suppresses nothing" was FALSE in that corner. FIXED BY AVAILABILITY, NOT BY MACHINERY — class-grained dispositions would have widened the code surface into `promotion_fidelity`, which this packet refuses. THE CITATION ROUTE SHALL NOT BE TAKEN while any active change OTHER THAN the block's own carrier, whose declared standing is `ratified`, writes a MODIFIED block for the same capability and requirement title; there SEQUENCING IS THE ONLY ROUTE. An entry can then exist only where the ordering arm has NO SUBJECT, so "suppresses nothing" is true BY CONSTRUCTION rather than asserted. The bound reads the arm's SUBJECT and not its current emit, and refuses at ONE other ratified writer rather than at two, because standing and the declaration between two writers are each one proposal edit away from turning silence into a finding a standing entry would then hide. POPULATION MEASURED ZERO: no capability-and-requirement title on this tree carries more than one active MODIFIED block at all. The retirement clause no longer claims the pre-archive interval is quiet by the pending state alone — it is quiet by this bound. CARRIAGE UNDISTURBED, RE-RUN AND ALL ZEROS. Every edit is inside the two `doc-health` ADDED requirements and `document-lifecycle`'s ADDED one. `release-realization`: 8 canon units, 52 block units, 0 markers, 0 suppressed, 0 defective. `doc-health`: 35 canon units, 56 block units, 1 marker, the SAME 2 suppressed, 0 defective. 0 title, 0 ledger and 0 marker-defect findings against either path. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` and `--all --strict` green (81/81); `pytest tests/doc-health` 1339 passed; full suite 8342 passed, 21 skipped, 338 deselected, 46 subtests passed, with the ONE known failure `test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]` — a `subprocess.TimeoutExpired` after 30 seconds — ISOLATED and re-run on the merge-base `9af98c4d` baseline, where it fails IDENTICALLY (1 failed, 1 passed), so it is not this round's; same-clock doc-health against that same merge-base baseline, both trees in directories named `openxFactory`, BYTE-IDENTICAL — zero new findings. No catch-up merge: PR #504 reports MERGEABLE. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: disclosure warns the reader, it does not open the gate (#502) Round 7 on PR #504. One P1 finding, in the `doc-health` delta at `:421`, and it is answered by widening the HOLD rather than by making the disclosed state noisy. THE FINDING. Writing the word `unratified` in a marker's reason clause moved the block into the silent state — while `document-lifecycle` excluded an unratified basis from the only archive-ordering obligation there is, whose antecedent (release-realization) attached to "a requirement an active RATIFIED change ADDS or RENAMES TO". So a disclosed pairing over a DRAFT basis was governed by nothing: the modifying change could archive FIRST and promote a requirement whose text no authority had accepted — the exact unsafe order the rule exists to prevent — with only the post-hoc collision check to report the damage. THE HAZARD KEYS ON THE UNPROMOTED TITLE, NOT ON THE BASIS'S STANDING, and the packet's own doctrine already said so everywhere but here. The collision class — "an active change still writing that title into canon" — carries no standing condition at all; the pairing class's action line already reads "hold the archive until the declared change promotes". The exclusion was the one clause out of step, and it left the backstop reporting the breach of an obligation that did not exist for that basis. `release-realization` — THE HOLD NOW BINDS FOR A BASIS OF ANY STANDING. The SHALL-NOT sentence is re-keyed off the back-reference and onto the title: a change carrying a MODIFIED block for a requirement the promoted specification does not carry SHALL NOT archive while that requirement is unpromoted, wherever an ACTIVE change ADDS it or RENAMES a promoted requirement TO its title. A new paragraph states why the requirement's two halves are keyed APART on purpose: the reference-and-declare half names a RATIFIED change because deltas are declared against an OUTCOME, and a packet no authority has accepted has none; the archive half asks that no requirement enter canon through a block written over text canon does not carry, a loss that is WORSE where the basis is a draft. An unratified basis SHALL RATIFY AND ARCHIVE before the modifying change's gate opens, and the hold ends in exactly three ways — that, the paired conversion on its own terms, or withdrawal of the modifying block. New scenario for the draft-basis-at-the-gate case. `document-lifecycle` — THE DISCLOSURE STAYS AND STOPS BEING AN EXEMPTION. The sentence scoping the ordering obligation away from an unratified basis is struck; the marker, the reason clause and the reserved word are unchanged. A new paragraph says what the disclosure IS: the reader's warning that no authority has accepted the text, discharging THIS requirement and nothing else — never a lifting of the hold, a consent to archive, or a claim that the requirement is settled. The scenario bullet that read the exclusion now reads the opposite, and a second bullet keeps this requirement out of stating the hold it defers to. `doc-health` — THE SILENT COMPLEMENT STAYS SILENT, AND THE PACKET SAYS WHERE THE HOLD IS ENFORCED. Keeping the disclosed-unratified case actionable would mis-locate it twice: the identical hold stands over EVERY pending pairing the check passes — ratified bases included — so one run's silence would mean two different things at two titles; and it would stand a permanent advisory over a block in good order whose only remedy, the basis's own archive, belongs to another packet and another owner. The hold is enforced where the act it forbids is taken, at the modifying change's archive gate, and the fact that gate reads is THIS FAMILY'S OWN RESOLUTION: while the block resolves `pending` the title is unpromoted and the gate is shut; when the basis archives the block resolves against canon, the three arms run, and the gate opens with them. Falsifiable without a finding over a correct pairing, with the collision class as the evidence a breach leaves. Two scenarios: the silent state's silence is not clearance, and the disclosed pairing at the gate is held and then released by the promotion. The "wider than the ordering obligation" sentence now names the HALF it is wider than. POPULATION — ZERO, MEASURED. The family's own resolver over this branch reads 22 active MODIFIED blocks, 18 `canon`, 4 `pending`; at the merge-base `9af98c4d` it reads 20/16/4, the two extra being this packet's own blocks. All four bases — `add-notebook-hosting-credential-custody`, `add-substantive-review-lane`, `add-identity-brokering`, `add-trust-anchor` — resolve `ratified` through `_standing`, so NO live pairing is held by the widening and the case it reaches is prospective. § 4.1 records the measurement and obliges its re-take at every catch-up merge, a base whose standing MOVES being the one input it exists to catch. No code moves: no class, no arm, no read is added, so `code_surface` and the § Impact and § 8.1 figures are unchanged. CARRIAGE, RE-DERIVED. The `release-realization` block's text moved and no other's: canon still 8 units, the block's own 52 -> 64 (body 23 -> 30, scenario titles 7 -> 8, scenario bullets 22 -> 26), ZERO uncarried, ZERO suppressed, ZERO markers, ZERO defective. The `doc-health` block was untouched (its edits are inside the two ADDED requirements) and re-reads at 56 units, 1 marker, the same 2 suppressed, 0 defective. Recorded in § 4.2; the preamble's figures move to SEVEN body paragraphs and SIX scenarios. GATES. `openspec validate govern-sibling-added-modified-deltas --strict` and `--all --strict` (81/81) green; `pytest tests/doc-health` 1339 passed; the full suite green at the pinned skip count; a same-clock doc-health run over the branch and over the merge-base is byte-identical — zero new findings. * Apply the Codex round: a declaration without its reason is defective, not complete (#502) Round 8's only finding (P2, tasks.md :34): the marker specification requires the complete prefix to be followed by ` — <reason>`, but recognition (2.1) ended at the prefix and the harvest (2.2) only optionally took a reason, so a paragraph reading `**Modified over ...:**` and nothing else was a recognized marker that named its basis, carried the carrier's own `by`, and reached DECLARED AND RESOLVING. A malformed declaration promoted as a complete one. THE FIX FOLLOWS THE PACKET'S OWN RECOGNITION-VS-VALIDATION DOCTRINE, the one 2.1 already records for the `by` identifier. Recognition still ends at the closing colon; the tail is REQUIRED by `document-lifecycle` and VALIDATED by `doc-health`. Folding it into recognition would drop the paragraph to a body unit and report the block UNDECLARED — the absent-marker remedy handed to a block that plainly carries one. `document-lifecycle` (the source) now states that the ` — <reason>` tail with a NONEMPTY reason is required for the declaration to be complete, that a paragraph carrying the complete prefix without the separator or with an empty one is a RECOGNIZED marker whose declaration is DEFECTIVE — never a non-marker, never silently complete — and that the requirement is THIS FORM'S ALONE: the other two carry their whole declaration in the units they name, while this one names none, so the reason is the only place it says why and the only clause the `unratified` disclosure can live in. A marker with no reason discloses nothing and CAN disclose nothing; the disclosure is neither vacuously satisfied by an absent clause nor waived by it. Round 6's definition is kept: the reason is the whole tail after ` — `. New scenario: the marker carries the prefix and no reason. A GROUND, NOT A STATE. `doc-health` makes it MISDECLARED's FOURTH ground — where round 7 put multiplicity, and where grounds accumulate cleanly: one wrong marker with one paragraph to repair, one band, one action, one arm template, one map entry, and the reported-state count stays FOUR. The ordered classification is now self-addition -> COUNT -> basis -> `by` -> REASON -> disclosure. THE REASON MUST PRECEDE THE DISCLOSURE, and that is a condition of the disclosure being readable rather than a preference: the disclosure is a word looked for IN the reason clause, so a marker with none offers it nothing to look in. Read the other way, an unratified basis under a prefix-only marker would be reported UNDISCLOSED and told to add a word to a sentence that does not exist, while the identical marker over a ratified basis passed in silence — one defect named two ways at two titles and unnamed at one of them; reading both would emit two findings for one missing tail, which the exactly-one-state rule forbids. UNDISCLOSED accordingly gains the reason as a PRECONDITION and not a test. Scenarios: a prefix-only marker over a ratified basis is reported MISDECLARED on the reason ground and never DECLARED AND RESOLVING nor UNDECLARED; a prefix-only marker over an UNRATIFIED basis emits exactly one finding, on that same ground and not UNDISCLOSED; the well-formed case is unchanged in outcome and states the reason among its conditions; the two UNDISCLOSED scenarios carry the reason-present precondition explicitly, and the disclosed-basis scenario no longer lets a `ratified` basis excuse a missing tail. Sweep: 2.1 (recognition ends at the closing colon), 2.2 (harvest ALWAYS and validate — an absent reason is a value, not a parse outcome), 2.5 (the fourth ground, the field order, and why the reason precedes the disclosure), 2.6 (four grounds in one interpolated `why`, no second shape and no second map entry), 2.9 (three fixtures: prefix-only over a ratified basis, its empty-reason twin, and the ordering fixture over an unratified one), proposal.md's `code_surface`, § What Changes and § Impact, tasks 4.1 and 8.1, and the README row. POPULATION: ZERO, BY AN EMPTY SET. This tree carries no marker of the form at all — § 6's sweep has not run — so no marker can be missing its tail. Recorded where the packet records such reads: § 4.1 for the launch population, § Impact and § 8.1 for the band movement, which the ground does not touch. CARRIAGE: both MODIFIED blocks re-measured, unchanged and all zeros — the edits are inside the ADDED requirements. `release-realization` 8 canon units, 64 block units, 0 markers, 0 suppressed, 0 defective, 0 uncarried; `doc-health` 35 canon units, 56 block units, 1 marker, the same 2 suppressed, 0 defective, 0 uncarried after suppression. § 4.2 therefore unamended. Gates: `openspec validate govern-sibling-added-modified-deltas --strict` valid; `--all --strict` 81 passed / 0 failed; same-clock doc-health single-repo runs against the `9af98c4d` merge base and the branch are byte-identical (5 critical, 4 error, 38 warning, 12 info on both) — zero new findings; the family run over the branch emits 8 info findings, none against either of this packet's delta paths. Full suite: 8342 passed, 21 skipped (the pinned count), 338 deselected, 46 subtests passed; one failure — `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, a `subprocess.TimeoutExpired` after 30s — ISOLATED ON BOTH TREES and failing identically on the unmodified `9af98c4d` merge base. It is the known environment timeout under load, not this change. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Ratify govern-sibling-added-modified-deltas by direct ruling: D1–D5 as drafted, the sitting declined, nine rounds converged (#502) Brett Heap ruled in session on 2026-08-31, via an explicit multi-choice put, verbatim "Direct — accept D1–D5 (Recommended)". All five orchestrator decisions flagged for veto are ACCEPTED AS DRAFTED as they stand at tip `3d776c67` — the three spec deltas are byte-unchanged from it, and this commit moves only the sites that assert the packet's own standing. THE §7.4 SITTING THIS PACKET PRESCRIBED FOR ITSELF WAS DECLINED by that same choice. No seat sat, and `tasks.md` §1 says so rather than ticking a box that would put a sitting in the record that never happened: 1.1 and 1.2 carry their measured dispositions UNTICKED (the sitting declined; nothing to route), 1.3 and 1.4 tick as done. OQ-1..OQ-5 REMAIN OPEN, routed as the proposal routes them. The ruling took the five DECISIONS without reaching the five QUESTIONS, and OQ-4's routing of the §6 sweep is the one it most visibly leaves live. Convergence recorded: nine adversarial Codex rounds over the tips a3dc59ec → 7ba87817 → 2db20313 → 727a14f6 → b926e7f5 → 04c432a3 → 9f25e09d → 3d776c67, twelve findings, every one fixed, none repeated; two catch-up merges of main; CI green at every reviewed tip; round 9 clean. The record is review/ratification-2026-08-31.md, `Status: ratified` with a citation per document-lifecycle's "A review record records a ratification". It settles no open question, performs no archive, does not close #502, and authorizes no realization beyond what tasks.md states. Gates: openspec validate --strict valid, --all --strict 81/0, doc-health tests 1339 passed, full suite 8343 passed / 21 skipped / 0 failed, doc-health zero new findings against merge-base 9af98c4d. --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
…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]>
… to nothing is its own finding (#523) (#542) * Propose add-requirement-ref-resolution-integrity: a ref that resolves to nothing is its own finding (#523) Brett ruled 2026-08-30, recorded on PR #516 and anchored at issue #523: the successor carries its OWN resolution-integrity code. A `consumer.requirement_ref` that resolves to zero requirements or to more than one is reported today only where two bindings share a `secret_ref`, because `resolve_requirement` has exactly one caller and that caller is the six-condition lift. Reproduced on a fresh clone of origin/main at 3a6a16e: two bindings with DISTINCT secret refs, one naming an id no record carries and one naming an id two records carry with different access modes, validate `0 warning(s), 0 error(s) -> PASS`. One byte — making the two secret refs equal — produces the error naming the very same unresolvable reference. Two ADDED requirements over twelve scenarios, NO MODIFIED block: the two requirements a reconciling MODIFIED delta would have named are carried by no promoted spec and are ADDED by the active add-binding-consumer-identity, so a MODIFIED block would be govern-sibling-added-modified-deltas' governed shape (a `Modified over` marker plus an archive-order hold). A pure ADDED requirement serves, so the packet takes it. Proposal-only, on the #497 -> #516 pattern. No validator line moves here. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Re-measure three citations rather than inherit them, and split the control in two The versioning-policy class citation was carried over from the sibling packet at `:242-255`; that range is now the contract-v1.36 breach record. § Change Classes sits at `:293-306`, and reading it fresh says something stricter than the inherited line did: two new validator warnings answering a refusal declared for the major is the DEPRECATING (minor) bullet, not only the Additive one, so the removal version and the migration path are OWED in the CHANGELOG rather than optional. Tasks § 6.3 moves with it. The "one byte" control claimed more than one edit made. Split into Control A (the byte alone — refused, but on the FOURTH lift condition, before resolution is consulted) and Control B (plus the acknowledgment — the refusal now says "resolves to no requirement in the repository under validation"). README corrected the same way. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Apply the Codex round: the control is honest about its bytes, and AD-1's branches are both executable Two P2 findings on PR #542, both repaired in the packet; no validator line, fixture or policy row moves, the change staying proposal-only. THE CONTROL CLAIMED ONE BYTE AND SPENT THREE. § What was measured spaced the reproduction's two secret references `example-secret-one` / `example-secret-two` and called Control A a one-byte edit — it is three, so a reader rerunning the control as specified would have been measuring something the text did not describe, and the delta scenario's "one byte" rested on it. The reproduction was REBUILT on `example-secret-a` / `example-secret-b` and RE-RUN against `scripts/validate-credential-contracts.py` at this branch's merge-base `3a6a16e9`: the two binding templates are now the same length (1318 bytes) and differ at EXACTLY ONE OFFSET (byte 980), the requirements document is byte-identical across the trees, and every recorded output in § 1 and § 2 is that run's rather than the old one's — reflowed to the column and otherwise verbatim, with the elisions the earlier draft carried removed so nothing is hidden. The reproduction also now states that its `dispatch_only` record carries TRIGGER-ONLY scopes, without which `dispatch-scope-ceiling` fires and the tree is not a silent one — the trap this rerun walked into first. The delta scenario "The shipped check is silent on both of them today" states the single-byte spacing in its WHEN, so "one byte" is a condition of the scenario rather than a claim beside it. And § What was measured gains § 6, which writes BOTH REPRODUCTION FILES OUT IN FULL: the run is now re-executable from this packet alone rather than from a description of a tree nobody kept. AD-1 OFFERED A BRANCH IT COULD NOT EXECUTE. As drafted, a one-code ruling struck ONE scenario — while the delta still obliged zero and more-than-one to be "NAMED APART" with separate remedies, tasks § 3.3/§ 4.1/§ 4.2/§ 5.1 still bought two codes and three fixtures, and `code_surface` still said `DEPRECATION_CODES` grows from EIGHT to TEN. Ratifying that is ratifying a permission and a prohibition together. AD-1 now carries the COMPLETE AD-1/ONE-CODE AMENDMENT SET — twelve numbered items naming the delta paragraph and the two scenarios (one rewritten rather than struck, so the scenario arity and tasks § 1.1's TWELVE hold), the four `code_surface` sentences, the § 5 and § Impact counts, the § What this changes clause, the five task rows and the README clause — with the text each becomes, so a one-line ruling is executed mechanically in the ratifying commit. The packet states plainly that AS DRAFTED it carries the TWO-CODE SHAPE AS NORMATIVE and that the one-code branch is that amendment set. Tasks § 2.2 and § 3.3 point at it, so an implementer cannot reach realization holding a one-code ruling and a two-code delta. THE DRAFTED RECOMMENDATION IS UNCHANGED: TWO CODES. Writing the branch out did not weaken it — it showed the one-code shape survives only by moving the fault's name out of the CODE and into the MESSAGE, which is what this family's "a refusal shall name the fault it found" rule was written against. Swept for staleness: the README active entry (names the byte, and records that the one-code branch is rulable in one sentence), tasks § 7.6's control description, and a new tasks § 1.9 recording the round. Gates: `openspec validate add-requirement-ref-resolution-integrity --strict` and `--all --strict` green (82 passed, 0 failed); the reproduction and both controls re-run against the shipped validator with the outputs pasted into the proposal; `python3 -m pytest tests/doc-health -q` green (1347 passed); same-clock doc-health against baselines at BOTH this branch's merge-base `3a6a16e9` and the current `origin/main` `2f1cd139`, in identically named `openxFactory` directories — ZERO new findings against either (5 critical / 4 error / 38 warning / 11 info, matched exactly). Docs-only, so the full pytest suite is left to CI. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * Ratify add-requirement-ref-resolution-integrity by direct ruling: AD-1 is TWO CODES (#523) **RATIFIED 2026-09-01 BY DIRECT RULING** — Brett Heap (repository owner), in session via an explicit multi-choice put, session `openxfactory-f5`. Record: `openspec/changes/add-requirement-ref-resolution-integrity/review/ratification-2026-09-01.md`. **AD-1 IS RULED TWO CODES, AS DRAFTED.** Zero-resolving and ambiguous are reported apart, under distinct codes, because their remedies live in different files — a reference resolving to nothing is repaired at the reference, one resolving to several in the requirements document. **The twelve-item AD-1/ONE-CODE AMENDMENT SET IS DECLINED AND NOT EXECUTED**: not one of its items is applied, and it is DELIBERATELY LEFT STANDING in the proposal as the record of the alternative that was rulable rather than struck. AD-2 … AD-6 stand as drafted; OQ-1 … OQ-4 REMAIN OPEN, the ruling having reached the decisions without reaching the questions. **THE SPEC DELTA IS BYTE-UNCHANGED FROM `deb72c8e`**, the reviewed tip. This commit moves only the sites that assert the packet's own standing, plus ONE measurement the catch-up merge falsified. **NO §7.4 SITTING, AND NONE WAS PRESCRIBED.** tasks § 2.3 put the question rather than the answer and he took the DIRECT path — the #504/#497-family precedent's direct branch, the same one `govern-sibling-added-modified-deltas` took on 2026-08-31. No seat sat, no ballot was cast, nothing here is a council disposition. § 2's four boxes carry measured dispositions and TWO DO NOT TICK: 2.2 (the AD side discharged in full, the OQ side never taken) and 2.3 (a question answered "no" is not a question performed). **THE REVIEW EVIDENCE IS RECORDED AGAINST THE TRUE COUNT: THREE Codex rounds, not one.** Rounds 1 and 2 on `1d6d58f7` raised two P2s, both REPAIRED at `deb72c8e` (the three-byte "one-byte control", and a one-code branch that would have ratified a permission and a prohibition together). **ROUND 3 READ THE FIX TIP ITSELF** at 2026-08-31 23:54 UTC and returned a THIRD P2 that is **OPEN**: the frozen `resolve_requirement` matches `index.get(requirements_document_ref)`, so one id in TWO documents resolves `ok` from either, leaving the CROSS-DOCUMENT arm of the now-promoted ambiguity scenario unmet while tasks § 3.4 freezes that resolver. It is ROUTED to a new tasks § 9.4 with a pointer at § 3.4, NOT repaired and NOT closed — it falsifies nothing ratified here, it lands on a realization row, and the gap is INHERITED from the shipped validator rather than introduced. Eight of eleven `@codex review` requests were PROVIDER-REFUSED on org usage limits (four before round 3, four after), so no bench has read the routing. **THE CATCH-UP MERGE RE-MEASURED, RATHER THAN RATIFYING A FALSE CLAIM.** PR #541 archived `add-binding-consumer-identity`, so the promoted spec went from SEVEN titles to TWELVE and now carries BOTH titles the packet had measured as absent. § The sibling rule, measured keeps both measurements: the CHOICE (all-ADDED) is unchanged and only its REASON moved — first because a marker plus an archive-order hold would have been owed, now because the basis has archived and neither would be. Neither ADDED title collides with the twelve; the bundle version did not move. GATES: `openspec validate --strict` VALID; `--all --strict` 80 passed / 0 failed; doc-health single-repo vs the `origin/main` baseline `1c1dcbbe` — ZERO NEW FINDINGS, sixty-two rows identical in both directions, totals 5 critical / 4 error / 39 warning / 14 info. `pytest tests/doc-health` 1346 passed / 1 failed the ONE failure being `test_every_carriage_ledger_finding_over_the_real_tree_is_named`, whose unnamed subject is `add-chain-attestation`'s block from PR #510 — PROVEN PRE-EXISTING by running it against an untouched `origin/main` checkout, where it fails identically. It is not this packet's to fix and is not fixed here. The full suite is left to CI, this commit being documentation-only. Ratification authorizes realization and performs none of it: no validator line, no fixture, no bundle number, no deprecation row. It does not close #523, and the packet states no intent to — that is realization's act. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc * The ambiguity the minor detects is the one its resolver can see: per-document by ruling, cross-document filed (#553) The third Codex round's P2 was routed OPEN by the 2026-09-01 ratification. Brett Heap ruled it the same day, in session `openxfactory-f5`, by an explicit multi-choice put with the whole contradiction before him: the packet was already `Status: ratified`, its ambiguity scenario said "matching more than one requirement record" with no document named, and `tasks.md` § 3.4 freezes a resolver that matches `index.get(requirements_document_ref)` — so one id in two schema-valid documents resolves `ok` from either and the cross-document arm was UNMEETABLE by this packet's own realization, not merely unbuilt. RULED: SCOPE TO PER-DOCUMENT. The cross-document arm is filed as the named successor, openxFactory issue #553, carrying the finding, the resolver mechanics by file and line, the ruling, and the choice that arm owes. Because the packet is ratified this is a POST-RATIFICATION CONSENTED AMENDMENT by the ratifying owner himself, and the consent is recorded at every touched site: two dated **AMENDED 2026-09-01** notes in the delta, a dated addendum in review/ratification-2026-09-01.md, tasks header/§ 1.1/§ 2.5/§ 3.4/§ 9.4, proposal `code_surface` + `Amended:` line + § Standing + § What was measured § 4 + § What this changes + § What this deliberately does not change + AD-1 + § Impact, `.openspec.yaml`'s `approved_by`, and the README active entry. WHAT MOVED IS SCOPE AND NOTHING ELSE. AD-1's TWO-CODE ruling stands, AD-2 … AD-6 stand, OQ-1 … OQ-4 stay open, the phasing / removal target / corpus / all-ADDED shape stand, and the scenario count is UNCHANGED at TWELVE — the ambiguity scenario was NARROWED and RETITLED, never struck, so no site asserting twelve had to move. § 9.4 stays UNTICKED on § 9's own terms: a ruling that DEFERS a subject to a named successor is not a closing of it. Gates: `openspec validate add-requirement-ref-resolution-integrity --strict` VALID and `--all --strict` 80 passed / 0 failed; `pytest tests/doc-health` 1346 passed / 1 failed, the failure being the inherited carriage-ledger self-gate over add-chain-attestation's #510 block, PROVEN pre-existing by running that module alone against an untouched origin/main checkout at `1c1dcbbe` (1 failed / 14 passed, identical unnamed subject); same-clock doc-health single-repo against that same origin/main baseline, both trees in identically named `openxFactory` directories — the two reports are BYTE-IDENTICAL, 62 finding rows line for line, totals unchanged at 5 critical / 4 error / 39 warning / 14 info, ZERO NEW FINDINGS. The full suite is left to CI, this commit being documentation-only — no .py, no fixture and no workflow file moves. Refs #523, #553 --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: brettheap <[email protected]>
Realizes the ratified
add-binding-consumer-identity(proposal landed in #497, squash84104bee; ratification recordreview/ratification-2026-08-29.md). Tasks §1–§4, §5.1/§5.1a/§5.1b/§5.4, §6.1/§6.2/§6.4 are performed and ticked. §5.2 is half done and says so, §5.3 (THE CUT) is deliberately NOT performed, and §6.3/§6.5 are honestly UNTICKED because the cut is what discharges them. §7 is archive-time.What the record could not say, and now says
add-notebook-hosting-credential-custodyratified per-system authority for a shared operated identity on 2026-08-23 and recorded — in its requirement's own scenario, its Impact, its design, its task list and its ratification record — that the published shape could not express it. Nothing in a binding said which system held it or which identity it fetched with. Each entry ofcredential_bindingsmay now declare:Nothing narrows at this cut — measured, not claimed
The block is a DESCRIBED, UNCONSTRAINED property: no
type, norequired:, noadditionalProperties, no memberpattern. The binding object has never been closed, so aconsumer:key of any shape already validated; requiring members, closing the block and imposing the grammar each refuse a shape this major accepts, so all of them wait for contract-v3.0 behind one deprecation window. The same test governs three narrowings that sit OUTSIDE the block and are not exempt for it — thecredential_bindingsmap-key grammar, the closedaccess_modevocabulary, and therequirements_document_refpath grammar.Six shapes a domain could already hold are built and driven against both releases in
tests/credential_contracts/test_consumer_block_phasing.py:consumer:valueconsumer:valuetests/credential_contracts/major_projection.pyis the prescription for the major made executable — it carries exactly the acts the packet defers and no others, and the day the major is cut it is the diff to check the cut against. It exists because of this packet's own quotable finding: a prescribed fix applied without a verifier is an unverified change, whatever its provenance. Four council seats found the packet's decisive defect by BUILDING the schema; two Copilot reviews, three author self-catches and a Codex P1 round had read it.The warning channel, and eight codes enumerated against the refusals
scripts/validate-credential-contracts.pyprintedERRORand counted errors — it had no warning severity at all, so the deprecation posture the versioning policy requires was inexpressible there. It now followsvalidate-client-identity-roster.py'sWARN [code] messageshape and carries one code per shape the major refuses, each with a packaged probe underexamples/credential-contracts/warning/; the self-test refuses a code with no probe, checked by count against the code list itself.consumer-identity-undeclared·consumer-block-incomplete·consumer-block-unknown-member·consumer-member-grammar·consumer-token-not-true·consumer-binding-key-grammar·consumer-access-mode-vocabulary·consumer-requirement-ref-grammarThe refusal is sharpened, the arity is every pair, and the fault is named
requirement_idequals its own binding's map key — is what makes the other five mean anything. The packaged serving-tier negativedispatch-reuses-content-secret.yamlnow carries the four declarations that granted the lift under the five-condition draft, so condition six can be seen refusing them; the earlier task asserted that property against a fixture declaring no consumer at all, which was a non-test.shared-authority-identityis new, names two systems on one authority rather than two credentials collapsed into one, REPLACES the default finding where it applies, and is NOT scoped to a sharedsecret_ref. One holder reusing its own fetch identity across its own bindings reports nothing.The screen's scope and the screen itself both moved (openxFactory#506)
_looks_like_raw_secretreadsecret_refand nothing else, so the two new free-string members would have been two unscreened sinks on the record kind whose invariant is never bake a secret — and the borrowed identifier grammar admitsghp_…and a dotted JWT. Widening the scope of a leaky screen without fixing the screen would ship the gap wider, so the detector gained credential-bearing URIs,key=valueassignments and dotted JWTs in the same act, with a registered negative per field. The JWT probe is the sharp one: it PASSES the identifier grammar, so only the screen can catch it. The 40-character floor on the base64 arm stays a recorded limit, not a coverage claim.Scaffolding that declares its own status
scripts/apply-domain-starter.pyemitsconsumer: {instantiation_stub: true}and nothing else. Not a placeholder — it fails the grammar. Not an omission — a missing block is an ERROR at the major and the token is the only exemption.tests/credential_contracts/test_scaffolded_repo_conformance.pygenerates a real repository and runs the real validator over its bytes at BOTH releases, with both rejected drafts as negative controls; a one-release assertion would have passed for the draft that breaks every domain repo on the upgrade.The exemption is a TOKEN and never a
*.template.yamlFILENAME — a filename is author-chosen, invisible in the bytes a pinned consumer validates, and unreachable by a pinned schema.warning/live-values-in-stub-named-file.template.yamlis the fixture that proves the name buys nothing.Corpus
3 positives → 6; 5 negatives → 16; a new
warning/channel with 10 fixtures (one per code, plus the stub-named record and the locally-shaped scalar); and a newsupport/channel holding records the resolver INDEXES and adjudicates for nothing, because a qualified reference needs something to resolve at. Every new fixture joins the by-name inventory in this same commit — the condition the DERIVE ruling on the count string depends on; deriving without it is the fail-open version. Packaged identifiers are SYNTHETIC, per Brett's 2026-08-29 ruling on P-2.What is NOT here, and why
contract-v2.4: the tags on the remote stop atcontract-v2.2, butcontracts/manifest.yamlonmainalready declarescontract_bundle_version: contract-v2.3(registered by Add the standing policy compliance contract #514, tag not yet published), so v2.3 is spent.sha256and an extendedconsumption_rule— because a row whose digest does not match the file it registers publishes a promise about bytes nobody shipped.origin/mainfrom an identically-named checkout: baseline 4 critical / 4 error / 28 warning / 12 info → branch 4 critical / 5 error / 28 warning / 13 info. The delta is exactly tworelease-inventory-driftfindings against the standingcontract-v2.3inventory —docs/contract-versioning-policy.md(error) andcontracts/manifest.yaml(info, editorial band) — whose own remedy line reads "cut a release through the bundle realization order; never hand-edit an inventory orcontract_bundle_versionto make this comparison pass." Every other family is unmoved. The credential schema is not an inventory member, so the schema edit drifts nothing.verify-openxwallet-pin.pypasses (openXwallet@6b248d40, tag labelwallet-v1.3, 8 digests recomputed).verify-commitis GREEN onorigin/mainand reports the same two members on this branch; "green AT THE CUT" is §5.3's.§5.1b — the mechanism this entry leans on IS overdue
Checked, as the task requires, before trusting it. All three
Deprecations Currently In Forceentries targetingcontract-v2.0— thehermesflat keys, theopenworkflow_tokens, and the doxBench chat-turn v1 envelope family — are still live shapes with the bundle atcontract-v2.3, and none has a matching§ Deprecations Executedrow. They are overdue-and-forgotten. Not a condition on this packet, and deliberately not repaired here (that is another owner's act on entries this change does not own) — recorded so the next reader of that section knows the retirement half of the mechanism has not been exercised since contract-v2.0.Sweep (§4.6), re-run at realization rather than trusted
git grep -l "rotation_policy" …returns the same 13 pre-existing paths the packet enumerates, each with its stated disposition; the broadercredential_bindingssweep's difference is disposed OUT path by path (an integration-map list, a planning sketch of a different shape, two readiness simulations, a UI template, and the hosting record's singularcustody.binding_id, which is OQ-3). The growth beyond that is this change's own corpus and tests.contracts/avatar-client/broker-server-key-binding.template.yamlis re-confirmed checked-and-exempt: it still validates with zero errors, still carries noconsumer:key, andvalidate-avatar-client.py --strictis 0/0.Gates
OPENSPEC_TELEMETRY=0 openspec validate add-binding-consumer-identity --strict→ valid;--all --strict→ 78 passed, 0 failed.python3 scripts/validate-credential-contracts.py .→ self-test 6 positive + 16 negative + 10 warning, 8 deprecation codes probed, PASS.python3 scripts/validate-manifest-digests.py→ 150/150 verify.python3 scripts/validate-avatar-client.py --strict→ 0 errors, 0 warnings.python3 scripts/verify-openxwallet-pin.py→ OK.pytest tests/ -q -m "not postgres"→ green (see the checks below).Do not merge without the orchestrator's cut decision.