Repository navigation
Record what 4.5 and 4.6 performed: the reader IS required, so the declaration says so (#534) - #550
Conversation
…required `signed-execution-chain-gate` became a REQUIRED check on `main` on 2026-08-31 — opensoft org ruleset 21957695, a dedicated ruleset mirroring the wallet-gate precedent 21538893 — and a deliberately broken chain was then SEEN failing a real pull request: canary #549, run 33455808456, check-run 99695407307, exactly one named refusal (`leaf_hash_link_broken`), the pull request reported BLOCKED, closed unmerged with its branch deleted. Those are `add-signed-execution-chain` tasks 4.5 and 4.6, carried at issue #534. This commit changes no rule and adds no capability; it makes the RECORDED state match the world. THE FLIP. The packaged conformance declaration records `is_required_in_ruleset: true`, names the ruleset in the schema's own `ruleset_ref`, points `ruleset_evidence_ref` at the live read and the canary, and moves SEC-R9 from `partial` to `satisfied` — its `declared_residual` removed, because the validator refuses a satisfied entry that also declares one, and its reason rewritten to state the act and the canary with their ids. The other eight entries did not move: SEC-R1 and SEC-R6 keep their structural residuals and the reader still refuses either recorded `satisfied`. Requirement 9 being met makes the tranche ENFORCED, not complete. The reader now reports 0 errors and 0 warnings where it emitted the standing `reader-not-required` warning on every run. THE TESTS THAT PINNED THE OLD STATE. `test_the_reader_says_the_capability_confers_nothing_yet` becomes `test_the_reader_no_longer_says_the_capability_confers_nothing` — the assertion INVERTED rather than deleted — and a new `test_a_declaration_recording_the_reader_unrequired_still_warns` holds the reader to the rule for any realization that is NOT gated, so the first test cannot go green for the wrong reason. `test_a_declaration_recording_sec_r9_satisfied_while_unrequired_is_refused` keeps its name and its point; its mutation now has to set the reader unrequired too, because SEC-R9 `satisfied` is the CORRECT record here and the refusal was always about the pairing. HISTORICAL RECORDS ARE AMENDED, NEVER REWRITTEN. `contracts/CHANGELOG.md`'s contract-v2.5 section keeps every sentence it shipped with and gains a dated addendum; README's OpenSpec Records entry keeps its account of what the archive act did and did not do, and gains the correction after it; the archived `tasks.md` has 4.5 and 4.6 ticked with their evidence beneath them and NOT ONE of its "OPEN"/"NOT DONE"/"BLOCKED BY CONSTRUCTION" restatements edited away — those were true when written, and deleting them is exactly the tidying-up they exist to resist. Present-tense claims that are now false are corrected where they live: both READMEs, the reader's docstring, the workflow header and its `--strict` rationale, two test docstrings, the manifest comment, and the staged topic's INDEX entry. NOT TOUCHED, DELIBERATELY: `openspec/specs/signed-execution-chain/spec.md`, whose requirement 9 was always conditional and needs no edit — canon moves through an OpenSpec change, not a state flip; the negative fixture that must keep recording `is_required_in_ruleset: false`, which still red-proves its code; and the `OrganizationAdmin: always` bypass, which the declaration states rather than implies a strength around. Verified: the gate's exact invocation 0 errors 0 warnings exit 0; `pytest tests/signed_execution_chain` 75 passed; `validate-manifest-digests.py` 155 rows verify; `openspec validate --all --strict` 78 passed. 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 ✨
|
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
Updates the repository’s recorded state for the signed-execution-chain capability to reflect that signed-execution-chain-gate is now required on main (per the referenced operator act and canary), aligning the conformance declaration, tests, and documentation with the post-2026-08-31 reality.
Changes:
- Flip the tranche-one conformance declaration to record the reader as required and mark SEC-R9 as
satisfied, including updated evidence references and timestamps. - Update the signed-execution-chain reader tests to invert the prior “reader-not-required” expectation and add coverage ensuring unrequired realizations still warn/refuse the SEC-R9 pairing.
- Amend repo documentation and historical records (README/CHANGELOG/archive tasks/workflow header) to state that tasks 4.5/4.6 were performed after the archive.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tests/signed_execution_chain/test_manifest_row_digests.py |
Updates docstring claims about whether the reader is required. |
tests/signed_execution_chain/test_gate_wiring.py |
Updates docstring to reflect the check is now required while emphasizing tests can’t enforce rulesets. |
tests/signed_execution_chain/test_chain_reader.py |
Inverts the prior warning assertion, adds a new warning-preservation test, and adjusts SEC-R9 mutation setup. |
scripts/validate-signed-execution-chain.py |
Updates module docstring to reflect required-check status while preserving the general rule for other realizations. |
README.md |
Amends the OpenSpec Records entry for the archive to add the dated post-archive correction. |
openspec/changes/archive/2026-08-31-add-signed-execution-chain/tasks.md |
Adds an amendment note and ticks tasks 4.5/4.6 with detailed evidence bullets. |
ideation/staging/INDEX.md |
Updates staging index entry to reflect enforcement now being in place and evidenced. |
contracts/signed-execution-chain/README.md |
Updates “registration vs enforcement” narrative to reflect enforcement arriving after the cut. |
contracts/signed-execution-chain/examples/conformance-declaration-openxfactory-tranche-one.example.yaml |
Flips reader-required declaration fields and updates SEC-R9 to satisfied with evidence and timestamps. |
contracts/README.md |
Updates the contract family index rows to reflect the now-required reader and updated declaration state. |
contracts/manifest.yaml |
Updates explanatory comment to reflect post-cut enforcement while clarifying it’s not a property of the bundle. |
contracts/CHANGELOG.md |
Adds a dated addendum clarifying 4.5/4.6 were performed after the contract-v2.5 cut. |
.github/workflows/signed-execution-chain-gate.yml |
Updates header commentary to reflect the check is now required and adjusts the --strict rationale text. |
Suppressed comments (1)
openspec/changes/archive/2026-08-31-add-signed-execution-chain/tasks.md:486
- This bullet points to a machine-local path (
~/projects/xFactory/...) for the canary evidence. To keep the archive durable and portable, replace it with a repo-relative reference or a durable link (e.g., the PR #549 closing comment and/or issue #534 where the evidence is quoted).
ever reached `main`. Full evidence record, all four conjuncts verbatim:
`~/projects/xFactory/chain-gate-canary-2026-08-31/canary-evidence.md`, and the
closing comment on #549 itself.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| at **issue #534**. Evidence: | ||
| `~/projects/xFactory/chain-gate-ruleset-2026-08-31/live-ruleset-read.md` and | ||
| `~/projects/xFactory/chain-gate-canary-2026-08-31/canary-evidence.md`, restated | ||
| under §§ 4.5/4.6 of the archived `tasks.md`. |
| task 2.5 recorded for `wallet-validation`. Durable at | ||
| `~/projects/xFactory/chain-gate-ruleset-2026-08-31/live-ruleset-read.md` and | ||
| quoted on **issue #534**. |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…t it Copilot's review finding, confirmed and taken. Three committed lines pointed at `~/projects/xFactory/...` files for the 4.5 ruleset read and the 4.6 canary record. A path on one machine is not evidence anyone else can follow, and an archived packet is exactly the artifact that outlives the machine. The facts were already recorded inline — the ruleset parameters, the run id, the check-run id, the named refusal, the BLOCKED status — so nothing is lost by dropping the pointers. What replaces them is durable and world-visible: issue #534, where both the live ruleset read and the four conjuncts are quoted verbatim, PR #549's own closing comment, and the endpoints themselves, which anyone with org access can re-read. That is the #387 precedent's shape: the evidence lives in the prose beside the box and in the pull request's own record. One correction to the finding's reasoning, since it will be read later: it cites a repository-constitution rule against host-specific paths, and no such rule turned up — `docs/tui-spec-questionnaire.md` and `docs/notebook-projection-migration-evidence-2026-08-24.md` both carry absolute `/home/brett/...` paths on `main` today. The finding is right on the substance and wrong about the authority, and it is taken on the substance. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Copilot's finding is confirmed and fixed in Nothing is lost by dropping them: the FACTS were already recorded inline beside each box — the ruleset parameters, the run id One correction for later readers, since the finding will be cited: it grounds itself in "the repo constitution's rule to avoid host-specific paths in committed files", and no such rule turned up. @codex is PROVIDER-REFUSED on this pull request, not silent. Both the automatic review at open (01:26:09Z) and the explicit Sourcery is also unavailable (private-repo upsell notice, no findings). CI at Not merging. This pull request is left green and open for Brett. |
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Suppressed comments (1)
contracts/signed-execution-chain/examples/conformance-declaration-openxfactory-tranche-one.example.yaml:45
ruleset_evidence_refis also a multi-line single-quoted scalar, so the value will contain literal newline characters. Using a folded block scalar keeps the stored evidence reference as a single line (more stable for downstream consumers) while preserving the same text.
ruleset_evidence_ref: 'live ruleset read 2026-08-31 (orgs/opensoft/rulesets/21957695 AND
repos/opensoft/openxFactory/rulesets/21957695), plus canary PR #549 red at run 33455808456;
recorded on openxFactory issue #534'
| ruleset_ref: 'opensoft org ruleset 21957695 "openxFactory chain-gate (require signed-execution-chain-gate)": | ||
| target branch, ~DEFAULT_BRANCH of openxFactory, enforcement active, required_status_checks | ||
| [signed-execution-chain-gate]' |
|
Merging on Brett Heap's explicit word, 2026-09-01 in-session ("merge #550"), admin squash per the repository's established provenance pattern. Pre-merge state verified at head 35a69c5: all four checks green (signed-execution-chain-gate, pytest-suite, wallet-validation, merge-master-approval); BLOCKED was solely the Tier-1 approval requirement this word discharges; Codex PROVIDER-REFUSED both rounds (usage limits — not silence), Copilot's one confirmed finding fixed at 35a69c5. This merge flips the packaged declaration to the live truth 4.5 created (org ruleset 21957695) and, with PR #549's canary evidence, fully dissolves issue #534. |
…said by the chain itself) (#565) * Realize add-chain-attestation: cut contract-v2.6 (what actually ran, said by the chain itself) Task 5.9's cut half — the registration half rode in the realization (#556, squash 518c670) because the family's required manifest-row digest test refuses a moved schema whose row did not move in the same commit; the NUMBER stayed out of every contract byte until this cut. THE NUMBER, FRESH-COUNTED AT THE CUT: manifest.yaml:3 declared contract-v2.5, contracts/releases/ held inventories through v2.5, git ls-remote published tags through contract-v2.5, the CHANGELOG headed at v2.5, and grep of the v2.5 inventory returns zero tranche-two rows. The contract-v3.0 of the #551/#552 ratifications is proposal-only retirement targeting a future major and reserves nothing. Next additive number: contract-v2.6. ADDITIVE (minor), MEASURED: git diff --name-status contract-v2.5 518c670 -- contracts/ reports 88 additions and 9 modifications — four editorial registration surfaces, one packaged example moved by the already-landed #550, and the four additive schema extensions. No published member removed, renamed or narrowed; the shipped tranche-one corpus validates green under the extended schemas in the same required check, and the shipped nine-entry declaration stays valid (minItems 9, maxItems 18). The release-boundary enum takes its hand-advance (FEATURE_SUCCESSOR_3 = contract-v2.6, membership unchanged — stated by hand because the library cannot tell unchanged from unnoticed), and the contract-v2.6 digest inventory (283 entries) is built through the bundle realization order. Annotated tag + verify-commit/verify-tag from an independent clone follow the merge immediately, so no new untagged-bundle instance opens (#528's failure mode). Co-Authored-By: Claude Fable 5 <[email protected]> * Answer both Copilot findings in prose, and re-baseline the one digest that moved Lane takeover on Brett Heap's ruling of 2026-09-01: the session that authored this cut has ended, so this lane adopts the PR for its two open review findings and the post-merge acts the body promises. THE CUT'S CONTENT IS UNTOUCHED — no number, digest, schema, measurement or record of the realization is restated here; the only digest that moves is the mechanical consequence of a prose edit to an inventory member, rebuilt by the tool and not by hand. FINDING 1 (README.md:568) — the OpenSpec Records entry said the change "stays ACTIVE until merged code, green evidence and the contract cut exist" and then, in the next sentence, said the code surface IS realized and the bundle IS cut. The entry now states the archive CONDITION rather than denying its parts: the change archives only on merged code, green evidence and the contract cut with its published tag, and stays listed as ACTIVE until all of that is on `main`. Entry kept listed, meaning kept. FINDING 2 (contracts/CHANGELOG.md:31) — "Next additive number: contract-v2.6" read, inside the contract-v2.6 entry, as though it named the version AFTER this one. It now says plainly that contract-v2.6 IS the number this cut takes, freshly counted at that tip. The author's measurement facts in the preceding sentence (manifest read v2.5, inventories through v2.5, tags through v2.5, zero tranche-two rows in the v2.5 inventory) are unchanged. RELEASE RITUAL. `contracts/CHANGELOG.md` IS a release-inventory member (`artifact_id: contracts-changelog.md`), so finding 2's prose moved a pinned per-file digest; the root `README.md` is NOT a member, so finding 1 moved none. The inventory was therefore rebuilt with the canonical tool per `docs/contract-versioning-policy.md` — `scripts/validate-contract-release.py build --tag contract-v2.6 --output contracts/releases/contract-v2.6.digests.yaml` — which reproduced 283 entries and changed EXACTLY ONE LINE, the changelog digest (96682104… -> 4548a7de…). No digest was hand-edited. `validate-contract-release.py verify-commit` passes at this commit. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]>
This pull request changes no rule and adds no capability. It makes the recorded state match the world, after
add-signed-execution-chaintasks 4.5 and 4.6 were performed on 2026-08-31 (openxFactory #534).What happened, and what the evidence is
signed-execution-chain-gateis a REQUIRED check onmainthrough opensoft org ruleset 21957695 (openxFactory chain-gate),target: branch, conditions~DEFAULT_BRANCH+repository_name: openxFactory,enforcement: active,required_status_checks: [signed-execution-chain-gate],strict: false, bypassOrganizationAdmin: always. A DEDICATED ruleset mirroring the wallet-gate precedent 21538893 rather than an edit to it, so one gate's requirement cannot silently move the other's. Read back live from bothorgs/opensoft/rulesets/21957695andrepos/opensoft/openxFactory/rulesets/21957695, and independently fromrepos/opensoft/openxFactory/rules/branches/main. A merged workflow file was never the evidence and still is not.33455808456/ check-run99695407307went red with exactly one named refusal —leaf_hash_link_broken— ending1 error(s), 2 warning(s), exit 1; GitHub reported the pull request BLOCKED; the ruleset was re-read fresh against that pull request; it was closed unmerged and its branch deleted. The red was a WALK that refused, not a walk that never happened: the same log carries the pinned-vocabulary note,24/24 closed refusal codes red-proven, andrepo scan: 8 artifact(s) checkedwheremainreports 0.Durable records:
~/projects/xFactory/chain-gate-ruleset-2026-08-31/live-ruleset-read.mdand~/projects/xFactory/chain-gate-canary-2026-08-31/canary-evidence.md, both quoted on #534.The flip itself
contracts/signed-execution-chain/examples/conformance-declaration-openxfactory-tranche-one.example.yaml:realization.reader_required_check.is_required_in_ruleset:false→true, with the optionalruleset_refnow naming ruleset 21957695 andruleset_evidence_refpointing at the live read, the canary and Carried forward from add-signed-execution-chain's archive: 4.5 make signed-execution-chain-gate REQUIRED in the ruleset (operator act), and 4.6 its canary evidence blocked on it #534 — the schema's own fields for exactly this, rather than a new one.partial→satisfied, itsdeclared_residualremoved (the validator refuses a satisfied entry that also declares one), the reason rewritten to state the ruleset act and the canary as facts with their ids, and anevidence_refadded. The entry'sdeclared_at— and the declaration's — move to the flip date, which is what per-entrydeclared_atexists to make visible.satisfied. Requirement 9 being met makes the tranche ENFORCED, not complete.With that, the reader emits 0 errors, 0 warnings over the corpus and the tree, where it previously emitted the standing
reader-not-requiredwarning on every run.The tests that pinned the old state
tests/signed_execution_chain/test_chain_reader.py:test_the_reader_says_the_capability_confers_nothing_yet→test_the_reader_no_longer_says_the_capability_confers_nothing. The assertion is INVERTED, not deleted — and a new test,test_a_declaration_recording_the_reader_unrequired_still_warns, holds the reader to the rule for any realization that is not gated (a domain repository consuming this family, or this one if the ruleset were ever dropped). Without it, the first test could go green for the wrong reason.test_a_declaration_recording_sec_r9_satisfied_while_unrequired_is_refusedkeeps its name and its point, but its mutation must now set the reader unrequired too: SEC-R9satisfiedis the CORRECT record since 2026-08-31, and the refusal was always about the PAIRING, never about the word.74 → 75 tests in that package, all passing.
The prose that recorded the degraded state, updated honestly
Present-tense claims that are now false are corrected:
contracts/signed-execution-chain/README.md(§ Repository context and § What this family does NOT do),contracts/README.md(both family rows),scripts/validate-signed-execution-chain.py's module docstring,.github/workflows/signed-execution-chain-gate.yml's header (and its--strictrationale, which had two standing warnings to justify and now has one), the docstrings oftest_gate_wiring.pyandtest_manifest_row_digests.py, thecontracts/manifest.yamlcomment above the family's rows, and the staged topic's entry inideation/staging/INDEX.md.Historical records are AMENDED, never rewritten.
contracts/CHANGELOG.md'scontract-v2.5section keeps every sentence it shipped with — each was true at that cut — and gains a dated addendum; the top-levelREADME.md's OpenSpec Records entry keeps its account of what the archive act did and did not do, and gains the correction after it. The archivedopenspec/changes/archive/2026-08-31-add-signed-execution-chain/tasks.mdhas §§ 4.5 and 4.6 ticked with their evidence beneath them, a dated amendment note at the top, and not one of its "OPEN"/"NOT DONE"/"BLOCKED BY CONSTRUCTION" restatements edited away — the point of those restatements was that they were true when written, and deleting them would be exactly the tidying-up they were written to resist.Three things deliberately NOT touched:
openspec/specs/signed-execution-chain/spec.md— canon. Requirement 9 and its scenarios are unchanged and need no change: they were always conditional (until a named reader runs as a required check), and the condition is now satisfied rather than the rule altered. Canon edits go through an OpenSpec change, not through a state-flip PR.examples/negative/declaration-claiming-the-truncation-residual-is-closed.yaml, which still recordsis_required_in_ruleset: false— it must, and it still red-proves its own code. All 34 negatives still confirm invalid for their intended reason.OrganizationAdmin: always, as every ruleset in this org does. The declaration says so in SEC-R9's reason rather than implying a strength this capability invented for itself.Verification
python3 scripts/validate-signed-execution-chain.py . --require-pinned-wallet-vocabulary(the gate's exact invocation,openXwalletgitlink initialized): 0 error(s), 0 warning(s), exit 0. Self-test 7 positives / 34 negatives, 24/24 closed refusal codes red-proven;repo scan: 0 artifact(s) checked, the declared expected state.python3 -m pytest tests/signed_execution_chain -q: 75 passed.python3 scripts/validate-manifest-digests.py: 155 per-file digest(s) verify — no schema byte moved, so no row moved.OPENSPEC_TELEMETRY=0 openspec validate --all --strict: 78 passed, 0 failed.python3 -m pytest tests/ -q -m "not postgres"before pushing.Closes the repository-side residue of #534. The two acts themselves are already done and are not in this diff — nothing here can make a check required, and this pull request does not claim to.