Skip to content

Realize add-signed-execution-chain: cut contract-v2.5 (a validated chain is not an audit trail, it is a permission) - #533

Merged
brettheap merged 3 commits into
mainfrom
change/cut-contract-v2.5
Aug 31, 2026
Merged

brettheap merged 3 commits into
mainfrom
change/cut-contract-v2.5

Conversation

@brettheap

@brettheap brettheap commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Realizes add-signed-execution-chain task 4.7 — the cut-dependent box act one
(PR #524, squash 9af98c4d) deliberately left to the cutting session, because a
proposed change MUST NOT reserve a minor number before merge order is known.
Registration in contracts/manifest.yaml + contracts/CHANGELOG.md, and the
additive bundle.

Working record: openspec/changes/add-signed-execution-chain/realization-evidence.md.

THE NUMBER, FRESH-COUNTED AT THE CUT — THE THIRD COUNT

This number has moved twice, which is exactly why 4.7 required it re-counted:

count taken at read what happened
first the packet's tip contract-v2.3 superseded — PR #514 took it
second the realization's tip contract-v2.4 superseded — #526 afdf0e88 cut AND tagged it alone
third this branch's tip contract-v2.5 taken here

At the tip: contracts/manifest.yaml:3 declared contract-v2.4;
contracts/releases/ held inventories through contract-v2.4; git ls-remote --tags origin published v2.0–v2.4; no Unreleased block pending; and
grep -c signed-execution-chain contracts/releases/contract-v2.4.digests.yaml
→ 0, so v2.4 is spent and covers none of this family.

Nothing had to be renumbered when v2.4 was taken by a sibling, because act one
wrote the re-count INSTRUCTION into tasks.md and no number into any contract
byte. That is the rule working, not luck.

ADDITIVE, AND NOTHING NARROWS — MEASURED, NOT CLAIMED

git diff --name-status contract-v2.4 9af98c4d -- contracts/ reports 47
additions and exactly ONE modification
, and the one modification is
contracts/README.md — the editorial contract index, not a schema. Not one
schema, template, example or registry this repository already published moved a
byte, so there is no shared file in which a prior-bundle instance could be
refused. contract_schema_version unchanged.

WHAT LANDED, IN ORDER, WITH THE INVENTORY LAST

  1. contracts/manifest.yaml — bundle contract-v2.4 → contract-v2.5, plus the
    family block registering all five schemas with per-file sha256. 167 rows
    → 172; validate-manifest-digests.py 150 → 155 verify. The corpus, the
    family README, the reader and its pytest wiring are content-addressed by
    commit (the openxWallet / client-identity-roster / identity-brokering /
    trust-anchor precedent).
  2. contracts/CHANGELOG.md — the contract-v2.5 entry.
  3. contracts/README.md + contracts/signed-execution-chain/README.md — the
    three REALIZED and NOT YET REGISTERED sentences resolved to the literal
    contract-v2.5, each keeping its enforcement line.
  4. docs/contract-versioning-policy.md — the contract-v2.3 instance recorded.
  5. tests/intent-compliance/test_release_boundary.py — the boundary pin
    ADVANCED, not broadened.
  6. tests/signed_execution_chain/test_manifest_row_digests.py — new.
  7. tasks.md 4.7 ticked with evidence; README.md and
    ideation/staging/INDEX.md record the cut and that TWO boxes remain open.
  8. contracts/releases/contract-v2.5.digests.yaml — built LAST, never
    hand-edited. 283 entries, membership UNCHANGED (283 at v2.4, zero added,
    zero removed — an additive release shows in what a member ASSERTS). Exactly
    five digests move, each a file this cut edited.

REGISTRATION IS NOT ENFORCEMENT, AND EVERY ARTIFACT SAYS SO

Tasks 4.5 and 4.6 are OPEN and are not this session's to close, and they are
the ones that decide whether any of the rest confers anything. 4.5 makes the named
reader a REQUIRED check in the branch ruleset — an OPERATOR act whose evidence is
the live ruleset state and never a merged workflow file. 4.6 is its canary
evidence and is blocked on 4.5 by construction. So requirement 9 is UNMET
rather than partially met, the packaged conformance declaration still records
is_required_in_ruleset: false, and the reader still emits its standing
reader-not-required warning on every run. A manifest row is a consumption
contract for BYTES; nothing here may be cited as evidence that a chain is walked
before a terminal act.

THE NEW TEST, AND WHY IT EARNS ITS PLACE

scripts/validate-manifest-digests.py sweeps all 155 rows and is wired into no
workflow and no test
— grep -rn validate-manifest-digests finds it only in
prose. A tool that catches drift when a human remembers to run it is the failure
mode it was written to close, one level up: it exists because one stale row rode
through THREE bundle cuts undetected. So the five rows this cut adds get a
standing check, scoped to this family so a red reds for this capability's reason
(the tests/credential_contracts/test_manifest_row_digest.py precedent).

RED-PROVEN, NOT ASSUMED, and the proof found a defect in the test itself:

mutation before after
digest → deadbeefcafe0000… AssertionError naming both digests unchanged
digest → 64 zeros TypeError — a harness failure AssertionError, recorded value '0'
a row deleted entirely 3 failures (closure + that row's cases) unchanged

An unquoted all-digit YAML scalar parses as an int, so slicing it crashed
where a MISMATCH was the answer owed. That is this realization's own round-three
lesson — every refusal must reach the caller as the same kind of answer —
arriving in its own gate, found by RUNNING the mutation rather than reading the
code. Repaired with str() (the sweeper's own precedent) plus an explicit
isinstance(..., str) assertion, because an int-parsed digest also silently loses
leading zeros.

THE PREDECESSOR TAGS — RECORDED BY #532, CITED HERE, AND THE POLICY HALF IT DECLINED

This cut's fresh count surfaced that contract-v2.3 — which the contract-v2.4
entry recorded as declared and NEVER TAGGED, with publication PENDING an owner act
— had since been tagged, and the first draft measured and recorded that discharge
itself. Then origin/main advanced to 96b8a616 (PR #532), whose entire subject
is that same publication.
It is the better record: it peels BOTH tag objects
(v2.3 AND v2.4, which the v2.4 entry had also left unmentioned), runs
verify-commit at both targets, and re-validates the targeting rule against a live
control (contract-v2.2 → 8ccfb67b, matching its published tag).

So this cut's subsection was rewritten from a MEASUREMENT into a CITATION — two
records of one measurement is how they drift apart — and the policy half was KEPT
AND WIDENED
, because #532 explicitly declines it. That entry names the structural
cause (#528: no gate anywhere asserts a declared bundle has a published tag),
observes that the policy's "every bundle from contract-v1.7 … is now tagged"
has been false twice while nothing noticed, and correctly refuses to correct the
prose a third time. docs/contract-versioning-policy.md § Untagged Bundles now
carries v2.3 and v2.4 as instances FOUR and FIVE beside the August three — with
each untagged window, the fact that v2.3 was CONSUMED as a spent number inside its
own window, why it recurred, and the plain statement that a record is not a
check
and #528 is open.

MERGE, NOT REBASE. A repository rule forbids force-pushing a change/* branch
and this one was already published with a bot round on it, so the catch-up landed as
a merge — this repository's own precedent (4ed42be5, 8d1f6e9e). The merge
auto-resolved cleanly: #532 inserts inside the v2.4 entry, this cut inserts a new
entry above it. contracts/CHANGELOG.md IS an inventory member, so #532's edit made
verify-commit go red on the merged tree with exactly one finding — the check doing
its job on a real drift — and the inventory was rebuilt (third build). Every
gate was re-run on the merged content, and the merge commit's tree is byte-identical
to the candidate they were run against.

THE LESSON: check for a sibling branch or PR on your SUBJECT the minute before
authoring a record about it, not only at the start. This cut counted correctly at
its tip and was still overtaken, because the count surfaced a fact interesting
enough that somebody else was already writing it up.

THE UNCUT MISMATCH 4.7 PREDICTED, FOUND EXACTLY AS PREDICTED

verify-commit --commit HEAD at 9af98c4d reported ONE
HGR-RELEASE-DIGEST-MISMATCH, on contracts/README.md, and nothing else — the
documented editorial uncut state. No non-editorial member drifted. The cut
resolves it by construction.

REBASED ONTO THE FINAL INTEGRATION POINT

Policy step 1 requires the rebase and an IMMEDIATE re-check; step 4 makes a
different commit a new candidate whose gates rerun. origin/main advanced
9af98c4d → 95a22a42 (PR #531) → 96b8a616 (PR #532) mid-authoring, so the
branch was brought forward TWICE and the count RE-TAKEN each time: inventories still through v2.4, tags still through v2.4, no
v2.5 on the remote, still 0 family members in v2.4's inventory. v2.5 still
stands.
The inventory needed no rebuild, measured not assumed: #531 touched
docs/doc-health.md, scripts/doc_health/{report,runner}.py and
tests/doc-health/test_suite.py — not one release-inventory member. Every
gate below was re-run at each candidate, the final one included.

GATES

gate result
verify-commit --commit HEAD GREEN, inventory=contracts/releases/contract-v2.5.digests.yaml, exit 0, zero findings
verify-tag v2.3 / v2.4 release verify-tag: pass / pass
validate-manifest-digests.py OK … 155 per-file digest(s) verify
verify-openxwallet-pin.py OK … openXwallet@6b248d40… (wallet-v1.3), 8 digest(s) recomputed
validate-signed-execution-chain.py . 0 error(s), 1 warning(s) — the reader-not-required warning, which is 4.5's absence speaking
openspec validate add-signed-execution-chain --strict valid
openspec validate --all --strict Totals: 80 passed, 0 failed
every other scripts/validate-*.py green; the one non-zero is PRE-EXISTING and identical at 9af98c4d (16 errors in files this cut does not touch, measured by stash-and-rerun)
pytest tests/ -q -m "not postgres" 8363 passed, 21 skipped, 338 deselected, 46 subtests passed, 0 failed, exit 0, 24m, at the REBASED tip. 8363+21+338 = 8722 = everything collection sees
verify-promotion --commit HEAD --remote origin --tag contract-v2.5 6 findings, ALL reachability-class (HGR-RELEASE-CANDIDATE-UNREACHABLE + 5 × HGR-RELEASE-SURFACE-DRIFT). No HGR-RELEASE-TAG-EXISTS, so the name is free on the remote. EXPECTED pre-merge; clears on merge
doc-health, same-clock, both directions, both named openxFactory baseline 96b8a616 5/4/38/13 = 60 (drift 2); branch 5/4/38/11 = 58 (drift 0). Set difference taken BOTH ways: zero new of any family, exactly two removed — both the drift findings this cut discharges (contracts/README.md and, at the final base, contracts/CHANGELOG.md)

The contract-v2.5 TAG is NOT in this PR: policy step 5 publishes it against
the commit that actually LANDS.

Co-Authored-By: Claude Fable 5 [email protected]

…ain is not an audit trail, it is a permission)

Task 4.7 — the cut-dependent box act one (PR #524, squash 9af98c4) left to the
cutting session, because a proposed change MUST NOT reserve a minor number before
merge order is known.

THE NUMBER, FRESH-COUNTED AT THE CUT — THE THIRD COUNT, and it has moved twice:
the packet read contract-v2.3 (PR #514 took it), the realization read
contract-v2.4 (#526 afdf0e8 cut AND tagged it alone). At this tip
contracts/manifest.yaml:3 declared contract-v2.4, contracts/releases/ held
inventories through v2.4, git ls-remote published v2.0-v2.4, no Unreleased block
was pending, and `grep -c signed-execution-chain
contracts/releases/contract-v2.4.digests.yaml` returned 0 — so v2.4 is spent and
covers none of this family. Next additive number: contract-v2.5.

Nothing had to be renumbered when a sibling took v2.4, because act one wrote the
re-count INSTRUCTION into tasks.md and no number into any contract byte.

ADDITIVE (minor), AND NOTHING NARROWS — MEASURED, NOT CLAIMED.
`git diff --name-status contract-v2.4 9af98c4 -- contracts/` reports 47
additions and exactly ONE modification, and that modification is
contracts/README.md, the editorial index. Not one schema, template, example or
registry already published moved a byte, so there is no shared file in which a
prior-bundle instance could be refused. contract_schema_version unchanged.

WHAT MOVED, IN ORDER, WITH THE INVENTORY LAST:

- contracts/manifest.yaml: contract_bundle_version contract-v2.4 -> contract-v2.5,
  plus the signed-execution-chain family block registering all FIVE schemas with
  per-file sha256. 167 rows -> 172; validate-manifest-digests.py 150 -> 155
  verify. The corpus, the family README, the reader and its pytest wiring are
  content-addressed by commit with no per-file digest (the openxWallet,
  client-identity-roster, identity-brokering and trust-anchor precedent).
- contracts/CHANGELOG.md: the contract-v2.5 entry, with the nothing-narrows
  measurement, the fresh count, the two structural residuals, the
  registration-is-not-enforcement section and the contract-v2.3 discharge.
- contracts/README.md + contracts/signed-execution-chain/README.md: the three
  "REALIZED and NOT YET REGISTERED" sentences act one wrote, resolved to the
  literal contract-v2.5, each keeping its enforcement line.
- docs/contract-versioning-policy.md: contract-v2.3 recorded as a FOURTH untagged
  instance and its discharge, in the section that already holds three. The
  section's "Every bundle from contract-v1.7 ... is now tagged" was true when
  written, became false, and is true again; a reader must not take it as evidence
  the practice never lapsed.
- tests/intent-compliance/test_release_boundary.py: the boundary pin ADVANCED, not
  broadened. The tripwire fired on the bump, correctly — the library floor is an
  at-or-after comparison that would never have noticed. One named enum member,
  same match arm, 13 tests before and 13 after. The reason it needs a hand act is
  sharper here than at v2.4: this cut registers a DIFFERENT family, so nothing
  about it touches intent-compliance's membership, which is exactly the fact a
  human has to state because the library cannot tell "unchanged" from "unnoticed".
- tests/signed_execution_chain/test_manifest_row_digests.py: NEW. The five rows
  this cut adds are recomputed from the files on disk, and the registration is
  closed in BOTH directions with the on-disk set derived from the DIRECTORY.
  It exists because scripts/validate-manifest-digests.py, which sweeps all 155
  rows, is wired into NO workflow and NO test — a tool that catches drift when a
  human remembers to run it is the failure mode it was written to close, one
  level up.
  RED-PROVEN, AND THE PROOF FOUND A DEFECT IN THE TEST ITSELF: a 64-zero digest
  is parsed by PyYAML as an INT, so slicing it raised TypeError where a MISMATCH
  was the answer owed — this realization's own round-three lesson, that every
  refusal must reach the caller as the same kind of answer, arriving in its own
  gate. Repaired with str() (the sweeper's precedent) plus an explicit
  isinstance(..., str) assertion, since an int-parsed digest also silently loses
  leading zeros. Both mutation classes now report as findings.
- contracts/releases/contract-v2.5.digests.yaml: built LAST, by
  scripts/validate-contract-release.py build, never hand-edited. 283 entries —
  MEMBERSHIP UNCHANGED from v2.4's 283, zero added and zero removed, which is what
  an additive release looks like in an inventory: the growth is in what a member
  ASSERTS. Exactly five digests move, each a file this cut edited. Built TWICE for
  that reason: rebuilt after two members moved during review of the entry text.

REGISTRATION IS NOT ENFORCEMENT, and every artifact this cut touches says so.
Tasks 4.5 and 4.6 are OPEN and are not this session's to close, and they are the
ones that decide whether any of the rest confers anything: 4.5 makes the named
reader a REQUIRED check in the branch ruleset, an OPERATOR act whose evidence is
the live ruleset state and never a merged workflow file; 4.6 is its canary
evidence and is blocked on 4.5 by construction. Requirement 9 is UNMET rather
than partially met, the packaged conformance declaration still records
is_required_in_ruleset: false, and the reader still warns on every run.

contract-v2.3 — THE PENDING OWNER ACT IS DISCHARGED, surfaced by this cut's fresh
count. The tag exists on the remote, verify-tag passes, and it dereferences to
ec8be5a — exactly the commit the contract-v2.4
entry measured as the earliest first-parent commit on main declaring the bundle at
which verify-commit passes (the PR #514 merge). Tag object dated 2026-08-31
03:14 -0400, the same timestamp as contract-v2.4's: the owner published both
together. Untagged window about nineteen hours, during which afdf0e8 consumed
v2.3 as a spent number. RECORDED, NOT SOFTENED, and nothing here tags or re-tags
anything.

The uncut mismatch 4.7 predicted was found exactly as predicted: verify-commit
--commit HEAD at 9af98c4 reported ONE HGR-RELEASE-DIGEST-MISMATCH, on
contracts/README.md, and nothing else. No non-editorial member drifted. The cut
resolves it by construction.

Full working record: openspec/changes/add-signed-execution-chain/realization-evidence.md

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 31, 2026 12:11

@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 ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

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

Cuts and registers the signed-execution-chain contract family as contract-v2.5 (realizing add-signed-execution-chain task 4.7) by updating the release surfaces (contracts/manifest.yaml, contracts/CHANGELOG.md, and generated inventory) and propagating the cut record across docs and OpenSpec task evidence.

Changes:

  • Bump bundle version to contract-v2.5, register five new signed-execution-chain schema rows with per-file sha256, and add the generated contract-v2.5 release inventory.
  • Advance intent-compliance release boundary classification to include contract-v2.5.
  • Add a new scoped pytest check ensuring the five new manifest rows’ digests match the on-disk schema bytes, and update documentation/evidence to reflect the cut and remaining open boxes (4.5, 4.6).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/signed_execution_chain/test_manifest_row_digests.py New scoped tests that verify the five newly-registered manifest rows match on-disk schema digests and include expected consumption-rule markers.
tests/intent-compliance/test_release_boundary.py Extends the explicit release-boundary enum/match handling to classify contract-v2.5 consistently.
README.md Updates the active change entry to reflect registration at contract-v2.5 and the remaining open tasks.
openspec/changes/add-signed-execution-chain/tasks.md Marks task 4.7 as completed with detailed cut evidence and keeps 4.5/4.6 open.
openspec/changes/add-signed-execution-chain/realization-evidence.md Adds the working record for the cut session (act two) and measured gate outputs.
ideation/staging/INDEX.md Updates staging index narrative to reflect that the cut is taken and that 4.5/4.6 remain open.
docs/contract-versioning-policy.md Records the contract-v2.3 tag retro-publication discharge and clarifies the section’s discharge timeline.
contracts/signed-execution-chain/README.md Updates family README front-matter from “not yet registered” to registered at contract-v2.5.
contracts/releases/contract-v2.5.digests.yaml Adds the generated contract-v2.5 release digest inventory (283 entries).
contracts/README.md Updates the editorial contract index to reflect registration at contract-v2.5.
contracts/manifest.yaml Bumps contract_bundle_version to contract-v2.5 and adds the five signed-execution-chain registration rows with sha256.
contracts/CHANGELOG.md Adds the contract-v2.5 changelog entry describing the additive cut, registration, and boundaries.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 3587ea8456

ℹ️ 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".

…t one level of it

Copilot, PR #533 round one, and the finding is real. The closure test derived the
on-disk set with Path.glob("*.schema.yaml"), which reads the family ROOT ONLY —
so a schema placed in a SUBDIRECTORY would bypass the closure this test exists to
enforce and ship UNREGISTERED while the test stayed green.

Not hypothetical: this repository already carries
contracts/hermes-runtime/migrations/v1-to-v2-mapping.schema.yaml, the only nested
schema under contracts/ today and proof the layout is reachable.

MEASURED AGAINST THE PRE-FIX PREDICATE, not reasoned about. With an unregistered
nested sixth schema on disk, glob returned exactly the five expected paths and the
assertion PASSED; rglob fails. glob and rglob return the identical five paths at
this cut, so the fix changes nothing today and closes the hole for whoever adds
the sixth file.

The docstring said "derived from the DIRECTORY" while the code read one level of
it — this capability's own round-one defect class, a check that looked like it was
doing its job, arriving one level up in the cut's own instrument. The instrument
gets the same scrutiny as the thing it measures.

realization-evidence.md records the round. No inventory member moved, so the
contract-v2.5 inventory is unchanged and verify-commit stays green.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 31, 2026 12:23
@brettheap

Copy link
Copy Markdown
Contributor Author

Round one taken: Copilot's glob → rglob finding was real and is fixed at 9c648d4a.

Red-proven against the pre-fix predicate, not reasoned about. With an unregistered nested sixth schema on disk, glob returned exactly the five expected paths and the assertion PASSED — the blind spot; rglob fails. The cited layout is reachable rather than hypothetical: contracts/hermes-runtime/migrations/v1-to-v2-mapping.schema.yaml is the only nested schema under contracts/ today. glob and rglob return the identical five paths at this cut, so the fix changes nothing now and closes the hole for whoever adds the sixth file.

Worth naming: the docstring said "derived from the DIRECTORY" while the code read one level of it — this capability's own round-one defect class (a check that looked like it was doing its job) arriving one level up, in the cut's own instrument. Recorded in realization-evidence.md.

No release-inventory member moved, so contract-v2.5's inventory is unchanged and verify-commit stays green at the new tip.

@codex review

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 12 out of 12 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

tests/signed_execution_chain/test_manifest_row_digests.py:145

  • assert isinstance(row["sha256"], str) is placed after the digest-equality assertion, so it will never run in the common failure case where sha256 is parsed as an int (or any other mismatch). That makes the type/quoting guarantee effectively unenforced and the explanatory comment misleading; check the type first, then compare digests using the string value so failures report the intended reason.
    recorded = str(row["sha256"])
    assert recorded == actual, (
        f"contracts/manifest.yaml records {recorded[:12]}… for {row['path']} "
        f"but the bytes hash to {actual[:12]}…. The schema moved and the row did "
        f"not. Recompute it in the SAME commit — a consumer verifies the digest "

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 9c648d4aa4

ℹ️ 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".

…edecessor tags, keep the policy half it declined

MERGE, NOT REBASE, because a repository rule forbids force-pushing a change/*
branch and this branch is already published with a bot round on it. The catch-up
merge is this repository's own precedent (4ed42be, 8d1f6e9).

origin/main advanced to 96b8a61 (PR #532) after this cut went green, and its
entire subject is the contract-v2.3/v2.4 tag publication this cut's fresh count
had surfaced and recorded itself. #532 is the better record: it peels BOTH tag
objects, runs verify-commit at both targets, and re-validates the targeting rule
against a live control (contract-v2.2 -> 8ccfb67, matching its published tag).

contracts/CHANGELOG.md IS A RELEASE-INVENTORY MEMBER, so #532's edit moved it and
verify-commit went red on the merged tree with exactly one finding,
HGR-RELEASE-DIGEST-MISMATCH on contracts/CHANGELOG.md — the check doing its job on
a real drift, not the editorial uncut state. The inventory is REBUILT (third
build) and verify-commit is green again: still 283 entries, membership unchanged,
the same five digests moved.

- contracts/CHANGELOG.md: this cut's predecessor-tag subsection rewritten from a
  MEASUREMENT into a CITATION of #532. Two records of one measurement is how they
  drift apart, and the v2.4 entry is where a reader of that bundle looks. The
  merge itself auto-resolved cleanly — #532 inserts inside the v2.4 entry, this
  cut inserts a new entry above it.
- docs/contract-versioning-policy.md: KEPT AND WIDENED, because #532 explicitly
  declines this half. It names the structural cause (issue #528: no gate anywhere
  asserts that a declared bundle has a published tag), observes that the policy's
  "every bundle from contract-v1.7 is now tagged" has been false TWICE while
  nothing noticed, and correctly refuses to correct the prose a third time. The
  section now carries contract-v2.3 AND contract-v2.4 as instances FOUR and FIVE
  beside the three the 2026-08-25 ruling discharged, with each untagged window,
  the fact that v2.3 was CONSUMED as a spent number inside its window, why it
  recurred, and the plain statement that a record is not a check and #528 is open.
- The count was RE-TAKEN at the new base and still reads contract-v2.5: the remote
  publishes tags through contract-v2.4 and no contract-v2.5, contracts/releases/
  holds inventories through contract-v2.4, and v2.4's inventory still carries zero
  signed-execution-chain members.

Gates re-run on the merged content: verify-commit green, validate-manifest-digests
155/155, openspec --all --strict 80 passed, full suite 8363 passed / 21 skipped /
0 failed, doc-health 60 -> 58 with ZERO new findings and the TWO drift findings
this cut discharges removed.

THE LESSON, already written down once in this estate: check for a sibling branch
or PR on your SUBJECT the minute before authoring a record about it, not only at
the start. This cut counted correctly at its tip and was still overtaken, because
the count surfaced a fact interesting enough that somebody else was already
writing it up.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings August 31, 2026 13:14
@brettheap

Copy link
Copy Markdown
Contributor Author

Brought forward onto 96b8a616 (PR #532) as a MERGE, since a repository rule forbids force-pushing a change/* branch — this repo's own catch-up precedent (4ed42be5, 8d1f6e9e). Tip is now 69509939.

Why it mattered rather than being routine bookkeeping: #532's subject is exactly the contract-v2.3/v2.4 tag publication this cut's fresh count had surfaced and recorded itself, and it is the better record — it peels both tag objects, runs verify-commit at both targets, and re-validates the targeting rule against a live control. So this cut's subsection is now a citation of #532 rather than a second derivation of one measurement, and the policy half #532 explicitly declines is kept and widened: docs/contract-versioning-policy.md § Untagged Bundles carries v2.3 and v2.4 as instances four and five beside the August three, with each untagged window, the fact that v2.3 was consumed as a spent number inside its own window, and the plain statement that a record is not a check — #528 is open.

contracts/CHANGELOG.md is a release-inventory member, so #532's edit made verify-commit go red on the merged tree with exactly one HGR-RELEASE-DIGEST-MISMATCH — the check doing its job on a real drift, not the editorial uncut state. Inventory rebuilt (third build): still 283 entries, membership unchanged, same five digests moved.

Every gate re-run on the merged content, and the merge commit's tree is byte-identical to the candidate they were run against:

gate result
verify-commit --commit HEAD green, zero findings
validate-manifest-digests.py 155/155
openspec validate --all --strict 80 passed, 0 failed
pytest tests/ -q -m "not postgres" 8363 passed, 21 skipped, 0 failed
doc-health, both directions baseline 96b8a616 60 (drift 2) → branch 58 (drift 0); zero new of any family

@codex review

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 12 out of 12 changed files in this pull request and generated 1 comment.

Comment on lines +74 to +83
def _family_rows() -> dict[str, dict]:
manifest = yaml.safe_load(MANIFEST.read_text(encoding="utf-8"))
rows: dict[str, dict] = {}
for row in _walk(manifest):
identifier = row["id"]
if not identifier.startswith("signed-execution-chain"):
continue
assert identifier not in rows, f"duplicate manifest row {identifier!r}"
rows[identifier] = row
return rows

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6950993969

ℹ️ 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".

`contract-v1.33`/`v1.35`/`v1.39` in August and then reached `contract-v2.3` and
`contract-v2.4` in the same week the August ruling was still being cited. **It is
filed as issue #528 and is OPEN.** Until a check lands, the sentence above can go
false a fourth time, and this section records rather than prevents that. A reader

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Correct the recurrence ordinal to third

The new policy text says another lapse would make the sentence false a fourth time, but this cut's own changelog states that it has been false twice and can therefore go false a third time (contracts/CHANGELOG.md:203-211). This leaves the authoritative versioning records internally contradictory when a future reader encounters another missing tag; change “fourth” to “third” or explicitly document a different counting basis.

AGENTS.md reference: AGENTS.md:L9-L10

Useful? React with 👍 / 👎.

@brettheap

Copy link
Copy Markdown
Contributor Author

Ready for the merge decision. All four required checks GREEN at 69509939 — merge-master-approval, pytest-suite (16m30s), signed-execution-chain-gate, wallet-validation. mergeStateStatus is BLOCKED only on REVIEW_REQUIRED (the 1-review ruleset), not on any check.

Bot disposition, recorded plainly:

round commit Codex Copilot
1 3587ea84 no major issues 1 finding — real, taken (glob → rglob)
2 9c648d4a no major issues —
3 69509939 (the catch-up merge) no verdict returned; requested 13:15Z, unanswered the round-1 comment re-anchored to this commit by GitHub (original_commit_id = 3587ea84), replied to and already fixed — line 111 reads .rglob(

Round three's silence is silence, not a refusal message and not an approval, so it is noted rather than counted. What the merge commit changed relative to the twice-reviewed content is bounded and stated: its tree is byte-identical to the candidate every gate was run against, and the delta from 9c648d4a is the #532 response — the changelog subsection turned from a measurement into a citation, the policy section widened to instances four and five, the inventory rebuilt, and the evidence file updated. No schema, validator, workflow or manifest row moved in it.

The contract-v2.5 tag is deliberately NOT in this PR. Policy step 5 publishes the annotated tag against the commit that actually LANDS, then verifies it from an independently refreshed checkout — so it is a post-merge act, and verify-promotion currently reports the contract-v2.5 name free on the remote with no HGR-RELEASE-TAG-EXISTS.

Sourcery is an upsell stub on this repository and returned no review.

@brettheap

Copy link
Copy Markdown
Contributor Author

Provenance — merged on Brett Heap's in-session order, 2026-08-31 ("merge and tag when green")

All four checks green at tip 69509939; verify-commit passes at the tip (inventory built last, 283 members, the five editorial/boundary digests moved); Codex no-findings at 3587ea84 and 9c648d4a, the sole later substantive change being Copilot's prescribed glob→rglob fix, red-proven pre-fix — clean under the prescribed-fix principle; Codex silence on the mechanical merge head noted, not counted. Squash-merge for linear history per the cut agent's flag. Tag contract-v2.5 follows at the squash commit per the policy targeting rule, verified from an independent clone. Tasks 4.5/4.6 remain honestly unticked: the ruleset act is the operator's.

@brettheap
brettheap merged commit 58fd7a4 into main Aug 31, 2026
5 checks passed
brettheap added a commit that referenced this pull request Aug 31, 2026
…d the two boxes that confer everything stay open (#535)

* Archive add-signed-execution-chain: nine requirements reach canon, and the two boxes that confer everything stay open

Archived on Brett Heap's order of 2026-08-31, once the pin-sync had landed.

THE ARCHIVE GATE, READ RATHER THAN INHERITED. `docs/release-realization-flow.md`
wants a code-surface change's code merged on the implemented target plus a green
run. Act one is PR #524, squash `9af98c4d`; act two is the cut, PR #533, squash
`58fd7a4f`, whose annotated tag `contract-v2.5` (object `f0ed3f3b`) peels from
the remote to that commit. Green was taken from the check-runs API at this act,
not from a merge notification: on both final heads (`69509939`, `e7a37064`) all
five checks report success.

TWO BOXES DID NOT CLOSE, AND NOTHING HERE PRETENDS THEY DID. Task 4.5 is the
OPERATOR act making `signed-execution-chain-gate` REQUIRED in the branch ruleset
— a merged workflow file is not evidence, only the live ruleset state is — and
4.6 is its canary evidence, blocked on 4.5 by construction because three of its
four conjuncts are producible today and the fourth cannot be read until the
ruleset changes. Until 4.5 is performed requirement 9 is UNMET rather than
partially met, the shipped declaration records `is_required_in_ruleset: false`,
and the reader warns on every run. So the capability reaches canon MEETING ITS
OWN DEGRADED CASE rather than evading it, which is what makes the archive
lawful. Both are restated as dispositions in the archived tasks.md (4.5, 4.6,
6.1) and carried forward at issue #534, so an open operator act is not written
down only inside an archived packet. 4.5 remains Brett's act.

PROMOTION VERIFIED BYTE-FOR-BYTE, and the delta had no scenario-completeness
exposure at all: it is pure ADDED into a capability that did not previously
exist, so there was no canon scenario set to restate and nothing could be
silently dropped. Measured anyway — 9 requirements in, 9 out, titles an
identical set, all nine bodies byte-identical (9/9), 45 scenarios in, 45 out,
one new capability directory, no sibling capability touched.

THE MECHANISM WAS `openspec archive --yes`, NOT `proposal-support archive`, AND
THE CHOICE IS THE RECORDED CONVENTION. That wrapper refuses any change whose
tasks.md still carries a `^- [ ]` line — a blanket gate that cannot tell a
ruled-open follow-up or a deliberately-open operator act from unfinished work.
The two things it adds were run anyway on both sides of the move: the origin
gate via `proposal-support verify` (ok before and after, per-change and
whole-corpus), and packaging, a lawful no-op for a staged origin with no
supporting-docs folder. Precedents: 2026-08-28-declare-sentinel-pin-vocabulary
and the three sibling archives of 2026-08-27.

Gates: `openspec validate --all --strict` 80 passed / 0 failed before and
after; `pytest tests/ -q -m "not postgres"` 8363 passed / 21 skipped / 0 failed
at the baseline, and 1709 passed on the reactive subsets after; `.openspec.yaml`
moved rather than being lost, proved by identical blob id `57f45fe1`.

Fifty-six paths still name the old home and are deliberately left standing: in
the corpus the string is an opaque `subject_ref` the reader compares
field-to-field and never resolves on disk, `contracts/CHANGELOG.md` is a member
of the published contract-v2.5 digest inventory so editing it would raise
HGR-RELEASE-DIGEST-MISMATCH, and thirteen already-archived changes carry the
same stale spelling — this joins a standing class rather than introducing one.

Co-Authored-By: Claude Fable 5 <[email protected]>

* Bot round: name the two task counts as two readings, and record the derived-view consequence the target_release decision had not considered

COPILOT — ACCEPTED. The archive-act record quoted the CLI's `Task status:
22/27` and then said the file ends at 23/28 without labelling them as two
different readings. They now say so in terms: 22/27 is the CLI's reading at
the moment it ran, before § 6.1 existed; 23/28 is this file's end state after
the restatement adds § 6.1 as the twenty-third tick and twenty-eighth box; the
five open boxes are the same five in both. Neither is a correction of the
other — recording only the second would hide what the tool actually said, and
only the first would misdescribe the file a later reader opens.

CODEX P2 — THE PRESCRIBED FIX IS REFUSED, THE FACT BEHIND IT IS RECORDED.
Codex asked that `proposal.md`'s `target_release: contract-v2.3` be rewritten
to `contract-v2.5`. The realization session had already decided the opposite in
terms, and that decision stands: rewriting a RATIFIED proposal's front-matter
to agree with today's state is the move this repository refuses everywhere
else, and doing it inside an ARCHIVE commit would make the archived packet
differ from the text that was ratified — a worse defect than a superseded
number. The line is also not false: it says on its own face that the number
remains allocated at realization by merge order and is confirmed against the
manifest at the realization's tip.

But Codex surfaced a consequence the realization session's reasoning did NOT
consider, and it verifies: `scripts/ideation_dashboard/generator.py`
`_release_frontmatter` (:378-387) lifts the field into the dashboard snapshot
(:542-547), and archived folders are in scope (`_archived_change`, :202-214),
so the dashboard tile for this ARCHIVED change reports the proposal-time
number. `_header_value` returns the whole physical line, so what renders
carries the allocation caveat inline rather than a bare "v2.3" — which bounds
the defect without dissolving it. Every authoritative surface says
contract-v2.5: manifest, CHANGELOG, tasks 4.7, the published tag, the README
archived row. The gap is now written down in realization-evidence.md instead of
waiting to be rediscovered, and its honest home is a derived-view question —
should the dashboard prefer a realization-confirmed number over a
proposal-time one — not an edit to a ratified line.

Re-gated: openspec validate --all --strict 80 passed / 0 failed;
proposal-support verify ok; pytest tests/doc-health tests/ideation-dashboard
6024 passed, 18 skipped, 0 failed.

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
@brettheap
brettheap deleted the change/cut-contract-v2.5 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