Repository navigation
A pin's registration is checked: the manifest row's path, its consumer entrypoint and its consumption rule must agree - #828
Conversation
…int and its consumption rule must agree `publish-openspec-cli-pin-as-contract-member` registered one consumption pin and wrote no check — its own tasks.md § 5.4 says so in its heading, "a registration is not a check". The registered row's `consumption_rule` QUOTES `scripts/validate-openspec-cli-pin.py`; the pin file NAMES that same path in its `consumer_entrypoint:` field; nothing compared the two, and the one existing comparison (tests/proposal-support/test_pinned_openspec_cli.py) compares proposal-support's own constant against the PIN, never the MANIFEST ROW against the pin, so it stays green through the failure this closes. `scripts/validate-pin-registrations.py` walks every `type: pin` row and makes three assertions, each of them a sentence neutral-product-pin's promoted "A consumption pin that another repository reads is a PUBLISHED contract member" already carries: the registered `path` is in the tree; the pin's `consumer_entrypoint:`, where it carries one, resolves to a file; and the row's `consumption_rule` names that same path, because "published adoption instructions SHALL name the ACTUAL command for each governed act they cover". Named findings, exit 1; a missing or unreadable register, exit 2. Issue #776's FIRST assertion — that a pin some other repository reads IS registered at all — is deliberately NOT made: its predicate needs a machine test for "is read" that canon does not carry and that the issue leaves explicitly unpicked. That question is issue #775's, and this change neither answers nor forecloses it. No workflow line is added: `.github/workflows/pytest-suite.yml` already runs `python3 -m pytest tests/ -q -m "not postgres"` as a required check, so tests/pin_registrations/ is the wiring. Fourteen tests, no skips — the live corpus run, an anti-vacuity pin naming the one registered row, and one negative per assertion. Neither `contracts/openspec-cli-pin.yaml` nor the vendored `scripts/validate-openspec-cli-pin.py` is touched. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
@codex review |
There was a problem hiding this comment.
🟡 Changes recommended
The new checker does not currently refuse absolute/path-traversal pin paths or entrypoints (allowing out-of-repo reads), and the live-corpus tests assume pin rows are only under doc["contracts"] despite the checker’s documented recursive behavior.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a new repository-local validator and CI-covered test lane to ensure published type: pin registrations in contracts/manifest.yaml are internally coherent (registered pin path exists, optional consumer_entrypoint resolves, and the manifest row’s consumption_rule names that same entrypoint), closing issue #776’s “registration vs check” gap for assertion #2.
Changes:
- Introduces
scripts/validate-pin-registrations.pyto sweeptype: pinrows (recursively) and emit per-row findings with distinct exit codes for findings vs harness errors. - Adds
tests/pin_registrations/test_pin_registration_sweep.pywith both live-corpus and tmp-fixture coverage to ensure the checker is executed by the required pytest workflow and goes red for each failure mode.
File summaries
| File | Description |
|---|---|
| scripts/validate-pin-registrations.py | New validator that checks coherence between manifest type: pin rows, pin files, and their published consumption rules. |
| tests/pin_registrations/test_pin_registration_sweep.py | New CI lane and fixtures proving the validator is invoked and fails with specific, pinned finding text. |
Review details
Suppressed comments (2)
scripts/validate-pin-registrations.py:162
consumer_entrypointis also treated as a raw path; absolute paths or..segments would escape the repo root (and on absolute paths,ROOT / entrypointignoresROOT). Refusing non-repo-relative entrypoints keeps the published recipe executable and avoids reading host paths (see scripts/validate-avatar-client.py:2321-2336 for an existing containment check pattern).
entrypoint = str(entrypoint)
if not (ROOT / entrypoint).is_file():
findings.append(
f"FAIL {row_id}: the pin names `{ENTRYPOINT_FIELD}: {entrypoint}` but "
f"no such file is in this tree — a consumer following the published "
f"recipe literally gets a missing-file error and falls through to the "
f"ambient tool, the state the pin exists to end")
ok = False
tests/pin_registrations/test_pin_registration_sweep.py:151
- Same nesting assumption as the anti-vacuity test:
next(row for row in doc["contracts"] ...)will break if pin rows are moved under a grouping key, even though the checker’s recursive walk would still find them. Usingiter_pin_rowshere keeps the live-corpus comparison aligned with the checker’s documented behavior.
doc = yaml.safe_load(MANIFEST.read_text(encoding="utf-8"))
row = next(row for row in doc["contracts"] if row.get("id") == LIVE_PIN_ID)
pin = yaml.safe_load(
(REPO_ROOT / row["path"]).read_text(encoding="utf-8"))
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e61259487f
ℹ️ 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".
…ire the rule to name the entrypoint as a whole path Codex P2 and Copilot, independently: `ROOT / str(claimed)` DISCARDS the root for an absolute path and follows a `..` out of the tree, so `.is_file()` reports "in this tree" whenever the HOST carries that file while no consumer's checkout does — this file's own defect class, a comparison that passes without measuring. `resolve_in_tree` refuses a non-string or empty path, an absolute path, a `..` segment, and anything not `is_relative_to(ROOT)` after resolution, on the row's `path` and on the pin's `consumer_entrypoint:` alike. It mirrors `scripts/validate-avatar-client.py`'s containment helper rather than inventing a second dialect for the same question, and Article IV of the constitution says the same thing about the corpus: committed files must not carry host-absolute paths. Codex P2, second: a bare substring test reports a stale `scripts/tool.py.old` as naming `scripts/tool.py`, so the rename drift this lane exists to catch rides through green. `rule_names_entrypoint` requires a delimited path token. A LEADING `/` is deliberately allowed and asserted — `.openxfactory-pin/scripts/tool.py` is the same entrypoint named through the checkout directory the published recipe tells the consumer to make — while a leading name character is refused as a different file. Copilot's third finding is REFUSED with its reason recorded on the pull request: the three live-corpus tests read `doc["contracts"]` on purpose. They are the anti-vacuity pin and must state the corpus fact INDEPENDENTLY; routing them through the checker's own `iter_pin_rows` would make them pass whenever the walk agreed with itself. The recursion is covered separately by `test_a_nested_pin_row_is_still_measured`. Eight tests added, 14 -> 22, no skips. The live corpus is unchanged and still green. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi
There was a problem hiding this comment.
🟡 Changes recommended
The checker currently stringifies consumer_entrypoint before validation, undermining the intended non-string-path refusal behavior and leaving an important edge case untested.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
…nd a containment refusal is terminal for the row
`entrypoint = str(entrypoint)` ran BEFORE `resolve_in_tree`, so
`consumer_entrypoint: 17` became the string "17" — not absolute, no `..`,
inside the root — and was reported as a merely-missing FILE. The helper's own
non-string refusal was swallowed by the coercion, which also undercut the
docstring's claim to mirror `validate-avatar-client.py`'s containment helper.
The raw YAML value is now the claimed path and becomes a string only once the
helper has said it is one.
A containment refusal is also TERMINAL for the row now, on the same reviewer's
reading: `consumption_rule` is compared against a PATH, and where there is no
path a second finding saying the rule "never names 17" is noise rather than an
assertion.
Two fixtures: a non-string entrypoint, which also asserts that the rule finding
does NOT also fire, and an all-whitespace one — `Path("")` is `Path(".")`, a
directory, so an empty field would otherwise have read as a missing file rather
than as the absent value it is. 22 -> 24 tests, no skips; the live corpus is
unchanged and still green.
Lane: openxfactory-1
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi
|
Lane: openxfactory-1 (openXfactory-1) FROZEN at Provenance for the admin merge of #828 (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 #779/#777/#776/#730; claim posted on #776 before authoring), then 2026-09-09T05:54:13Z by multiple choice, label verbatim "Merge all three" (#826, #827, #828 in order). New 🤖 Generated with Claude Code |
… 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]>
`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]>
…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]>
…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]>
…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]>
Lane: openxfactory-1 (openXfactory-1)
A registration was not a check. This is the check.
What canon requires
openspec/specs/neutral-product-pin/spec.md, requirement A consumption pinthat another repository reads is a PUBLISHED contract member, adopted by
pin-sync (R2 of
publish-openspec-cli-pin-as-contract-member), quoted:It fixes what that recipe is:
And it obliges the register to name the command rather than point at it:
with its own scenario for the failure: "the instruction is not executable, and a
consumer following it literally falls back to the ambient tool" — the state the
pin exists to end. The three assertions below are those sentences and no further
rule.
The gap, as #776 measured it
The row's
consumption_ruleQUOTESscripts/validate-openspec-cli-pin.py. Thepin file NAMES that same path in
consumer_entrypoint:(
contracts/openspec-cli-pin.yaml:248). Nothing compared the two. The onlycomparison of
consumer_entrypoint:against anything in the tree —tests/proposal-support/test_pinned_openspec_cli.py:275— comparesproposal-support's own constant against the PIN, not the MANIFEST ROW againstthe pin, and stays green through exactly the failure this closes: a rename that
moved the entrypoint and updated the pin but not the row's prose leaves the
PUBLISHED register quoting a path that does not exist, silently, to the audience
the register exists for. D2 declined the row's
sha256for a stated reason; thatmade the coupling one string wide instead of one file wide, and one string was
still uncompared.
The check
New
scripts/validate-pin-registrations.py. It walks everytype: pinrow incontracts/manifest.yaml(recursively, onvalidate-manifest-digests.py'sprecedent, so a row nested under a future grouping key is measured rather than
dropped) and asserts, per row, independently — a row can fail more than one, and
a reader told only the first would have to re-run to learn the rest:
pathis a file in this tree;consumer_entrypoint:, where it carries one, resolves to afile in this tree (canon obliges no pin to carry the field; where it is absent
the line says the assertion does not apply, so an inapplicable assertion is
distinguishable from an unmade one);
consumption_rulenames that same path.Findings are named, one line each, exit 1. A missing or unreadable
contracts/manifest.yamlis exit 2 — a harness error, never an empty pass.The finding wording, verbatim:
Where it lives, and why not inside an existing family.
tasks.md§ 5.4 putthe owed checker beside
release-inventory-driftrather than inside it,because that family grades whether the derived release membership has drifted
from the declared bundle — a different question — and "folding two questions
into one family makes the finding text unable to say which failed." The same
sentence rules out folding it into
scripts/validate-manifest-digests.py, whosedocstring scopes itself to rows CARRYING a
sha256and calls rows without one"out of scope by design" — and a pin row has none, by D2's deliberate choice.
It is also not a
doc-healthfinding, so #776's deliberately-unpicked findingclass question is not reached.
NEITHER
contracts/openspec-cli-pin.yamlNORscripts/validate-openspec-cli-pin.pyIS TOUCHED. That validator is vendored byte-identical into three sibling
repositories; a check added there would grow the re-vendor debt for a question
that is openxFactory's alone. No
contracts/data changes. Noopenspec/pathis touched.
NO WORKFLOW LINE IS ADDED, and the existing entry hosts it.
scripts/validate-manifest-digests.pyis invoked by no workflow directly — it isrun by
tests/manifest_digests/test_manifest_digest_sweep.py, inside.github/workflows/pytest-suite.yml's requiredpython3 -m pytest tests/ -q -m "not postgres".tests/pin_registrations/isthe same wiring, so the checker IS run rather than merely runnable, which is the
half
tests/manifest_digests/'s own docstring says actually closes a defect ofthis shape.
What this deliberately does NOT assert
Issue #776's first assertion — that a pin some OTHER repository reads IS
registered at all — is not made. Its predicate needs a machine test for "is
read", which canon does not carry and which the issue leaves explicitly unpicked
("read the pin's own
intended_consumers, read the row's, take the union, orrequire the pin to DECLARE its own answer — all defensible and all have costs,
and picking one is the successor's act"). Picking one is a governed act, not a
plain fix. That question, and the two pin files sitting unregistered on
main,are issue #775's; this change neither answers nor forecloses it. R2's
contracts/README.mdindexing half is likewise unasserted here.Fixtures
tests/pin_registrations/test_pin_registration_sweep.py, 24 tests, no skips(
pytest-suite.ymlpins SKIPPED exactly). Built intmp_pathontests/manifest_digests/'s precedent — a committed broken manifest is a filesome other sweep must be taught to ignore; a scratch tree is read by this test
alone.
the row registers … but no such file is in this treefalls through to the ambient tool— the rename half, where pin and row agree with each other and BOTH name a path that is gone, so a string comparison alone would passconsumption_rulesilent on the entrypointnever names …+name the ACTUAL command for each governed actplus: no
consumption_ruleat all; a pin naming no entrypoint (inapplicable, notsilent); non-pin rows are not measured; a nested pin row still is; two failed
assertions reported as two findings; a missing manifest and an unparseable
manifest each exit 2; and the live-corpus subprocess run.
The anti-vacuity pin. A sweep over zero rows exits 0 and says so cheerfully.
test_the_live_register_carries_at_least_one_pin_rowpins the corpus fact thatthere IS a registered pin and names it, so deleting the row reds the suite —
deliberately in the TEST and not in the checker, because canon obliges no
manifest to carry a pin row and a checker refusing an empty register would
enforce a rule canon does not carry.
Live corpus — green today
Verification
python3 -m pytest tests/pin_registrations -q→ 24 passed, 0 skipped (14 as first pushed, +8 from bench round 1, +2 from round 2).python3 -m pytest tests/manifest_digests tests/sequenced_after tests/scope_globs -q→ 322 passed on this branch; 322 passed with the two new files stashed out (themainstate). Identical.tests/pin_registrations tests/openspec_cli_pin tests/proposal-support tests/credential_contracts tests/signed_execution_chain tests/intent-compliance -m "not postgres"→ 913 passed, 2 subtests passed, 1 failed. The one failure,tests/signed_execution_chain/test_chain_reader.py::test_a_carried_block_the_shipped_shape_rejects_is_refused, is PRE-EXISTING and environmental, re-measured with these two files stashed out and failing identically: its own docstring says the assertion is conditional on the pinned vocabulary being reachable — "in the requiredpytest-suitejob theopenXwalletgitlink is initialized, so the first branch is the one that runs in CI" — and this is a bare clone with uninitialized submodules.pytest-suiteon the final head378e06ad(run 34309147833):selected=10520 passed=10499 skipped=21 failures=0 errors=0,floors: selected>=7090 (margin 3430) passed>=7070 (margin 3429) skipped==21. SKIPPED is 21, the exact pin — the 24 new tests add none.release.release_membership(.)), so this adds no closed-membership member and owes no bundle cut or tag. A new top-levelscripts/*.pyis in none ofNAMED_VALIDATORS,AUXILIARY_MEMBERSorNORMATIVE_DOCS, and the two tests that enumeratescripts/are scoped toscripts/doc_health/andscripts/intent_compliance/.Review bench
Codex — one review,
e61259487f. Two P2 findings, both TAKEN:ROOT / str(raw_path)DISCARDS the root for an absolute path and follows a..out of the tree, so.is_file()says yes whenever the HOST carries that file while no consumer's checkout does. Real, and it is this file's own defect class — a comparison that passes without measuring.resolve_in_treenow refuses a non-string/empty path, an absolute path, a..segment, and anything notis_relative_to(ROOT)after resolution, on both the row'spathand the pin'sconsumer_entrypoint:. It mirrorsscripts/validate-avatar-client.py:2321-2336's containment helper rather than inventing a second dialect, and the constitution's Article IV says the same thing about the corpus: "Committed files MUST NOT contain host-absolute paths."scripts/tool.py.oldCONTAINSscripts/tool.py, so the substring test reported the rename drift this lane exists to catch as coherent.rule_names_entrypointnow requires a delimited path token. A leading/is deliberately allowed and asserted —.openxfactory-pin/scripts/tool.pyis the same entrypoint named through the checkout directory the recipe tells the consumer to make — while a leading name character is refused.Copilot — one review. Raised the containment finding independently (same fix, taken above, with its constitution citation). One finding REFUSED, with reason:
doc["contracts"]while the checker walks recursively. Deliberate, and stated in the module's own docstring: those three tests are the ANTI-VACUITY pin, and their job is to state the corpus fact independently. Calling the checker'siter_pin_rowsto find the row would make the test agree with the checker's walk by construction — it would pass whenever the walk agreed with itself, which is exactly the vacuity the file exists to prevent. A manifest reorganization SHOULD red them, so the pin is re-pointed deliberately and with a reason; that is the same disciplinepytest-suite.ymlstates forEXPECT_SKIPPED. The checker's recursion is separately covered bytest_a_nested_pin_row_is_still_measured.Copilot round 2 — one finding, TAKEN at
378e06ad.consumer_entrypointwas coerced withstr()BEFOREresolve_in_tree, soconsumer_entrypoint: 17became the string"17"and was reported as a merely-missing file, swallowing the helper's own non-string refusal and undercutting the docstring's claim to mirror the avatar-client helper. The raw YAML value is now the claimed path, it becomes a string only once the helper says so, and a containment refusal is TERMINAL for the row —consumption_ruleis compared against a PATH, and a second finding that the rule "never names 17" would be noise rather than an assertion. Two fixtures added: a non-string entrypoint (asserting the rule finding does NOT also fire) and an all-whitespace one (Path("")isPath("."), a directory, so it would otherwise have read as a missing FILE). Two rounds is the cap; no third was requested.Sourcery — not a review: the private-repo upsell stub.
No OpenSpec change — plain fix per the #638 precedent, on Brett Heap's word
2026-09-09 ("do as recomended").
Closes #776
🤖 Generated with Claude Code
https://claude.ai/code/session_01XPt6t1VcNVB5yGzQGwWUFi