Repository navigation
A reference that resolves to nothing is its own finding — realize add-requirement-ref-resolution-integrity - #570
Conversation
…ily, and three probes Realizes add-requirement-ref-resolution-integrity §3.2-§3.3 and §4, ratified 2026-09-01 by direct ruling and amended the same day by the same ratifier (scope: PER-DOCUMENT). The reference resolution was performed in exactly ONE place — the six-condition lift, reached only for a PAIR of bindings sharing a `secret_ref` — so a binding declaring a well-formed, grammatical reference to a requirement that does not exist, and whose secret reference was its own, was resolved by nobody and reported by nothing. It is reported per-binding now, whatever the binding shares. THE SHARED SECRET WAS A PROXY FOR THE RULE AND NOT THE RULE, and this capability had already ruled on that proxy once: the authority collapse is raised on the holder/fetch-identity pair independently of `secret_ref`, on exactly this reasoning. Reporting a dangling reference only where an EXEMPTION was being asked for reported the defect precisely where a reader was already being refused, and stayed silent everywhere it merely sat. TWO CODES, OF A SECOND FAMILY, NAMED APART. `requirement-ref-unresolved` and `requirement-ref-ambiguous` join `DEPRECATION_CODES` (8 -> 10). They are not a ninth `consumer-*` code because those eight are enumerated against refusals of SHAPE — missing, incomplete, closed-and-violated, ungrammatical, token declared false — and a reference that resolves to nothing is none of those: it is well-formed, inside the declared member set, grammatical in both members, and WRONG ABOUT THE WORLD. Filing it under a grammar code would make that code untrue in the other direction. The enumeration rule is satisfied by DECLARING THE ACT AT THE MAJOR rather than by exempting these two from it. And they are named apart from each other 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 IT NAMES — and the second is the more dangerous, the matches being free to differ in `access_mode`. `resolve_requirement` IS CALLED AND NOT WIDENED — byte-identical, verified function by function, along with `requirements_index`, `_lift_refusal_detail`, `_lift_refusal`, `_binding_findings`, `_consumer_block_warnings` and `_semantic_findings`. The arm adds no read, no path and no input; it reports a resolution the validator already performed and discarded. So the ambiguity it names is PER-DOCUMENT, which is the ambiguity that resolver can see, and the CROSS-DOCUMENT arm is deliberately out of scope and filed as openxFactory issue #553 — cited in the finding itself, where the reader who hits the boundary is standing. ONE FAULT KEEPS ONE FINDING. `malformed` and `ungrammatical` are the two statuses the grammar arms already report, and an ungrammatical `requirement_id` is reported by the same arm, so all three are skipped here rather than named twice. `index` defaults to None and skips the pass alone: an empty index would report `not-found` for every declared reference in a repository the caller never scanned, which is a finding about the caller. THREE PROBES, AND ONE OF THEM PROVES THE SILENCE. Both warning fixtures share their secret with NOBODY, because a probe that shared one would pass against the shipped validator too and evidence nothing; the ambiguity probe re-uses the shipped `support/ambiguous-requirement-ids.requirements.yaml`, whose header now names BOTH probes depending on its duplication so a later edit cannot silently defang two at once. The positive is its own file so a regression in the silent direction names itself — a corpus holding only the failing direction cannot tell a working check from one that fires on everything. All three join the by-name inventory in the SAME COMMIT, which is the condition under which deriving the count string is safe rather than fail-open: 6 -> 7 positive, 10 -> 12 warning, 16 negative unmoved, 8 -> 10 codes probed. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…-bearing Realizes add-requirement-ref-resolution-integrity §3.5-§3.7. Forty-one tests in `tests/credential_contracts/test_requirement_ref_resolution.py`. THE PACKET'S OWN REPRODUCTION IS THE FIRST TEST IN THE FILE. The defect was measured as a tree that PASSED with zero warnings and zero errors while carrying two defective references, and where making the two `secret_ref`s equal — ONE BYTE, and no other edit to any file — was enough to make the same tree speak. A reproduction that lives only in a proposal is a reproduction nobody re-runs, so both files are carried verbatim and driven through the real validator as a subprocess. `test_the_control_is_ONE_BYTE_and_the_templates_are_the_SAME_LENGTH` asserts the spacing itself: same length, and exactly one differing offset (980). That assertion exists because the packet's §6 files name BOTH secret spellings in their comment header, so a global substitution produces a TWO-byte control and a reader rerunning it would measure something the text does not describe — the same class of drift the packet already repaired once when `-one`/`-two` was called a one-byte edit. THE SHARING PAIR KEEPS BOTH DUTIES, asserted on ONE record: exactly one semantic finding and it is `shared-secret-identity` naming the condition that stood, AND exactly one deprecation code and it is `requirement-ref-unresolved`. Neither replaced the other, and they are not one fault named twice — they answer different questions, and a reader repairing the reference discharges only the first. Its control is built with it, because a refusal test that never had a lift to lose proves nothing: a conforming pair still lifts, and moving ONE `requirement_id` moves both verdicts at once. THE SILENT DIRECTION IS FOUR NAMED TESTS, not an afterthought — a resolving reference, a binding declaring none, a stub, and the same defective binding driven alone and beside a conformant one to prove the report depends on no other binding in the document. Five grammar-fault shapes assert one fault keeps one finding. THE PER-DOCUMENT BOUNDARY IS PINNED BY A TEST rather than left implicit: `test_the_same_id_in_ANOTHER_document_draws_nothing_at_this_minor` declares one id in TWO schema-valid documents and asserts the arm stays SILENT, so the successor that broadens the lookup (openxFactory issue #553) can see exactly which assertion it is changing. FIVE MUTANTS, EACH WITH BOTH HALVES RECORDED. §3.7's four — drop the per-binding call, merge the two codes, report on an undeclared member, scope the arm back to `by_secret` — plus `report-the-wrong-status`, which was AD-1's item 9 and is carried though that branch was declined: it costs nothing and it proves the two codes are ROUTED differently rather than merely spelled differently. Each records the ANCHOR as well as the death, on the sibling module's rule that a named test failing for want of a fixture is ANCHOR-MISSING and not a kill. The merge mutant is driven on a document carrying ONE OF EACH fault, because with a single defective binding a merged code is indistinguishable from a correctly split one and the mutant would have died for the wrong reason. No test in the file skips. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…to name every one is reconciled Realizes add-requirement-ref-resolution-integrity §5. The deprecation is declared where a consumer upgrading across it will read it, and the entries beside it that assert completeness are made true rather than left to contradict it. THE NEW ENTRY, in `docs/contract-versioning-policy.md` § Deprecations Currently In Force: the act, its two codes in a table written from the REFUSAL LIST, a migration path PER CODE — repair the REFERENCE for `requirement-ref-unresolved`, repair THE REQUIREMENTS DOCUMENT THE REFERENCE NAMES for `requirement-ref-ambiguous` — the per-binding scope, the sharing pair's two duties, the PER-DOCUMENT boundary with openxFactory issue #553 named, the measurement that nothing narrows at this minor, and the removal target contract-v3.0. The same major the consumer block's seven acts land at, so a consumer serves ONE deprecation window rather than two. THE SIBLING ENTRY IS RECONCILED, NOT DUPLICATED. Its paragraph claiming to name EVERY act landing at that major now carries a RECONCILED, NOT RESTATED paragraph naming the ninth act and pointing at the entry that declares it — the delta's own condition, which an entry satisfies by carrying the new act OR naming the entry that does. An entry asserting a completeness it does not have is worse than one asserting nothing, because a reader at the major uses it to demonstrate the deprecation precondition was met and cannot tell an act that served its window from one that never had an entry. THE SWEEP IS RECORDED IN BOTH DIRECTIONS, on the rule that an edit changing what a packet asserts about itself owes a sweep of every site asserting the same thing. `grep -rniE 'EIGHT warning|eight .consumer-|seven acts'` finds FIVE live sites. RECONCILED: the policy entry; `contracts/manifest.yaml`'s `credential-contracts` row, which repeated the same sentence; and `contracts/README.md`'s schema-registry table, which repeated it a third time and points readers AT the policy section — a live registry doc, not digest-pinned, so it is swept here and its change list gains this change. DELIBERATELY LEFT, EACH WITH ITS REASON: the schema's own `description` (`contracts/schemas/xfactory-credential-contracts.schema.yaml:205`), because editing it moves the SCHEMA BYTES and therefore the manifest digest this change pins as unmoved, and because the schema is declared out of this packet's surface — the sentence is scoped by its own paragraph to the seven block narrowings and claims nothing about codes a later minor adds; and `contracts/CHANGELOG.md`'s contract-v2.4 entry, which is a RECORD of what that release shipped and was TRUE at it, where a retroactive edit would falsify the record and where tasks §6.3 gives the CHANGELOG to the cut, which adds its OWN entry rather than rewriting an old one. THE `Warned since` VERSION IS DELIBERATELY UNWRITTEN, and the entry says so rather than leaving the omission to look like an oversight. The bundle number is allocated by MERGE ORDER at the cut; `contracts/manifest.yaml:3` reads contract-v2.5 at this tip and PR #565 is an open contract-v2.6 cut on the same file, so a number written here is a number another packet is already spending. An entry naming a warning release that was never cut would be the same defect as an entry claiming a completeness it does not have. THIS COMMIT PERFORMS NO CUT: `contract_bundle_version` is unmoved and `contracts/CHANGELOG.md` is untouched. AND THE UNCHANGED DIGEST IS STATED RATHER THAN INFERRED: the manifest row's `sha256` is the SCHEMA FILE's and does not move, because resolution is not a shape JSON Schema can check — it is a lookup INTO ANOTHER DOCUMENT — and the schema is not edited. Verified: `python3 scripts/validate-manifest-digests.py` reports 163 per-file digests verifying. §5.3 is CHECKED, NONE FOUND: `docs/credential-access-model.md` carries three sites that could have described the reference as resolved-only-in-a-pair — `:180` and `:231`, both about the SECRET rather than the requirement reference, and `:246-250`, the only paragraph mentioning `requirement_ref`, which describes the sharing case without claiming resolution happens only there. Those are every occurrence of `resolv` and of `requirement_ref` in the file. No edit made, and none invented: that row authorizes a repair if a wrong sentence exists, which is a different act from adding a right one. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…, §7.2 and §8 open with the reason Realizes add-requirement-ref-resolution-integrity's evidence convention: a box closes on a FACT that survives the session — a path, a count, a command and its output — never on an intention, and a box that did NOT close stays OPEN WITH THE MEASUREMENT rather than ticked with an excuse. TICKED: §3.1-§3.7 (the arm, the two codes, the frozen resolver verified function by function, the lift's two duties, the silent direction, five mutants with both halves recorded), §4.1-§4.4 (three probes, the by-name inventory and the derived count string in one commit: 6 -> 7 positive, 10 -> 12 warning, 8 -> 10 codes probed), §5.1-§5.3 (the policy entry, the reconciled completeness claims, the manifest row with its unchanged digest stated, and §5.3's checked-none-found sweep recorded site by site), and §7.1 / §7.3 / §7.4 / §7.5 / §7.6. NOT TICKED, EACH WITH THE MEASUREMENT WRITTEN IN: §6.1-§6.4 — THE CUT IS NOT THIS SLICE. `contracts/manifest.yaml:3` still reads contract-v2.5, unmoved from origin/main, and `contracts/CHANGELOG.md` is untouched. Another lane's contract-v2.6 cut is in flight (PR #565) on the same file, and allocating a second number against it here is exactly the collision §6.1 was written to prevent. Registration rides whichever cut comes next. §7.2 — ONE FAILURE, AND IT IS NOT THIS CHANGE'S. The box asks for zero failures and gets one, so it does not tick. The run was `1 failed, 8620 passed, 21 skipped, 338 deselected` — SKIPPED is EXACTLY the pinned `EXPECT_SKIPPED: "21"`, and PASSED/SELECTED clear the 7070/7090 floors with margin; neither pin is moved. The failure is `test_the_live_sweep_reproduces_the_AUTHORING_measurement` in `tests/sequenced_after/test_sweep.py`, `assert 18 == 19` on `active_co_modified`. ISOLATED ON BOTH TREES, which is what makes this a diagnosis rather than a hope: that file alone gives `1 failed, 13 passed` on this branch AND on the untouched origin/main baseline clone, and the printed `Sweep(...)` tuple is byte-identical between them. This realization adds no OpenSpec change directory and moves no requirement title, so it cannot move those counts. The repair is already filed by its own lane — openxFactory PR #568, the same number, the same test, the same cause. §8.1-§8.4 — NOT MERGED. §8.3's `grep` is re-verified at this tip (no `## MODIFIED Requirements` block anywhere in the packet, so no archive-order hold) but that row asks for the check AT ARCHIVE TIME, and this is not that moment; the measurement is recorded so the archiver re-runs it against a shorter list of possibilities, not so they skip it. §7.5 records the doc-health comparison in full rather than as a verdict: the findings line is IDENTICAL on both trees across two same-clock runs (6 critical, 7 error, 39 warning, 14 info), and the only two report deltas are the canon-share metric moving with the new prose and a `release-tag-publication` SKIP that FOUR controls place in the environment — two different reasons across two runs, `git cat-file` reading the object one of them names, the family alone returning `No findings` on the final tree, and the baseline reproducing nothing with its origin repointed at the same SSH URL. §2.2 and §2.3 are untouched by this commit and stay exactly as the ratification left them. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
…ement-ref-resolution-integrity
…and §8 open with the reason Realizes add-requirement-ref-resolution-integrity's evidence convention: a box closes on a FACT that survives the session — a path, a count, a command and its output — never on an intention, and a box that did NOT close stays OPEN WITH THE MEASUREMENT rather than ticked with an excuse. TICKED: §3.1-§3.7 (the arm, the two codes, the frozen resolver verified function by function, the lift's two duties, the silent direction, five mutants with both halves recorded), §4.1-§4.4 (three probes, the by-name inventory and the derived count string in one commit: 6 -> 7 positive, 10 -> 12 warning, 8 -> 10 codes probed), §5.1-§5.3 (the policy entry, the reconciled completeness claims across three live sites with two deliberately left and the reason for each, the manifest row with its unchanged digest stated, and §5.3's checked-none-found sweep recorded site by site), and ALL OF §7. THE GATES ARE RE-RUN AFTER A CATCH-UP MERGE OF origin/main bbbbeda, against the tree that would actually merge rather than the one they were first taken on. §7.2 is `8621 passed, 21 skipped, 338 deselected` — zero failures, and SKIPPED is EXACTLY the pinned EXPECT_SKIPPED: "21", with the 7070/7090 floors cleared and neither moved. §7.2 WAS OPEN AN HOUR AGO AND THE RECORD KEEPS BOTH READINGS. Before the merge the run was `1 failed, 8620 passed`: `test_the_live_sweep_reproduces_the_AUTHORING_measurement` failed `assert 18 == 19` on `active_co_modified`. It was ISOLATED ON BOTH TREES BEFORE IT WAS ATTRIBUTED — that file alone gave `1 failed, 13 passed` on this branch AND on the untouched baseline clone, with a byte-identical `Sweep(...)` tuple — and it was another lane's pull request, openxFactory #568, which has since landed as d308c01. The diagnosis is kept rather than deleted, because it is the evidence the failure was never this change's. §7.5 TICKS WITH ONE NEW FINDING NAMED, NOT WITH ZERO. Same-clock doc-health against the NEW origin/main baseline: the findings line moves 13 -> 14 info and nothing else, and set difference over the family's rows isolates exactly one new row — `severity=info family=release-inventory-drift path=contracts/README.md`, labelled "editorial member — expected between cuts". §5.1 swept that file because it repeated a completeness claim this act falsifies; the drift is the consequence of editing a file the just-landed v2.6 inventory pins, and its OWN action line says to discharge it by cutting a release and NEVER by hand-editing an inventory or contract_bundle_version. This slice does neither. The other five drift rows — including the `error` row on docs/contract-versioning-policy.md, which this change also edits — are present in the BASELINE report before any edit of ours, measured by `comm` rather than by eye. NOT TICKED, EACH WITH THE MEASUREMENT WRITTEN IN: §6.1-§6.4 — THE CUT IS NOT THIS SLICE, AND THE ROW IS REWRITTEN RATHER THAN LEFT TO READ AS IT DID BEFORE. When §3 was started, manifest line 3 read contract-v2.5 and PR #565 was an OPEN contract-v2.6 cut on the same file, which is why no number was allocated. #565 HAS SINCE LANDED (bbbbeda) and the merge is clean — it moved line 3, this change moves a consumption_rule a hundred and ninety lines below it. These two codes are NOT in contract-v2.6, which is a fact about order rather than a judgement: #565 was cut from a tree that did not contain them. REGISTRATION RIDES THE NEXT CUT. §6.4 additionally names the one release-inventory-drift row this slice leaves for that cut, rather than letting it be discovered. §8.1-§8.4 — NOT MERGED. §8.3's `grep` is re-verified at this tip (no `## MODIFIED Requirements` block anywhere in the packet, so no archive-order hold) but that row asks for the check AT ARCHIVE TIME, and this is not that moment. §2.2 and §2.3 are untouched by this commit and stay exactly as the ratification left them. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2
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.
🟢 Approval recommended
The validator change is narrowly scoped to warnings, is exercised by both corpus self-tests and extensive new unit/mutation tests, and documentation/corpus inventories are reconciled alongside the behavior change.
Pull request overview
Implements the ratified add-requirement-ref-resolution-integrity validator behavior by adding a per-binding requirement reference resolution pass that reports dangling and per-document ambiguous consumer.requirement_refs as warnings during the minor release window, plus extensive regression/mutation tests and packaged corpus fixtures to keep the behavior falsifiable and stable over time.
Changes:
- Add a new validator warning pass (
_requirement_resolution_warnings) and two new warning codes (requirement-ref-unresolved,requirement-ref-ambiguous) surfaced per binding (not scoped tosecret_refsharing), with major-release refusal wording. - Add a comprehensive test module that includes the packet reproduction, boundary tests (per-document scope), and a mutation round proving each arm affects outcomes.
- Extend the packaged credential-contracts corpus (warning probes + a “silent direction” positive) and reconcile policy/manifest/registry documentation to reflect the additional act and code family.
File summaries
| File | Description |
|---|---|
| tests/credential_contracts/test_requirement_ref_resolution.py | New end-to-end + unit tests for per-binding requirement_ref resolution integrity, including reproduction + mutation testing. |
| tests/credential_contracts/test_dispatch_credential_contract.py | Updates corpus inventories/count assertions to include new warning probes and the new “silent direction” positive fixture. |
| scripts/validate-credential-contracts.py | Adds the per-binding resolution-integrity warning pass, new codes/expectations, and threads the requirements index into warning evaluation. |
| openspec/changes/add-requirement-ref-resolution-integrity/tasks.md | Marks realized tasks with detailed measured evidence and leaves cut/archive boxes explicitly open with reasons. |
| examples/credential-contracts/warning/requirement-ref-unresolved.yaml | New warning probe for a grammatical requirement_ref that resolves to nothing (non-secret-sharing binding). |
| examples/credential-contracts/warning/requirement-ref-ambiguous.yaml | New warning probe for a grammatical requirement_ref that resolves to >1 requirement within the referenced document. |
| examples/credential-contracts/support/ambiguous-requirement-ids.requirements.yaml | Documents that both a negative and warning probe depend on this support file’s duplicate IDs. |
| examples/credential-contracts/resolving-requirement-ref.binding-template.example.yaml | New positive fixture proving the “silent direction” (resolving refs with no secret sharing). |
| docs/contract-versioning-policy.md | Adds the deprecation entry for the new code family and reconciles the “acts landing at contract-v3.0” completeness language. |
| contracts/README.md | Updates the registry row narrative to reflect the additional (non-consumer-*) act/codes and keeps the digest semantics clear. |
| contracts/manifest.yaml | Updates the credential-contracts consumption_rule prose to include the new act/codes and explicitly state why the schema digest does not change. |
Review details
- Files reviewed: 11/11 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Provenance: merging on Brett's in-session authorization (session openxfactory-f5, 2026-09-02: "merge 570 and 569 when clear"). Clear is measured: all four checks pass at tip 20385a4; Codex reviewed the exact tip clean ("Didn't find any major issues", zero inline); self-test 7+16+12/10 PASS, repo scan PASS, suite green with skip exactly 21, openspec --all --strict 83/0, manifest digests OK. Realizes the ratified add-requirement-ref-resolution-integrity packet (two codes per Brett's AD-1 ruling; per-document scope per his 2026-09-01 amendment; frozen resolver byte-identical). Performs NO cut — registration rides the next cut after v2.6. reviewDecision REVIEW_REQUIRED per the standing browser-approve pattern; admin squash per the recorded lane. |
… so where a consumer reads (#577) THE CHANGELOG ALREADY CARRIES THE DISPOSITION. The contract-v3.0 cut (#573, ff9ed81) wrote it in full — declared at bbbbeda, never verifiable, never published, superseded on Brett Heap's ruling of 2026-09-02, "Supersede: v3.0 is the completion" — and this commit does NOT duplicate it. Two records of one measurement is how they drift apart, so this one cites it. WHAT WAS MISSING IS THE PLACE A CONSUMER ACTUALLY READS. docs/contract-versioning- policy.md is the pinned document, and until this commit it contained ZERO mentions of contract-v2.6 while asserting, in § Untagged Bundles After Enforcement Began, that "every bundle from contract-v1.7 ... is now tagged." That sentence is false and, for the first time in this section's history, stays false. A consumer reading the two discharge tables and stopping would conclude every allocated number is either tagged or awaiting one. One is neither. FOUR EDITS, all inside that section: 1. The header and its count: FIVE instances in two discharges becomes SIX, of which five were discharged and THE SIXTH CANNOT BE. No third date is added, because a date would promise a closure this section will never record. The check #528 asked for has since landed (#563), which is why instance six was met by a machine rather than by a human counting. 2. The "TRUE AGAIN" annotation gains its third transition. The sentence is left standing rather than rewritten, on this document's own rule that a record is annotated and never edited to match today; the present-tense claim a reader should carry forward is stated beside it instead. 3. The new subsection, in the 2026-08-25 discharge table's shape — bundle, declaring commit, disposition, authority — with the two defects spelled out: no first-parent commit satisfies the targeting rule (the cut branch was never rebased, § Bundle Realization Order step 1), and a rebuilt inventory would not cure the second defect anyway, an ADDITIVE (minor) class declared on a tree that refuses three shapes contract-v2.5 accepted. It is named a SUPERSESSION rather than a retro-publication, because RETRO-PUBLISHED, NOT RE-DATED describes an act that is simply unavailable here. 4. The closing clause binds all six, the never-dischargeable sixth most of all: a bundle that can never be tagged is not thereby released, it is permanently unreleased. THE PERMANENT ERROR IS DECLARED, NOT QUIETED. release-tag-publication reports contract-v2.6 at ERROR and the finding WILL NOT CLEAR — measured on this branch and on main alike, and publishing contract-v3.0's tag neither cleared it nor could, since the family inspects every bundle carrying a release inventory. The family is not weakened to fit the ruling: Brett superseded a bundle, he did not license a checker to stop objecting to abandoned ones. The missing vocabulary is issue #575's design work. Nothing is deleted to match the absence. NOT TOUCHED, DELIBERATELY: contracts/releases/contract-v2.6.digests.yaml and the contract-v2.6 changelog entry (the record of what was declared) and contract_bundle_version (advanced by a cut, never adjusted). KNOWN AND ACCEPTED COST: this policy is a non-editorial member of the contract-v3.0 inventory, so verify-commit at HEAD now reports one HGR-RELEASE-DIGEST-MISMATCH on this path until the next cut re-baselines. That is the ordinary between-cuts state every normative edit creates — #570 and #562 both created it and #573 cured it — and the remedy is a release cut, never a hand-edit. The contract-v3.0 TAG is untouched and still verifies at ff9ed81 exactly. Refs #574, #575, #565, #573. Claude-Session: https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2 Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
Realizes the ratified
add-requirement-ref-resolution-integrity(proposal PR#542, squash
29f70fe8), tasks §3, §4, §5 and all of §7. §6 IS NOT THISSLICE AND §8 IS NOT REACHED — see The cut is not this slice below.
Built on
origin/main6856f502and re-gated after a catch-up merge ofbbbbeda9, so every number below is from the tree that would actually merge.DO NOT MERGE ON MY WORD. This is the code half of the #497 → #516 pattern the
packet's own subject set established; the packet is ratified, the realization is
not reviewed.
The defect, re-measured before a line was written (§3.1)
The packet's reproduction was rebuilt verbatim from
proposal.md§ What was measured § 6 and run against
origin/main6856f502before anyedit:
Zero warnings. Zero errors. PASS — the same three numbers recorded at
merge-base
3a6a16e9, so the defect has not moved.wc -cgives 1318 bytesfor both binding templates and
cmp -lreports exactly one differingoffset, 980, which is the spacing the packet claims.
A reference that resolves to nothing was reported only when the binding beside
it happened to name the same secret.
resolve_requirementhad ONE caller —_lift_refusal_detail, reached only for a pair sharing asecret_ref— so abinding declaring a well-formed, grammatical reference to a requirement that
does not exist, and whose secret reference was its own, was resolved by nobody
and reported by nothing.
One measurement note, because the next reader will hit it. The reproduction's
binding template names BOTH secret spellings in its comment header, so a global
sed s/example-secret-b/example-secret-a/produces a two-byte control(offsets 183 and 980) rather than the one-byte control the packet describes.
Control A is the
secret_ref:LINE alone. The test now builds it that way andasserts the one-offset spacing, so the claim cannot drift again — the same
class of drift the packet already repaired once, when
-one/-twowas called aone-byte edit.
The reproduction is now a test, and it reports (§7.6)
On the realized tree, the same two files:
Both defects named; the verdict is still
PASS. A warning is not a refusaland nothing narrows at this minor. Control A (the ONE BYTE) on the same tree
still refuses, with the two warnings now sitting BESIDE its error rather than in
place of it:
And the tree is not a silent one: giving the reproduction's
dispatch_onlyrecord a content scope fires
dispatch-scope-ceiling, so the original silencewas the gap and not a validator that had stopped looking.
§3 — the validator arm
§3.2
_requirement_resolution_warnings(bindings, index), reached from_deprecation_warnings(which gains an OPTIONALindexparameter defaulting toNone) beside the eightconsumer-*arms — not from_lift_refusal_detail.It is handed EVERY binding of the document; the list is not filtered by
by_secret, which is the whole of the act.One fault keeps one finding.
malformedandungrammatical— the two shapesconsumer-member-grammarandconsumer-requirement-ref-grammaralready report —are skipped rather than named twice, and so is a
requirement_idoutside theidentifier grammar. Five such shapes are driven and asserted clean of any
requirement-ref-*code.An absent index skips the pass alone, rather than reporting
not-foundagainst an index nobody built: an empty index would invent a finding about every
record in a repository the caller never scanned, and every existing
one-argument caller in
tests/credential_contracts/would start warning.§3.3 — two codes, the AD-1 ruling as drafted.
requirement-ref-unresolvedrequirement-ref-ambiguousDEPRECATION_CODES8 → 10, asserted by a named test. They are a SECONDFAMILY and not a ninth
consumer-*code: those eight are enumerated againstrefusals of SHAPE, and a reference that resolves to nothing is well-formed,
inside the declared member set, grammatical in both members, and wrong about
the world. The enumeration rule is satisfied by DECLARING THE ACT AT THE MAJOR
rather than by exempting these two from it.
§3.4 — the resolver is CALLED and is byte-untouched. Verified function by
function, not eyeballed:
resolve_requirement,requirements_index,_lift_refusal_detail,_lift_refusal,_binding_findings,_consumer_block_warningsand_semantic_findingsare all IDENTICAL toorigin/main. The arm adds no read, no path and no input.The per-document boundary is pinned by a test, not by prose.
test_the_same_id_in_ANOTHER_document_draws_nothing_at_this_minordeclares oneid in TWO schema-valid documents and asserts the arm stays SILENT, so
openxFactory issue #553 can see exactly which assertion it is changing. #553
is cited in four places a reader actually reaches: the
requirement-ref-ambiguousFINDING ITSELF, the new policy entry, the validator docstrings, and the fixture
header. This realization does not read as having satisfied the promoted
scenario at
openspec/specs/credential-contracts/spec.md:565.§3.5 — the sharing pair keeps BOTH duties, asserted on ONE record: exactly
one semantic finding and it is
shared-secret-identitynaming the conditionthat stood, AND exactly one deprecation code and it is
requirement-ref-unresolved. Its control is built with it — a conforming pairstill lifts, and moving ONE
requirement_idmoves both verdicts at once.§3.6 — the silent direction is four named tests: a resolving reference, a
binding declaring none, a stub, and the same defective binding driven alone and
beside a conformant one.
§3.7 — five mutants, each with both halves recorded.
drop-the-per-binding-callmerge-the-two-codesreport-the-wrong-statusreport-on-an-undeclared-memberscope-back-to-by_secretEach records the ANCHOR (
the named check PASSES against unmutated code) aswell as the death, because a named test failing for want of a fixture is
ANCHOR-MISSING and not a kill.
report-the-wrong-statuswas AD-1's item 9 —that branch was DECLINED, and the mutant is carried anyway because it proves the
two codes are ROUTED differently rather than merely spelled differently.
merge-the-two-codesis driven on a document carrying ONE OF EACH fault,because with a single defective binding a merged code is indistinguishable from
a correctly split one.
§4 — the packaged corpus, both directions
examples/credential-contracts/warning/requirement-ref-unresolved.yaml—one binding, sharing its secret with nobody, naming an id a shipped and
indexed document does not carry.
examples/credential-contracts/warning/requirement-ref-ambiguous.yaml—re-uses the shipped
support/ambiguous-requirement-ids.requirements.yamlperOQ-1. The re-use is recorded at both ends: the support record's header now
names BOTH probes depending on its duplication, since the edit that would
defang them happens THERE and not in the fixtures.
examples/credential-contracts/resolving-requirement-ref.binding-template.example.yaml— the SILENT direction as its own file per OQ-4, so a regression in it names
itself. The positive channel's self-test now runs WITH the index, so the new
arm is actually exercised against it rather than skipped.
Both probes share their secret with nobody, asserted by test — a probe that
shared one would pass against the SHIPPED validator too and evidence nothing.
Self-test count, before → after:
All three join the by-name inventory in the same commit, which is the
condition under which the derived count string is safe rather than fail-open.
Three proofs this PR did not write came for free, and they are worth naming:
the existing corpus-driven parametrisations picked the new fixtures up on their
own —
test_every_packaged_WARNING_fixture_stays_schema_valid_at_the_minorforboth probes, and
test_every_packaged_POSITIVE_validates_at_the_major_tooforthe positive, which drives it against
major_projection.py, the prescriptionfor contract-v3.0 made executable. The new fixtures are checked against BOTH
releases without a line being added to say so.
§5 — the declared deprecation, and the completeness claim reconciled
docs/contract-versioning-policy.md§ Deprecations Currently In Force gains anentry: the act, its two codes in a table written from the refusal list, a
migration path PER CODE, the per-binding scope, the sharing pair's two duties,
the per-document boundary with #553 named, and removal target contract-v3.0
— the same major the block's seven acts land at, so a consumer serves one
window.
The sibling entry is reconciled rather than left to contradict it. Its
paragraph claiming to name EVERY act landing at that major now names the NINTH
act and points at the entry that declares it. An entry asserting a completeness
it does not have is worse than one asserting nothing.
The sweep is recorded in both directions.
grepfinds FIVE live sitesasserting "EIGHT warning codes / SEVEN acts". Three are reconciled: the
policy doc,
contracts/manifest.yaml's row, andcontracts/README.md:109(alive registry table pointing readers at the policy section). Two are
deliberately left, each with its reason: the schema's own
description(editing it moves the schema bytes, hence the manifest digest §5.2 pins as
unmoved, and the schema is declared out of this packet's surface), and
contracts/CHANGELOG.md'scontract-v2.4entry (a record of what that releaseshipped, true at it; rewriting a shipped release entry would falsify the
record).
The manifest row's
sha256does not move, and the row now says so: thedigest is the SCHEMA FILE's, and resolution is not a shape JSON Schema can
check — it is a lookup INTO ANOTHER DOCUMENT.
§5.3 is CHECKED, NONE FOUND.
docs/credential-access-model.mdcarries threesites that could have described the reference as resolved-only-in-a-pair, and
none does —
:180and:231are about the SECRET, and:246-250describes thesharing case without claiming resolution happens only there. Those are every
occurrence of
resolvand ofrequirement_refin the file. No edit made, andnone invented: that row authorizes a repair if a wrong sentence exists, which is
a different act from adding a right one.
The cut is not this slice — and #565 landed underneath it
No bundle number is spent here.
git diff origin/main -- contracts/manifest.yamltouches only the
credential-contractsrow'sconsumption_rule; line 3 isbyte-identical to
origin/main, andgit diff origin/main -- contracts/CHANGELOG.mdis empty.
The situation moved while this slice was being built, and the record is
rewritten rather than left to read as it did before. When §3 was started,
contracts/manifest.yaml:3readcontract-v2.5and PR #565 was an opencontract-v2.6cut on the same file — which is why no number was allocated here.#565 has since landed (
bbbbeda9), and a catch-up merge of that tip is partof this branch. The merge is clean: #565 moved line 3, this change moves a
consumption_rulea hundred and ninety lines below it.These two codes are not in contract-v2.6, and that is a fact about order
rather than a judgement — #565 was cut from a tree that did not contain them.
Registration therefore rides the next cut, not #565. The class at that cut is
DEPRECATING (MINOR), which owes the removal version and the migration path in the
CHANGELOG — both already written into the policy entry, so the cut copies rather
than composes.
tasks §6.1–§6.4 and §8.1–§8.4 stay un-ticked with the reason written in, on
the packet's own honesty rule: untick-with-reason over tick-with-excuse.
Gates
Run on the branch tip, after a catch-up merge of
origin/mainbbbbeda9.python3 scripts/validate-credential-contracts.py .self-test: 7 positive + 16 negative + 12 warning example(s) confirmed, 10 deprecation code(s) probed; repo scan0 warning(s), 0 error(s) -> PASSpytest tests/credential_contracts -qorigin/main, measured on the baseline clone; +41 new tests, 0 skipped)pytest tests/ -q -m "not postgres"EXPECT_SKIPPED: "21"; floors (7090/7070) cleared, not loweredpython3 scripts/validate-manifest-digests.pypython3 scripts/verify-openxwallet-pin.pyopenXwallet@6b248d40…, 8 digests recomputedOPENSPEC_TELEMETRY=0 openspec validate --all --strictorigin/mainbbbbeda9info— and it is the cut's. See belowThe one new doc-health finding is the cut's, and its own action line forbids fixing it here
bbbbeda9Isolated by set difference over the family's rows rather than by reading totals,
the one new row is:
§5.1 swept
contracts/README.mdbecause it repeated a completeness claim this actfalsifies; the drift is the arithmetic consequence of editing a file the
just-landed v2.6 inventory pins. It is the cut's to discharge and this slice
deliberately does nothing about it — on the finding's own action line, and on
the #516 §6.3 precedent.
The other five drift rows are pre-existing on the untouched baseline —
including the
errorrow ondocs/contract-versioning-policy.md, which thischange also edits: that row is in the baseline report before any edit of ours,
so editing the file adds no finding. Measured by
comm, not by eye.The remaining report delta is not a finding: canon share moves 33.3% → 33.4%
(+1026 canon words), which is the §5.1 policy prose landing in a ratified
document and the §5.1 sweep's sentence landing in a draft one.
(An earlier pairing against
6856f502also showed arelease-tag-publicationSkip on the head. Four controls placed it in the environment — two different
reasons across two runs,
git cat-filereading the object one of them named, thefamily alone returning
No findings, and the baseline reproducing nothing withits origin repointed at the same URL — and it is absent from this final pairing.)
Not done, and why
OQ-4 received no ruling, and a box asking "shall we convene?" cannot be ticked
by the answer "no". Untouched by this PR.
release-inventory-driftrow this slice leaves for it, named rather than leftto be discovered.
grepre-verified at this tip (no## MODIFIED Requirementsblock anywhere in the packet, so no archive-orderhold) but the box belongs to archive time.
README.md's active entry is left as the packet wrote it, on the A credential binding declares who holds it and what it fetches with #516precedent: that realization touched no README, and the change stays ACTIVE
until merged code, the cut and the archive exist.
Refs #523 — the origin issue, already CLOSED as completed when the packet
landed, so this PR refs it rather than closing it again.
🤖 Generated with Claude Code
https://claude.ai/code/session_012WEcJUPMqpciTRSbJZzkh2