Repository navigation
Pin the OpenSpec CLI fleet-wide at 1.2.0, by content address - #667
Conversation
… green at
`openspec validate --strict` is the gate every spec delta passes before it may
archive, and `openspec archive` writes a ratified delta into canon. Neither has
ever run at a version anybody declared.
The only pin in the estate is one literal line in pytest-suite.yml:400, installed
so tests/proposal-support/ can drive the binary: read by no consuming repository,
verified by nothing, refusing nothing. OpenSpec offers no project-level version
field to lean on (openspec/config.yaml carries only `schema:`). And
`validate --all --strict` runs in NO repository's CI — OpsxFactory and
codexFactory have no workflow mentioning it; Medx/Ledgerx/Adx have no workflows.
The gate everyone believed was guarding the corpus has been running on laptops.
The cost is measured, not hypothetical (2026-09-04): trees clean at 1.2.0 report
48 passed / 41 failed of 89 here and 34 / 10 of 44 in OpsxFactory under 1.12.0 —
every failure PRE-EXISTING (placeholder `## Purpose` sections the archive command
itself writes, a duplicate task id, four-plus deltas the newer archive would
REFUSE). One ambient `npm install -g` reds two repositories and stalls every
archive, in the name of whoever ran it.
So: pin where the estate is GREEN, make the pin the only way validation runs, and
leave the upgrade to a separate human-only change that must land target-version
evidence with it. This commit does NOT bump the version.
THE REFERENT IS THE TARBALL'S SHA-512; `1.2.0` IS A LABEL — openreposhape-pin's
tag-versus-commit argument transposed to a registry. npm's refusal to republish a
version is a REGISTRY POLICY, with an operator and an unpublish window; a policy
is not a content address. contracts/openspec-cli-pin.yaml reuses
`kind: pinned_contract_manifest` unchanged.
scripts/validate-openspec-cli-pin.py is BOTH the pin's verifier AND the one
consumer entrypoint — separating them would leave a verifier nobody must call
beside a bare `openspec` answering with whatever is on PATH. Stdlib-only, five
ordered checks, five refusal codes, one fixed remediation trailer. It does not
trust npx: it fetches the tarball, recomputes SHA-512 and SHA-1, and refuses
before installing or invoking. Its default mode never reads PATH, and it has no
`--verify-only` because a target-less mode is the green-check-that-verified-
nothing the grammar forbids.
.github/workflows/openspec-cli-pin-gate.yml makes this the FIRST repository in
the estate whose archive gate actually runs in CI, with the version read out of
the pin and never restated in the workflow — the sibling gate's "fourth copy of
the pin" argument, asserted by a test against the workflow's own bytes.
FOUR ADDED requirements plus ONE MODIFIED, and the MODIFIED is required rather
than chosen: the ratified grammar is COMMIT-ONLY ("SHALL carry the product's
COMMIT ... a per-file sha256 ... and pinned_by_commit_only:"), and an npm package
has no commit we consume and no per-file surface. Writing the pin under the
unamended grammar would mean inventing a commit or claiming conformance it does
not have. The block admits a published-artifact referent MINIMALLY — every
existing clause and all three scenarios restated, nothing deleted, no deletion
marker owed — and argues that one digest over a tarball discharges the
completeness obligation the two member lists exist to make checkable, rather than
waiving it.
Evidence, measured on this branch:
openspec validate add-openspec-cli-pin --strict valid
openspec validate --all --strict 90 passed, 0 failed (was 89)
pytest tests/openspec_cli_pin/ 41 passed
the entrypoint, end to end against the live registry:
validate-openspec-cli-pin.py --all --strict 90 passed, 0 failed, exit 0
npx @fission-ai/[email protected] --all --strict 49 passed, 41 failed of 90
(failures unchanged from the pre-packet 41 — this packet is clean at BOTH
versions and adds nothing to the backlog an upgrade must clear)
validate-openreposhape-pin.py --from-gh OK, 27 digests, 60 declared
verify-openxwallet-pin.py OK, 8 digests
doc-health --single-repo . exit 0, zero findings naming
this change
Consuming-repository wiring (codexFactory, OpsxFactory, Medx/Ledgerx/Adx),
pytest-suite.yml's literal line, and the dependency closure are named successor
work, not done here.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
🟡 Changes recommended
The new validator script has a couple of concrete correctness/UX issues (signal exit handling and misleading/ambiguous CLI behavior) that should be fixed before merging.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a fleet-wide, content-addressed pin for the OpenSpec CLI (labelled 1.2.0) and a single stdlib-only entrypoint that both verifies the pin and runs openspec validate … --strict, then wires a new CI gate to run strict validation through that pinned path.
Changes:
- Add
contracts/openspec-cli-pin.yamlplusscripts/validate-openspec-cli-pin.pyto fetch, verify (sha512+sha1), install (no lifecycle scripts), and run strict validation via the pinned artifact. - Add a new CI workflow gate to run
python3 scripts/validate-openspec-cli-pin.py --all --no-cacheon PRs without restating the pinned version/integrity in the workflow. - Add a dedicated pytest suite and the corresponding OpenSpec change packet (proposal/design/spec delta/tasks/origin) documenting the new pin semantics and governance rules.
File summaries
| File | Description |
|---|---|
contracts/openspec-cli-pin.yaml |
Declares the OpenSpec CLI pin using package integrity/shasum as the referent and version as a label. |
scripts/validate-openspec-cli-pin.py |
Implements the pin verifier + consumer entrypoint, including cache behavior and refusal taxonomy. |
.github/workflows/openspec-cli-pin-gate.yml |
Adds the PR gate that runs strict validation through the pinned entrypoint. |
tests/openspec_cli_pin/test_openspec_cli_pin.py |
Adds a hermetic test suite covering ordering, refusal codes, cache behavior, and workflow non-restatement of the pin. |
openspec/changes/add-openspec-cli-pin/.openspec.yaml |
Declares origin metadata for the change packet. |
openspec/changes/add-openspec-cli-pin/proposal.md |
Records motivation, scope, and impact map/successor work for the pin change. |
openspec/changes/add-openspec-cli-pin/design.md |
Captures design decisions and rejected alternatives for the pin + entrypoint. |
openspec/changes/add-openspec-cli-pin/specs/neutral-product-pin/spec.md |
Introduces requirements for artifact-based content-addressed pins and consumer entrypoints. |
openspec/changes/add-openspec-cli-pin/tasks.md |
Tracks implemented slices vs successor/operator-only work. |
README.md |
Adds an “Active changes” index entry describing the draft pin packet and its rationale. |
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| completed = subprocess.run([str(executable), *argv], cwd=str(repo), | ||
| env=environment, check=False) | ||
| except OSError as exc: | ||
| raise PinRefusal( | ||
| "pin-unresolvable", | ||
| f"the pinned CLI could not be executed: {exc}") from exc | ||
| worst = max(worst, completed.returncode) | ||
| return worst |
| parser.add_argument( | ||
| "--path-mode", action="store_true", | ||
| help=("use the `openspec` on PATH, refusing unless it reports the " | ||
| "pinned version; never for a required check")) | ||
| parser.add_argument( | ||
| "--tarball", metavar="PATH", default=None, | ||
| help=("verify and install this already-downloaded artifact instead of " | ||
| "fetching it; the content address is checked either way")) |
| mode = "PATH" if args.path_mode else "pinned artifact" | ||
| print(f"openspec-cli-pin: {package}@{reported} from {mode} " | ||
| f"({executable}); integrity {integrity[:23]}… verified", | ||
| flush=True) |
…Rule 6) A PR that touches `openspec/changes/` moves the corpus-sweep pin, and this one adds a change directory, so `tests/sequenced_after/test_sweep.py` reported the ledger STALE in five ways: a missing row for `add-openspec-cli-pin` plus four derived-total mismatches (change_ids 165 != 166, active 31 != 32, co_modified 113 != 114, active_co_modified 19 != 20). Seeded with the command the failure names, rather than by hand: python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#667' One row added and nothing else moved — `add-openspec-cli-pin: {state: active, class: co-modifier, declares: absent, prose: false, moved_by: "#667", moved_on: "2026-09-04"}`. `class: co-modifier` is derived, not chosen: this change's delta touches `neutral-product-pin`, which other changes also write. It declares no `sequenced_after:` because it is sequenced after nothing — no active change carries a delta on `neutral-product-pin`, checked before authoring. pytest tests/sequenced_after/ -q 162 passed (was 4 failed, 158 passed) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT Lane: openxfactory-cli-pin
There was a problem hiding this comment.
🔵 Needs a closer look
The new entrypoint prints “integrity … verified” even in --path-mode where integrity is not verified, and the new tests commit host-absolute paths contrary to the repository constitution.
Review details
Suppressed comments (6)
Previously missed (1) — in code that hasn't changed since the last review.
tests/openspec_cli_pin/test_openspec_cli_pin.py:144
- Repository constitution forbids committing host-absolute paths ("Committed files MUST NOT contain host-absolute paths"; .specify/memory/constitution.md:72-73). This test hard-codes
/usr/bin/...even though it only needs a non-Noneshutil.whichresult.
This issue also appears in the following locations of the same file:
- line 275
- line 327
- line 340
- line 359
scripts/validate-openspec-cli-pin.py:744
- In
--path-modethe tool does not verify the tarball integrity, but the status line still printsintegrity … verified. This is misleading output that can cause operators to think the content address was checked when it wasn’t.
mode = "PATH" if args.path_mode else "pinned artifact"
print(f"openspec-cli-pin: {package}@{reported} from {mode} "
f"({executable}); integrity {integrity[:23]}… verified",
flush=True)
tests/openspec_cli_pin/test_openspec_cli_pin.py:276
- Repository constitution forbids committing host-absolute paths ("Committed files MUST NOT contain host-absolute paths"; .specify/memory/constitution.md:72-73). This test embeds
/bin/true, butrun_validationrefuses before executing anything, so a relative dummy path is sufficient.
mod.run_validation(Path("/bin/true"), tmp_path,
[["validate", "--all", "--strict"]])
tests/openspec_cli_pin/test_openspec_cli_pin.py:331
- Repository constitution forbids committing host-absolute paths ("Committed files MUST NOT contain host-absolute paths"; .specify/memory/constitution.md:72-73). This test hard-codes
/usr/bin/openspeceven though the executable path is not required to exist (the call is fully mocked).
monkeypatch.setattr(mod, "_run", lambda argv, **kw: subprocess.CompletedProcess(
argv, 0, "1.12.0\n", ""))
with pytest.raises(mod.PinRefusal) as exc:
mod.assert_reported_version(Path("/usr/bin/openspec"), VERSION)
assert exc.value.code == "pin-version-mismatch"
tests/openspec_cli_pin/test_openspec_cli_pin.py:342
- Repository constitution forbids committing host-absolute paths ("Committed files MUST NOT contain host-absolute paths"; .specify/memory/constitution.md:72-73). This test’s PATH stub returns
/usr/bin/..., but it can return any non-empty string that will be wrapped inPath(...).
monkeypatch.setattr(mod.shutil, "which",
lambda name: f"/usr/bin/{name}")
(tmp_path / "openspec").mkdir()
tests/openspec_cli_pin/test_openspec_cli_pin.py:362
- Repository constitution forbids committing host-absolute paths ("Committed files MUST NOT contain host-absolute paths"; .specify/memory/constitution.md:72-73). This helper returns
/usr/bin/...but only needs to return a string so the call site can proceed.
def watching_which(name):
seen.append(name)
return f"/usr/bin/{name}"
- Files reviewed: 11/11 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
(lane openxfactory-cli-pin, 2026-09-04 23:12Z) — all eight checks green, and the one that matters most is the new one.
The new gate did the real thing on a real runner — fetched the artifact from the live registry, verified its content address, installed it, and validated the corpus through it: This is the first time Two things the first CI round caught, both now fixed and worth recording because neither was in the brief:
Rule 6 landing note: this PR touches Still: draft, and not to be merged by this lane. Ratification is Brett's. |
…e word took RATIFIED by Brett Heap, 2026-09-04, verbatim "ratify 667" — heard FIRST-HAND by Claude session opsxfactory-fb, which writes this record and performs the merge. The record also keeps what is true about the path: the word was first relayed to the authoring lane (codexfactory-0d), which correctly refused to act on a second-hand approval and did not object to the hearing session acting on its own first-hand word, asking only that the record cite the session that heard it. Status flipped draft -> ratified in both places; the authoring-time "RATIFICATION HAS NOT HAPPENED" paragraph is KEPT with a dated note, because it records what the packet did and did not seek; task 7.1 ticked with its original wording preserved. Ratification covers the packet as landed and does NOT perform the per-repo successor wiring, close the declared dependency-closure shortfall, or authorize the 1.12 bump. OPENSPEC_TELEMETRY=0 openspec validate add-openspec-cli-pin --strict: valid. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WXVKhuYSmo4iXXqBHZ7LeX
There was a problem hiding this comment.
🟡 Changes recommended
The PR introduces host-absolute paths (violating the repository constitution) and contains conflicting ratification/status statements across README/tasks/.openspec/proposal that should be reconciled before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (5)
Previously missed (1) — in code that hasn't changed since the last review.
tests/openspec_cli_pin/test_openspec_cli_pin.py:144
- Repository constitution forbids host-absolute paths in committed files. Returning "/usr/bin/..." here violates that rule, and isn't needed for the test (the code only checks that
shutil.which('npm')is non-None).
This issue also appears in the following locations of the same file:
- line 275
- line 330
- line 340
- line 359
tests/openspec_cli_pin/test_openspec_cli_pin.py:275
- Repository constitution forbids host-absolute paths in committed files. This test uses
Path("/bin/true"), but the executable path is irrelevant becauserun_validationrefuses before executing anything whenopenspec/is absent, so a repo-local tmp_path-based placeholder works.
mod.run_validation(Path("/bin/true"), tmp_path,
tests/openspec_cli_pin/test_openspec_cli_pin.py:330
- Repository constitution forbids host-absolute paths in committed files. This test can use a tmp_path-based placeholder for the executable path instead of
Path("/usr/bin/openspec")(the executable is never actually invoked because_runis monkeypatched).
mod.assert_reported_version(Path("/usr/bin/openspec"), VERSION)
tests/openspec_cli_pin/test_openspec_cli_pin.py:341
- Repository constitution forbids host-absolute paths in committed files. This PATH-mode test doesn't need to hard-code
/usr/bin; returning a repo-local tmp_path-based location avoids committing host-specific absolutes while still exercising the behavior.
monkeypatch.setattr(mod.shutil, "which",
lambda name: f"/usr/bin/{name}")
tests/openspec_cli_pin/test_openspec_cli_pin.py:362
- Repository constitution forbids host-absolute paths in committed files. This helper currently returns
/usr/bin/...; using a tmp_path-based value keeps the test hermetic while still letting it record which names were looked up.
def watching_which(name):
seen.append(name)
return f"/usr/bin/{name}"
- Files reviewed: 12/12 changed files
- Comments generated: 4
- Review effort level: Lite
| approved_by: >- | ||
| Brett Heap (openxFactory operator authority) — in-session on 2026-09-04, | ||
| verbatim: "draft the openxFactory pin change, pinned at 1.2.0". THIS IS AN | ||
| ADMISSION INTO THE PROPOSAL QUEUE AND AN INSTRUCTION TO AUTHOR, NOT A | ||
| RATIFICATION OF CONTENT. It supplies the origin and approval pair the | ||
| proposal-origin contract requires and nothing more: the packet remains | ||
| `Status: draft`, it carries no ratification citation, and none is owed — | ||
| the promoted lifecycle rule requires one only for `Status: ratified`. | ||
| Whether this change's content is ratified is a separate act that has not | ||
| happened. | ||
| approved_on: 2026-09-04 |
| - [add-openspec-cli-pin](openspec/changes/add-openspec-cli-pin/proposal.md) | ||
| — authored 2026-09-04, **`Status: draft`**, on Brett Heap's word | ||
| *"draft the openxFactory pin change, pinned at 1.2.0"*. **Not ratified, not | ||
| merged.** |
| **RATIFICATION HAS NOT HAPPENED AND IS NOT SOUGHT BY THIS PACKET'S LANDING.** | ||
| *(True at authoring. RATIFIED 2026-09-04 — see the Ratified line above and | ||
| `review/ratification-2026-09-04.md`; the paragraph is kept as the record of | ||
| what this packet did and did not seek.)* | ||
| Brett Heap authorized the DRAFT. Every judgment the authoring session took is | ||
| listed in § Authoring decisions rather than presented as settled. |
| Status: draft | ||
|
|
||
| **NOTHING IS TICKED THAT DID NOT LAND.** Slices 1–4 landed in the proposing pull | ||
| request and their evidence — command lines and outcomes, measured on the branch — | ||
| is recorded beside each task. Slice 5 is successor work in this repository and | ||
| slice 6 is successor work in five other repositories; neither is ticked and each | ||
| names its owner. | ||
|
|
||
| **RATIFICATION HAS NOT HAPPENED.** Brett Heap authorized the DRAFT on 2026-09-04 | ||
| (*"draft the openxFactory pin change, pinned at 1.2.0"*). Task 7.1 records | ||
| ratification when it happens and nothing below decides it. |
Main advanced at 00:05Z with add-openspec-cli-pin (#667) while this branch's fix round was in flight, and the two README "Active changes:" rows collide at the same insertion point. A CONFLICTING pull request has no merge ref, so GitHub cannot compute the tree that `on: pull_request` workflows run against and simply does not fire them: after the 00:09 push only `merge-master-approval` and the Copilot review ran, and closing/reopening the PR did not help. That is the symptom this merge exists to clear, and it is worth naming — an absent check is easy to misread as a passing one. Resolution keeps BOTH README rows, this change's on top (newest first, matching the block's ordering). The corpus-sweep ledger auto-merged and re-reads consistent at 167 rows: #667 brought its own row and neither change is a co-modifier of the other's requirements. Refs #664 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
…toed RATIFIED 2026-09-05 by Brett Heap (openxFactory operator authority), in session, verbatim: "ratify 668, land it when green". Issue #664's "do your recommendation" was the ORIGIN and the admission to the queue and is not this; ratification was a separate act. D1 AND D2 WERE THE VETO POINTS AND NEITHER WAS VETOED, so both are ratified KNOWINGLY rather than by silence. D1: a cutting pull request cannot be required to carry its own tag — the tag is published 6s/23s/44s/69s AFTER the merge commit for contract-v3.1 through v3.4 — so the gate passes the cut and RECORDS the owed tag, the family's own "declaring commit is still the published tip" scenario already answering the case. D2: `gate-version-reuse` stays, scoped to the moved-declaration case; tasks 1.3 keeps the deletion that would reverse it, marked NOT TAKEN, so the cost of reversal sits beside the decision. WHAT THE WORD DID NOT SETTLE, said in three places so it cannot be misread: the [OPERATOR] act adding release-tag-gate to ruleset 21538893 as a REQUIRED check gates ARCHIVE, not ratification, and until it is performed the obligation this packet moves out of pytest-suite is enforced by a workflow anyone can merge past. A ratified packet is not a discharged one. `proposal.md`, `design.md` and `tasks.md` take `Status: ratified` against EXACTLY ONE citation line each — front-matter `Ratified:` for the proposal, the `Ratified by:` header for the other two — which is the one-total rule ratified-provenance enforces across front-matter and body together. Two records under review/: the ratification (what was ratified, the two decisions with the framing they carried, the adversarial round P2-0..P3-9 and Copilot's three, the accepted release-inventory-drift defect, what is still owed) and the verification, both `Status: record`. RATIFICATION MOVES NO LEDGER ROW, and --ledger-diff is the evidence: a row's derived keys are state, class, declares, depth and prose, none of which reads a lifecycle status, so draft -> ratified is invisible to it by construction. Consistent at 167 rows, this change's row unmoved since PR #668 seeded it. Re-derived pre-capture on this tree, with BOTH record files present: openspec --all --strict 91/91; pytest tests/doc-health tests/sequenced_after 1738 passed; actionlint clean; doc-health --single-repo against a SAME-CLOCK control at the branch's own base 7499338 — base 6/5/30/13, branch 6/6/30/13, differing by exactly one line, the accepted policy-doc drift error. The base's own error count moved from 4 to 5 because of #667 and not because of this packet, which the record says rather than leaves to be inferred. Neither new record raises a finding and ratified-provenance does not fire. Refs #664 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
Brett Heap ratified the packet in session on 2026-09-05 at 01:38Z, verbatim "ratify #666", over the packet exactly as it stood at head 6935fb8. The word is recorded on the governing record: #656 (comment) and mirrored on the pull request as comment 5548470786. What this commit does: - proposal.md flips to `Status: ratified` and carries the `Ratified:` citation line; the opening bold paragraph now states that the packet IS ratified and STILL PERFORMS NOTHING, keeping every clause of its substance. - design.md and tasks.md flip with a `Ratified by:` citation, on the add-release-tag-gate precedent of the same day. - review/ratification-2026-09-05.md is the record: the decision, what is ratified, every #656 ruling quoted verbatim with its comment id and timestamp, a truthful review history, the ordering facts, what ratification authorizes and what it does not, the two residuals, and the verification numbers. - tasks.md § 0.2 (the ratification read over the 102-row successor map) is marked done and cites the record and the ruling comment; § 0.1 now describes what actually lands. - The staging INDEX row, its detail section and the README "OpenSpec Records" entry stop saying the packet awaits a ratification read. - Two corrections taken with the flip, both measurements rather than decisions: tasks.md § 0.9's "no MOVEMENT LOG entry is owed" was false (the seeding moved ten rows and an entry was written) — Copilot round 5 on the ratified head, unaddressed until now; and proposal.md's "13 scenarios" for corpus-adapter-seam is 11 as counted in the delta. - The modified-block-currency SELF-GATE is updated, not loosened. Ratifying this packet made it the second ACTIVE RATIFIED writer of neutral-product-pin's "An external neutral product is pinned by commit and digest, never by tag" beside add-openspec-cli-pin, so the two-writers ordering arm began reporting and the gate's empty band failed. `_ORDERING_SUBJECTS` names the two subjects as an exact set with its own retirement condition, `_ORDERING_TITLE` joins the declared regex set with its reason, and the docstring plus the feature's self-gate contract row are amended. Doc-health delta vs origin/main is exactly +2 contested warnings, one family; nothing else moves, info included. - The neutral-product-pin delta's sibling check is dated in place: add-openspec-cli-pin ratified and landed (#667) after that check was taken at a858e5b and writes the same requirement, so the ordering declaration is now OWED and is named as owed rather than made here. origin/main is merged in (never rebased) and its README "OpenSpec Records" conflict resolved by keeping both entries. Landing is a separate act on the same word under lane-collision-protocol Rule 6 and is not performed here. Lane: openxfactory-opendox Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WPaY5WyCqq1p46F3Qtd7H
RULING, Brett Heap, 2026-09-05T12:49Z, in session, verbatim: "declare and land" Recorded at #656 (comment) and mirrored on #666. WHAT IS DECLARED. `split-opendox-two-layer-product` (ratified 2026-09-05T01:38Z) is the LATER ratified writer of `neutral-product-pin`'s "An external neutral product is pinned by commit and digest, never by tag"; `add-openspec-cli-pin` (ratified 2026-09-04, landed as #667) is the EARLIER one. Under `release-realization`'s "Ordered deltas and branch vocabulary" the later writer's proposal.md names the earlier change, and that whole-token mention IS the ordering — it is what `modified_block_currency.declarations()` reads, out of proposal.md and nothing else. The proposal's Modified Capabilities bullet now carries it. UNITS: 26 before, 26 after, NONE LOST. The basis block held 26 units — canon's 13 plus its own 13 (the published-artifact clause, the enumeration clause and the two scenarios "The product is published as an artifact rather than as a source tree" and "A published-artifact pin records only a version"). Every one is carried verbatim into this packet's block, which goes 23 -> 38 units: this packet's runtime-deployment clause is marked in place with a `**Modified by ...:**` lead-in and gains one reconciling sentence, its two scenarios follow the basis's, and the requirement body carries a dated per-requirement record of the declaration. The second MODIFIED requirement, "The consuming repository's pin is authoritative among reachable checkouts", is not written by `add-openspec-cli-pin` at all and stays written over canon — untouched. The reserved ``**Modified over `<basis>`'s addition by <id> (<date>):**`` pairing form is deliberately NOT used: it declares a basis that ADDS an unpromoted requirement, `add-openspec-cli-pin` MODIFIES a promoted one, the pairing arm never runs on this shape, and such a marker would promote a false sentence into canon. The in-body paragraph uses the parallel "...'s modification by..." wording instead. SELF-GATE, per its own written retirement condition ("the rows go when the ordering declaration is made or when either change archives"): `_ORDERING_SUBJECTS` drops both named rows and is now an EMPTY exact set on `_PAIRING_SUBJECTS`' precedent — `==` and never `<=`, both directions failing by name, nothing loosened. `_ORDERING_TITLE` is KEPT so the first fresh subject fails BY NAME and so the module's regex set stays at the five `test_the_gate_reaches_the_corpus_only_through_the_family` pins. Docstrings and the self-gate contract row are amended to the new fact. 19 passed. VERIFIED at this head (after a second catch-up merge of origin/main 6f3301f): - validate <change> --strict: valid; --all --strict: 91 passed, 0 failed (91 items), through the pinned entrypoint at @fission-ai/[email protected] - proposal-support verify: ok - doc-health vs a fresh detached worktree of origin/main 6f3301f: 6/6/30/13 on BOTH sides — delta ZERO across every family and severity, info included; both Ranked Plans are 55 rows and identical once the repo label is normalized. modified-block-currency's ordering band reads 0, down from 2. - pytest tests/doc-health tests/sequenced_after tests/proposal-support tests/credential_contracts tests/notebooklm tests/scope_globs: 2319 passed, 39 subtests passed. The FULL suite was not run locally; tests/ideation-dashboard is covered by the required pytest-suite check. - tests/sequenced_after: 162 passed; corpus-ledger.yaml needs no row change. Refs #656 Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_012WPaY5WyCqq1p46F3Qtd7H
`validate-sequenced-after.py . --seed-ledger --moved-by '#677'`, the command the failing test names. One row added: bump-openspec-cli-pin-to-1.12 {state: active, class: sole, declares: absent}. Every other row's provenance is untouched, and the four derived totals the sweep reports move with it because they are derived from the rows rather than asserted anywhere. `declares: absent` is the honest reading and not an oversight: this packet's proposal carries no machine-readable `sequenced_after:` field. It is sequenced after #667 and #673 in fact, and says so in prose and in `.openspec.yaml`'s `related:` — but absence and `[]` are different facts and the ledger keeps them apart, so a prose dependency is recorded as `absent` rather than dressed up as a declaration. The ledger is consistent with the corpus at baae60f. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT
FOUND BY RUNNING THE TOOL, not by reasoning about it. Against the real corpus, `--change add-composed-view-authoring` REFUSED `pin-disposition-stale` over `add-chain-attestation`'s untouched entry — because a scan that never opens that change cannot produce its finding. "This finding no longer occurs" is a claim about the WHOLE corpus, and only `--all` scans the whole corpus. A narrowed run legitimately does not see the findings of items it was not asked about, so it has no standing to make the claim; refusing there made the entrypoint unusable for exactly the single-change validation `neutral-product-pin` provides for and #667's own remediation trailer advertises. So a narrowed run now APPLIES the dispositions it matches — an author validating one dispositioned change must not be told to fix a finding this pin has accepted — and PRINTS that it checked none for staleness, so a green narrowed run is never mistaken for an audit of the list. Whole- corpus runs are unchanged and still refuse. Two tests hold the halves against each other: a narrowed run with a second, unrelated entry passes and declares the omission; an `--all` run with the same pin refuses. Verified against the real corpus after the fix. Tests 79 -> 81. The ADDED requirement, the pin header, design.md § 2, tasks 2.3/4.5, the evidence record and the README entry are corrected in the same commit. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT
…ytes the gate verifies (#687) #667 task 5.1 / #677 task 6.2 realized: pytest-suite.yml obtains the CLI through scripts/install-pinned-openspec-cli.py, which reads contracts/openspec-cli-pin.yaml with the verifier's own parser and verifies the artifact's content address before installing; the literal 1.2.0 line is gone. Merged on Brett Heap's word "merge 687", given first-hand to lane codexfactory-1 on 2026-09-05. All checks green on 02de78f; the runner triple held (selected 9692, passed 9671, skipped 21).
…mes: ratify 697 Brett Heap, 2026-09-05, verbatim "ratify 697", in his own message, first-hand to Claude session codeXfactory-1 (lane codexfactory-1, which authored this packet and writes this record). THE SECOND WORD, AND THE TWO DO DIFFERENT WORK. The first — "use recommended name, go on 3 repo shape", also 2026-09-05, also first-hand to this lane — settled the PLAN: codexFactory takes the same exit openxFactory took, and the realization runs in three steps of which this packet is step 2. The packet has said since it was written that the plan-level word "does not ratify this packet's text, which carries Status: draft and owes a ratification citation from a separate act". "ratify 697" is that separate act. Plan accepted then; text ratified now. ORDER OF EVENTS, WHICH IS DELIBERATELY NOT #677'S. The packet went green on bfc9451 on every required check; Brett gave the word against that head; this record was written on the branch AFTER the green run and BEFORE any merge. #677's record notes that its merge preceded its record on Brett's word in the authoring lane. Nothing about #697 is ratified-in-fact ahead of being ratified-in-writing. THE MERGE HAS NOT HAPPENED AND IS NOT AUTHORIZED BY THIS WORD. WHAT MOVED * review/ratification-2026-09-05.md, new, in the house shape of #677's: the word verbatim and who heard it, the two words and how they relate, what is covered (the four-entry list — specifically THIS packet's two codexFactory entries, openxFactory's pair being ratified by "take exit 2" and not by this word), the delta-less skip_specs shape and the reading behind it, the corrected exit-3 record, the order of events, and the LIMITS. * proposal.md: Status draft -> ratified in both the front matter and the body, with a `Ratified:` line in #677's form. The draft-time paragraph is KEPT verbatim under a dated note — it is the record of what the plan-level word did and did not do, read as of the day it was given, and rewriting it would destroy that. * contracts/openspec-cli-pin.yaml: BOTH codexFactory entries' `ratified_by:` now name both words and the record, so the authority is complete without a reader having to leave the file. Still one quoted scalar in the grammar read_pin accepts. THE OPENXFACTORY ENTRIES ARE UNTOUCHED — asserted in this lane, not assumed: both still read 'Brett Heap, 2026-09-05, "take exit 2"'. * tasks.md: 5.4 ticked with the date, and the group-5 header amended to say why exactly one box in an OWED group is ticked — ratification was this packet's own to receive, and its record is a diff in this pull request, which is the rule at the top of that file. * README: the row's status clause moves to ratified and cites the record. * evidence/codexfactory-dispositions-2026-09-05.md § 2 was RE-MEASURED, not edited. Extending `ratified_by:` changes the `accepted by:` line the tool prints, so the transcript would have stopped matching the file it transcribes. The command, the tree and the totals are identical; a dated note says the block is the re-run and why. VERIFIED AFTER THE EDIT, ALL FOUR python3 scripts/validate-openspec-cli-pin.py --all --no-cache Totals: 93 passed, 2 failed (95 items) DISPOSITIONED FINDINGS in openxFactory (2 applied) — its own two only accepted by: Brett Heap, 2026-09-05, "take exit 2" OK ... 0 UNDISPOSITIONED failures. THIS IS NOT A CLEAN TREE: 2 ... EXIT=0 python3 scripts/validate-openspec-cli-pin.py --all --repo <codexFactory@b2a6af34> Totals: 23 passed, 2 failed (25 items) DISPOSITIONED FINDINGS in codexFactory (2 applied) accepted by: Brett Heap, 2026-09-05, "use recommended name, go on 3 repo shape" (the plan) and "ratify 697" (this change; .../review/ ratification-2026-09-05.md) EXIT=0 openspec validate disposition-codexfactory-declared-renames --strict (1.12.0) Change 'disposition-codexfactory-declared-renames' is valid ℹ [INFO] file: skip_specs is set in .openspec.yaml: ... zero deltas accepted EXIT=0 python3 -m pytest tests/openspec_cli_pin tests/sequenced_after -q 255 passed in 10.00s python3 scripts/validate-sequenced-after.py . --ledger-diff per-change sweep ledger consistent with the corpus (174 rows). NOT RATIFIED BY THIS WORD, and the record says so in its own section: step 3 (adopt-openspec-cli-pin-gate in codexFactory), the stack.yaml re-pin and the aggregation pointer advance, the ticks of #667 6.1 and #677 6.3, the archive of this change or of either codexFactory change it dispositions, and the watch on Fission-AI/OpenSpec#1793. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT
|
CLAIMED — lane codeXfactory-1, session session_01UQzYv1nEcjEkidnMUCaJcB (harness 25bc3df5-3675-432a-a400-990ecb394320), 2026-09-06T23:44:17Z, for Measured 2026-09-06 on each repository's The three reads, per rule 1: (1) no CLAIMED / RELEASED / LANDING on this record for 6.3–6.5; (2) Ruled: Brett Heap, 2026-09-06, "go" to lane codeXfactory-1 on the recommendation "the readiness trio, run as three claimed changes in parallel". Lane: codexfactory-1 |
|
PROGRESS — lane codeXfactory-1, 2026-09-07T02:19:43Z, on the 6.3 / 6.4 / 6.5 claim above. The READINESS half of each is LANDED on Brett Heap's first-hand "ratify and merge" (2026-09-07 ~02:00Z): MedxSoft/MedxFactory #25 → 3d8cef76 (gate 9/4 → 14/0), LedgerxFactory #32 → 8c2ffe29 (5/11 → 17/0), AdxFactory #7 → fea04fee (1/2 → 4/0) — each a Lane: codexfactory-1 |
|
PROGRESS — lane codeXfactory-1, 2026-09-08T13:16:14Z, on the 6.3 / 6.4 / 6.5 claim above: the CI-WIRING half is LANDED in all three repositories on Brett Heap's first-hand "merge all 3" (2026-09-08 ~13:14Z), each an Lane: codexfactory-1 |
|
CLOSED — lane codeXfactory-1, 2026-09-08T13:50:22Z: tasks 6.3 / 6.4 / 6.5 are ticked on main by #804 (→ 4b756f7) on Brett Heap's first-hand "merge all 4". Both halves landed in each repository — readiness ( Lane: codexfactory-1 |
|
CLAIMED — lane codeXfactory-1, session session_01UQzYv1nEcjEkidnMUCaJcB (harness 25bc3df5), 2026-09-08T14:14:49Z, for Lane: codexfactory-1 |
…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
|
CLOSED — lane codeXfactory-1, 2026-09-09T05:54:34Z: task 5.2 (the dependency closure) is DISCHARGED — #813 Lane: codexfactory-1 |
Re-seeded from the live corpus rather than hand-edited:
python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#841'
`wrote tests/sequenced_after/corpus-ledger.yaml (189 rows, 1 moved by #841)` —
and the one row it names is this change's. `state: active -> archived`,
`moved_by: "#667" -> "#841"`, `moved_on: "2026-09-04" -> "2026-09-09"`, the
date being the one the `archive/2026-09-09-add-openspec-cli-pin/` directory
carries, which is the ledger's own rule for a row flipping to archived: at that
one moment the row's move and the archive are the same act. `class`, `declares`
and `prose` are unchanged, and no other row's provenance moved.
`--ledger-diff` then reads `per-change sweep ledger consistent with the corpus
(189 rows)`, and the plain run reads `sequenced_after validation passed (42
active changes, 10 declaring the field)`, `archive-date agreement passed` and
`archive-date-vs-commit agreement passed (… 12 disposition(s) in force,
enforcement error)` — this archive needs no disposition of its own: the
directory is named 2026-09-09 and the commit that adds it is 2026-09-09T12:11Z.
Lane: codexfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KU9sXSmC78QxYF6C8kqfqo
Lane: openxfactory-cli-pin
Draft only — do NOT merge. Brett ratifies. Authorized 2026-09-04, verbatim:
"draft the openxFactory pin change, pinned at 1.2.0". This packet is
Status: draftand carries no ratification citation.It pins the CURRENT version and deliberately does not bump it. The upgrade is
a later, separate, human-only change.
Why
openspec validate --strictis the gate every spec delta passes before it mayarchive;
openspec archivewrites a ratified delta into canon. Neither hasever run at a version anybody declared.
The only pin in the estate is one literal line —
.github/workflows/pytest-suite.yml:400,npm install -g @fission-ai/[email protected]— installed sotests/proposal-support/can drive the binary. No consuming repository readsit, nothing verifies it, nothing refuses when a different version answers.
OpenSpec offers no project-level version field to lean on instead
(
openspec/config.yamlcarries onlyschema:;openspec configisglobal-scope).
openspec validate --all --strictruns in NO repository's CI. OpsxFactoryand codexFactory have zero workflows mentioning it; MedxFactory, LedgerxFactory
and AdxFactory have no workflows at all. The gate everyone believed was
guarding the corpus has been running on laptops, at whatever version was
installed there.
The cost is measured, not hypothetical (2026-09-04). The same trees that
are clean at 1.2.0 fail under 1.12.0:
Every failure is a pre-existing condition — placeholder
## Purposesections the
archivecommand itself writes, a duplicate task id, and at leastfour deltas the newer
archivewould REFUSE (MODIFIEDagainst headers themain spec does not carry, or against specs not yet created). One ambient
npm install -greds two repositories and stalls every archive, in the name ofwhoever ran it rather than the conditions that predate them.
So: pin where the estate is green, make the pin the only way validation runs,
and make the upgrade a governed decision somebody takes deliberately with
evidence instead of an accident somebody discovers.
What lands
contracts/openspec-cli-pin.yamlkind: pinned_contract_manifestreused unchangedscripts/validate-openspec-cli-pin.py.github/workflows/openspec-cli-pin-gate.ymltests/openspec_cli_pin/test_openspec_cli_pin.pyopenspec/changes/add-openspec-cli-pin/The referent is the tarball's SHA-512;
1.2.0is a LABEL. This iscontracts/openreposhape-pin.yaml's tag-versus-commit argument transposed to aregistry, and it survives intact: a digest over the published bytes cannot be
moved, whereas npm's refusal to republish a version is a registry policy —
administered by an operator, with an unpublish window an operator can act inside
— and a policy is not a content address.
Verified as a measurement, not a transcription:
npm pack @fission-ai/[email protected]followed by local SHA-512/SHA-1 recomputation over the 204,816-byte tarball
reproduces both exactly.
The verifier and the entrypoint are one file, deliberately. Separating them
puts back the defect the pin exists to close: a verifier nobody is obliged to
call, standing beside a bare
openspecthat answers with whatever is onPATH.Stdlib-only, fail-closed, five ordered checks, five named refusal codes, one
fixed remediation trailer.
npx. It fetches the tarball, recomputes both digests,and refuses
pin-integrity-mismatchbefore anything is installed and longbefore anything is invoked —
neutral-product-pin's ordering rule, dischargedby running code.
PATH, which is the property the whole changeturns on. Asserted positively: a wrong-version binary is placed on
PATHandthe run still passes, with
shutil.whichproven to have been asked only fornpm.--verify-only. A flag that verifies the pin and validates nothing isexactly the target-less green check the grammar forbids.
--ignore-scripts, so an unpinned transitive dependency cannotrun a lifecycle script inside a gate.
The gate carries no copy of the version — the sibling gate's "fourth copy of
the pin" argument, asserted by a test against the workflow's own non-comment
bytes. Like its sibling it is not a required check on landing; that is an
operator act on an organisation ruleset, and a check is not selectable until a
workflow has reported under it once.
The spec delta
Four ADDED requirements: the CLI is a pinned neutral product and every strict
validation and archive runs at the pin; a consuming repository validates only
through the pinned entrypoint so
PATHcannot affect a gate; a version bump ishuman-only and lands its target-version evidence in the same change; a pin whose
content address cannot be verified refuses with a named remedy.
One MODIFIED, and it is required rather than chosen. The ratified grammar is
commit-only — "that pin SHALL carry the product's COMMIT, its
revision_kind, a per-filesha256… andpinned_by_commit_only:…". An npmpackage has no commit this repository consumes and no per-file surface to
enumerate, so writing this pin under the unamended grammar would mean either
inventing a commit (a fabricated referent in a file whose entire purpose is a
truthful one) or claiming conformance the requirement does not grant. The block
admits a published-artifact referent minimally: one added body clause, two
added scenarios, every existing clause and all three existing scenarios
restated unchanged, nothing deleted, no reserved deletion marker owed —
confirmed by
doc-health, whosemodified-block-currencyfamily reports nothingagainst it. It also argues why the two member lists are absent rather than
omitted: one digest over a tarball addresses all 270 files, so the completeness
obligation the lists exist to make checkable is discharged more strongly
here, not waived.
Evidence (measured on this branch)
Not in this packet, and named rather than implied
codexFactory,OpsxFactory,MedxFactory,LedgerxFactory,AdxFactory: wire the pinnedentrypoint into CI and pin the consumed
openxFactoryversion instack.yaml.A packet editing six repositories from here is the cross-repository authoring
the boundary rules refuse.
pytest-suite.yml:400's literal → a read of the pin file. Left out onpurpose: it edits this repository's most load-bearing required check and
deserves its own diff and its own green run, not a rider on this one.
header. The referent addresses the CLI's bytes, not its nine caret-ranged
dependencies, which npm resolves at install time.
--ignore-scriptsmitigates;it does not repair. Closing it needs a lockfile the publisher does not ship.
to size the problem.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT