Repository navigation
Propose add-requirement-ref-resolution-integrity: a ref that resolves to nothing is its own finding (#523) - #542
Conversation
… 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
…ntrol 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
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
To use Codex here, create an environment for this repo. |
There was a problem hiding this comment.
Pull request overview
Adds a new OpenSpec proposal packet (add-requirement-ref-resolution-integrity) documenting the credential-contracts requirement-ref resolution-integrity gap (currently only surfaced via the shared-secret lift path) and specifying the successor ruling: a standalone resolution-integrity code family with phased WARNING→ERROR behavior aligned to contract-v3.0, without moving any validator/schema lines in this PR.
Changes:
- Adds a new OpenSpec change packet (proposal + tasks + spec delta) for per-binding
consumer.requirement_refresolution-integrity reporting and its own code family/phasing. - Updates the README “OpenSpec Records” active-change index with the new packet entry and rationale/repro summary.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds the active-change index entry for add-requirement-ref-resolution-integrity. |
| openspec/changes/add-requirement-ref-resolution-integrity/.openspec.yaml | Declares packet metadata and ad_hoc origin anchored to the cited ruling/issue scope. |
| openspec/changes/add-requirement-ref-resolution-integrity/proposal.md | Proposal narrative + measured reproduction and scope/impact boundaries (proposal-only). |
| openspec/changes/add-requirement-ref-resolution-integrity/specs/credential-contracts/spec.md | Adds two new credential-contracts requirements and scenarios defining per-binding reporting + phased, own-family codes. |
| openspec/changes/add-requirement-ref-resolution-integrity/tasks.md | Governance-ordered tasks defining packet completion, ratification next act, and realization work in a follow-up PR. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d6d58f7cf
ℹ️ 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".
| **Control A — one byte.** The same tree with `example-secret-two` changed to | ||
| `example-secret-one`, and NOTHING else touched: |
There was a problem hiding this comment.
Correct the claimed one-byte control
Changing example-secret-two to example-secret-one changes three bytes (two → one), not one, so the documented control does not substantiate the normative scenario that says a one-byte edit must trigger the finding. Use secret references that genuinely differ by one byte, or describe this as a single-field edit, so the packet's reproduction can be rerun as specified.
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1d6d58f7cf
ℹ️ 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".
| measured fact that their remedies live in different files. If the ruling meant | ||
| one code carrying both statuses in its message, say so and the requirement's | ||
| second scenario is struck. |
There was a problem hiding this comment.
Reconcile all two-code requirements after a one-code ruling
If AD-1 takes the explicitly supported one-code branch, striking only the scenario still leaves the normative delta requiring zero and more-than-one to be “NAMED APART” and prescribing separate remedies in specs/credential-contracts/spec.md lines 45–52, while the tasks and code surface continue to require two codes. The resulting ratified packet would simultaneously permit and forbid a single-code implementation, so this branch must update every normative two-code statement rather than deleting only one scenario.
Useful? React with 👍 / 👎.
…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
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
| `0 warning(s), 0 error(s) -> PASS` under the validator as shipped; changing ONE | ||
| BYTE so the two secret references match (`example-secret-b` -> | ||
| `example-secret-a`, the two templates the same length and differing at one | ||
| offset) refuses the same record, and adding the acknowledgment so the pair |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: deb72c8e4e
ℹ️ 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".
| - [ ] 3.4 `resolve_requirement` is CALLED, not edited: same statuses, same | ||
| index, same grammar, same never-open-a-path rule. A diff touching that | ||
| function's body is out of scope and should be justified or reverted. |
There was a problem hiding this comment.
Resolve ambiguity across all indexed requirement documents
When the same requirement ID is present in two schema-valid requirement documents, the active add-binding-consumer-identity scenario requires that ambiguity be reported, but this task freezes resolve_requirement and its index. That resolver only matches index.get(requirements_document_ref), so a binding pointing at either document gets ok and the proposed per-binding warning arm will remain silent for the cross-document case. Broaden the resolution lookup (or explicitly amend that active scenario) before treating this realization plan as complete.
Useful? React with 👍 / 👎.
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
… has archived Merge `origin/main` (`1c1dcbbe`) into the packet branch so the ratification is taken against the tree as it now stands rather than against a five-day-old merge-base. One conflict, in `README.md`'s "Active changes:" list, where both sides inserted a new entry at the head: resolved as a UNION, this packet's entry first and `add-chain-attestation`'s after it, both texts byte-unchanged. **NO PACKET FILE MOVES IN THIS COMMIT.** `proposal.md`, `tasks.md`, `.openspec.yaml` and `specs/credential-contracts/spec.md` are byte-identical to `deb72c8e`, the tip Codex reviewed. The measured claims this merge makes stale are re-measured in the ratification commit that follows, not here, so a reader can see the merge and the amendment apart. WHAT MOVED UNDER THE PACKET, recorded because the ratification turns on it: PR #541 archived `add-binding-consumer-identity` and `add-notebook-hosting-credential-custody` (basis first), so `openspec/specs/credential-contracts/spec.md` grew from SEVEN promoted requirement titles to TWELVE and now carries both titles this packet measured as absent. The bundle version did NOT move — `contracts/manifest.yaml:3` still declares `contract-v2.5` — so `target_release` and tasks § 6.1 stand as written. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
…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
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
| - [add-requirement-ref-resolution-integrity](openspec/changes/add-requirement-ref-resolution-integrity/proposal.md) | ||
| — authored 2026-08-31, **RATIFIED 2026-09-01 BY DIRECT RULING** | ||
| (`Status: ratified`; record `review/ratification-2026-09-01.md`) — Brett Heap | ||
| in session via an explicit multi-choice put, session `openxfactory-f5`. |
| - [x] 1.5 README "OpenSpec Records" active entry, stating the defect, the | ||
| reproduction, the code-versus-narrowing choice as the ruling recorded it, | ||
| the all-ADDED shape and the draft posture. |
…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
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Suppressed comments (2)
README.md:410
- The PR description states this landing is a draft and that ratification is NOT sought, but this README entry asserts the packet is already ratified (including details of the ratification act). These two sources should be reconciled so the repository’s active-change index and the PR metadata don’t contradict each other.
- [add-requirement-ref-resolution-integrity](openspec/changes/add-requirement-ref-resolution-integrity/proposal.md)
— authored 2026-08-31, **RATIFIED 2026-09-01 BY DIRECT RULING**
(`Status: ratified`; record `review/ratification-2026-09-01.md`) — Brett Heap
in session via an explicit multi-choice put, session `openxfactory-f5`.
openspec/changes/add-requirement-ref-resolution-integrity/tasks.md:79
- This checklist item still says the README entry captures “the draft posture”, but the packet text (and the README entry itself) repeatedly asserts the change is ratified. This looks like a stale phrase from the pre-ratification draft and should be updated to avoid contradictory guidance inside the task list.
- [x] 1.5 README "OpenSpec Records" active entry, stating the defect, the
reproduction, the code-versus-narrowing choice as the ruling recorded it,
the all-ADDED shape and the draft posture.
| is untouched. The gap it defers is INHERITED from the shipped validator rather | ||
| than introduced here. Eight of eleven review requests were PROVIDER-REFUSED on | ||
| org usage limits, so no bench has read either the routing or the ruling. Filed on Brett Heap's ruling of | ||
| 2026-08-30, recorded on PR #516 and | ||
| anchored at issue #523: *a successor change carrying its own |
…claim moved Merge `origin/main` (`5383e72c`) into the packet branch so PR #542 stops conflicting and the ratified packet is read against the tree as it now stands. `gh pr update-branch` refused; this is that merge taken by hand. ONE CONFLICTED FILE, resolved on the same principles as this branch's earlier catch-up (`edab9bdd`): | file | conflict | resolution | | --- | --- | --- | | `README.md` | both sides inserted a new bullet at the HEAD of "Active changes:" — this branch's `add-requirement-ref-resolution-integrity` entry (80 lines) vs `main`'s `retire-hermes-flat-keys-and-openworkflow-tokens` entry (51 lines) | UNION, this packet's entry FIRST and `main`'s after it, **both texts byte-unchanged** (verified by diffing each block against `0f2aa71b:README.md` and `origin/main:README.md` respectively). The merged file is `origin/main`'s README plus exactly this packet's 80-line bullet and nothing else — 80 added lines, 0 removed, measured. | Everything else merged clean: `main`'s two new change directories and its `tests/doc-health/test_modified_block_currency_self_gate.py` edit applied untouched, and `retire-doxbench-chat-turn-v1`'s README bullet — appended near the tail of the list rather than at its head — never conflicted. WHAT LANDED ON `main` SINCE `1c1dcbbe`, one line each: - `59eb913e` (#551) ratify `retire-hermes-flat-keys-and-openworkflow-tokens` — entries 1 and 2 of issue #522 at `contract-v3.0`, proposal only. - `b7dc5909` (#552) ratify `retire-doxbench-chat-turn-v1` — entry 3 of #522 at `contract-v3.0`, proposal only. - `5383e72c` (#557) the carriage-ledger fix: the MODIFIED-block-currency self-gate names its eighth subject, `main`'s inherited `pytest-suite` red from #510 now green. **NO PACKET FILE MOVES IN THIS COMMIT.** `proposal.md`, `tasks.md`, `.openspec.yaml`, `specs/credential-contracts/spec.md` and `review/ratification-2026-09-01.md` are byte-identical to `0f2aa71b`, the ratified-plus-amended tip (`git diff 0f2aa71 -- <packet dir>` is empty), so the record and the consented per-document amendment stand exactly as ruled. **NO MEASURED CLAIM MOVED, MEASURED RATHER THAN ASSUMED.** The three landings touch `README.md`, two new `openspec/changes/` directories and one test file — `git diff --name-only 1c1dcbb origin/main` matches nothing under `docs/`, `contracts/` or `openspec/specs/`. So: `openspec/specs/credential-contracts/spec.md` is byte-unchanged and still holds TWELVE requirement titles (tasks § 1.2's re-measurement stands); `contracts/manifest.yaml:3` still declares `contract-v2.5` (tasks § 6.1 stands); the `add-binding-consumer-identity` deprecation entry naming "all seven acts" at `contract-v3.0` is untouched, so § 5 and AD-2's shared-window claim stand. The two landings that DO target `contract-v3.0` are proposals that execute nothing and move no deprecation row. This packet carries no `## MODIFIED Requirements` block, so #557's ledger population is none of its business. Gates, all run on this merged tree before pushing: - `openspec validate add-requirement-ref-resolution-integrity --strict` — valid. - `openspec validate --all --strict` — 82 passed, 0 failed (82 items), the two newly-landed changes included. - `python3 -m pytest tests/doc-health -q` — **1347 passed**, fully green, #557's fix carried in by this merge. - Same-clock doc-health (`--as-of 2026-09-01`) against a baseline checkout of `origin/main` `5383e72c`, both directories named `openxFactory`: the two reports are BYTE-IDENTICAL — 5 critical, 4 error, 39 warning, 14 info on each side — and `--new-findings-out` wrote `[]`. Zero new findings. The full suite is left to CI. Refs #523, #542, #553 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhD4QNabbheEZrQ72qEAtc
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
Suppressed comments (1)
README.md:410
- The PR description says this landing is a draft and that ratification is NOT sought, but this entry (and the packet files) assert the change is already ratified and include a ratification record. Please align the PR description with the committed packet standing (or, if ratification was not intended, remove/rollback the ratification claims/record from the packet).
- [add-requirement-ref-resolution-integrity](openspec/changes/add-requirement-ref-resolution-integrity/proposal.md)
— authored 2026-08-31, **RATIFIED 2026-09-01 BY DIRECT RULING**
(`Status: ratified`; record `review/ratification-2026-09-01.md`) — Brett Heap
in session via an explicit multi-choice put, session `openxfactory-f5`.
|
Provenance: merging on Brett's in-session authorization (session openxfactory-f5, 2026-09-01). The packet is RATIFIED BY DIRECT RULING (review/ratification-2026-09-01.md: AD-1 RULED TWO CODES; §2 dispositions honest) with one POST-RATIFICATION CONSENTED AMENDMENT (Brett's scope-to-per-document ruling, taken against the TRUE review history after the round-count miscount was caught and corrected: THREE Codex rounds, round 3's open P2 resolved by narrowing the ambiguity scenario to the per-document arm the frozen resolver can see; the cross-document arm filed as successor #553). Clear is measured: all four checks pass at tip 5ea2296; openspec --all --strict 82/0; doc-health byte-identical vs main; every measured claim re-verified after two catch-up merges. CODEX: PROVIDER-REFUSED since 2026-08-31 ~20:54Z across 8 hourly + continuing retries (recorded, not read as clean); the amendment tips are unreviewed for that reason alone. reviewDecision REVIEW_REQUIRED per the standing browser-approve pattern; admin squash per the recorded resolution lane. Realization of the packet's code surface is a later slice; #523 closes per the packet's own terms then. |
Draft for review. Ratification is NOT sought by this landing, and no validator
line moves here — proposal-only, on the pattern this packet's own subject set
established (proposal PR #497, realization PR #516).
Discharges #523.
The ruling this encodes
Brett ruled 2026-08-30, recorded on PR #516's discussion and in issue #523:
a small successor change carrying its own resolution-integrity code —
zero/multi-resolving
requirement_refs are today reported only when bindingsshare a
secret_ref, and the successor makes resolution integrity its own check.Issue #523 states the scope in three parts, and this packet is those three and
nothing wider:
existing one;
refusing;
scenario's scope agree.
The code-versus-narrowing choice, as recorded: a code, in its own family,
WARNING for a full minor and ERROR at contract-v3.0 — the same major the consumer
block's seven acts land at, so consumers serve ONE deprecation window. Not the
unphased ERROR (#516 could not take it honestly), and not a ninth
consumer-*code (the ratified rule is that the warning set is "ENUMERATED against the
refusals", and the eight name SHAPE faults of the block). The enumeration rule
is satisfied the only honest way available: by declaring the act at the major
— an unresolvable or ambiguous declared reference is refused there — so the
warning has a refusal to serve.
The reproduction
Fresh clone of
origin/mainat3a6a16e9, run against the validator exactly asit ships.
credentials/example.requirements.yamldeclaresalpha_laneanddup_laneTWICE (once
workload_identity, oncedispatch_only— the two matches differ inthe field the lift turns on).
credentials/example.binding-template.yamldeclares two bindings with distinct
secret_refs and full consumer blocks:zero_resolving_lane-> an id no record carries;multi_resolving_lane->dup_lane. Both document references grammatical, both naming an indexeddocument.
Zero warnings. Zero errors. PASS.
Control A — one byte (
example-secret-two->example-secret-one, nothingelse touched): now REFUSED, but on the FOURTH lift condition — the pair is
refused before resolution is ever consulted.
Control B — plus the acknowledgment, so the pair reaches the fifth condition
and resolution is actually asked:
The exact sentence the silent tree never produced, about the exact same bytes of
requirement_ref.The call graph says the same thing.
resolve_requirement(
scripts/validate-credential-contracts.py:311-349) has ONE caller in the file —_lift_refusal_detailat:438— reached only through_binding_findings'default-refusal block (
:540-546), which groups bindings intoby_secretandcontinues past every group of fewer than two. The per-binding deprecation arm_consumer_block_warnings(:590-691) checks the reference's SHAPE and itsdocument reference's GRAMMAR and never resolves it.
The delta
Two ADDED requirements on
credential-contracts, twelve scenarios, NO MODIFIEDblock.
that binding shares — reporting is per-binding and independent of
secret_ref, on the same reasoning this capability already applied to theshared-authority finding ("a shared secret reference is a proxy for the rule
and not the rule"). Reconciles the three clauses by splitting the
conjunction: reporting is owed by every binding that declares a reference;
withholding the lift is owed by the pair asking for the exemption. Scenarios:
zero-resolving on a non-sharing binding; ambiguous on a non-sharing binding;
the shipped check is silent on both of them today (the falsifiable
reproduction, in the packet rather than only in prose); a resolving reference
draws nothing; an undeclared reference draws nothing; and the sharing pair
keeps BOTH duties.
narrowing — its own family; zero and more-than-one named apart because
their remedies live in different files; WARNING for a full minor, ERROR at
contract-v3.0; the
Deprecations Currently In Forceentry that claims to nameEVERY act at that major reconciled rather than left to contradict a ninth; and
the corpus probing BOTH directions, the silent one being what distinguishes a
working check from one that fires on everything. Six scenarios.
The all-ADDED shape is measured, not preferred (proposal § The sibling rule,
measured; tasks § 1.2). The two requirements a reconciling MODIFIED block would
have named — the consumer-block requirement and the lift requirement — are
carried by NO promoted specification (
openspec/specs/credential-contracts/spec.mdholds seven titles, neither of them these) and are ADDED by the ACTIVE, ratified,
unarchived
add-binding-consumer-identity. A MODIFIED block over either would beexactly the shape
govern-sibling-added-modified-deltasgoverns: a**Modified over `<basis>`'s addition by <change-id> (<date>):**marker plus anARCHIVE-ORDER HOLD behind the sibling. A pure ADDED requirement serves — the
sibling states the duty for the reference, this states where it is owed, and
neither sibling's text has to change for both to be true. Chosen: two ADDED
requirements, no marker, no hold.
Six authoring decisions (AD-1…AD-6) and four open questions (OQ-1…OQ-4) are
listed as the authoring session's and stay FLAGGED FOR VETO. AD-1 is the one
that changes the spec text: the issue says "a resolution-integrity code"
(singular) and this packet asks for TWO, zero apart from many.
Gates
openspec validate add-requirement-ref-resolution-integrity --strictopenspec validate --all --strictpytest tests/doc-health -qpytest tests/ -q -m "not postgres"origin/mainbaseline (both dirs namedopenxFactory)5 critical, 4 error, 38 warning, 11 infoon both sides; corpus membership verified — the branch lifecycle set is 177 docs to the baseline's 176, so the run did read the new packet)The pinned skip count is EXACTLY 21, which
.github/workflows/pytest-suite.yml'sEXPECT_SKIPPEDpins, and the branch runhits it on the nose. Docs-only: no test count moved. The branch and the
origin/mainbaseline selected the SAME total on both sides — 8362 + 1 + 21 =8384 on the branch, 8361 + 3 + 20 = 8384 on the baseline — so nothing was added
or lost.
The one failure, run down rather than waved at.
tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]failed with
subprocess.TimeoutExpired … timed out after 30 seconds. The twofull suites were running concurrently on one machine at the time. Measured
afterwards on a quiet machine:
validate-hermes-runtime-contracts.py --require-realization --json— takes 25.68 s and 27.03 s on this branchagainst 25.53 s and 26.15 s on the
origin/mainbaseline. No regression;the command simply sits close to the test's 30-second wall.
2 passed in 40.82s,2 passed in 42.60s).And the gate itself settles it.
pytest-suiteon this PR is GREEN(run 33428335147, 17m29s) — that job reads selected/passed/skipped from the JUnit
XML attributes and requires failures and errors to be ZERO and skipped to equal
its exact pin, so the local flake is not a property of this branch. All four
required checks pass:
merge-master-approval,pytest-suite,signed-execution-chain-gate,wallet-validation.The baseline run's OWN three failures are all
tests/doc-health/test_pin_reachability.py, an artefact of the baseline being a--sharedclone with a local-path origin. The two failure sets are disjoint andneither is this packet's.
Not merged, no review round requested
Draft posture. No
@codex reviewcomment is posted here — Codex isusage-limited; the orchestrator will request the round when limits recover.