Skip to content

Pin the OpenSpec CLI's dependency closure: vendor a lockfile beside the pin, install through it - #813

Merged
brettheap merged 23 commits into
mainfrom
change/pin-openspec-cli-dependency-closure
Sep 9, 2026
Merged

brettheap merged 23 commits into
mainfrom
change/pin-openspec-cli-dependency-closure

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: codexfactory-1

Closes the open item #667 declared and did not close. contracts/openspec-cli-pin.yaml has said since 2026-09-04 that its referent addresses the CLI's own bytes and not its DEPENDENCY CLOSURE: @fission-ai/[email protected] declares ten runtime dependencies, nine of them caret ranges npm resolved at install time, so two runs of the identical, content-address-verified artifact could adjudicate this corpus over two different dependency trees. The pin declared that shortfall rather than hiding it and named the repair as successor work — add-openspec-cli-pin design OI-1 and task 5.2, restated unchanged as bump-openspec-cli-pin-to-1.12 task 6.4. Both tick here.

The shortfall stopped being tolerable when the pin became load-bearing: five repositories now gate on this entrypoint, and since 2026-09-08 openspec-cli-pin is a REQUIRED status check on main (org ruleset 22551797, verified live). Five gates were resolving nine caret ranges independently.

Ruled, not chosen by the lane

Brett Heap, 2026-09-08T14:14:49Z, first-hand, in session, on a four-option packet — (1) vendor a lockfile, (2) enumerate the resolved tree in the pin contract, (3) vendor the built tree as one artifact by digest, (4) accept the shortfall as declared — chose verbatim "Vendor a lockfile (Recommended)": an authored lockfile committed beside the pin, its digest recorded in the pin, the installer and verifier bound to it; standard npm mechanism, regenerated per bump.

The ruling authorized the AUTHORING and not the content. This packet carries Status: draft and owes a ratification citation from a separate act. The three exits not taken are recorded with their reasons in design.md § 1.

What lands

NEW contracts/openspec-cli-pin.1.12.0.package-lock.json lockfileVersion: 3, 42,613 bytes, 80 packages, every one carrying a resolved URL and an integrity. Its entry for @fission-ai/openspec carries the pin's own referent character for character.
contracts/openspec-cli-pin.yaml lockfile: (a BARE NAME, resolving beside the pin and nowhere else), lockfile_integrity:, lockfile_packages: "80". The header's shortfall paragraph rewritten as CLOSED with the old text kept as Was: history; the rollback: entry declares 1.2.0 UNCOVERED. version/integrity/shasum/tarball and all four dispositions: byte-unchanged.
scripts/validate-openspec-cli-pin.py pinned_lockfile (check 1), verify_lockfile (check 3, before any registry round trip), install_locked replacing install_artifact, cache_key folding the lockfile's digest into the reuse directory. ONE new refusal code, pin-lockfile-mismatch.
scripts/install-pinned-openspec-cli.py Two calls into the verifier's own functions. No second parser, no subprocess, no copy of the version, integrity, lockfile name or lockfile address in any line that runs.
tests/openspec_cli_pin/ 93 → 123.
.github/workflows/* NO EDIT. Neither ever named the version, so neither has to learn the lockfile — the single-source property paying out. Their two no-second-copy assertions are tightened, not relaxed.

npm ci, never npm install — npm install treats a lockfile as a starting point and may re-resolve a range that has since acquired a newer satisfying version; npm ci treats it as the answer and refuses when the manifest and the lockfile disagree. The staging package.json is DERIVED from the lockfile's own root entry rather than committed beside it, so there is no second copy of the dependency declaration. --ignore-scripts stays, now as defence in depth over a known tree.

Measured, not asserted

$ python3 scripts/validate-openspec-cli-pin.py --repo . --all --no-cache
openspec-cli-pin: @fission-ai/[email protected] from pinned artifact (…/node_modules/.bin/openspec); integrity sha512-oFE2Lj7WVSc87nSi… verified
openspec-cli-pin: dependency closure openspec-cli-pin.1.12.0.package-lock.json (80 packages); lockfile_integrity sha512-aw5lIN45tQq2WZll… verified; installed with `npm ci --ignore-scripts`
Totals: 99 passed, 2 failed (101 items)
openspec-cli-pin: DISPOSITIONED FINDINGS in openxFactory (2 applied)
OK … 0 UNDISPOSITIONED failures.            # exit 0

A cached run's node_modules was walked and compared against the lockfile entry by entry: 80 locked, 80 installed, name sets identical, zero version mismatches (zod 4.5.4 against ^4.4.3, commander 14.0.3 against ^14.0.0 — exactly the ranges that used to resolve at install time). evidence/dependency-closure-2026-09-08.md carries all of it, including the package count re-measured three independent ways.

Spec delta: two ADDED requirements, nothing MODIFIED

Deliberately (design.md § 4). The tempting MODIFY is the referent rule add-openspec-cli-pin already extends — but that packet's ## MODIFIED block is still unarchived, and a second unarchived modifier of one requirement is exactly the whole-block overwrite this estate's scenario-currency findings are all about. The obligation is also genuinely new: the capability has never spoken about pinning a resolution.

What stays open, named rather than implied

  • Trust on first use of the 79 registry integrity values captured when the lockfile was generated. The CLI's own entry is corroborated by integrity:; the other 79 are corroborated by nothing outside the lockfile. Successor task 6.1.
  • The regeneration obligation at every bump — five things now move together, not four. Written into the pin's header and enforced: a bump that forgets leaves the lockfile naming the old referent, and the first run refuses pin-lockfile-mismatch.
  • The 1.2.0 rollback entry is UNCOVERED, by declaration in the pin. A rollback is a change to author (with its own lockfile) and not a revert to apply. Successor task 6.2.

Do not merge; Status: draft, ratification owed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB

…he pin

THE OPEN ITEM #667 DECLARED AND DID NOT CLOSE. `contracts/openspec-cli-pin.yaml`
has said since 2026-09-04 that its referent addresses the CLI's own bytes and NOT
its DEPENDENCY CLOSURE: `@fission-ai/[email protected]` declares ten runtime
dependencies, NINE of them caret ranges npm resolved at install time, so two runs
of the identical content-address-verified artifact could adjudicate this corpus
over two different dependency trees. The pin declared the shortfall rather than
hiding it and named the repair as successor work — `add-openspec-cli-pin` task
5.2 and design OI-1, restated unchanged as `bump-openspec-cli-pin-to-1.12` task
6.4. Both tick here.

RULED, NOT CHOSEN BY THE LANE. Brett Heap, 2026-09-08T14:14:49Z, first-hand, in
session, on a four-option packet — vendor a lockfile / enumerate the resolved
tree in the pin / vendor the built tree as one artifact by digest / accept the
shortfall as declared — chose verbatim "Vendor a lockfile (Recommended)". The
ruling authorized the AUTHORING and not the content; the packet is `Status:
draft` and owes a ratification citation. The three exits not taken are recorded
with their reasons in the packet's design.md § 1.

WHAT LANDS.

* `contracts/openspec-cli-pin.1.12.0.package-lock.json` (new): an authored
  `lockfileVersion: 3` lockfile, 42,613 bytes, 80 packages, every one carrying a
  `resolved` URL and an `integrity`, generated by
  `npm install --package-lock-only --ignore-scripts` in a staging project whose
  only dependency is the pinned package at its exact version. Its entry for
  `@fission-ai/openspec` carries the pin's own referent character for character.
* `contracts/openspec-cli-pin.yaml`: `lockfile:` (a BARE NAME, resolving beside
  the pin and nowhere else), `lockfile_integrity:` and `lockfile_packages: "80"`.
  The header's DECLARED SHORTFALL paragraph is rewritten as CLOSED with the whole
  of the old text kept as `Was:` history — the shortfall is the argument for the
  mechanism — and the `rollback:` entry declares `1.2.0` UNCOVERED with the
  consequence stated. `version`, `integrity`, `shasum`, `tarball` and all four
  `dispositions:` are BYTE-UNCHANGED.
* `scripts/validate-openspec-cli-pin.py`: `pinned_lockfile` in check 1
  (`pin-tag-only` for an undeclared closure, because unresolved caret ranges ARE
  the moving reference that code refuses); `verify_lockfile` in check 3, run
  BEFORE any registry round trip, with ONE new refusal code
  `pin-lockfile-mismatch` covering LOCKFILE DIGEST DRIFT, LOCKFILE REFERENT
  DISAGREEMENT (the lockfile locks another artifact than the pin, or none) and
  LOCKFILE SIZE DRIFT; `install_locked` replacing `install_artifact` —
  `npm ci --ignore-scripts` in a staging project whose `package.json` is DERIVED
  from the lockfile's own root entry, never `npm install`, which would resolve
  the ranges again; and `cache_key` folding the lockfile's digest into the reuse
  directory's name, with the stamp carrying both addresses.
* `scripts/install-pinned-openspec-cli.py`: two calls into the verifier's own
  `pinned_lockfile`/`verify_lockfile`. No second parser, no `subprocess`, no
  staging project of its own, and no copy of the version, the integrity, the
  lockfile's name or its address in any line that runs.
* `tests/openspec_cli_pin/`: 93 -> 123. The gate and the test-job workflows take
  NO edit at all, and their two no-second-copy assertions are TIGHTENED to refuse
  the lockfile's address and name as well.

MEASURED, NOT ASSERTED. `validate-openspec-cli-pin.py --repo . --all --no-cache`
exits 0 through the lockfile path, printing `dependency closure
openspec-cli-pin.1.12.0.package-lock.json (80 packages) ... installed with
`npm ci --ignore-scripts``, `Totals: 99 passed, 2 failed (101 items)`, 2 applied
dispositions, 0 UNDISPOSITIONED failures. A cached run's `node_modules` was
walked and compared against the lockfile entry by entry: 80 locked, 80 installed,
name sets identical, ZERO version mismatches. Evidence in the packet.

WHAT STAYS OPEN, named rather than implied (design.md § 6): trust-on-first-use of
the 79 registry integrity values captured when the lockfile was generated; the
regeneration obligation at every bump — five things now move together, not four,
and the verifier's first-run refusal enforces it rather than memory; and the
`1.2.0` rollback entry, which is UNCOVERED by declaration, so a rollback is a
change to author and not a revert to apply.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI lite review requested due to automatic review settings September 8, 2026 14:42

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

`pin-openspec-cli-dependency-closure` is a new change id in the corpus, so it
owes exactly one row. Machine-derived by
`scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#813'`, which
rewrote the file from the live corpus and stamped provenance on the ONE row that
moved; every other row's `moved_by`/`moved_on` is unchanged.

`class: sole` — no other change in the corpus writes a requirement key this one
writes. That is a fact worth reading rather than a formality: the packet ADDS two
requirements to `neutral-product-pin` and MODIFIES nothing, deliberately, because
`add-openspec-cli-pin`'s own `## MODIFIED` block on the referent rule is still
unarchived and a second unarchived modifier of one requirement is a whole-block
overwrite. `declares: absent` — no `sequenced_after:` is claimed, and none is
owed by a sole modifier.

`python3 -m pytest tests/sequenced_after -q` -> 177 passed.

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

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

It changes the mechanics of a required validation gate (lockfile verification + npm ci install + cache semantics) and should get final human review despite the strong test expansion.

Pull request overview

This PR makes the OpenSpec CLI pin deterministic across repositories by pinning the CLI’s dependency closure (not just the CLI tarball) via a committed npm lockfile, and then binding both the verifier and the installer to that lockfile-driven install path.

Changes:

  • Add a versioned package-lock.json beside the pin and record its name, SHA-512 integrity, and package count in contracts/openspec-cli-pin.yaml.
  • Update scripts/validate-openspec-cli-pin.py to (1) verify the committed lockfile before any registry fetch, (2) install via npm ci --ignore-scripts using a staging package.json derived from the lockfile, and (3) key/cache installs on both artifact and lockfile digests.
  • Expand the existing pin test suite to cover lockfile declaration/verification, install behavior (npm ci vs npm install), cache-key behavior, and offline reconciliation of the real committed lockfile against the real pin.
File summaries
File Description
contracts/openspec-cli-pin.yaml Records the lockfile as a second referent (name/integrity/package-count) and declares rollback closure as uncovered.
contracts/openspec-cli-pin.1.12.0.package-lock.json Adds the committed npm lockfile for the pinned CLI’s full dependency tree.
scripts/validate-openspec-cli-pin.py Adds lockfile parsing/verification + npm ci install flow + cache key/stamp updates to bind installs to the vendored resolution.
scripts/install-pinned-openspec-cli.py Reuses the verifier’s lockfile functions to ensure installs go through the pinned closure without duplicating pin knowledge.
tests/openspec_cli_pin/test_openspec_cli_pin.py Extends coverage for lockfile enforcement, ordering (verify before fetch), install semantics, and cache behavior.
README.md Updates the OpenSpec Records index to include this new change packet and its rationale/status.
openspec/changes/pin-openspec-cli-dependency-closure/* New change packet: proposal/design/tasks/spec delta/evidence establishing and measuring the closure-pin mechanism.
openspec/changes/add-openspec-cli-pin/tasks.md Marks the previously-declared dependency-closure item as completed by this packet.
openspec/changes/bump-openspec-cli-pin-to-1.12/tasks.md Marks the dependency-closure follow-up item as completed by this packet.
Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 14/15 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

Copilot AI review requested due to automatic review settings September 8, 2026 14:47

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

read_lockfile() asserts it only implements lockfileVersion 2/3 semantics but does not validate lockfileVersion, so unknown future lockfile formats could be accepted silently contrary to the stated contract.

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

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 14/15 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/validate-openspec-cli-pin.py Resolved
…ate run

MERGED origin/main (6871292), which carries #810 -> 95e2540: the org ruleset
`22551797` "openxFactory pin-gate (require openspec-cli-pin)" and the tick of
`add-openspec-cli-pin` task 3.3. THE TWO TICKS NOW SIT SIDE BY SIDE in that
packet — 3.3 (the required check) and 5.2 (the dependency closure) — which is
also the argument this packet rests on, so the citation is not bookkeeping. A
DECLARED GAP IN A REQUIRED CHECK is a declared gap in the thing that stops
merges, and that is what ended option 4, "accept the shortfall as declared".

The amended header in `add-openspec-cli-pin/tasks.md` said "6.2 (OpsxFactory)
and 3.3 remain", which the same day's landing made false. Corrected to name
#810 / `95e25409` and to leave 6.2 as the whole of what remains, with the `Was:`
history untouched.

`design.md` § 1 (option 4) and `proposal.md` now cite the merge sha beside the
ruleset id rather than the ruleset id alone. `evidence/` gains two sections: the
live `gh api` reads of `main`'s required contexts and of ruleset 22551797, and
THIS PULL REQUEST'S OWN CI GATE LOG — run 34240127032, on a fresh runner with
`--no-cache`:

  openspec-cli-pin: dependency closure openspec-cli-pin.1.12.0.package-lock.json
  (80 packages); lockfile_integrity sha512-aw5lIN45tQq2WZll… verified; installed
  with `npm ci --ignore-scripts`
  Totals: 100 passed, 2 failed (102 items)
  OK … 0 UNDISPOSITIONED failures.

The executable path in that log is the giveaway that the closure actually ran:
`…/prefix/node_modules/.bin/openspec` is a PROJECT install produced by `npm ci`,
not the `…/prefix/bin/openspec` an `npm install --global --prefix` used to
produce.

Re-run after the merge: `pytest tests/openspec_cli_pin tests/sequenced_after -q`
-> 300 passed; `--ledger-diff` -> consistent with the corpus (186 rows);
`openspec validate --all --strict` -> 100 passed, 2 failed (the two standing
dispositions).

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI review requested due to automatic review settings September 8, 2026 14:51

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

scripts/proposal-support.py still calls resolve_pinned() with the old signature, so the new required lockfile parameters will trigger a runtime TypeError unless all internal callers are updated.

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

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 14/15 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/validate-openspec-cli-pin.py Resolved
design.md § 1's argument against option 3 (vendor the built tree as one artifact
by digest) said "~14 MB of third-party JavaScript", which was an estimate
standing in a document whose whole discipline is that numbers are measured. The
tree `npm ci` actually produces is **11.0 MB** of bytes (20 MB on disk), walked
on this branch. The argument is unchanged and slightly weaker in magnitude,
which is the right direction for a correction to move: it is now the number
rather than a guess a reader would have to re-take.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI review requested due to automatic review settings September 8, 2026 15:10

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

A newly committed evidence snippet includes a host-absolute /tmp/... path, which violates the repository constitution’s “no host-absolute paths in committed files” rule.

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file

Suppressed comments (1)

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

openspec/changes/pin-openspec-cli-dependency-closure/evidence/dependency-closure-2026-09-08.md:176

  • This evidence snippet embeds a host-absolute path (/tmp/...), which violates the repo constitution requirement that committed files must not contain host-absolute paths. Redact the runner-specific prefix (keep only a relative/ellipsis form) so the evidence remains portable while still proving the executable layout.
  • Files reviewed: 14/15 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…and not a claim

`neutral-product-pin` requires a published consumption pin to be INDEXED in
`contracts/README.md`, and a reader of that row could not previously learn that
a second file now sits beside the pin and is installed through on every run.
The row's subject line names it and the body says what it is — and, as
importantly, what it is NOT.

IT TAKES NO ROW OF ITS OWN, deliberately, and the row now says why: the lockfile
is addressed BY the pin, is meaningless without it, and a consumer that read it
on its own would be reading a resolution with no statement of what it resolves.
Registering it separately would invite exactly that read. The row also carries
the obligation a bump inherits — five fields move together now, not four.

`pytest tests/doc-health tests/hermes_runtime_contracts/test_release_inventory.py`
-> 1661 passed.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI review requested due to automatic review settings September 8, 2026 15:18

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

pinned_lockfile can crash on invalid-but-regex-matching base64 (missing binascii.Error handling), and the PR is explicitly marked Status: draft pending ratification.

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

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 15/16 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread scripts/validate-openspec-cli-pin.py Resolved
…a third caller

CI CAUGHT A REAL MISS AND THIS IS THE FIX. `resolve_pinned` gained two required
arguments, and this repository has THREE callers of it, not two: the verifier's
own `main`, the INSTALLER `pytest-suite.yml` runs, and
`scripts/proposal-support.py` — the entrypoint through which the ARCHIVE act
runs, named beside the validation entrypoint in `contracts/manifest.yaml`'s own
consumption rule and in `contracts/README.md`. The third was missed and PR #813's
`pytest-suite` reported it as ten `TypeError`s. Nothing about the closure's
design changes here; a caller that had not been told about it now is.

THE ARCHIVE ACT IS WHERE THIS MATTERS MOST, which is why the miss is worth
naming rather than quietly patching. `openspec archive` writes a ratified delta
into canon. Until now the tree that adjudicated an ARCHIVE could differ from the
tree that adjudicated the VALIDATION that cleared it — same day, same machine,
nine caret ranges resolved twice. They are one tree now, because both resolve
through one lockfile.

  * `scripts/proposal-support.py`: `pinned_lockfile` and `verify_lockfile` are
    CALLED — the verifier's own functions, as every other pin question in that
    file already is — and the bytes are handed to `resolve_pinned`. `--path-mode`
    still verifies the committed lockfile (a statement about this repository's
    files) and installs nothing through it, which the mode's own message already
    says of the referent. No version, integrity or lockfile digest is written in
    that file.
  * `tests/openspec_cli_pin/`: a NEW test, 123 -> 124, that would have caught
    this. `test_every_caller_of_the_resolver_hands_it_the_closure` enumerates the
    callers under `scripts/`, pins the list at exactly those three, and requires
    each non-defining caller to reach the closure through the verifier's own
    functions and to restate no literal. A FOURTH caller added later fails there
    rather than in somebody else's required check.
  * `tests/proposal-support/`: both synthetic pins gain a synthetic LOCKFILE
    beside them — self-consistently addressed, its entry for the package
    carrying the synthetic pin's own integrity, because that is what the closure
    check requires — and both fictional npms learn `ci`, reading `cwd` the way
    the real one does and putting the executable at `node_modules/.bin/<binary>`
    where a project install puts it. Two assertions move from `install` to `ci`
    DELIBERATELY, with the reason beside them: `npm install` would re-resolve the
    ranges the lockfile exists to fix.

Measured after the fix, with the pinned CLI on PATH exactly as the required job
supplies it: `pytest tests/proposal-support tests/openspec_cli_pin -q` ->
192 passed, 2 subtests passed. The preceding full local run was
`13 failed, 10265 passed` and all thirteen were this family.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI review requested due to automatic review settings September 8, 2026 15:48

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 is at least one concrete fix needed in the updated code (duplicate import), and the PR is explicitly presented as draft/awaiting ratification.

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file

Suppressed comments (1)

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

tests/proposal-support/test_proposal_support.py:12

  • Duplicate import os in the imports block; this is redundant and can confuse tooling (linters/formatters) and readers.
import json
import os
from pathlib import Path
import os
import shutil
  • Files reviewed: 18/19 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…d the miss

The code moved in the previous commit; the PACKET did not, and a governed packet
whose `code_surface:` omits a file it edits is a packet nobody can review against
the diff. This corrects that and records the miss rather than tidying it away.

  * `proposal.md` `code_surface:` now names `scripts/proposal-support.py` beside
    `scripts/install-pinned-openspec-cli.py` as the estate's other TWO callers of
    `resolve_pinned`, says which act each carries — the test job's install and
    the ARCHIVE — and moves the test count 123 -> 124, naming the new
    caller-invariant test and the `tests/proposal-support/` fixtures.
  * `tasks.md` 3.5 covers both callers and states the miss in the same box that
    claims the repair, with the reason it is worth stating: `openspec archive`
    writes a ratified delta into canon, so until this the tree adjudicating an
    ARCHIVE could differ from the tree adjudicating the VALIDATION that cleared
    it. 4.1 carries the new counts and the two-suite measurement taken with the
    pinned CLI on PATH exactly as the required job supplies it.
  * `evidence/` gains the INSTALLER's own CI line (the second caller, resolving
    the same closure into `$GITHUB_PATH`, its cache directory named with BOTH
    addresses), a section on the third caller and how this pull request's own
    required check caught it, and the required suite's pinned-triple arithmetic
    on the fixed head: `selected=10413 passed=10392 skipped=21 failures=0
    errors=0`, `EXPECT_SKIPPED` unmoved at 21 — which is task 4.2's claim,
    measured.

Re-validated after the edit: `openspec validate pin-openspec-cli-dependency-closure
--strict` -> valid; `pytest tests/openspec_cli_pin tests/sequenced_after -q` ->
301 passed.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UQzYv1nEcjEkidnMUCaJcB
Copilot AI review requested due to automatic review settings September 8, 2026 16:10
@brettheap brettheap closed this Sep 8, 2026
Copilot AI review requested due to automatic review settings September 9, 2026 01:39

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 packet’s provenance text incorrectly refers to codeXfactory-1 as a lane (it’s used as a session id elsewhere), and that should be corrected for consistency and accuracy before approval.

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

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 18/19 changed files
  • Comments generated: 2
  • Review effort level: Lite

brettheap and others added 2 commits September 8, 2026 23:20
…ratify 813")

RULED, first-hand and with NO RELAY: Brett Heap, 2026-09-09T03:19Z, in his own
message to lane codexfactory-1 (session name codeXfactory-1, session
session_01SaMMgNoPTARduWJ4956UBg), verbatim "ratify 813". The word was heard in
the session that acts on it, by the lane that authored the packet — the shape
`add-openspec-cli-pin`'s ratification had to disclose and could not, its lane
having correctly refused a second-hand word first.

A SECOND AND SEPARATE ACT. The 2026-09-08T14:14:49Z ruling ("Vendor a lockfile
(Recommended)") chose among four exits and named no view on the content; the
packet said so in three places and held task 5.1 open through four Copilot
review rounds because of it. Two words, one operator, two days, two decisions,
both recorded.

NEW `review/ratification-2026-09-09.md` in the house shape: the ruling verbatim
with its time and session; the text ratified (head f2f7ee8 plus this commit's
own cosmetic edits, named); the absence of a relay; what ratification changes
and what it does not; and the four design decisions ratified AS WRITTEN — the
1.2.0 rollback declared UNCOVERED, `pin-lockfile-mismatch` as the single new
refusal code carrying five arms, the cache-hit boundary
(`assert_installed_package` at install only), and the two pre-existing
host-absolute fixture paths left standing.

WHAT MOVES: `Status: draft` → `Status: ratified` in proposal.md (front matter
and body) with the `Ratified:` citation in add-openspec-cli-pin's own form; the
same in tasks.md, whose header now says when ratification happened instead of
that it had not; task 5.1 ticked, citing the record. The README OpenSpec Records
entry follows, since it claimed `Status: draft` and an owed citation.

WHAT DOES NOT MOVE: anything normative. The two ADDED requirements in
`neutral-product-pin` are ratified as written; no contract byte, lockfile byte,
pin field, verifier line or test changes. Tasks 5.2 and 5.3 stay UNTICKED and
OWED — ratification is not an archive, and the validation and realization
evidence are re-run at the gate rather than trusted from here. Group 6 is
untouched.

FOLDED IN, the two open cosmetic threads (Copilot 12 and 13): where design.md
§ 0 and the evidence header called `codeXfactory-1` a LANE, they now read
"lane `codexfactory-1` (session name `codeXfactory-1`)" per lane-collision
protocol Amendment 2 — the machine key is lowercase, the display name keeps the
capital. Taken here rather than deferred: a provenance record that mis-names its
own author is the one cosmetic defect a ratification cannot carry.

COUNTS RE-MEASURED AT THIS COMMIT, because merging `origin/main` moved one.
`tests/sequenced_after` went 195 → 235 and NOT ONE of the forty is this
packet's — they arrived from `main`'s `test_archive_commit_dates.py`. Evidence
§ 7 and tasks 4.1 say so rather than letting the figure read as growth here; the
packet's own two suites are unmoved at 154 and 95. The gate's `Totals:` line has
read 101, 102, 104 and 105 items across this pull request's heads as main landed
and archived changes underneath it, so the three figures that never moved — exit
0, two dispositioned, zero undispositioned — are the ones stated.

Proof at this commit: `pytest tests/openspec_cli_pin tests/proposal-support
tests/sequenced_after -q` → 484 passed, 2 subtests (154 / 95 / 235).
`openspec validate pin-openspec-cli-dependency-closure --strict` → valid.
`scripts/validate-openspec-cli-pin.py --repo . --all --no-cache` → exit 0,
`Totals: 102 passed, 2 failed (104 items)`, `2 applied`, `0 UNDISPOSITIONED`,
through a real `npm ci` over the committed lockfile.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SaMMgNoPTARduWJ4956UBg
Copilot AI review requested due to automatic review settings September 9, 2026 03:25

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 packet’s design.md still declares Status: draft while other updated packet artifacts record Status: ratified, leaving an internal state inconsistency that should be corrected.

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

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file
  • Files reviewed: 19/20 changed files
  • Comments generated: 1
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 9, 2026 03:53
…ays one thing about its state (Copilot thread 14)

The ratifying commit moved `proposal.md`, `tasks.md` and the README row to
`Status: ratified` and left `design.md` at `Status: draft`, so the packet
asserted two different states about itself. That is the ratification's own
inconsistency rather than a new finding, and it is the same class of defect the
last three review rounds were about: a claim written in more than one place, and
only some of the copies moved.

SWEPT EVERY FILE IN THE PACKET, not just the one the thread named:

- `design.md` — `Status: draft` → `Status: ratified`, with `Ratified by:` in the
  form a ratified sibling's design.md uses (`amend-mirror-floor-regeneration-
  merge-authority`), carrying the same citation as `proposal.md`.
- `design.md` § 0 — the paragraph that read "This packet carries `Status: draft`
  and owes a ratification citation from a separate act" was a LIVE stale claim,
  not history. It now records that the citation has been paid, and that the
  judgments listed below it were ratified as written.
- `.openspec.yaml` — `approved_by` asserted the same owed citation. Reconciled:
  the field still describes the FIRST act, which is what `approved_by` means
  here (who authorized the AUTHORING), with the second act named so the file
  does not assert a state that has moved. The YAML still parses; no key moves.
- `review/ratification-2026-09-09.md` — its "what ratification changes" list now
  names `design.md` too, and records that these headers were completed in a
  follow-up commit rather than the ratifying one, because a ratification record
  that describes a tidier history than the one that happened is worth less than
  one that does not.

LEFT ALONE, EACH FOR A STATED REASON: `evidence/` and the ratification record
carry `Status: record`, which is their correct lifecycle value and not a draft;
the spec delta carries no `Status:` header, and no spec delta in this repository
does — checked across every packet under `openspec/changes/` rather than
assumed, so adding one here would invent a convention rather than follow it. The
README row was already moved by the ratifying commit. Three remaining occurrences
of the string `Status: draft` in the packet are past-tense history — the record
describing the transition, and § 0 describing what was held open and why.

NOTHING NORMATIVE MOVES. No contract byte, lockfile byte, pin field, verifier
line or test. Tasks 5.2 and 5.3 stay unticked and owed.

Proof: `openspec validate pin-openspec-cli-dependency-closure --strict` → valid.
`pytest tests/openspec_cli_pin tests/proposal-support tests/sequenced_after -q`
→ 484 passed, 2 subtests (154 / 95 / 235).

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

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

It changes a load-bearing verification/install path used for required checks, and should receive final human review despite strong tests and documentation.

Review details

Files not reviewed (1)

  • contracts/openspec-cli-pin.1.12.0.package-lock.json: Generated file

Suppressed comments (1)

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

README.md:527

  • The PR description states this change is still draft / “Do not merge”, but this README entry records pin-openspec-cli-dependency-closure as Status: ratified and describes it as closing the #667 open item. Please align the PR metadata (description and/or PR draft status) with the ratified state recorded in-repo so reviewers aren’t left with conflicting merge guidance.
  • Files reviewed: 19/20 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

LANDING — lane codeXfactory-1, session session_01SaMMgNoPTARduWJ4956UBg, 2026-09-09T05:54:07Z, PR #813 into openxFactory main. Touches contracts/openspec-cli-pin.yaml + the new lockfile contracts/openspec-cli-pin.1.12.0.package-lock.json, scripts/validate-openspec-cli-pin.py, tests, openspec/changes/pin-openspec-cli-dependency-closure/ (ratified 2026-09-09 "ratify 813"), ticks in add-openspec-cli-pin (5.2) and bump-openspec-cli-pin-to-1.12 (6.4), the corpus ledger row and the README record. Ruled: Brett Heap, 2026-09-09, first-hand, "merge 813". No other LANDING open on this repository.

Lane: codexfactory-1

@brettheap
brettheap merged commit 4c08a7a into main Sep 9, 2026
10 checks passed
@brettheap
brettheap deleted the change/pin-openspec-cli-dependency-closure branch September 9, 2026 05:54
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane codeXfactory-1, 2026-09-09T05:54:20Z, PR #813 → 4c08a7a

Lane: codexfactory-1

brettheap added a commit that referenced this pull request Sep 9, 2026
… list keeps its structure, the rename keeps its spelling

`relocate-review-authority-floor-mirror` (ratified 2026-09-08, PRs #817/#818)
rewrote `.github/workflows/review-lane-repin.yml`'s `env:` block — the single
`FLOOR_IN_SOURCE:` became the ordered `FLOOR_IN_SOURCE_CANDIDATES:` list with a
first-obtained-wins fetch loop that classifies HTTP status — on the line
IMMEDIATELY BELOW the one this slice respells. One conflict, one hunk, and the
resolution keeps BOTH intents whole:

- `FLOOR_IN_SOURCE_CANDIDATES:` and its entire rationale comment are taken from
  `origin/main` VERBATIM, including the M-1/M-2 argument for old-path-first and
  the duplication note pointing at `scripts/review_lane_repin.py` and the
  `tests/review_lane_pin/` literals. Nothing about the relocation was
  re-litigated here.
- `SOURCE_REPOSITORY: codeXfactory/codexFactory` — this slice's respelling,
  re-applied to main's line. The new fetch loop reads the moved repository
  ONLY through `${SOURCE_REPOSITORY}`, so the whole candidate loop inherits the
  rename with no further edit, and the refusal messages name the new org.

Checked, not assumed: the merged file carries NO `opensoft/codexFactory`
literal (`git grep -o -i` on it is empty), the relocated logic introduced no
new reference to the moved repository beyond the env var, and both of this
slice's other machine edits survived the merge untouched — the source mint's
`owner: codeXfactory` + `repositories: codexFactory` (fail-closed, still no
`continue-on-error`) and the core checkout's
`repository: codeXfactory/codexFactory`. openxFactory's own mint keeps
`owner: ${{ github.repository_owner }}` + `repositories: openxFactory`,
which is right: openxFactory does not move.

The other four files both sides touched auto-merged
(`scripts/review_lane_repin.py`, `scripts/doc_health/pin_class.py`,
`tests/review_lane_pin/test_repin_lane.py`,
`contracts/review-lane-repin-binding.template.yaml`).

Validators at this merge, all re-run after the resolution:
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 619 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, and all THREE
  are pre-existing at `origin/main@86651a5`, measured in a throwaway
  worktree at that commit: `disposition-codexfactory-declared-renames` (the
  one this branch expected) plus `pin-openspec-cli-dependency-closure` and
  `spec/repo-boundary-governance`, which arrived with #813/#828. This merge
  adds none.
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> 10 critical / 9 error / 57 warning / 16 info,
  BYTE-IDENTICAL critical+error set to the same run at `origin/main`. No new
  ERROR.
- freeze check against `contracts/signed-execution-chain/`,
  `openspec/changes/archive/`, `specs/`, `docs/decisions/`, `ideation/` ->
  empty.

Next unfinished pull request in the ceremony order: #802
(`realize/codexfactory-identity-b2`).

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
`origin/main@86651a5` merged with no conflict — nothing this slice touches was
touched by #813, #817/#818, #827 or #828. This slice's surfaces are the
factory-origin register, its grant and wallet, the review-authority grant, the
seven clearing examples and their three test literals, plus its own § 16 of the
sweep evidence; the landed changes moved workflows, pin tooling and openspec
packets.

Validators at this merge:
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 617 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@86651a5` and measured there:
  `disposition-codexfactory-declared-renames`,
  `pin-openspec-cli-dependency-closure`, `spec/repo-boundary-governance`.
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> critical+error set BYTE-IDENTICAL to the same
  run at `origin/main`. No new ERROR.
- freeze check against `contracts/signed-execution-chain/`,
  `openspec/changes/archive/`, `specs/`, `docs/decisions/`, `ideation/` ->
  EMPTY after the merge.

This pull request stays HUMAN-ONLY to merge; this commit reconciles it and
nothing more.

Next unfinished pull request in the ceremony order: #805
(`realize/codexfactory-identity-b3`).

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…y transient measures EXACTLY as the body predicts

`origin/main@86651a5` merged with no conflict. This slice's nine files —
the five `contracts/hermes-runtime/` inventoried members, the three prose
readings under `docs/`, and `tests/hermes_runtime_contracts/test_domain_regression.py`
— were untouched by #813, #817/#818, #827 and #828.

RE-MEASURED AT THE MERGE, because a moved baseline could have moved the
predicted transient and did not:

- doc-health `--single-repo .` -> 10 critical, **16 error**, 57 warning,
  16 info. Diffed line for line against the same run at `origin/main`
  (9 error): the delta is **exactly seven** `release-inventory-drift`
  ERRORs and **no finding in any other family**. Seven, not eight, because
  `docs/contract-versioning-policy.md` ALREADY drifts on `main` — the
  correction this pull request's body records. The family therefore reports
  **eight**, which is what task 7.5 predicts and what the body's measured
  block states, and the bundle cut (P7, ceremony row 4) is what discharges
  all eight.
- `pytest tests/hermes_runtime_contracts/test_domain_regression.py -q`
  -> 35 passed. The denominator still pins row for row and in document
  order, so the re-sorted `PINNED_TABLE` still agrees with the fixture.
- `scripts/validate-hermes-runtime-contracts.py` -> pass (51 contracts,
  32 schemas, 110 fixtures, 17 requirements, 85 scenarios, 439 tests
  collected) — byte-identical to the count in the body.
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 617 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@86651a5`:
  `disposition-codexfactory-declared-renames`,
  `pin-openspec-cli-dependency-closure`, `spec/repo-boundary-governance`.
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- freeze check against `contracts/signed-execution-chain/`,
  `openspec/changes/archive/`, `specs/`, `docs/decisions/`, `ideation/` ->
  EMPTY after the merge.

Next unfinished pull request in the ceremony order: #806
(`realize/codexfactory-identity-b4`).

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…r occurrences this slice must own

`origin/main@9a67d42` merged with no conflict — `README.md` auto-merged and
the fourteen `docs/` files this slice respells were untouched by #813,
#817/#818, #824, #826, #827 or #828.

MAIN MOVED TWICE WHILE THIS RECONCILIATION RAN — `ca4a1558` -> `86651a58`
(#827, #828) -> `9a67d42c` (#826, #824). This merge is against `9a67d42c`,
and the four slices are reconciled to that head, named so the next reader
can tell which head the arithmetic was closed against.

The four occurrences main's growth added to `README.md` are ASSIGNED, not
carried, and they land in the next commit rather than inside this merge so
the record separates "the merge was clean" from "this slice took on four
more". Measured `f03fd875` -> `9a67d42c`: EIGHT new occurrences, all in two
places — `README.md` 10 -> 14, and
`openspec/changes/relocate-review-authority-floor-mirror/{proposal.md,review/ratification-2026-09-08.md}`
0 -> 2 each, another lane's in-flight packet and its dated ratification
record, which the published disposition leaves NOT SWEPT.

Validators at this merge:
- `pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
  -> 617 passed, 2 skipped, 48 subtests passed
- `openspec validate --all --strict` -> 101 passed / 3 failed, all three
  pre-existing at `origin/main@9a67d42` and measured there in a throwaway
  worktree: `disposition-codexfactory-declared-renames`,
  `pin-openspec-cli-dependency-closure`, `spec/repo-boundary-governance`.
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> critical+error set BYTE-IDENTICAL to the
  same run at `origin/main@9a67d42`; warnings 47 against main's 57, this
  slice's respellings clearing ten and adding none.
- freeze check against `contracts/signed-execution-chain/`,
  `openspec/changes/archive/`, `specs/`, `docs/decisions/`, `ideation/` ->
  EMPTY after the merge.

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…n, and the arithmetic re-closed on both axes

NUMBERED 18 ON PURPOSE. Two addenda to this file are authored and UNMERGED on
sibling drafts — **§ 16 on #802** (B2) and **§ 17 on #801** (B1). This one
lands on #806 (B4). Skipping to 18 is what keeps the numbers from colliding
when the three meet in this file at ceremony order, and the section says so,
so a reader on this branch does not think 16 and 17 are missing.

WHAT IT RECORDS: the 2026-09-09 reconciliation of the four gated drafts with
`origin/main` (runbook step 10.2), and the arithmetic re-closed at the head
they were reconciled to. IT RULES NOTHING — every occurrence it assigns is
assigned by a rule already published in this file, cited per assignment.

The load-bearing content:

- **`main` moved FIVE times during the reconciliation** (`ca4a1558` ->
  `86651a58` -> `9a67d42c` -> `82c9f059` -> `7681e409`, six commits). All four
  branches are merged to the SAME final head, `7681e409`, and every number is
  measured there. B1 took three merges because two landings rewrote the exact
  lines it edits.
- **The conflict class and its resolution rule**, stated once for the next
  collision: take the relocating lane's structure VERBATIM and re-apply only
  this change's spelling inside it. Applied twice to
  `.github/workflows/review-lane-repin.yml` and once to
  `docs/review-lane-repin-runbook.md`.
- **Nine occurrences main added, every one assigned**: 4 in `README.md` ->
  B4 (§ 5's kept-current-citation rule, already applied four times in the
  same file), 1 in `docs/review-lane-repin-runbook.md` -> B1, 1 in
  `tests/review_lane_pin/test_review_lane_caller.py` -> B1, 3 in another
  lane's in-flight packet -> NOT SWEPT by § 7's published disposition.
- **The closed arithmetic**: main 413/174; respelled B1 42/15, B2 37/15,
  B3 12/9, B4 30/15, union 121/54 with the four file sets checked DISJOINT;
  residual 292/122 in ten named dispositions. BOTH AXES CLOSE — 121 + 292 =
  413 and 54 + 122 - 2 mixed = 174 — and the closure is the check that no
  occurrence was silently dropped between slices.
- **The twenty-two literals the slices ADD** to this packet's own records,
  counted from the diff, and why § 11 freezes them.
- **`openspec validate --all --strict` now fails THREE, not one**, and the
  two new ones (`pin-openspec-cli-dependency-closure`,
  `spec/repo-boundary-governance`) belong to #813 and #828. Recorded, not
  fixed: a rename slice must not edit another packet's requirement text to
  make a shared gate read green. The number to compare against is 3, and a
  FOURTH failure is a real defect.
- **What is NOT discharged**: task 6.5, task 7.5's row, the
  `identity_namespace` question at
  `contracts/review-lane-repin-binding.template.yaml:103`, and one staleness
  in another lane's README prose (`FLOOR_IN_SOURCE` at `:138`) which is
  REPORTED rather than edited because it carries no identity occurrence and
  belongs to that lane.

`openspec validate adopt-codexfactory-repository-identity --strict` -> valid.
doc-health critical+error set BYTE-IDENTICAL to `origin/main@7681e40`.

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…closure (#861)

A SECOND COMMIT BECAUSE `--moved-by` IS REQUIRED AND THE NUMBER IS NOT KNOWABLE
UNTIL THE PULL REQUEST EXISTS. `validate-sequenced-after.py --seed-ledger`
refuses to stamp a moved row with no moving pull request -- provenance nobody
can follow -- so the archive lands first, the pull request opens, and the flip
follows citing it. This is the two-commit shape #841 and #847 took at their own
archives, not an ordering this lane chose.

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#861'
  -> wrote tests/sequenced_after/corpus-ledger.yaml (190 rows, 1 moved by #861)
       - pin-openspec-cli-dependency-closure

ONE ROW MOVES AND 189 KEEP THE PROVENANCE THEY HAD, which is the seeder's whole
contract: it rewrites from the LIVE CORPUS and re-stamps only what actually
moved, so the diff IS the list of rows this change moved. `active` -> `archived`,
`moved_by: "#813"` -> `"#861"` (the pull request that ARCHIVES it, not the one
that landed it), `moved_on: "2026-09-08"` -> `"2026-09-09"`.

THE DATE IS THE DIRECTORY'S, NOT THE RUN'S, AND THE SEEDER ENFORCES THAT RATHER
THAN TRUSTING IT: at a flip to `archived` the row's move and the archive are the
same act, so `moved_on` IS the date `archive/2026-09-09-pin-openspec-cli-dependency-closure`
carries (issue #790). Both are 2026-09-09 and the two facts agree.

Seeded on the MERGED tree, so it reads main's own `amend-marker-defect-reporting`
row (#850) and this branch's flip at once rather than one lane's view of either.
That is why the derived totals move by one in three places and not two: 41 -> 40
active, 149 -> 150 archived, 15 -> 14 active_sole.

CLEARS THE THREE FAILURES THE ARCHIVE COMMIT LEFT STANDING, and nothing else was
failing: `tests/sequenced_after/test_sweep.py` ::test_the_LIVE_corpus_and_the_LEDGER_agree_row_by_row,
::test_the_totals_DERIVED_FROM_THE_LEDGER_equal_the_MEASURED_sweep and
::test_the_live_ledger_reports_the_SAME_totals_the_sweep_MEASURES were red on the
stale row and its three derived totals -- the same four findings
`--ledger-diff` named -- and on nothing else.

Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01G1Nzyxp47mjqkeX4QBgoiU
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