Skip to content

contracts/openspec-cli-pin.yaml's header names both commands: validate through the entrypoint, archive through proposal-support - #826

Merged
brettheap merged 1 commit into
mainfrom
fix/pin-file-header-names-both-commands
Sep 9, 2026
Merged

brettheap merged 1 commit into
mainfrom
fix/pin-file-header-names-both-commands

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-1 (openXfactory-1)

The defect

contracts/openspec-cli-pin.yaml's own header/comment prose, in the block
immediately above consumer_entrypoint:, claimed:

Every repository in the estate runs STRICT OpenSpec validation and every
OpenSpec ARCHIVE through this entrypoint and through nothing else.

This is not executable as written. scripts/validate-openspec-cli-pin.py
(the named entrypoint) VALIDATES and has no archive verb — archive <id> is
rejected as an unrecognized argument. The OpenSpec ARCHIVE act runs through
scripts/proposal-support.py <root> archive <change-id> in the same pinned
checkout, which imports the entrypoint's own resolver and content-address-
verifies the artifact before invoking the resolved binary. Two governed acts,
two commands — the header named one command for both.

This is the same unexecutable claim that PR #757 found and corrected in four
other carriers (contracts/README.md's consumer recipe — which gained a
step 4 naming proposal-support.py for the archive act, the manifest row's
consumption_rule, proposal.md, tasks.md), but explicitly declined to
touch in the pin file itself: design.md D7 refused to edit the pin
file at all on the ground that "publishing a pin and moving a pin are
different acts with different authorities". The promoted neutral-product-pin
R1 (now canon in openspec/specs/neutral-product-pin/spec.md) requires
published adoption instructions to name both commands correctly where the two
governed acts are reached by two different commands. Filed as #779, owed on
the pin's own change family.

The fix

Comment-only edit to the header block above consumer_entrypoint: in
contracts/openspec-cli-pin.yaml. No data key, pinned version, digest,
dispositions: entry, or the consumer_entrypoint: value itself moves.
Wording mirrors contracts/README.md's consumer recipe (step 4, added by
#757) and contracts/manifest.yaml's consumption_rule for this row.

 # THE CONSUMER OBLIGATION, in one field, because it is the whole point of the
-# pin. Every repository in the estate runs STRICT OpenSpec validation and every
-# OpenSpec ARCHIVE through this entrypoint and through nothing else. A repository
-# that calls a bare `openspec` binary is not running the pinned tool, whatever
-# version happens to answer, because nothing verified which tool answered. The
-# entrypoint refuses when the pinned bytes cannot be verified, refuses when it is
-# given no scan target, and — in the PATH mode a developer may ask for — refuses
-# when the binary on PATH reports a version other than the one above.
+# pin. Every repository in the estate runs STRICT OpenSpec validation through
+# this entrypoint and through nothing else. A repository that calls a bare
+# `openspec` binary is not running the pinned tool, whatever version happens to
+# answer, because nothing verified which tool answered. The entrypoint refuses
+# when the pinned bytes cannot be verified, refuses when it is given no scan
+# target, and — in the PATH mode a developer may ask for — refuses when the
+# binary on PATH reports a version other than the one above.
+#
+# THE TWO GOVERNED ACTS ARE REACHED BY TWO COMMANDS, NOT ONE. This entrypoint
+# VALIDATES and has no archive verb — `archive <id>` is rejected as an
+# unrecognized argument. The OpenSpec ARCHIVE act runs through
+# `scripts/proposal-support.py <root> archive <change-id>` in the SAME pinned
+# checkout, which imports this entrypoint's own resolver and verifies the
+# artifact's content address before invoking the resolved binary — never an
+# ambient `openspec`.
 consumer_entrypoint: scripts/validate-openspec-cli-pin.py

Verification

python3 scripts/validate-openspec-cli-pin.py --all --no-cache — totals
unchanged before/after the edit (stashed the change and re-ran to compare):
Totals: 101 passed, 2 failed (103 items) both times, both runs exit 0, the
pin still resolves and verifies (@fission-ai/[email protected] verified
against its content address; the 2 "failed" are the pre-existing DISPOSITIONED
findings for add-chain-attestation and add-composed-view-authoring,
accepted exceptions unrelated to this change). The header is not part of the
artifact integrity check.

python3 scripts/validate-manifest-digests.py — OK contracts/manifest.yaml: 189 per-file digest(s) verify, exit 0. Confirmed directly that the manifest
row for contracts/openspec-cli-pin.yaml carries no sha256 key (per D2 of
#757) — nothing else digests this file's bytes, so the comment edit cannot
break a content-address check. Also ran pytest tests/openspec_cli_pin/ -q:
93 passed.

Disclosure — vendored copies now lag main's header

The three B repos that vendor this file byte-identical
(xFactory-Hermes-Install, openXwallet, Omnigent-Install) carry it at
openxFactory@44d8fbaf under their own 3-line "VENDORED from … do not edit
here" header; confirmed by diff that everything below that header is
byte-identical to contracts/openspec-cli-pin.yaml at 44d8fbaf. Their
drift checks compare against that pinned commit, so they stay green and this
PR does not turn them red — but their vendored copies now carry the OLD,
uncorrected header prose once this lands on main. A re-vendor to pick up
this fix is owed on their side; naming it here as a follow-on on #754, not
performing it in this PR.

No OpenSpec change — plain fix per the #638 precedent, on Brett Heap's word
2026-09-09 ("do as recomended").

Closes #779

🤖 Generated with Claude Code

https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi

…he header

The header comment above `consumer_entrypoint:` claimed the entrypoint ran
"every OpenSpec ARCHIVE ... and through nothing else". It does not: the
entrypoint validates and has no archive verb (`archive <id>` is rejected as
an unrecognized argument). The archive act runs through
`scripts/proposal-support.py <root> archive <change-id>` in the same pinned
checkout, which imports the entrypoint's own resolver and content-address-
verifies the artifact before invoking the resolved binary.

This is the same unexecutable claim that PR #757 corrected in four other
carriers (contracts/README.md's consumer recipe, the manifest row's
consumption_rule, proposal.md, tasks.md) but explicitly did not touch in the
pin file itself (design.md D7: publishing and moving a pin are different
acts). Owed on the pin's own change family per #779.

Comment-only change: no data key, pinned version, digest, dispositions:, or
consumer_entrypoint: value moves.

Closes #779

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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is comment-only and accurately reflects the repository’s actual CLI entrypoints for validation and archive without altering any pinned data.

Pull request overview

This pull request corrects the prose header in contracts/openspec-cli-pin.yaml so the pin’s documentation matches the actual tooling model: strict validation is performed via the pinned entrypoint, while archiving is performed via proposal-support.py (which internally reuses the pin resolver).

Changes:

  • Updates the consumer-obligation comment to state that scripts/validate-openspec-cli-pin.py is the sole strict-validation entrypoint.
  • Adds a clarifying comment block that OpenSpec archive is performed via scripts/proposal-support.py <root> archive <change-id> (not via an archive verb on the validation entrypoint).
File summaries
File Description
contracts/openspec-cli-pin.yaml Comment-only correction to name the correct command(s) for validation vs archive.
Review details
  • Files reviewed: 1/1 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: d175874f6c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-1 (openXfactory-1)

FROZEN at d175874f — all nine required checks green, no further commits from this lane; review threads 0; Codex real review clean; Copilot approval recommended. Comment-only edit of the pin file's header; data keys, version, digests and dispositions untouched; the three B repos' vendored copies stay identical to 44d8fbaf and now lag this header (re-vendor named on #754). No openspec/ path — no Rule 6 window.

Provenance for the admin merge of #826 (plain fix; no OpenSpec change — the #638 precedent). Words: Brett Heap, 2026-09-09 ~02:3xZ verbatim "do as recomended" (the four-item small batch; claim posted on #779 before authoring), then ~05:5xZ by multiple choice, label verbatim "Merge all three" (#826, #827, #828 — the other two landed first only because this PR's mergeability was still being recomputed). Self-authored PR (brettheap) → REVIEW_REQUIRED structural → admin merge (B2). #779 closes with this merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi

@brettheap
brettheap merged commit 1e8235f into main Sep 9, 2026
10 checks passed
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
…s time, and the B1 resolution holds

`origin/main` advanced from `86651a58` to `9a67d42c` (#826, #824) while this
reconciliation ran, so this is a SECOND merge on top of the conflict
resolution in `a1f08c39`. It is clean — #826 touched
`contracts/openspec-cli-pin.yaml`'s header and #824 landed
`govern-archived-record-edits`, neither of which this slice touches.

RE-CHECKED AFTER THE SECOND MERGE, because a resolved conflict can be undone
by a later merge and nothing would say so:
`.github/workflows/review-lane-repin.yml` still carries
`SOURCE_REPOSITORY: codeXfactory/codexFactory` (`:137`) above main's
`FLOOR_IN_SOURCE_CANDIDATES:` list (`:159`), the source mint's
`owner: codeXfactory` (`:236`) with its fail-closed rationale (`:210`), and
the decision-core checkout's `repository: codeXfactory/codexFactory`
(`:496`). `git grep -o -i 'opensoft/codexFactory'` on that file is EMPTY.

Validators:
- `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, all three
  pre-existing at `origin/main@9a67d42`
- `validate-sequenced-after.py . --ledger-diff` -> consistent, 189 rows
- doc-health `--single-repo .` -> critical+error set BYTE-IDENTICAL to
  `origin/main@9a67d42` (10 critical / 9 error / 57 warning / 16 info)
- freeze check -> EMPTY

Next unfinished pull request: #805 then #806's evidence addendum.

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
…, clean

`origin/main` advanced from `86651a58` to `9a67d42c` while this
reconciliation ran, so this is a SECOND merge on top of the first. Clean:
#826 touched `contracts/openspec-cli-pin.yaml`'s header and #824 landed
`govern-archived-record-edits`, neither of which this slice touches.

`pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
green at this head; freeze check against
`contracts/signed-execution-chain/`, `openspec/changes/archive/`,
`specs/`, `docs/decisions/`, `ideation/` EMPTY. The full validator set is
recorded on the first merge commit of this branch and re-run below.

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
…, clean

`origin/main` advanced from `86651a58` to `9a67d42c` while this
reconciliation ran, so this is a SECOND merge on top of the first. Clean:
#826 touched `contracts/openspec-cli-pin.yaml`'s header and #824 landed
`govern-archived-record-edits`, neither of which this slice touches.

`pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q`
green at this head; freeze check against
`contracts/signed-execution-chain/`, `openspec/changes/archive/`,
`specs/`, `docs/decisions/`, `ideation/` EMPTY. The full validator set is
recorded on the first merge commit of this branch and re-run below.

Lane: provenance-autonomous-merge
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants