Skip to content

Record what 4.5 and 4.6 performed: the reader IS required, so the declaration says so (#534) - #550

Merged
brettheap merged 2 commits into
mainfrom
change/chain-gate-required-flip
Sep 1, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/chain-gate-required-flip

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

This pull request changes no rule and adds no capability. It makes the recorded state match the world, after add-signed-execution-chain tasks 4.5 and 4.6 were performed on 2026-08-31 (openxFactory #534).

What happened, and what the evidence is

  • 4.5 — the operator act. signed-execution-chain-gate is a REQUIRED check on main through 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, bypass OrganizationAdmin: 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 both orgs/opensoft/rulesets/21957695 and repos/opensoft/openxFactory/rulesets/21957695, and independently from repos/opensoft/openxFactory/rules/branches/main. A merged workflow file was never the evidence and still is not.
  • 4.6 — the canary. Draft PR CANARY — deliberately broken chain record; MUST FAIL signed-execution-chain-gate; never merge (task 4.6, #534) #549 carried a chain whose log link was broken on purpose. Run 33455808456 / check-run 99695407307 went red with exactly one named refusal — leaf_hash_link_broken — ending 1 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, and repo scan: 8 artifact(s) checked where main reports 0.

Durable records: ~/projects/xFactory/chain-gate-ruleset-2026-08-31/live-ruleset-read.md and ~/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 optional ruleset_ref now naming ruleset 21957695 and ruleset_evidence_ref pointing 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.
  • SEC-R9: partial → satisfied, its declared_residual removed (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 an evidence_ref added. The entry's declared_at — and the declaration's — move to the flip date, which is what per-entry declared_at exists to make visible.
  • The other eight entries did not move. SEC-R1 and SEC-R6 keep their structural residuals; the reader still refuses either recorded 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-required warning 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_refused keeps its name and its point, but its mutation must now set the reader unrequired too: SEC-R9 satisfied is 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 --strict rationale, which had two standing warnings to justify and now has one), the docstrings of test_gate_wiring.py and test_manifest_row_digests.py, the contracts/manifest.yaml comment above the family's rows, and the staged topic's entry in ideation/staging/INDEX.md.

Historical records are AMENDED, never rewritten. contracts/CHANGELOG.md's contract-v2.5 section keeps every sentence it shipped with — each was true at that cut — and gains a dated addendum; the top-level README.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 archived openspec/changes/archive/2026-08-31-add-signed-execution-chain/tasks.md has §§ 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:

  1. 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.
  2. examples/negative/declaration-claiming-the-truncation-residual-is-closed.yaml, which still records is_required_in_ruleset: false — it must, and it still red-proves its own code. All 34 negatives still confirm invalid for their intended reason.
  3. The bypass. Ruleset 21957695 carries 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, openXwallet gitlink 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.
  • Full local 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.

…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]>
Copilot AI lite review requested due to automatic review settings September 1, 2026 01:26

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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.

Comment thread ideation/staging/INDEX.md Outdated
Comment on lines +1988 to +1991
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`.
Comment on lines +416 to +418
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**.
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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 AI review requested due to automatic review settings September 1, 2026 01:48
@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot's finding is confirmed and fixed in 35a69c5d. Three committed lines pointed at ~/projects/xFactory/... files for the 4.5 ruleset read and the 4.6 canary record — one in ideation/staging/INDEX.md, two in the archived tasks.md. A path on one machine is not evidence anyone else can follow, and an archived packet is precisely the artifact that outlives the machine.

Nothing is lost by dropping them: the FACTS were already recorded inline beside each box — the ruleset parameters, the run id 33455808456, the check-run id 99695407307, the named refusal, the BLOCKED status. What replaces the pointers is durable and world-visible: issue #534, where the live ruleset read and all four conjuncts are quoted verbatim; PR #549's own closing comment; and the API endpoints, which anyone with org access can re-read for themselves. That is the #387 precedent's shape — evidence in the prose beside the box and in the pull request's own record.

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. docs/tui-spec-questionnaire.md and docs/notebook-projection-migration-evidence-2026-08-24.md both carry absolute /home/brett/... paths on main today. Right on the substance, wrong about the authority — taken on the substance.

@codex is PROVIDER-REFUSED on this pull request, not silent. Both the automatic review at open (01:26:09Z) and the explicit @codex review request (01:46:04Z) returned "You have reached your Codex usage limits for code reviews." No Codex findings exist to address; that is a provider quota, not a clean bill of health, and it is recorded here rather than read as convergence.

Sourcery is also unavailable (private-repo upsell notice, no findings).

CI at 811b72d8 before this commit: all four checks green — signed-execution-chain-gate pass (29s), pytest-suite pass (8364 passed, 21 skipped, pin selected=8431 passed=8410 skipped=21, floors margin +1341/+1340), wallet-validation pass, merge-master-approval pass. Re-gating now on 35a69c5d, which touches two Markdown files only.

Not merging. This pull request is left green and open for Brett.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

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_ref is 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'

Comment on lines +40 to +42
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]'
@brettheap

Copy link
Copy Markdown
Contributor Author

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.

@brettheap
brettheap merged commit be122ab into main Sep 1, 2026
5 checks passed
brettheap added a commit that referenced this pull request Sep 2, 2026
…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]>
@brettheap
brettheap deleted the change/chain-gate-required-flip branch September 2, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants