Repository navigation
Archive add-per-change-sweep-ledger: ratified 2026-09-04, realized by #623 (56e12278), green on main (run 33824532924) - #632
Conversation
…623 (56e1227), green on main (run 33824532924) Brett's word: "archive it when main is green". The gate was MEASURED AFTER LANDING and never assumed: `main`'s OWN `pytest-suite` at `56e12278`, run 33824532924, was polled to `completed success` BEFORE this branch was cut. What the realization archive gate asks is whether the realization is green WHERE IT LANDED, so it is `main`'s run that satisfies it and not the pull request's. Ran through `scripts/proposal-support.py . archive`, never bare `openspec archive`. The move: seven files to `openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/`, the two `Status: record` review files among them, all `R100` renames except `tasks.md` (R091, the Group 7 ticks below). ONE requirement promoted into `openspec/specs/release-realization/spec.md` -- "A pinned corpus measurement is carried per subject, never as a shared total" -- BYTE-IDENTICAL to the delta, verified by comparing the two blocks (5333 characters both). The capability's existing `## Purpose` section is UNTOUCHED: it carries a pre-existing `TBD - created by archiving change add-release-realization-flow` placeholder from an earlier archive, and repairing that is not this archive's business. THE ARCHIVE MOVED EXACTLY ONE LEDGER ROW, which is this change's own thesis applied to itself on the first archive ever performed under the pin it introduces: - add-per-change-sweep-ledger: {state: active, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} + add-per-change-sweep-ledger: {state: archived, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} `class` holds at `sole`, `declares` and `depth` are unchanged, and NO PARTNER FLIPPED -- so NO MOVEMENT LOG ENTRY IS OWED: the row diff states the whole move. Under the pin this packet replaces, the same act would have moved several shared totals and required a re-derivation across every change-dir pull request in flight. GATES, before and after. openspec validate --all --strict 88/88 -> 87/87 (active -1, as an archive should; the change leaves the active corpus and its capability was already promoted) active changes 33 -> 32 promoted specs 55 -> 55 (release-realization already existed; the requirement APPENDS) validate-sequenced-after.py . passed (32 active, 1 declaring -- the packet's own elective declaration leaves the active corpus with it) --ledger-diff consistent, 161 rows pytest tests/sequenced_after 158 passed validate-omnigent-contracts.py all checks passed doc-health --single-repo . 6 critical, 5 error, 29 warning, 16 info on BOTH trees -- IDENTICAL to `main` at 56e1227, the only difference being the promoted-spec word count (+929, the requirement itself). No new finding, none suppressed. PARENT-DECLARATION RETENTION: RETAINED, and proved rather than asserted. `sequenced_after: [add-sequenced-after-substrate]` is byte-identical between the ratified ref `68f73e1d` and the archived file -- `retention_problem(...)` returns None, and the raw line matches at line 4 on both sides. THE `--archive-gate` CLI COULD NOT EXPRESS THAT CHECK, and it is reported rather than worked around silently: it derives the ratified path FROM THE CURRENT path, so after the archive rename it asks git for `68f73e1d:openspec/changes/archive/2026-09-04-.../proposal.md`, which never existed at that ref, and dies with an unhandled `CalledProcessError` traceback rather than a message. The check itself is sound and passes when given the rename -- that is what was run above, through the same functions the gate calls. This is a pre-existing gap in `add-sequenced-after-substrate`'s realization, not this packet's, and it is left for a separate change. Group 7 is ticked with its evidence, and 7.3 names this pull request as the landing act for the archive. Refs #618 Lane: openxfactory-max001 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
|
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.
🟡 Changes recommended
The newly added README archived-entry text uses inconsistent gate terminology (“merged-and-green” vs “merged-plus-green”) within the same record, which should be made consistent for clarity.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Archives the OpenSpec change add-per-change-sweep-ledger after its realization on main is confirmed green, updating the per-change sweep ledger and moving the change’s narrative from “Active changes” to “Archived changes” while promoting the ratified requirement into the canonical release-realization spec.
Changes:
- Flip
add-per-change-sweep-ledger’s ledger row fromstate: activetostate: archivedand stamp the move provenance. - Move the README “OpenSpec Records” entry from Active → Archived with updated archive/realization evidence.
- Promote the requirement “A pinned corpus measurement is carried per subject, never as a shared total” into
openspec/specs/release-realization/spec.mdand snapshot the archived packet (proposal/design/tasks/spec delta + review records).
File summaries
| File | Description |
|---|---|
| tests/sequenced_after/corpus-ledger.yaml | Updates the per-change sweep ledger row for add-per-change-sweep-ledger to archived with new moved_by/moved_on. |
| README.md | Removes the change from “Active changes” and adds an “Archived changes” entry with archive/realization evidence. |
| openspec/specs/release-realization/spec.md | Appends the promoted requirement describing per-subject pinning (ledger rows vs shared totals). |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/tasks.md | Marks archive-preflight tasks complete and records the merge+green evidence used for the archive gate. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/specs/release-realization/spec.md | Adds the change-local spec delta capturing the ADDED requirement text for archival provenance. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/review/verification-2026-09-04.md | Adds a verification record snapshot for the change’s gate/evidence claims. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/review/ratification-2026-09-04.md | Adds the ratification record documenting the ratifier, act, and what was settled. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/proposal.md | Adds the archived proposal document for the change at its archive path. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/design.md | Adds the archived design document capturing the decisions/reading behind the change. |
| openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/.openspec.yaml | Adds the archived packet metadata, including origin and related change links. |
Review details
- Files reviewed: 4/10 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| archive branch was cut — the gate asks whether the realization is green WHERE | ||
| IT LANDED, so it is `main`'s run that satisfies it and not the pull request's. | ||
| `target_release: implemented` names the openxFactory main line, so | ||
| merged-plus-green on `main` IS the gate |
…NT, and that is the headline CHECKED BEFORE RESOLVING, because "did the other lane move the pin?" decides whether this merge carries someone else's omission: `--ledger-diff` on a PRISTINE `main` worktree at `d611666c` exits 0 -- "per-change sweep ledger consistent with the corpus (162 rows)". MAIN IS NOT STALE and its `test_sweep` is not red. THE OTHER LANE USED THE NEW PIN CORRECTLY, on the first outside use of it: `add-drafted-proposal-origin` (#619) added EXACTLY ONE ROW -- `{state: active, class: co-modifier, declares: absent, ...}` -- no partner flipped, and it added ZERO lines to `tests/sequenced_after/test_sweep.py`. No narrative entry, because the row diff states the move in full. That is the rule working for someone who did not write it, which is the only test of a rule that counts. ONE CONFLICT, in `README.md` alone. The ledger AUTO-MERGED -- their row added, our row's `state` flip applied -- and `test_sweep.py` did not conflict at all, because neither side needed to touch a shared total. Under the pin this packet replaces, both would have collided. README resolved from MAIN'S SIDE WHOLE, minus the now-archived active row, plus our archived row at the head of "Archived changes:". Taking our side would have dropped #619's new active entry. THE LEDGER STILL MOVES EXACTLY ONE ROW against `main`, unchanged in shape by the merge: - add-per-change-sweep-ledger: {state: active, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} + add-per-change-sweep-ledger: {state: archived, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...} `class` holds at `sole`, `declares` and `depth` unchanged, no partner flipped -- NO MOVEMENT LOG ENTRY OWED. The re-seed reports "0 moved by #632" because the row was already stamped by this pull request and nothing about it moved again; the row count rises 161 -> 162 for #619's addition, which is theirs and not ours. GATES RE-DERIVED ON THE MERGED TREE, before -> after: openspec validate --all --strict 89/89 -> 88/88 (active -1) active changes 34 -> 33 promoted specs 55 -> 55 validate-sequenced-after.py . passed (33 active, 1 declaring) --ledger-diff consistent, 162 rows pytest tests/sequenced_after 158 passed validate-omnigent-contracts.py all checks passed doc-health --single-repo . 6 critical, 5 error, 29 warning, 17 info on BOTH trees -- IDENTICAL to `main` at d611666, the only difference the promoted-spec word count (+929). No new finding, none suppressed. RETENTION still proved across the rename: `sequenced_after: [add-sequenced-after-substrate]` byte-identical between the ratified ref `68f73e1d` and the archived file, `retention_problem` -> None. Refs #618 Lane: openxfactory-max001 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
There was a problem hiding this comment.
🔵 Needs a closer look
The archive tasks text asserts the validate-sequenced-after.py --archive-gate CLI “passes” post-rename, but current implementation derives the ratified path from the current proposal path and can crash after an archive move.
Review details
Suppressed comments (1)
openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/tasks.md:299
- The tasks entry claims
scripts/validate-sequenced-after.py --archive-gate“passes” after the archive rename. In current code,sequenced_after.retention_at_archive()derivesproposal_relfrom the currentproposal.mdpath and runsgit show {ratified_ref}:{proposal_rel}; after a move toopenspec/changes/archive/..., that path does not exist at the ratified ref and the command will raiseCalledProcessError(crash) rather than report pass/fail. This should be reworded to avoid asserting the CLI gate passed, and instead record that the underlying retention comparison returnedNone(and optionally note the CLI limitation).
- Files reviewed: 4/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
LANDING — lane openxfactory-max001, session 5e783e4d, 2026-09-04T02:12:25Z, PR #632 into opensoft/openxFactory main (protocol Rule 6: other lanes hold merges into main until LANDED or 30 min). |
|
Lane: openxfactory-max001 (session 5e783e4d) Provenance for the admin merge of #632 (archive of
🤖 Generated with Claude Code |
|
Lane: openxfactory-max001 All six checks GREEN on
|
| check | result | time |
|---|---|---|
pytest-suite |
pass | 15m36s — run 33827601135, zero failures |
signed-execution-chain-gate |
pass | 1m8s |
wallet-validation |
pass | 32s |
merge-master-approval |
pass | 15s |
openreposhape-pin |
pass | 11s |
lane-line |
pass | 3s |
lane-line is new — added by #631 while this PR was open (Lane Collision Protocol Amendment 1, Rule 8). It passes.
The catch-up merge was the best evidence this PR could have produced
main moved to d611666c (#619, another lane's change-dir PR). I checked main's own state before resolving anything, because "did that lane move the pin?" decides whether this merge silently carries someone else's omission:
--ledger-diff on a pristine main worktree at d611666c exits 0 — "per-change sweep ledger consistent with the corpus (162 rows)". Main is not stale; its test_sweep is not red.
That lane used the new pin correctly, on the first outside use of it. #619 added exactly one row — {state: active, class: co-modifier, declares: absent, …} — no partner flipped, and it added zero lines to tests/sequenced_after/test_sweep.py. No narrative entry, because the row diff states the move in full. A rule working for someone who did not write it is the only test of a rule that counts.
And the merge itself: one conflict, in README.md alone. The ledger auto-merged — their row added, our row's state flip applied — and test_sweep.py did not conflict at all, because neither side needed to touch a shared total. Under the pin this packet replaces, both would have collided and one of us would have owed a re-derivation.
Still exactly one row, and it is ours
- add-per-change-sweep-ledger: {state: active, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...}
+ add-per-change-sweep-ledger: {state: archived, class: sole, declares: [add-sequenced-after-substrate], depth: 2, ...}class holds at sole, declares and depth unchanged, no partner flipped — no MOVEMENT LOG entry owed. The 161 → 162 row count is #619's addition, theirs and not ours.
Current state
main has since moved to b1d492a3 (#631), which adds only .github/workflows/lane-line.yml — no corpus path, no ledger row, so there is no staleness and the PR remains MERGEABLE without another merge.
Codex: absent — a fourth usage-limit refusal on this PR. Recorded as absence, never clearance. No Copilot findings on #632.
Frozen. The landing is the coordinator's under Rule 6.
🤖 Generated with Claude Code
…e's prescribed entry into the release that already ships its bytes (#622) (#636) * Cut contract-v3.3: consumer.identity_namespace is declared, and the shared-authority comparison reads the pair Realizes add-consumer-identity-namespace (merged as #622, 95c2cf6), whose ratification excluded the cut in terms and whose tasks.md 5.3 prescribed this changelog entry so the cutting session invents nothing. Cut on the convener's word, Brett Heap, 2026-09-04, verbatim: "cut v3.3". MEASURED SURFACE. Intersecting `git diff --name-only contract-v3.2 HEAD` (71 paths) with the 283 registered members of contract-v3.2.digests.yaml leaves EXACTLY TWO: contracts/manifest.yaml and docs/contract-versioning-policy.md. `git log contract-v3.2..HEAD` over each names only 95c2cf6 (#622), so both are that packet's own. Four other landings reached main since the tag — #617 (6a39d2a), #623 (56e1227), #619 (d611666) and #631 (b1d492a) — and moved no registered member. CLASS: ADDITIVE (minor), measured against the policy's own definition. The schema member is DESCRIBED and unconstrained; the shared-authority comparison reads the pair only where both sides declare a grammatical namespace and the bare identity everywhere else, so absence and malformedness REPORT rather than clear; one predicate serves both the named finding and the lift's third condition; the block's shape codes go from eight to nine with consumer-identity-namespace-grammar, whose window opens at THIS minor rather than at contract-v2.4; the one narrowing is baked-secret over the third free string, under add-binding-consumer-identity 2.6's precedent; nothing else narrows. Membership is 283 rows in both inventories, zero added and zero removed. Four digests move: the two registered members #622 moved, plus this cut's own changelog and tests/intent-compliance/test_release_boundary.py. That file gains FEATURE_SUCCESSOR_7 in the enum and both match arms, with the by-hand statement its tripwire requires: this bundle touches NO intent-compliance member and the membership it asserts is UNCHANGED. The inventory is built LAST at the final tree by the repository's own builder. The annotated tag is NOT pushed here: it is a post-merge act taken only after verify-commit passes at the squash commit — Bundle Realization Order step 4 before step 5, the step whose omission made contract-v3.1 defective and forced #624's superseding cut. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Name the cut by its branch rather than by a guessed PR number PR #632 was taken by another lane's archive landing while this cut was being measured, so the packet's Executed rows name `chore/cut-contract-v3.3` instead. The number is added once the pull request exists. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Name the cut PR in the packet's Executed rows now that it exists: #636 Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7 * Record the fold's measured doc-health delta in the packet's 8.1: zero movement Baseline origin/main 21190cf and this tip both report 6 critical, 4 error, 40 warning, 16 info — 66 machine rows each, byte-identical finding sets in both directions, and release-inventory-drift at ZERO on both sides because #628's cut re-baselined the inventory over #622's already-landed bytes. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v * Copilot round one: the ticked boxes no longer contradict their own prose Both findings taken, and neither by deletion. Ticking 5.4 and 7.5 left three present-tense sentences standing — "UNTICKED RATHER THAN TICKED WITH AN EXCUSE", "EXECUTED AND NOT ZERO AT THE CURRENT BASELINE — UNTICKED DELIBERATELY", and 8.1's "THE BOX STAYS UNTICKED" — each of which read as a claim about the present state while the checkbox above it said the opposite. A reader had to infer the timeline from the discharge paragraph below. Each is now explicitly the record of the state at its own reading, with the discharge named as what changed it. The sentences are KEPT rather than removed: they say why the boxes were not ticked with an excuse while the packet was open, which is the fact worth preserving, and deleting them would erase the reasoning that made the refusal to hand-fix an inventory legible. Lane: openxfactory-smalls Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
…ement in design D11 `add-per-change-sweep-ledger` landed (#623 realized, #632 archived), so the live sequenced-after pin is `tests/sequenced_after/corpus-ledger.yaml` — one row per change — and not the five totals in `test_sweep.py` that the openxFactory shared-substrate register's row 2 still describes. One row ADDED, `class: sole`, no partner flipped: measured 164 ids (35 active + 129 archived), 113 co-modified, 51 sole, active 22 / 13, against a baseline of 163 / 113 / 50 / 22 / 12 taken at both `9ef151ad` and the merged `963c5b77`. `co_modified` holding flat is the check on that reading. Written by `--seed-ledger --moved-by '#645'`, not by hand. No MOVEMENT LOG entry is owed: a row ADDED is the ledger rule's explicit no-entry case. Lane: hermes-wallet-exercise Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-max001
Closes #618
Brett's word: "archive it when main is green". It is.
The gate, measured after landing and never assumed
main's ownpytest-suiteat56e12278— run 33824532924 — was polled tocompleted successbefore this branch was cut. Whatrelease-realization's realization archive gate asks is whether the realization is green where it landed, so it ismain's run that satisfies it, not this pull request's.design.mdD1 as the reading most worth a veto. D1 was not vetoed.56e12278(2026-09-04T01:07:29Z), which carried the packet and its whole code surface in one landing.scripts/proposal-support.py . archive— never bareopenspec archive.THE FIRST ARCHIVE UNDER THE PIN THIS PACKET INTRODUCES — and it moved one line
classholds atsole,declaresanddepthunchanged, no partner flipped — so no MOVEMENT LOG entry is owed: the row diff states the whole move. Under the pin this packet replaces, the same act would have moved several shared totals and forced a re-derivation on every change-dir pull request in flight. The change's own thesis, measured on itself.What lands in canon
ONE requirement promoted byte-identically (5333 characters both sides) into
openspec/specs/release-realization/spec.md: "A pinned corpus measurement is carried per subject, never as a shared total".The capability's existing
## Purposeis untouched — it carries a pre-existingTBD - created by archiving change add-release-realization-flowplaceholder from an earlier archive, and repairing that is not this archive's business.Gates, before → after
Re-derived after the catch-up merge with
mainatd611666c.maind611666c)openspec validate --all --strictvalidate-sequenced-after.py .--ledger-diffpytest tests/sequenced_after -qvalidate-omnigent-contracts.pydoc-health --single-repo .The only doc-health difference is the promoted-spec word count (+929, the requirement itself).
The catch-up merge is itself the best evidence in this PR
mainmoved tod611666c(#619,add-drafted-proposal-origin— another lane's change-dir PR) while this was open. I checked main's own state before resolving anything, because "did that lane move the pin?" decides whether this merge carries someone else's omission:--ledger-diffon a pristinemainworktree atd611666cexits 0 — "per-change sweep ledger consistent with the corpus (162 rows)". Main is not stale and itstest_sweepis not red.That lane used the new pin correctly, on the first outside use of it. #619 added exactly one row (
{state: active, class: co-modifier, declares: absent, …}), no partner flipped, and it added zero lines totests/sequenced_after/test_sweep.py— no narrative entry, because the row diff states the move in full. A rule working for someone who did not write it is the only test of a rule that counts.And the merge itself: one conflict, in
README.mdalone. The ledger auto-merged (their row added, our row'sstateflip applied) andtest_sweep.pydid not conflict at all, because neither side needed to touch a shared total. Under the pin this packet replaces, both would have collided.Parent-declaration retention: RETAINED, and proved
sequenced_after: [add-sequenced-after-substrate]is byte-identical between the ratified ref68f73e1dand the archived file;retention_problem(...)returnsNone, and the raw line matches at line 4 on both sides.The
--archive-gateCLI could not express that check, and I am reporting it rather than working around it silently. It derives the ratified path from the current path, so after the archive rename it asks git for68f73e1d:openspec/changes/archive/2026-09-04-…/proposal.md— which never existed at that ref — and dies with an unhandledCalledProcessErrortraceback rather than a message. The check itself is sound and passes when given the rename; that is what was run, through the same functions the gate calls. A pre-existing gap inadd-sequenced-after-substrate's realization, not this packet's, left for a separate change.Notes
tasks.mdGroup 7 is ticked with its evidence — 7.1 merged-plus-green, 7.2 the one-row move confirmed rather than predicted, and 7.3 naming this pull request as the landing act. Group 7's items were the only unticked ones, andproposal-supportcorrectly refused the archive until they were satisfied.🤖 Generated with Claude Code
https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv