Skip to content

Add per-change sweep ledger: the corpus-sweep pin moves per row, never per total (add-per-change-sweep-ledger) - #623

Merged
brettheap merged 16 commits into
mainfrom
change/add-per-change-sweep-ledger
Sep 4, 2026
Merged

brettheap merged 16 commits into
mainfrom
change/add-per-change-sweep-ledger

Conversation

@brettheap

@brettheap brettheap commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-max001

Refs #618

Status: draft — this is a proposal, not a ratification. The 2026-09-03
in-session ruling (Brett Heap, lane openxfactory-max001, verbatim "do 1 and
3, keep the log in one place"
) admitted the packet and settled its shape; it
did not ratify this text. Item 1 of that ruling is a lane-collision-protocol
amendment outside this repository.

The problem

tests/sequenced_after/test_sweep.py pins the corpus sweep as five corpus-wide
TOTALS asserted as literals (co_modified == 109, active_co_modified == 21,
change_ids - 1 == 157, sole_modifiers - 1 == 48, active_sole - 1 == 11),
plus four further scalar readings and a pinned deepest chain. A total is a
shared mutable and every change-dir pull request writes to it
— authoring,
adopting, ratifying or archiving a change each move at least one — so two PRs
that look disjoint collide on the same assertion lines, git cannot auto-merge
them, and the loser owes a merge-from-main, a re-derived pin, a MOVEMENT LOG
entry and re-derived record files, one CI window per round.

Recorded in #618 rather than argued: PR #608 took three merge-from-main rounds
on 2026-09-03; #616 went CONFLICTING the moment #608/#609 landed; thirteen
commits moved the pin between 2026-08-20 and 2026-09-03. The MOVEMENT LOG is
itself the artifact of that cost — several entries exist only to reconcile two
branches' readings of one corpus, and one had to REPLACE an earlier entry whose
arithmetic went stale between authoring and merge.

The measurement is right and is not touched. corpus_sweep and
--sweep's output are unchanged. What changes is the PIN.

What this does

One ledger, one row per change id. tests/sequenced_after/corpus-ledger.yaml
— 159 rows over the active and archived corpora both, sorted, ONE LINE each,
carrying that change's state, class, declares, depth (only where it
declares) and prose, plus moved_by/moved_on. Every one of the sweep's
fifteen fields is DERIVED from the rows
and none is asserted as a literal
anywhere. A PR edits its own row, and a partner's row when its own
## MODIFIED Requirements block flips that partner from sole to co-modifier.
Two disjoint changes insert two non-adjacent lines and merge clean.

Failures name the row. Missing row, extra row, stale value (id + key +
ledger value + live value), unsorted file, malformed provenance, unknown key,
duplicate id — each names the change id, so an author reads which row to move
off the failure instead of re-deriving a total to find out.

The derivation is deliberately independent of the measurement.
corpus_sweep is NOT refactored into the classifier: the check folds the
LEDGER's own readings and compares them field by field to corpus_sweep's
measurement, so the equality is a cross-check rather than a tautology. A row too
malformed to read is REFUSED, never defaulted — a defaulted row is an invented
reading, and the ledger is what every later author reads.

Tooling. validate-sequenced-after.py --ledger-diff (report + gate; exits 1
when stale) and --seed-ledger --moved-by '#PR' (rewrite from the live corpus,
stamping ONLY the rows that actually moved and preserving every other row's
provenance). The seeder is kept as a permanent authoring tool rather than
deleted after use: it is the same operation an author runs to move a row.

The MOVEMENT LOG stays ONE hand-written ledger in ONE place — the convener's
constraint. Every existing entry is retained VERBATIM in test_sweep.py. Only
its RULE changes: an entry is owed only where a move is NOT explained by the row
diff (a counting-method change, a partner's flip, a non-per-change reading, a
re-seeding). The dated seeding entry is added, naming 995c0ad5 and this PR.

Records cite rows, not totals — the change's own row plus "ledger ⇔ corpus
consistent at <sha>". Stated in the requirement, the proposal, and the
ledger's header comment. Records already written are historical and are NOT
rewritten.

The ADDED-vs-MODIFIED reading (design.md D1)

add-sequenced-after-substrate is ACTIVE and holds "Chain-walk policy belongs
to the consumer, and its bound SHALL be measured". Its normative sentences bind
that a measurement EXISTS, is RECORDED, and that the first post-adoption sweep
records the deepest chain — not the mechanism by which the recorded
measurement is pinned in a test.
The scalar pin is a realization choice made
in that change's tasks 5.4/5.5 and in test_sweep.py's own prose. A
## MODIFIED Requirements block would restate the requirement UNCHANGED, which
is what makes it dishonest rather than merely redundant. Decision: ALL-ADDED,
one novel title, in release-realization
— no Modified over /
Removed from canon by / Merged into marker owed, and doc-health's
modified-block-currency family does not arise (no MODIFIED block).

Being ALL-ADDED makes this packet a SOLE modifier, so no rule compels
sequenced_after:. It is declared anyway —
sequenced_after: [add-sequenced-after-substrate] — on that change's own
doctrine that declaring must never be worth less than omitting, and because
the relation is real. That takes the deepest declared chain from 1 hop to 2.

What is NOT solved

The README "OpenSpec Records" block and the rare narrative append still
serialize; both are left to the lane-collision protocol's landing window
(#618 item 1). Option 2 of that issue — a GitHub merge queue — was assessed and
rejected on its own: it serializes merges and does not resolve a textual
conflict.

Evidence

Measured on the merged tree (this branch's merge of origin/main at 19d00872,
#616's contract-v3.1 cut), not carried over from before it.

  • openspec validate add-per-change-sweep-ledger --strict valid;
    openspec validate --all --strict 87 passed, 0 failed.
  • validate-sequenced-after.py . passes; --ledger-diff exits 0 on 159
    rows
    .
  • --sweep differs from main's ONLY in the readings this packet's own
    directory and declaration move
    , and the format is byte-unchanged.
    origin/main at 19d00872: 32 active + 126 archived = 158, 109
    co-modified, 49 sole, 20 / 12 active split, 1 declaration, deepest chain
    1 hop. This branch: 33 active + 126 archived = 159, 109, 50,
    20 / 13, 2 declarations, deepest chain 2 hops. The co-modified readings hold
    — the exact signature of an ADDED-only sole modifier, which is what the
    ALL-ADDED reading above claims this packet is.
  • doc-health.py --single-repo . is identical to main's apart from the
    word counts of the one Status: ratified document this PR appends a paragraph
    to (docs/sequenced-after-trust-root-floor.md, +138 words). Zero new
    findings, none suppressed.
  • pytest tests/sequenced_after 149 passed; the full pytest-suite check runs
    on this head in CI.

THE MERGE FROM MAIN IS THE PACKET'S OWN EVIDENCE

#616 landed while this PR was open — a contract cut, a realization and an
archive — and it conflicted here immediately, in the one file this packet
exists to fix. The resolution took this branch's side on the assertion block and
retained every one of main's MOVEMENT LOG entries verbatim (verified line by
line against origin/main's docstring: zero missing). The ledger was then
re-derived mechanically, and the whole of that merge moved exactly one line:

-  add-project-repo-schema: {state: active,   class: co-modifier, ...}
+  add-project-repo-schema: {state: archived, class: co-modifier, ...}

Under the old pin the same merge moved four totals, a narrative entry and this
branch's entire assertion block. Under the new one it moves one row, the row
diff states the move in full, and no MOVEMENT LOG entry is owed for it —
the new rule applied to the first case that arose after it was written.

Review rounds

  • Round 1 (Copilot) — both findings taken at f1d1ebf1: the --seed-ledger
    summary could report unmoved rows as moved (fixed by extracting moved_rows()
    as the one place that decides it, which the renderer stamps by and the CLI
    reports from); and the mode flags were combinable with the dispatch order
    silently choosing one (now an argparse mutually exclusive group).
  • Round 2 (Copilot) — both findings taken at 5efb91ec: --seed-ledger
    refused on a malformed existing ledger, leaving the only tool that can rewrite
    the file unusable on the only file needing it (it now reports what it could
    not read and re-seeds, stamping every row and dropping seeded_from unless
    given); and the usage text bracketed the required --moved-by as optional.
  • Every fix carries a fixture. Codex: ABSENT, not clearing — both
    @codex review requests were answered with usage-limit refusals, so this
    packet has had no Codex round at all.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

`tests/sequenced_after/test_sweep.py` pinned the sweep as five corpus-wide
TOTALS asserted as literals. A total is a shared mutable and every change-dir
pull request writes to it — authoring, adopting, ratifying or archiving a change
each move at least one — so two pull requests that look disjoint collide on the
same assertion lines, git cannot auto-merge them, and the loser owes a
merge-from-main, a re-derived pin, a MOVEMENT LOG entry and re-derived record
files, one CI window per round (openxFactory #618; PR #608 took three such
rounds on 2026-09-03).

THE MEASUREMENT IS RIGHT AND IS NOT TOUCHED. `corpus_sweep` is not refactored
and `--sweep`'s output is byte-unchanged. What changes is the PIN.

`tests/sequenced_after/corpus-ledger.yaml` carries ONE ROW PER CHANGE ID over
the active and archived corpora both, sorted, one line each — `state`, `class`,
`declares`, `depth` (only where the change declares) and `prose`, plus the pull
request that last moved the row and the date. Every one of the sweep's fifteen
fields is DERIVED from the rows and none is asserted as a literal anywhere. A
pull request edits its own row, and a partner's row when its own
`## MODIFIED Requirements` block flips that partner from sole to co-modifier.

Every failure NAMES the row: missing, extra, stale (id + key + ledger value +
live value), unsorted, malformed provenance, unknown key, duplicate id. The
derivation is deliberately INDEPENDENT of the measurement — the check folds the
ledger's own readings and compares them field by field to `corpus_sweep`'s, so
the equality is a cross-check rather than a tautology — and a row too malformed
to read is REFUSED rather than defaulted.

`validate-sequenced-after.py` gains `--ledger-diff` (report and gate) and
`--seed-ledger --moved-by '#PR'`, which rewrites the ledger from the live corpus
stamping ONLY the rows that actually moved. The seeder is kept as a permanent
authoring tool: it is the same operation an author runs to move a row.

THE MOVEMENT LOG STAYS ONE HAND-WRITTEN LEDGER IN ONE PLACE — the convener's
constraint. Every existing entry is retained VERBATIM; only its rule changes, to
"an entry is owed only where a move is NOT explained by the row diff", and the
dated seeding entry is added naming 995c0ad and this pull request.

THE DELTA IS ALL-ADDED, and that is a reading rather than a preference. The
measured-bound requirement of `add-sequenced-after-substrate` binds that a
measurement exists, is recorded and is re-runnable — never the mechanism by
which it is pinned in a test — so a `## MODIFIED` block would restate it
unchanged (design.md D1). `sequenced_after: [add-sequenced-after-substrate]` is
declared anyway, the packet being a sole modifier that owes no declaration but
having a real ordered-delta relation to that change's outcome; the deepest
declared chain moves 1 hop -> 2.

Status: draft. Ratification is the convener's separate act.

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
Copilot AI lite review requested due to automatic review settings September 3, 2026 21:14

@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

@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.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

…anch

ONE CONFLICT, IN THE FILE THIS PACKET EXISTS TO FIX, and it is the packet's own
evidence rather than an inconvenience: #616 cut `contract-v3.1`, realized
`add-project-repo-schema` and ARCHIVED it, and in the same commit moved the five
scalar pins in `tests/sequenced_after/test_sweep.py` and appended a MOVEMENT LOG
entry. This branch had replaced those five assertions, so git could not merge
them.

RESOLUTION.
- The ASSERTION BLOCK takes this branch's side: the five literals are what the
  packet removes, and main's newer literals are the same shared total under
  newer numbers.
- The MOVEMENT LOG merged CLEANLY and every one of main's entries is retained
  VERBATIM — verified line by line against `origin/main`'s docstring, zero
  lines missing. Retaining history verbatim is this packet's own rule.
- The LEDGER was re-derived mechanically, not hand-edited:
  `validate-sequenced-after.py . --seed-ledger --moved-by '#623'`.

AND THE RE-DERIVATION IS THE MEASUREMENT THE PROPOSAL ARGUES FOR. A merge that
brought in a contract cut, a realization and an archive moved EXACTLY ONE LINE
of the ledger:

    -  add-project-repo-schema: {state: active,   class: co-modifier, ...}
    +  add-project-repo-schema: {state: archived, class: co-modifier, ...}

Under the old pin the same merge moved four totals, a docstring entry and this
branch's whole assertion block. Under the new one it moves one row, the row diff
states the move in full, and NO MOVEMENT LOG ENTRY IS OWED for it — which is the
new rule applied to the first case that arose after it was written.

Gates on the merged tree: `openspec validate --all --strict` 87/87;
`openspec validate add-per-change-sweep-ledger --strict` valid;
`validate-sequenced-after.py .` passes (33 active, 2 declaring);
`--ledger-diff` exits 0 on 159 rows; `pytest tests/sequenced_after` 144 passed.

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

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.

🟡 Changes recommended

The new CLI mode flags are currently combinable (ambiguous behavior) and the seeding summary output can misreport how many rows were actually updated in a run.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR replaces the sequenced-after corpus sweep’s brittle scalar “total” pin with a per-change ledger (one row per change id) and derives all sweep totals from those rows, reducing merge conflicts between concurrent change-dir PRs while keeping the underlying measurement (corpus_sweep) unchanged.

Changes:

  • Introduces a strict YAML “corpus ledger” and supporting classifier/folding utilities to derive the full sweep from per-change readings, cross-checking against the existing measurement.
  • Rewrites the sweep test to validate ledger ⇔ corpus agreement row-by-row and total-by-total, plus adds fixtures covering common ledger failure shapes.
  • Adds CLI tooling to diff the ledger vs live corpus (--ledger-diff) and to re-seed/stamp moved rows (--seed-ledger), and documents the new pin mechanism in repo docs/records guidance.
File summaries
File Description
tests/sequenced_after/test_sweep.py Replaces scalar total assertions with ledger-driven row checks, derived-vs-measured cross-checks, and adds failure-shape fixtures.
tests/sequenced_after/corpus-ledger.yaml Adds the new per-change ledger (schema header + one-line-per-change rows + provenance).
scripts/validate-sequenced-after.py Adds --ledger-diff (gate) and --seed-ledger (authoring tool) to check/refresh the ledger.
scripts/sequenced_after.py Adds corpus classifier + folding + ledger parsing/rendering + mismatch reporting utilities while leaving corpus_sweep intact.
README.md Updates the OpenSpec Records entry to describe the new per-row pinning approach and rationale.
openspec/changes/add-per-change-sweep-ledger/tasks.md Adds tasks/work plan and evidence checklist for the packet.
openspec/changes/add-per-change-sweep-ledger/specs/release-realization/spec.md Defines the added requirement that pins must be per-subject rows with derived totals and row-naming failures.
openspec/changes/add-per-change-sweep-ledger/proposal.md Records motivation, shape, and forward-looking record-citation guidance (rows not totals).
openspec/changes/add-per-change-sweep-ledger/design.md Captures decisions (added vs modified, independence from measurement, row keys, provenance rules, etc.).
openspec/changes/add-per-change-sweep-ledger/.openspec.yaml Adds packet metadata/origin/approval context and related links.
docs/sequenced-after-trust-root-floor.md Documents where the per-change readings now live and how to validate/re-seed.
Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread scripts/validate-sequenced-after.py Outdated
Comment on lines +186 to +189
stamped = sum(1 for row in sa.load_ledger(path).rows.values()
if row.get("moved_by") == moved_by)
print(f"wrote {path} ({len(readings)} rows, {stamped} carrying "
f"{moved_by}).")
Comment thread scripts/validate-sequenced-after.py Outdated
Comment on lines +203 to +212
parser.add_argument("--sweep", action="store_true",
help="print the re-runnable corpus sweep (a measurement, "
"not a gate) and exit 0")
parser.add_argument("--ledger-diff", action="store_true",
help="check the per-change sweep ledger against the "
"live corpus, naming every stale row; exit 1 when "
"it is stale")
parser.add_argument("--seed-ledger", action="store_true",
help="rewrite the per-change sweep ledger from the live "
"corpus, preserving the provenance of unmoved rows")
Copilot AI review requested due to automatic review settings September 3, 2026 21:17
…e modes refuse to combine

TWO FINDINGS, BOTH TAKEN.

(a) `--seed-ledger`'s summary counted every row whose `moved_by` equalled the
given pull request, which includes rows the run did NOT move — `render_ledger`
preserves the provenance of an unmoved row, so a second run of the same pull
request reported all 159 as moved. The count was a second, independent answer to
a question the renderer had already answered, and the two could disagree.
Extracted `moved_rows(readings, previous)` as THE ONE PLACE that decides it: a
row moved when it is new, when a derived key differs, or when it carries a key
the grammar does not know (a re-seed drops it, and dropping a key is a move).
The renderer stamps by it and the CLI reports from it, so they cannot diverge.
The CLI now also NAMES the moved rows (up to twenty), which is the author's
answer and the reviewer's. Re-running the seed on this branch now prints
"159 rows, 0 moved by #623" and writes a byte-identical file.

(b) `--archive-gate`, `--sweep`, `--ledger-diff` and `--seed-ledger` are MODES
and were combinable, with the dispatch order silently choosing one. Combining
two can only mean the caller believed both would run, and answering a question
nobody asked is worse than refusing. They are now an argparse mutually exclusive
group, declared rather than resolved by dispatch order, and the module docstring
says so.

Fixtures for both: `test_MOVED_ROWS_names_exactly_the_rows_a_re_seed_moves`
(including the unknown-key case, which is the one a count could not see),
`test_the_SEED_summary_counts_ONLY_the_rows_it_MOVED` (seed twice, second run
reports zero) and `test_the_CLI_MODES_are_MUTUALLY_EXCLUSIVE` (four pairs).

`pytest tests/sequenced_after` 147 passed; `--ledger-diff` exits 0 on 159 rows;
`openspec validate add-per-change-sweep-ledger --strict` valid.

CODEX WAS ABSENT, NOT CLEARING: it answered the review request with a usage-limit
refusal ("You have reached your Codex usage limits for code reviews"), so this
packet has had no Codex round at all.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-max001

Bot round 1 — both Copilot findings TAKEN, at f1d1ebf1.

  1. --seed-ledger's summary could report unmoved rows as moved. Correct, and the cause was that the count was a SECOND, independent answer to a question the renderer had already answered — render_ledger preserves an unmoved row's provenance, so counting rows whose moved_by equals the given PR counted every row a previous run of the same PR had stamped. Fixed by extracting moved_rows(readings, previous) as the one place that decides whether a row moved (new row; a differing derived key; or a key the grammar does not know, which a re-seed drops — and dropping a key is a move). The renderer now stamps by it and the CLI reports from it, so the two cannot disagree. The CLI also NAMES the moved rows now, up to twenty, which is what an author actually wants from it. Re-running the seed on this branch prints 159 rows, 0 moved by #623 and writes a byte-identical file.

  2. The mode flags were combinable and the dispatch order silently picked one. Taken as written. --archive-gate, --sweep, --ledger-diff and --seed-ledger are now an argparse mutually exclusive group, so the refusal is DECLARED rather than resolved by the order of an if-chain, and the module docstring says so.

Fixtures for both, because a fix without one is a claim: test_MOVED_ROWS_names_exactly_the_rows_a_re_seed_moves (including the unknown-key case, which a count could not have seen), test_the_SEED_summary_counts_ONLY_the_rows_it_MOVED (seed twice; the second run reports zero) and test_the_CLI_MODES_are_MUTUALLY_EXCLUSIVE (four pairs).

pytest tests/sequenced_after 147 passed; --ledger-diff exits 0 on 159 rows; openspec validate add-per-change-sweep-ledger --strict valid.

Codex: ABSENT, not clearing. The @codex review request was answered with a usage-limit refusal, so this packet has had no Codex round at all. Recorded rather than counted as a pass.

Requesting a second Copilot round on the new head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

@chatgpt-codex-connector

Copy link
Copy Markdown

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

@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.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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.

🟡 Changes recommended

The new --seed-ledger help text is inconsistent with the actual required flags and the seeder currently can’t repair a malformed existing ledger without manual intervention.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 11/11 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread scripts/validate-sequenced-after.py Outdated
"""Rewrite the ledger from the live corpus, preserving unmoved provenance."""
readings = sa.classify_corpus(repo_root, declaring_repository=repository)
path = sa.ledger_path(repo_root)
previous = sa.load_ledger(path) if path.is_file() else None
Comment thread scripts/validate-sequenced-after.py Resolved
Copilot AI review requested due to automatic review settings September 3, 2026 21:22
…lp stops calling a required flag optional

TWO FINDINGS, BOTH TAKEN.

(a) `--seed-ledger` called `load_ledger` unconditionally whenever the file
existed, so a MALFORMED ledger made the seeder refuse — which left the only tool
that can rewrite the file unusable on the only file that needed rewriting, and
sent the author to hand-edit or delete YAML, exactly the work this packet
removes. It now reports on stderr what it could not read and re-seeds from the
live corpus. Two consequences are stated rather than silently taken: EVERY row
is stamped with the given pull request (none of the old provenance was readable,
so none can be preserved), and `seeded_from` is dropped unless `--seeded-from`
is given.

(b) The usage text bracketed `--moved-by` as optional while `main()` refused
without it. The usage line, the flag's own help and the refusal now agree, and
`test_the_SEED_LEDGER_help_does_not_call_moved_by_OPTIONAL` asserts the help
text itself — a help string nothing reads drifts back.

Fixtures: `test_the_SEEDER_REPAIRS_a_ledger_too_malformed_to_READ` (a `rows:`
that is not a mapping; the run exits 0, says so on stderr, stamps its one row,
and the repaired file passes `ledger_problems` clean) and the help-text one
above. `pytest tests/sequenced_after` 149 passed.

CODEX ABSENT AGAIN, not clearing: a second usage-limit refusal on the same
request. This packet has had no Codex round.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-max001

Bot round 2 — both Copilot findings TAKEN, at 5efb91ec.

  1. --seed-ledger could not repair a malformed ledger. Correct, and worse than it looks: refusing there left the ONLY tool that can rewrite the file unusable on the ONLY file that needed rewriting, and sent the author to hand-edit YAML — the work this whole packet exists to remove. It now reports on stderr what it could not read and re-seeds from the live corpus. Two consequences are stated rather than silently taken: EVERY row is stamped with the given pull request (none of the old provenance was readable, so none of it can be preserved), and seeded_from is dropped unless --seeded-from is given.

  2. The usage text bracketed --moved-by as optional while the code refused without it. Taken. The usage line, the flag's own help and the refusal now agree — and test_the_SEED_LEDGER_help_does_not_call_moved_by_OPTIONAL asserts the help text itself, because a help string nothing reads drifts back.

Fixtures: test_the_SEEDER_REPAIRS_a_ledger_too_malformed_to_READ (a rows: that is not a mapping — the run exits 0, says so on stderr, stamps its one row, and the repaired file passes ledger_problems clean) and the help-text one. pytest tests/sequenced_after 149 passed.

Codex: ABSENT again, not clearing — a second usage-limit refusal on the same @codex review request. This packet has had no Codex round at all, and that is recorded as absence rather than counted as a pass.

Round 3 requested on the new head.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

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

🟡 Changes recommended

--seed-ledger currently crashes on unreadable existing ledgers (uncaught exception) and the CLI usage text is inconsistent with the implemented behavior/requirements.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (2)

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

scripts/validate-sequenced-after.py:50

  • --ledger-diff help text says it prints ledger-derived totals “beside the measured ones”, but _ledger_diff() prints only one sweep (derived when readable, otherwise measured). This makes the CLI docs misleading and harder to trust when debugging stale ledgers.

scripts/validate-sequenced-after.py:55

  • The usage line for --seed-ledger shows --moved-by as optional ([--moved-by '#PR']), but the parser enforces it (parser.error("--seed-ledger requires --moved-by...")). The help text should reflect that --moved-by is required so users don’t discover it via an error after reading the usage block.
    --seed-ledger --moved-by '#PR' [--moved-on YYYY-MM-DD] [--seeded-from SHA]
        REWRITE the ledger from the live corpus, stamping `moved_by`/`moved_on`
        on the rows that actually moved and PRESERVING the provenance of every
        row that did not. This is how an author moves a row: run it, then read
        the diff as the list of rows the change moved. `--moved-by` is REQUIRED
  • Files reviewed: 11/11 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines +182 to +186
readings = sa.classify_corpus(repo_root, declaring_repository=repository)
path = sa.ledger_path(repo_root)
previous = sa.load_ledger(path) if path.is_file() else None
# THE ROWS THIS RUN MOVES, from the same helper the renderer stamps by, so
# the summary cannot overcount: a row that merely already carried this pull
Copilot AI review requested due to automatic review settings September 3, 2026 21:26
…ceback

THE FINDING'S STATED CAUSE WAS ALREADY FIXED; ITS SYMPTOM WAS REAL ELSEWHERE,
and both halves are recorded because taking the second on the strength of the
first would be luck rather than review.

Copilot named an uncaught `SequencedAfterError` from `--seed-ledger` on an
unreadable EXISTING LEDGER. That path was repaired in round 2 and was measured
here before answering: with a `rows:` that does not parse, the command exits 0,
says on stderr what it could not read, and rewrites a clean file.

But the SYMPTOM — an uncaught library exception surfacing as a stack trace from
this command — was real on two paths the finding did not name and this packet
had not checked. `--moved-by 620` and `--moved-on soon` are refused by
`render_ledger`'s own validation, six frames down, so the author got a traceback
instead of the thing they should type. That matters more here than it would
elsewhere: `--seed-ledger` is precisely what an author runs when something is
already wrong with the ledger.

ARGUMENT SHAPE IS NOW ARGPARSE'S TO REFUSE, at the boundary and in its own
voice — `--moved-by` must match the pull-request reference, `--moved-on` must be
a REAL ISO date (2026-13-45 is digit-shaped and is not a date) — and
`_seed_ledger` catches `SequencedAfterError` as a backstop, returning 2 with a
message rather than a stack. Fixture:
`test_the_SEEDER_REFUSES_a_bad_provenance_WITHOUT_a_traceback` drives three bad
inputs and asserts the message with no `Traceback` in stderr.

`pytest tests/sequenced_after` 150 passed; `--ledger-diff` exits 0 on 159 rows;
`openspec validate add-per-change-sweep-ledger --strict` valid.

CODEX ABSENT throughout: both `@codex review` requests were answered with
usage-limit refusals, so this packet has had no Codex round.

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

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-max001

Bot round 3 — finding TAKEN, on its real cause, at ae32ced9. Three rounds run; this is the last.

The finding named an uncaught SequencedAfterError from --seed-ledger on an unreadable existing ledger. That path was repaired in round 2, and it was MEASURED before answering rather than assumed: with a rows: that does not parse, the command exits 0, says on stderr what it could not read, and rewrites a clean file.

But the symptom was real on two paths the finding did not name, and this packet had not checked them. --seed-ledger --moved-by 620 and --moved-on soon are refused by render_ledger's own validation six frames down, so the author got a stack trace instead of the thing they should type. That matters more here than it would elsewhere: --seed-ledger is precisely what an author runs when something is already wrong with the ledger.

Argument shape is now argparse's to refuse, at the boundary and in its own voice — --moved-by must match the pull-request reference, --moved-on must be a REAL ISO date (2026-13-45 is digit-shaped and is not a date) — and _seed_ledger catches SequencedAfterError as a backstop, returning 2 with a message rather than a stack. Fixture: test_the_SEEDER_REFUSES_a_bad_provenance_WITHOUT_a_traceback drives three bad inputs and asserts the message with no Traceback in stderr.

Both halves are recorded because taking the second finding on the strength of the first would have been luck rather than review.

pytest tests/sequenced_after 150 passed; --ledger-diff exits 0 on 159 rows; openspec validate --all --strict 87/87.

Round tally: Copilot 3 rounds, 5 findings, 5 taken, each with a fixture. Codex ABSENT throughout — both @codex review requests answered with usage-limit refusals, recorded as absence rather than counted as a pass.

Not landing. Status: draft; ratification is Brett's act, and the merge is the coordinator's under protocol Rule 6.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

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

🔵 Needs a closer look

There are a couple of user-facing documentation/usage-text inaccuracies (ratification wording and --ledger-diff output description) that should be corrected before merge.

Review details

Suppressed comments (2)

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

scripts/validate-sequenced-after.py:47

  • The --ledger-diff usage text says it “prints the ledger-derived totals beside the measured ones”, but the implementation prints either the derived totals (when the ledger can be read) or the measured totals (when it can’t). Update the wording to match the actual output behavior so users aren’t expecting both renderings every run.
    tests/sequenced_after/test_sweep.py:240
  • The docstring claims this ledger-based pin is already “Ratified by add-per-change-sweep-ledger”, but the packet is explicitly Status: draft / not ratified (per PR description and the packet’s own proposal.md). This should avoid stating ratification and instead describe it as proposed/admitted by the 2026-09-03 ruling.
  • Files reviewed: 11/11 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 3, 2026 21:30
Copilot AI review requested due to automatic review settings September 4, 2026 00:49

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.

🟡 Changes recommended

There are verified lifecycle/documentation inconsistencies (draft vs ratified) and a CLI exit-code/behavior mismatch that should be corrected before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (2)

docs/sequenced-after-trust-root-floor.md:180

  • This later note also labels add-per-change-sweep-ledger as Status: draft, which contradicts the ratification records added in this PR. Update the status here (or remove it) so the doc doesn’t conflict with the change packet’s lifecycle state.
**Later reading, not an edit to the dated table above.** As at
`add-per-change-sweep-ledger` (proposed 2026-09-03, `Status: draft`) the deepest
resolvable declared chain is **2 hops**, from `add-per-change-sweep-ledger` to
`add-sequenced-after-substrate` to `add-structured-scope-substrate`. The table

openspec/changes/add-per-change-sweep-ledger/tasks.md:224

  • This line says the packet is Status: draft because ratification hasn’t happened, but the PR also adds ratification/verification records dated 2026-09-04 and sets proposal.md/design.md to Status: ratified. Update this to past tense ("was draft at that time") or to the current ratified state so the review-round record stays consistent.
- [x] 6.7 **BOT ROUND 8: ZERO new findings** (Copilot, 22:25:33Z) — its only
  remark was that the change "warrants final human verification", which is a
  description of ratification rather than a finding, and this packet is
  `Status: draft` precisely because that act has not happened.
  • Files reviewed: 13/13 changed files
  • Comments generated: 4
  • Review effort level: Lite

Comment on lines +165 to +180
if not path.is_file():
problems.append(f"malformed ledger: {path} does not exist")
else:
try:
ledger = sa.load_ledger(path)
except sa.SequencedAfterError as exc:
# UNREADABLE IS NOT STALE. Exit 2 rather than 1, because the two
# want different repairs: a stale ledger is fixed by re-seeding a
# row, an unreadable one by fixing the file it could not parse.
print(measured.render())
print()
print(f"per-change sweep ledger CANNOT BE READ:\n - {exc}")
print("Fix the file, or rewrite it with: python3 "
"scripts/validate-sequenced-after.py . --seed-ledger "
"--moved-by '#<PR>'")
return 2
Comment on lines +156 to +160
`tests/sequenced_after/corpus-ledger.yaml`, and every total the sweep reports is
DERIVED from those rows rather than pinned as a literal
(`add-per-change-sweep-ledger`, proposed 2026-09-03 on openxFactory issue #618,
`Status: draft`). `--ledger-diff` checks the rows against the live corpus and
names any that are stale; `--seed-ledger --moved-by '#<PR>'` rewrites them,
Comment on lines +4 to +8
sequenced_after: [add-sequenced-after-substrate]
Status: ratified
Proposed: 2026-09-03
Ratified: 2026-09-04 by Brett Heap (openxFactory operator authority) — "ratify 623"; record at review/ratification-2026-09-04.md
Origin: openxFactory issue #618, and Brett Heap's ruling on it the same day, in session, lane `openxfactory-max001`, verbatim: *"do 1 and 3, keep the log in one place"*. Item 3 is this packet; item 1 is a lane-collision-protocol amendment outside this repository. THAT INSTRUCTION WAS AN ADMISSION INTO THE PROPOSAL QUEUE AND NOT A RATIFICATION OF CONTENT; ratification followed as a separate act on 2026-09-04.
Comment on lines +161 to +165
`test_sweep.py` docstring said the ledger pin was **"Ratified by
`add-per-change-sweep-ledger`"** while the packet is `Status: draft`
everywhere else — a ratification claimed in running code is worse than one
claimed in prose, because it is what the next author copies. Now "Proposed by
… admitted on the convener's ruling … `Status: draft` until ratified." (b)
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING — lane openxfactory-max001, session 5e783e4d, 2026-09-04T01:07:25Z, PR #623 into opensoft/openxFactory main (protocol Rule 6: other lanes hold merges into main until LANDED or 30 min).

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-max001 (session 5e783e4d)

Provenance for the admin merge of #623.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv

@brettheap
brettheap merged commit 56e1227 into main Sep 4, 2026
6 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane openxfactory-max001, 2026-09-04T01:08:02Z, PR #623 → merge 56e12278. Rule 6 window closed; merges into openxFactory main may resume. Next act (needs Brett's word): archive add-per-change-sweep-ledger once main's pytest-suite is green at or after 56e1227 (code_surface change: merged + green realization evidence).

brettheap added a commit that referenced this pull request Sep 4, 2026
…-proposal-origin

Catches PR #619 up to main after add-per-change-sweep-ledger (#623)
landed, replacing the docstring/movement-log scalar pins in
tests/sequenced_after/test_sweep.py with a per-change-row ledger
(tests/sequenced_after/corpus-ledger.yaml). No design change to this
packet.

Conflicts resolved:
- tests/sequenced_after/test_sweep.py: took origin/main's version
  wholesale, per #623's own design — the scalar-pin mechanism this
  packet's prior merge hand-reconciled no longer exists.
- README.md "OpenSpec Records": kept every row from both sides (this
  packet's row, #623's row, #622's row already present unconflicted)
  in additive order, no duplicates.
- tests/doc-health/test_modified_block_currency_self_gate.py did not
  conflict this round (untouched by #623); this packet's prior
  resolution (both its own and #622's carriage-ledger rows) survives
  unchanged.

Added this packet's row to tests/sequenced_after/corpus-ledger.yaml
via `python3 scripts/validate-sequenced-after.py . --seed-ledger
--moved-by '#619' --moved-on 2026-09-03`, which stamped exactly one
new row (add-drafted-proposal-origin: active, co-modifier, declares
absent, no prose header) and left every other row's provenance
untouched. `--ledger-diff` now reads clean (162 rows): change_ids
161 -> 162, co_modified 112 -> 113, active_co_modified 21 -> 22,
sole_modifiers and active_sole unmoved at 49 / 12 (relative to
origin/main with #623 already landed).

Lane: openxfactory-smalls
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_014FBRdVuA6fmSEey9WQNAB7
brettheap added a commit that referenced this pull request Sep 4, 2026
…his packet's move is now ONE LEDGER ROW

`main` ratified and realized add-per-change-sweep-ledger (#623) under this
branch. That packet replaces the five whole-corpus scalar literals in
test_sweep.py with a per-change ledger, so the conflict is not a disagreement
about a number — the mechanism this branch's bookkeeping used no longer exists.

MAIN'S SIDE IS TAKEN WHOLE for the assertion block, and the MOVEMENT LOG entry
this branch wrote for the scalar pins is REMOVED rather than carried: it
narrates three literals that are no longer asserted anywhere, and #623's
restated rule is explicit that an entry is owed only for a move the row diff
does NOT state.

In its place, ONE ROW, written by the tool and not by hand:
`validate-sequenced-after.py . --seed-ledger --moved-by '#491'` adds
`add-subject-establishment: {state: active, class: sole, declares: absent,
prose: false}` in sorted position. `--ledger-diff` then reports "per-change
sweep ledger consistent with the corpus (162 rows)" against a measured
`34 active + 128 archived`, `112` co-modified, `50` sole, `21 / 13`. The
reading is unchanged in substance from the scalar one it replaces — an
ADDED-only packet with novel requirement titles is an ACTIVE SOLE modifier —
and it is now one row instead of three literals and a paragraph.

README's records list conflicted nowhere this time; #623's entry and this
packet's both stand, newest-first. The `code_surface` line now discloses the
ledger row beside the pin-site re-baseline, so the "no file edited outside"
sentence stays true.

Lane: openxfactory-1d
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 4, 2026
…623 (56e1227), green on main (run 33824532924) (#632)

Lane: openxfactory-max001

Brett's word: "archive it when main is green" (2026-09-04). Realized by #623 (56e1227); green on main (pytest-suite run 33824532924). Ratified 2026-09-04 "ratify 623"; records travel with the archived change under openspec/changes/archive/2026-09-04-add-per-change-sweep-ledger/.

First archive under the per-change sweep ledger: one row moved (add-per-change-sweep-ledger active → archived), no partner flip, no MOVEMENT LOG entry owed. Promotion byte-identical into openspec/specs/release-realization/spec.md.

Validation at head ce3c42f: openspec --all --strict 88/88 (33 active after merging main d611666, 55 specs); --ledger-diff consistent (162 rows; #619 added its own row under the new pin, the first cross-lane use); pytest tests/sequenced_after 158 passed; doc-health identical to main; six required checks green (incl. the new lane-line). Admin merge: self-authored PR (standing pattern B2). Landed under lane-collision protocol Rule 6.

Closes #618

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
brettheap added a commit that referenced this pull request Sep 4, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 4, 2026
…ed, no MOVEMENT LOG entry owed

Lane: openxfactory-smalls

The second archive act under the per-change sweep ledger, and the second to move
exactly one line:

  - add-consumer-identity-namespace: {state: active,   class: co-modifier, …, moved_by: "#623"}
  + add-consumer-identity-namespace: {state: archived, class: co-modifier, …, moved_by: "#643"}

class HOLDS at co-modifier, declares and prose unchanged, and NO PARTNER FLIPPED
— this packet's earlier co-writers on both its requirements were already
co-modified through other keys, so nothing rises out of the sole set. Under the
rule add-per-change-sweep-ledger landed, a MOVEMENT LOG entry is owed only where
a move is NOT explained by the row diff, and this row diff states the whole move.
Seeded with the tool rather than hand-edited:

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#643' --moved-on 2026-09-04
  -> wrote tests/sequenced_after/corpus-ledger.yaml (162 rows, 1 moved by #643)

--ledger-diff is consistent with the corpus at 162 rows; the derived totals move
active 33 -> 32 and archived 129 -> 130, active_co_modified 22 -> 21, each
DERIVED from the one row rather than asserted anywhere.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v
brettheap added a commit that referenced this pull request Sep 4, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 4, 2026
…es into canon and MedxChart's overlay boundary becomes a capability

Lane: openxfactory-max001

Brett Heap's word, 2026-09-04: "rulesets created … do 5.4 and archive both".
The archive ran through `python3 scripts/proposal-support.py . archive
create-medxchart-overlay-boundary --date 2026-09-04 --yes` — the sanctioned
wrapper, never bare `openspec archive` — which re-runs the origin gate and
`openspec validate --strict` and refuses while any task is unticked, which is
why § 5 closed in the commit before this one.

THE GATE THAT OPENED IS THIS PACKET'S OWN § 5, and it is a realization gate
under `release-realization`: merged code plus green evidence, measured after
landing and never assumed. MERGED: opensoft/MedxChart PR #1, `8bc39a8c`
(2026-09-04T13:05:59Z). GREEN UNDER THE REQUIRED REGIME: ruleset `22272824`
"MedxChart pin-gate" (Brett's console act, 13:17:59Z), run `33876197016`,
head `8bc39a8c`, `run_attempt: 2`, success 13:25:47Z — the first attempt
(13:06:02Z) predates the ruleset, so it is the RE-RUN that is the evidence.
Recorded at `review/realization-evidence-2026-09-04.md`, archived with the
packet, including the OBSERVED DEVIATION from precedent `21701436` (two extra
rules, one extra bypass actor) reported and deliberately not repaired.

WHAT PROMOTES, and it is DIFF-CLEAN against the delta:

- ONE requirement AMENDED in `openspec/specs/domain-descendant-boundary/spec.md`
  — "A descendant is placed at a ratified placement". Its `xFactories/` half
  moves from REALIZED BUT NOT YET RATIFIED to RATIFIED 2026-09-03, naming both
  realized placements (`xFactories/MedxChart` 68d2f1f5, `xFactories/MedxPractice`
  d8d73195) at their absolute [email protected]:opensoft/ remotes, and saying in
  its own text that ratifying a PLACEMENT ratifies no CREATION. This is the
  explicit delta the promoted requirement asked for BY NAME — written at
  ratification rather than derived at archive by re-reading — and the four
  superseded units travel under the `Removed from canon by
  create-medxchart-overlay-boundary (2026-09-03)` marker rather than being
  deleted silently, which is the instrument `modified-block-currency` exists to
  require.
- THREE requirements promoted into a NEW capability
  `openspec/specs/medxchart-overlay-boundary/spec.md` (specs 56 -> 57): the
  twice-declared openChart pin at d2376a31, the aggregation reaching openChart
  ONLY through MedxChart at the ABSOLUTE remote form, and openChart's relocation
  to the workspace root as an independent upstream.

THE LEDGER MOVED EXACTLY ONE ROW, confirmed rather than predicted:

  -  create-medxchart-overlay-boundary: {state: active,   class: co-modifier, declares: absent, prose: false, moved_by: "#623", moved_on: "2026-09-03"}
  +  create-medxchart-overlay-boundary: {state: archived, class: co-modifier, declares: absent, prose: false, moved_by: "#654", moved_on: "2026-09-04"}

`class` holds at co-modifier (this packet carries the MODIFIED block and still
does, in the archive), `declares` unchanged, NO PARTNER FLIPPED — so NO
MOVEMENT LOG entry is owed: the row diff explains the whole move.

Gates at this head: openspec validate --all --strict 90/90 (active 34 -> 33,
specs 56 -> 57, total held); validate-sequenced-after.py PASSED (33 active, 2
declaring); --ledger-diff CONSISTENT (165 rows; active co-modified/sole
21/13 -> 20/13); --archive-gate against the ratified ref 0f1edc0 PASSED
("declaration unchanged since ratification" — this change declares no
`sequenced_after`, so what the gate confirms is that the absence is unchanged);
pytest tests/sequenced_after 162 passed; doc-health --single-repo BYTE-IDENTICAL
to main at 48dc9b6 in its finding set (6 critical / 4 error / 27 warning /
16 info, 0 new regressions), canon share 36.5% -> 36.6% on the promoted words.
`validate-omnigent-contracts.py` reports its usual repo-mode FAIL for the
absent `omnigent/domain-overlay.yaml` — openxFactory is not a domain repo and
has no such file at any commit — which is the state on main and is not moved
by this change.

`.openspec.yaml` is UNTOUCHED, as `release-realization`'s origin-retention rule
requires the archive gate to find it. The sibling
`create-medxpractice-overlay-boundary` archives SECOND, from the main this act
makes, because its R3 cites this delta and the amendment must be in canon
before the packet citing it archives against it.

Refs #608

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-max001
brettheap added a commit that referenced this pull request Sep 4, 2026
…d by #622 (95c2cf6), published in contract-v3.3, green on main (run 33835343327) (#643)

* Archive add-consumer-identity-namespace: ratified 2026-09-03, realized by #622 (95c2cf6), published in contract-v3.3, green on main (run 33835343327)

Lane: openxfactory-smalls

Brett's word, 2026-09-04: "do the two archive acts". Claim recorded on PR #622.

THE GATE, MEASURED AFTER LANDING AND NEVER ASSUMED. This packet carries a code
surface, so release-realization's archive gate is merged-plus-green on main and
never the ratification or the cut.

- MERGED: PR #622, squash 95c2cf6 (2026-09-04T00:38:55Z), carrying the packet
  AND its whole code surface in one landing.
- REALIZED INTO A PUBLISHED RELEASE, which is the half the packet deliberately
  refused to write down: target_release named "THE NEXT ADDITIVE MINOR" and no
  number, and it was right twice over. The number was allocated by SOMEONE
  ELSE'S merge order — #628 cut contract-v3.3 from a tree that already carried
  this packet's bytes — and #636 (squash 16b8561) amended that same untagged
  release with the entry tasks.md 5.3 prescribes verbatim, rather than spending
  a second number on bytes already published in-tree. Annotated tag
  contract-v3.3 (tag object edb039c) dereferences to 16b8561 on origin.
- GREEN WHERE IT LANDED: main's own pytest-suite at 92e662c, run 33835343327,
  completed success. That also clears the six cryptography failures of #620 that
  tasks 7.7 recorded as inherited.

Archived through scripts/proposal-support.py . archive — never bare
openspec archive — so the origin gate, the incomplete-task gate and
openspec validate --strict all ran before the move.

WHAT LANDS IN CANON: TWO requirements of credential-contracts promoted
BYTE-IDENTICALLY, verified by sha256 after the act rather than asserted.
"A credential binding declares the consuming system that holds it and the
identity it fetches with" -> 035152aa…bd1581be, 16 scenarios (12 in, 16 out).
"Two bindings on one secret are refused unless every pair declares distinct
consumers, acknowledges the sharing, and names a requirement bound to the
binding" -> 549ea6e1…b195b925, 15 scenarios (12 in, 15 out). Zero units lost on
either, and the per-document narrowing #553 ruled now reads in canon: the
ambiguity scenario's WHEN matches "more than one requirement record in the
requirements document the reference names".

THE TWO CARRIAGE-LEDGER SUBJECTS RETIRE ON THE CONDITION THEY WERE WRITTEN
WITH. tasks 4.4a said "both retire when this packet archives and its blocks are
promoted"; both halves were verified BEFORE the rows were deleted, and the
retirement note stays in place rather than the rows simply vanishing — a reader
who sees only the net cannot tell a packet that archived from one never written.
A --family modified-block-currency run over this tree returns ZERO lines
mentioning the change id, at any path; the population moves 12 -> 10.

ONE BOX IS TICKED BY ROUTING RATHER THAN BY A FIX AND SAYS SO. tasks 2.8 —
MAJOR_RELEASE reading contract-v3.0 while the policy names contract-v4.0 — is
NOT repaired here. What that row ever owed was observe-and-report, and it is
discharged by openxFactory #634, filed 2026-09-04 and citing the row and OQ-3 as
its provenance. No fix is smuggled; the successor is named.

Gates at this tree: openspec validate --all --strict 87 passed / 0 failed;
proposal-support verify ok; the self-gate module 18 passed. Ledger row, the
remaining pytest families and the doc-health diff follow in this branch's
subsequent commit, measured at the head that carries the pull request number.

Closes #511
Closes #553

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xf699RDAfTs5gnSr7igJ2v

* Move this packet's ledger row to archived: one line, no partner flipped, no MOVEMENT LOG entry owed

Lane: openxfactory-smalls

The second archive act under the per-change sweep ledger, and the second to move
exactly one line:

  - add-consumer-identity-namespace: {state: active,   class: co-modifier, …, moved_by: "#623"}
  + add-consumer-identity-namespace: {state: archived, class: co-modifier, …, moved_by: "#643"}

class HOLDS at co-modifier, declares and prose unchanged, and NO PARTNER FLIPPED
— this packet's earlier co-writers on both its requirements were already
co-modified through other keys, so nothing rises out of the sole set. Under the
rule add-per-change-sweep-ledger landed, a MOVEMENT LOG entry is owed only where
a move is NOT explained by the row diff, and this row diff states the whole move.
Seeded with the tool rather than hand-edited:

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#643' --moved-on 2026-09-04
  -> wrote tests/sequenced_after/corpus-ledger.yaml (162 rows, 1 moved by #643)

--ledger-diff is consistent with the corpus at 162 rows; the derived totals move
active 33 -> 32 and archived 129 -> 130, active_co_modified 22 -> 21, each
DERIVED from the one row rather than asserted anywhere.

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]>
brettheap added a commit that referenced this pull request Sep 4, 2026
…lip, no MOVEMENT LOG entry owed

Lane: openxfactory-max001

EXACTLY ONE ROW MOVED, and it is this change's own:

  -  create-medxpractice-overlay-boundary: {state: active,   class: sole, declares: absent, prose: false, moved_by: "#623", moved_on: "2026-09-03"}
  +  create-medxpractice-overlay-boundary: {state: archived, class: sole, declares: absent, prose: false, moved_by: "#660", moved_on: "2026-09-04"}

`class` holds at SOLE — this packet carries NO `## MODIFIED Requirements` block
and never did — `declares` unchanged, NO PARTNER FLIPPED. So NO MOVEMENT LOG
entry is owed: the row diff explains the whole move, which is
`add-per-change-sweep-ledger`'s own rule. Contrast the sibling's row, which is
`co-modifier` because it carried the placement delta; the two rows differ in
exactly the way the two packets do.

tasks.md gains § 7, the archive act, in the archived directory:
7.1 names PR #660 as the landing act, the sanctioned wrapper as the method,
    the wrapper's EARLIER REFUSAL while 5.5 was open, and origin retention
    proven by digest (sha256 c151811b… identical on this tree and the ratified
    ref 0bf37d1) plus the --archive-gate pass.
7.2 states the ledger move as CONFIRMED rather than predicted.
7.3 is the proof that § 6.2's ordering demand was kept: PR #654 merged
    bc1bd4e at 2026-09-04T14:59:12Z promoting the placement amendment into
    openspec/specs/domain-descendant-boundary/spec.md; this branch is cut from
    that commit and R3's primary citation resolves against it at line 76. The
    out-of-order cost § 6.2 named — "a ratified change contradicting promoted
    canon" — was never paid.

Gates: openspec validate --all --strict 89 passed, 0 failed;
validate-sequenced-after.py passed (31 active, 2 declaring); --ledger-diff
consistent (165 rows); pytest tests/sequenced_after 162 passed.

Refs #609

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
Lane: openxfactory-max001
brettheap added a commit that referenced this pull request Sep 4, 2026
…on paths to the packet's new home

Both halves are consequences of the move in the previous commit. Neither is a
re-baseline to make a check pass.

## The corpus-ledger row — moved by the tool, never by hand

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#669'
--moved-on 2026-09-04` → `wrote tests/sequenced_after/corpus-ledger.yaml (165
rows, 1 moved by #669)`, and the row it names is `add-chain-anchoring`.

    -  add-chain-anchoring: {state: active,   ... moved_by: "#623", ...}
    +  add-chain-anchoring: {state: archived, ... moved_by: "#669", ...}

ONE LINE. `class: sole`, `declares: absent` and `prose: false` are unchanged and
NO PARTNER FLIPPED, so **no MOVEMENT LOG entry is owed** —
`add-per-change-sweep-ledger`'s restated rule reserves an entry for a move the
row diff does NOT state, and this move is entirely stated by the row diff.
`--ledger-diff` had reported the staleness in advance and named its whole
extent: one stale row plus the three derived totals that follow from it (active
31→30, archived 134→135, active_sole 12→11). It now reads `per-change sweep
ledger consistent with the corpus (165 rows)`, exit 0, and
`pytest tests/sequenced_after` is 162 passed where it was 3 failed.

## The four ideation paths, repointed — three stale, one that was ALREADY a declared dead reference

`ideation/staging/INDEX.md` (three sites, the staged topic's Exit-3 record) and
`ideation/brainstorm/medxchain-blockchain-medical-records.md` (one site) named
`openspec/changes/add-chain-anchoring/…`, which the move dissolved. Each now
names the archive path. The brainstorm site is the interesting one: its own
sentence already declared the reference dead — *"That path resolves once #513
lands and is a dead reference before then"* — so this repoint DISCHARGES a
disclosure the source made about itself rather than repairing an oversight, and
the sentence's historical framing is left exactly as written.

The INDEX also carried a claim the archive falsifies: **EXIT 3 IS THEREFORE
RATIFIED AND NOT REALIZED**; the contract family and its validator are a later
commission. That sentence was true when written and is not now. It is KEPT and
answered rather than rewritten — the lifecycle's rule for a superseded
statement — with the closing act named: realized #629 `11feff75`, completed
#657 `e65dcc48`, published `contract-v3.4` `807a4f47` / tag `a3309921`,
archived 2026-09-04.

## The sentinel pin — 70 -> 70, and the equality is why nothing else moved

RE-ENUMERATED WITH `pin_class.verify()` ON BOTH TREES rather than reasoned
about: `origin/main` and this branch each report **70 sites / 24 members**,
verdicts `pass` 53 / `not-applicable` 16 / `lost` 1, with
`lost_awaiting_record` 0, `uncovered` `()` and `clean` true — IDENTICAL. Unlike
PR #647, whose `supporting-docs/manifest.yaml` travelled into the archive and
so moved a pin site under a new path, this packet has NO `supporting-docs/`
directory at all, so no site travelled and no comment in
`tests/doc-health/test_sentinel_vocabulary.py` goes stale. The measurement is
recorded because "nothing moved" is a claim like any other.

## Gates at this head

`openspec validate --all --strict` 89 passed / 0 failed (unchanged from
`origin/main`'s 89 — 31 active + 58 specs becomes 30 active + 59 specs);
`proposal-support.py . verify` ok; `validate-sequenced-after.py . --ledger-diff`
consistent, 165 rows; `pytest tests/sequenced_after` 162 passed;
`pytest tests/doc-health` **1552 passed**; and `doc-health.py --single-repo`
taken at `origin/main` (`9420472e`, a detached worktree) and at this branch's
head gives a finding set that is IDENTICAL LINE FOR LINE once the
directory-derived repo identity is normalized — 6 critical / 4 error / 27
warning / 13 info on both sides, `diff` exit 0. The one headline number that
moves is the canon share, 35.4% → 36.6%, which is the promotion doing exactly
what a promotion does.

EXPECTED AND NOT THIS BRANCH'S DEFECT: `pytest tests/review_lane_pin` is 3
failed / 52 passed / 1 skipped, the three being
`test_floor_snapshot.py`'s `test_every_tracked_openspec_spec_path_is_on_the_floor`
and its two negative controls, each naming exactly one path —
`openspec/specs/chain-anchoring/spec.md`. The remedy is the two-repository act
the runbook fixes the order of, and it lands as a companion codexFactory pull
request before this pin advances onto it.

Lane: openxfactory-1d

Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…, published at contract-v3.4 — tranche three is canon (#669)

* Archive add-chain-anchoring: ratified (#513), realized (#629 11feff7), published at contract-v3.4 — tranche three is canon

Brett Heap ordered the archive 2026-09-04 in session, verbatim "archive
chain-anchoring", and ordered it as a PAIR: this packet FIRST because its
archive CREATES the capability the amendment's archive writes into. Every leg of
the evidence chain is read off `main` and none is assumed.

- RATIFIED 2026-08-30 by Brett Heap, repository owner, ruling item 2 of six,
  verbatim "2 yes with note". PR #513. Record
  `review/ratification-2026-08-30.md`, archived with the packet.
- REALIZED: PR #629, squash `11feff75` — twelve schemas, the canonical refusing
  reader, and twelve manifest rows registered AT REALIZATION on the owner's
  overruling of task 4.11's own timing ("merge 629, register now").
- COMPLETED BEFORE PUBLICATION: PR #657, squash `e65dcc48`, the amendment's
  realization the owner ordered to land before these schemas shipped in a
  tagged bundle.
- PUBLISHED: `contract-v3.4`, PR #653, squash `807a4f47`, annotated tag object
  `a3309921` — verified here by `git rev-list -n1 contract-v3.4` peeling to
  `807a4f47` rather than by reading the release note.

## Archive method — the recorded escape, disclosed in the packet

`python3 scripts/proposal-support.py . archive add-chain-anchoring` was tried
FIRST and REFUSED: exit 1, "change has incomplete tasks". Its gate is

    tasks.is_file() and re.search(r"^- \[ \]", tasks.read_text(), re.M)
    (scripts/proposal-support.py:1079-1081)

read off those three lines rather than remembered — UNCONDITIONAL on WHICH box.
`OPENSPEC_TELEMETRY=0 openspec archive add-chain-anchoring --yes` was run
instead, following `declare-spent-bundle-state` § 5.1 (PR #611, `7af2725c`) as
most recently applied by `add-subject-establishment` (PR #647, `e4ff4fb3`). It
reported `Task status: 24/40 tasks`,
`Warning: 16 incomplete task(s) found. Continuing due to --yes flag.`, created
the spec (`+ 9 added, ~ 0, - 0`), and moved the packet.

THE SIXTEEN OPEN BOXES ARE DISCLOSED AND CLASSIFIED in the archived tasks.md's
new closing section, because they span four sections rather than one § Open and
a reader should not have to reconstruct which class each falls in:

  (a) OPERATOR INFRASTRUCTURE — 4.5, 4.6, 4.7, 4.9, 4.10. Four carry `[OPERATOR]`
      in their own first words and `proposal.md`'s `code_surface` declares the
      anchoring RUNTIME NOT THIS CHANGE'S SURFACE. Ticked box 4.8 already says
      so in the packet's voice, and `contract-v3.4`'s own contract-index row
      says it in canon: no witness is configured, nothing is on any chain.
  (b) SETTLEMENTS THE RATIFIED REQUIREMENTS DELIBERATELY LEAVE OPEN — 5.1, 5.2,
      5.4, 5.5. Requirement 1 fixes the receipt SHAPE and not the unit;
      requirement 3 requires horizons be DECLARED and names no numbers;
      requirement 8 fixes the shape and the refusals and not the construction.
  (c) DISCHARGED ELSEWHERE, DELIBERATELY NOT TICKED HERE — 3.2 and 4.12. 4.12
      says of itself "The CUTTING SESSION's act ... and not this realization's",
      and the cutting session performed it: `contracts/README.md`'s own row reads
      "PUBLISHED at contract-v3.4, the cut that discharged task 4.12's half".
      An archive act is not the place to close another lane's boxes, and ticking
      them moves this gate not at all — fourteen would remain.
  (d) SUCCESSORS AND DEPENDENCIES — 6.1 … 6.5, under a heading that already
      reads NAMED, NOT DRAFTED.

Not one is undone realization of this change, and ticking any to satisfy the
wrapper would be writing a false completion past a gate that cannot tell "open
by omission" from "open by design" apart.

## The promotion was byte-checked, not trusted

`openspec/specs/chain-anchoring/spec.md` NEW. Both sides extracted from their
first `### Requirement:` line and diffed: IDENTICAL but for one trailing blank
line the archiver emits — 95509 bytes against 95510. NINE requirements / 89
SCENARIOS on both sides, the count `proposal.md` and the README record have
declared since the 2026-08-30 fix round. `git status --porcelain -uall
openspec/specs/` names that one file and nothing else, so no promoted
requirement in any other capability moved a word. The packet-side move is R100
on fourteen of fifteen files; tasks.md is R087 and its whole delta is the
disclosure above.

`openspec validate --all --strict`: 89 passed, 0 failed — and the TOTAL IS
UNCHANGED, measured on both sides rather than assumed: `origin/main` is 31
active + 58 specs, this tree is 30 active + 59 specs. An archive trades an
active change for a promoted capability and the item count does not move.

## Bookkeeping

- README "OpenSpec Records": the active entry (101 lines) removed, an archived
  entry added at the head of `Archived changes:`.
- `docs/domain-neutralization-candidate-register.md`: NO EDIT OWED — verified by
  enumeration, the packet names no DTN candidate and the register names no
  `chain-anchoring` row.
- `ideation/README.md`: NO EDIT OWED — verified, it carries no pointer to this
  packet.
- `ideation/staging/INDEX.md`: three path references to the active packet
  (lines 1996-2025) go stale with this move and are repointed in the follow-on
  commit alongside the ledger row, so this commit is the archive act and
  nothing else.

The corpus-ledger row follows in the next commit, the ledger's `moved_by`
needing this pull request's own number.

Lane: openxfactory-1d

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

* Move the one ledger row the archive moves, and follow the four ideation paths to the packet's new home

Both halves are consequences of the move in the previous commit. Neither is a
re-baseline to make a check pass.

## The corpus-ledger row — moved by the tool, never by hand

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#669'
--moved-on 2026-09-04` → `wrote tests/sequenced_after/corpus-ledger.yaml (165
rows, 1 moved by #669)`, and the row it names is `add-chain-anchoring`.

    -  add-chain-anchoring: {state: active,   ... moved_by: "#623", ...}
    +  add-chain-anchoring: {state: archived, ... moved_by: "#669", ...}

ONE LINE. `class: sole`, `declares: absent` and `prose: false` are unchanged and
NO PARTNER FLIPPED, so **no MOVEMENT LOG entry is owed** —
`add-per-change-sweep-ledger`'s restated rule reserves an entry for a move the
row diff does NOT state, and this move is entirely stated by the row diff.
`--ledger-diff` had reported the staleness in advance and named its whole
extent: one stale row plus the three derived totals that follow from it (active
31→30, archived 134→135, active_sole 12→11). It now reads `per-change sweep
ledger consistent with the corpus (165 rows)`, exit 0, and
`pytest tests/sequenced_after` is 162 passed where it was 3 failed.

## The four ideation paths, repointed — three stale, one that was ALREADY a declared dead reference

`ideation/staging/INDEX.md` (three sites, the staged topic's Exit-3 record) and
`ideation/brainstorm/medxchain-blockchain-medical-records.md` (one site) named
`openspec/changes/add-chain-anchoring/…`, which the move dissolved. Each now
names the archive path. The brainstorm site is the interesting one: its own
sentence already declared the reference dead — *"That path resolves once #513
lands and is a dead reference before then"* — so this repoint DISCHARGES a
disclosure the source made about itself rather than repairing an oversight, and
the sentence's historical framing is left exactly as written.

The INDEX also carried a claim the archive falsifies: **EXIT 3 IS THEREFORE
RATIFIED AND NOT REALIZED**; the contract family and its validator are a later
commission. That sentence was true when written and is not now. It is KEPT and
answered rather than rewritten — the lifecycle's rule for a superseded
statement — with the closing act named: realized #629 `11feff75`, completed
#657 `e65dcc48`, published `contract-v3.4` `807a4f47` / tag `a3309921`,
archived 2026-09-04.

## The sentinel pin — 70 -> 70, and the equality is why nothing else moved

RE-ENUMERATED WITH `pin_class.verify()` ON BOTH TREES rather than reasoned
about: `origin/main` and this branch each report **70 sites / 24 members**,
verdicts `pass` 53 / `not-applicable` 16 / `lost` 1, with
`lost_awaiting_record` 0, `uncovered` `()` and `clean` true — IDENTICAL. Unlike
PR #647, whose `supporting-docs/manifest.yaml` travelled into the archive and
so moved a pin site under a new path, this packet has NO `supporting-docs/`
directory at all, so no site travelled and no comment in
`tests/doc-health/test_sentinel_vocabulary.py` goes stale. The measurement is
recorded because "nothing moved" is a claim like any other.

## Gates at this head

`openspec validate --all --strict` 89 passed / 0 failed (unchanged from
`origin/main`'s 89 — 31 active + 58 specs becomes 30 active + 59 specs);
`proposal-support.py . verify` ok; `validate-sequenced-after.py . --ledger-diff`
consistent, 165 rows; `pytest tests/sequenced_after` 162 passed;
`pytest tests/doc-health` **1552 passed**; and `doc-health.py --single-repo`
taken at `origin/main` (`9420472e`, a detached worktree) and at this branch's
head gives a finding set that is IDENTICAL LINE FOR LINE once the
directory-derived repo identity is normalized — 6 critical / 4 error / 27
warning / 13 info on both sides, `diff` exit 0. The one headline number that
moves is the canon share, 35.4% → 36.6%, which is the promotion doing exactly
what a promotion does.

EXPECTED AND NOT THIS BRANCH'S DEFECT: `pytest tests/review_lane_pin` is 3
failed / 52 passed / 1 skipped, the three being
`test_floor_snapshot.py`'s `test_every_tracked_openspec_spec_path_is_on_the_floor`
and its two negative controls, each naming exactly one path —
`openspec/specs/chain-anchoring/spec.md`. The remedy is the two-repository act
the runbook fixes the order of, and it lands as a companion codexFactory pull
request before this pin advances onto it.

Lane: openxfactory-1d

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

* Re-pin merge-master core 6d35c4fe -> 76fa501c; floor 66 -> 67 (chain-anchoring)

Archiving `add-chain-anchoring` promotes
`openspec/specs/chain-anchoring/spec.md`. codexFactory's
`repository_gate_floor` for this repository is an EXACT ENUMERATION of that
surface, so the new spec arrived OFF the floor for the same structural reason
as the three promotions before it on this same day. The fourth advance of the
day, eight hours after the prior note called itself the last of the family —
which was accurate when written, and this is exactly the "whichever future
archive first does" it named.

Five sites move in this one commit, per the runbook and openxFactory PR #569:

  1. contracts/review-lane-pin.yaml            core_commit
  2. .github/workflows/merge-master-approval.yml PINNED_CORE_COMMIT
  3. .github/workflows/merge-master-approval.yml core checkout `ref:`
  4. .github/workflows/pytest-suite.yml          core checkout `ref:`
  5. contracts/review-lane-floor-snapshot.yaml   byte copy at the new commit

`6d35c4fecaa4af7a23134678f9239e409ff5215f` (codexFactory PR #198) ->
`76fa501cd1c846ca9676d901e41e33ae1e730733` (codexFactory PR #204, MERGE
COMMIT, 2026-09-04T23:47:59Z, verified an ancestor of codexFactory
origin/main immediately before this advance). entry_count 66 -> 67;
sha256 b890cf1d... -> c4a386dbbfff3b35c0ef0afd1b36932e181effb551a69434cb02b25332a59e78.

SNAPSHOT BYTE IDENTITY, measured three independent ways: (a) sha256 over
the 12809-byte file matches; (b) `git hash-object` on the vendored copy
equals the blob id codexFactory's own tree carries for that path at
76fa501c (`4dffee49`); (c) the pin suite's freshness comparison ran with the
pinned core checked out beside it: 56 passed, ZERO skipped.

THE FLOOR GREW BY EXACTLY ONE, AND IT IS THE SPEC. Whole diff against
6d35c4fe: one added entry line, the generated block's three regeneration
fields (generated_at / --ref 0ae7408 -> 3afd8a8, entry_count 58 -> 59),
and the document's two "8 + 1" self-descriptions moving 66 -> 67. PR #204
regenerated at openxFactory 3afd8a8 — THIS branch's own pushed head,
EXACTLY, the ledger commit that closes the archive — so the snapshot's
`generated_at` non-member value is the immediate parent of this commit.

NO COLLISION, measured directly: `git merge-base --is-ancestor origin/main
HEAD` holds on this branch (main 9420472 is an ancestor of 3afd8a8), so
no commit main gained after the branch was cut needed reconciling. main
carries 58 tracked paths under openspec/specs, this branch 59; the one
addition is this packet's own promotion. One regeneration at one tree
suffices; the second-lander remedy is not engaged.

HISTORY PRESERVED, LIVE CLAIMS RE-MEASURED: every remaining `6d35c4fe` in
the pin file and the caller header is prose describing the 16:02 advance,
retained as history. Live counts moved with the pin: pinned_members
SIXTY-SIX -> SIXTY-SEVEN and FIFTY-EIGHT -> FIFTY-NINE, "ALL THREE" -> "ALL
FOUR 2026-09-04 ADVANCES", the caller header's sixty-six / fifty-eight, the
snapshot generated_at note 0ae7408 -> 3afd8a8, and a seventh regeneration
appended to the block's provenance list.

LOCKSTEP RE-MEASURED, STILL DIVERGED: both xFactory judging surfaces were
read directly off xFactory main (f0ca0365, 2026-09-04T23:09:53Z) —
merge-master-approval.yml line 146 and council-convening-lane.yml line 302
— and both still name f4702f64 verbatim. Cause unchanged since 2026-09-01
and forced by the feature; the convergence obligation stands undischarged,
now owed against a floor moved SEVEN times, four of them this one day.

Validated on this tree:
  pytest tests/review_lane_pin          55 passed, 1 skipped, 18 subtests
  ... with PINNED_CORE_CHECKOUT present  56 passed, ZERO skipped
  pytest tests/doc-health               1552 passed
  pytest tests/sequenced_after          162 passed
  openspec validate --all --strict      89 passed, 0 failed
  validate-sequenced-after.py --ledger-diff  consistent, 165 rows
  all four YAML files re-parse

Refs #669
Lane: openxfactory-1d

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

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1056'`
→ "wrote tests/sequenced_after/corpus-ledger.yaml (214 rows, 1 moved by #1056)",
the one row being `add-composed-view-authoring`: `state: active -> archived`,
`moved_by: #623 -> #1056`, `moved_on: 2026-09-03 -> 2026-09-16`. `class` stays
`co-modifier` — its partner is `split-opendox-two-layer-product`, still active —
so no partner row moves and the diff is the one line.

`moved_on` is the date the archive directory carries, which is the rule for a row
flipping active -> archived; every other key is derived from the live corpus.

`--ledger-diff` → "per-change sweep ledger consistent with the corpus (214 rows)",
exit 0. `pytest -q tests/sequenced_after` → 286 passed. No MOVEMENT LOG append is
owed: the move is fully explained by the row diff itself.

README: the archived-ledger entry's PR placeholder is filled with #1056.

Refs #656 (stays OPEN). CLAIM 5690350779.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1057'`
→ "wrote tests/sequenced_after/corpus-ledger.yaml (214 rows, 1 moved by #1057)",
the one row being `add-doxchat-model-intake`: `state: active -> archived`,
`moved_by: #623 -> #1057`, `moved_on: 2026-09-03 -> 2026-09-16`. `class` stays
`co-modifier` — its partner is `split-opendox-two-layer-product`, still active —
so no partner row moves.

`moved_on` is the date the archive directory carries, which is the rule for a row
flipping active -> archived.

`--ledger-diff` → "per-change sweep ledger consistent with the corpus (214 rows)",
exit 0. `pytest -q tests/sequenced_after` → 286 passed. No MOVEMENT LOG append is
owed: the move is fully explained by the row diff itself.

Refs #656 (stays OPEN). CLAIM 5690514951.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…#1060

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1060'`
→ "wrote tests/sequenced_after/corpus-ledger.yaml (214 rows, 1 moved by #1060)",
the one row being `add-nightly-dashboard-refresh`: `state: active -> archived`,
`moved_by: #623 -> #1060`, `moved_on: 2026-09-03 -> 2026-09-16`. `class` stays
`co-modifier`. `--ledger-diff` → consistent, 214 rows, exit 0.

THE NUMBER WAS PREDICTED AND THE PREDICTION WAS WRONG: the closure commit and the
README entry named `#1058`, which two other lanes' pull requests took while this
branch was being written; this one is `#1060`. Corrected in all three places that
carry it — the README archived-ledger entry, `scripts/target-release-register.yaml`'s
retirement note, and `tests/target_release/test_target_release_gate.py`'s comment
— rather than left as a citation that resolves to somebody else's work.

Refs #656 (stays OPEN). CLAIM 5690599915.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
… stood, and extend the departure test to a packet that never held a ledger row

THE LEDGER: `validate-sequenced-after.py . --seed-ledger --moved-by '#1065'`
moves this id from `state: active` / `moved_by: "#623"` to
`{state: archived, class: sole, declares: absent, prose: false, moved_by:
"#1065", moved_on: "2026-09-16"}`, and `--ledger-diff` reports the sweep ledger
**consistent with the corpus (214 rows)**.

THE NUMBER: the closure record's reproduction command and the README entry's link
carried an explicit placeholder rather than a predicted number, because § 6.1
learned that lesson the expensive way — it wrote #1058 into four places and the
actual number was #1060. Both now name **#1065**, which exists.

THE TEST: `_REHOMED_AND_STILL_WHOLE` gains this packet, and the fourth field
becomes optional to admit it. `add-lens-document-selection` is five ADDED
requirements and NOTHING else, so it never held a `_LEDGER_SUBJECTS` row — which
means its departure was implied by nothing at all, not even by a row going
missing. The first three checks still bind (active ABSENT, archive PRESENT, the
delta still parsing), and the fourth — every ADDED title still standing — is the
whole of what a re-home could silently lose here. A `None` in the MODIFIED field
is asserted rather than skipped: the archived delta must carry NO MODIFIED block,
which is why it held no row. PROVEN by mutating one recorded title: the test
fails, and passes again when it is restored.

MEASURED at this head: `pytest -q
tests/doc-health/test_modified_block_currency_self_gate.py` → **20 passed**;
`--single-repo --family promotion-fidelity` → **20 errors**, five of them this
packet's, exactly as the record states (15 at § 6.1's head).

Refs #656 (stays OPEN).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…dger row

Three things that could only be written once the pull request existed, which is
why they are a second commit rather than an amendment: README's archived-ledger
entry carried a `#PENDING` placeholder, the closure record had no `Closed by:`
line, and `--seed-ledger` stamps `moved_by`.

  $ python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1066'
  wrote tests/sequenced_after/corpus-ledger.yaml (214 rows, 1 moved by #1066).
    - retire-doxbench-chat-turn-v1
  $ python3 scripts/validate-sequenced-after.py . --ledger-diff
  per-change sweep ledger consistent with the corpus (214 rows).

The row moves `state: active` -> `archived`, `moved_by: "#623"` -> `"#1066"`,
`moved_on: "2026-09-03"` -> `"2026-09-16"`; `class: co-modifier` and
`declares: absent` are unchanged, the archive moving a packet without touching
what its delta says. Row count holds at 214: an archive relocates a row, it
does not retire one.

THE PLACEHOLDER WAS DELIBERATE. The § 6.1 closure predicted its own number, wrote
#1058 into README and two code comments, and was wrong -- two other lanes took
1058 and 1059 while it worked. The number is now written only after `gh pr create`
has returned one.

Refs #656 (stays OPEN).

Lane: openxfactory-4

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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