Skip to content

Repoint pytest-suite at the OpenSpec pin: the test job installs the bytes the gate verifies (#667 task 5.1) - #687

Merged
brettheap merged 2 commits into
mainfrom
change/repoint-pytest-suite-at-pin
Sep 5, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/repoint-pytest-suite-at-pin

Conversation

@brettheap

@brettheap brettheap commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Lane: codexfactory-1

#667 task 5.1 / #677 task 6.2, on Brett's word to take them. pytest-suite.yml installed the OpenSpec CLI from one literal line — a second copy of a pin contracts/openspec-cli-pin.yaml already held, and the two had already moved apart (pin at 1.12.0, literal at 1.2.0), so the REQUIRED test suite drove one version while the openspec-cli-pin gate verified another.

What moved. New scripts/install-pinned-openspec-cli.py, standard library only: it loads scripts/validate-openspec-cli-pin.py by path and calls that file's own read_pin / resolve_pinned / assert_reported_version, installs into a persistent --cache-dir (the binary must outlive the step), appends the executable's directory to $GITHUB_PATH, prints the path, and exits 2 on any refusal with the verifier's own message and trailer. pytest-suite.yml's literal becomes python3 scripts/install-pinned-openspec-cli.py --cache-dir "${RUNNER_TEMP}/openspec-cli-pin"; its non-comment bytes now carry no version, no integrity and no @fission-ai/openspec@ at all. Tests 81 → 92. Three dated prose corrections where the literal was asserted in the present tense (the pin's header, the verifier's docstring, the gate's "precisely what pytest-suite.yml does today"), kept as history rather than deleted. Tasks 5.1 and 6.2 ticked with their evidence.

Why the installer is not a validator mode. The obvious shape — --verify-only on the verifier — is forbidden by that file's own docstring on neutral-product-pin's rule that a pinned validator invoked with no scan target must refuse rather than self-test, and test_there_is_no_verify_only_mode asserts the absence. That is a contract decision and this diff does not reopen it, so the install lives under its own name where nothing can read its exit code as a verdict. A green here means "the pinned bytes are verified and on PATH" and nothing else; a verdict still comes only from validate-openspec-cli-pin.py --all. For the same reason this job still does NOT validate the corpus: its verdict is the pinned test triple, and coupling it to the gate's verdict was rejected.

Verified on this branch.

  • pytest tests/openspec_cli_pin tests/proposal-support -q → 128 passed, 2 subtests passed.
  • The runner step simulated with a real $GITHUB_PATH file: exit 0; openspec --version on the appended directory prints 1.12.0; pytest tests/proposal-support on that PATH reports 36 passed, 2 subtests passed with nothing skipped, so the three skipUnless(shutil.which("openspec")) tests RUN and EXPECT_SKIPPED: "21" does not move.
  • validate-openspec-cli-pin.py --all --no-cache → exit 0, 92 passed, 2 failed (94 items) raw, two dispositioned findings, THIS IS NOT A CLEAN TREE — the expected shape, unchanged by this diff.
  • openspec validate --strict at 1.12.0: add-openspec-cli-pin valid, bump-openspec-cli-pin-to-1.12 valid.
  • Whole suite, on this pull request's own run (33979886976, job 101343134825): 9614 passed, 21 skipped, 338 deselected, 57 subtests passed in 1111.04s, and the pin step read selected=9692 passed=9671 skipped=21 failures=0 errors=0 with the named freshness verifier passed — so the exact EXPECT_SKIPPED: "21" held with the three proposal-support tests RUNNING, and both floors only widened (margins 2602 / 2601). The installer step logged the pinned artifact verified against its content address and its directory appended to $GITHUB_PATH.

Still owed, and named rather than discovered later. #667 OI-1 / task 5.2, the pinned artifact's dependency closure (ten dependencies, nine caret-ranged; --ignore-scripts mitigates and does not repair). #667 tasks 6.1–6.5 and #677 task 6.3, the consuming repositories — codexFactory, MedxFactory, LedgerxFactory, AdxFactory — which still have no wiring to this entrypoint. Both changes' archives. No change directory is added here, so no corpus-ledger re-seed is owed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT

…ytes the gate verifies (#667 task 5.1)

`.github/workflows/pytest-suite.yml` obtained the OpenSpec CLI from one literal
line, `npm install -g @fission-ai/[email protected]`. That line was a SECOND copy
of a pin `contracts/openspec-cli-pin.yaml` already held, and the two had duly
moved apart: the pin bumped to 1.12.0 (#677) while this repository's most
load-bearing REQUIRED check still drove 1.2.0 — the two-copies-of-a-pin defect
#667 was written to name, observed rather than argued.

WHAT MOVED

* NEW `scripts/install-pinned-openspec-cli.py`, standard library only. It loads
  `scripts/validate-openspec-cli-pin.py` by path and calls that file's OWN
  `read_pin` / `resolve_pinned` / `assert_reported_version`, so no parser, no
  hashing and no copy of the version or the integrity is written a second time.
  It installs into a PERSISTENT cache directory (the binary must outlive the
  step), appends the executable's directory to `$GITHUB_PATH` by writing the
  file, prints the executable on stdout, and exits 2 on any refusal with the
  verifier's own message and remediation trailer.
  It is an INSTALLER and its green is never a verdict: it opens no governed
  surface and reads no delta. It is deliberately NOT a `--verify-only` mode of
  the verifier — that mode is forbidden by `neutral-product-pin`, which is a
  contract decision this diff does not reopen — so a verdict still comes only
  from `validate-openspec-cli-pin.py --all`.

* `pytest-suite.yml`: the literal becomes
  `python3 scripts/install-pinned-openspec-cli.py --cache-dir "${RUNNER_TEMP}/openspec-cli-pin"`.
  The header and the step say why the step exists (the three
  `skipUnless(shutil.which("openspec"))` tests in `tests/proposal-support/` are
  its only consumer), why no version is written there, and that this job does
  NOT validate the corpus — the job's verdict is its pinned test triple, and
  coupling it to the gate's verdict was rejected.

* Tests, 81 -> 92 in `tests/openspec_cli_pin/`: the twin of the gate's
  no-fourth-copy test, asserted against `pytest-suite.yml`'s own non-comment
  bytes (no version, no integrity, no `@fission-ai/openspec@` at all); the
  installer's `$GITHUB_PATH` append (appended, not truncated) with the fetch,
  install and version calls asserted; its exit-2 refusal on bytes the pin does
  not name, appending nothing; and the absence of any scan-target option.
  The fictional-registry fixture becomes a function taking a module, because
  the installer loads its own copy of the verifier.

* Dated prose corrections, kept as history rather than deleted, in the three
  places that asserted the literal in the present tense: the pin's header, the
  verifier's docstring, and `openspec-cli-pin-gate.yml`'s "precisely what
  pytest-suite.yml does today". The test module's own stale `1.2.0` mention is
  corrected by removing the restatement rather than moving it.

* `add-openspec-cli-pin` task 5.1 and `bump-openspec-cli-pin-to-1.12` task 6.2
  ticked, with the evidence beside each in the file's own form, and each file's
  "nothing is ticked that did not land" preamble amended with the same date.

VERIFIED ON THIS BRANCH

* `pytest tests/openspec_cli_pin tests/proposal-support -q` -> 128 passed, 2
  subtests passed.
* The runner step simulated: `GITHUB_PATH=… RUNNER_TEMP=… install-pinned-…py
  --cache-dir "$RUNNER_TEMP/openspec-cli-pin"` exits 0, the file it appends
  puts `openspec --version` at 1.12.0, and `pytest tests/proposal-support` on
  that PATH reports 36 passed with NOTHING skipped — so the three tests RUN and
  `EXPECT_SKIPPED: "21"` does not move.
* `validate-openspec-cli-pin.py --all --no-cache` -> exit 0, two dispositioned
  findings, "THIS IS NOT A CLEAN TREE" — the expected shape, unchanged.
* `openspec validate --strict` at 1.12.0: both `add-openspec-cli-pin` and
  `bump-openspec-cli-pin-to-1.12` valid.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PXKjHRwEhuHDBwFixetmtT
Copilot AI lite review requested due to automatic review settings September 5, 2026 17:05

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

…2 landed

The tick notes were written before `gh pr create` returned a number and said
`PR #TBD`. A task that names no pull request is a tick a reader cannot check.

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new installer promises exit-2 handling for installer-side environment failures but currently can still crash/exit 1 on filesystem errors, and one new workflow assertion test can false-positive due to inline YAML comments.

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

Pull request overview

This PR removes the hard-coded OpenSpec CLI version from the required pytest-suite workflow and makes the job install the exact pinned CLI bytes defined in contracts/openspec-cli-pin.yaml, ensuring the test suite runs against the same artifact the pin gate verifies.

Changes:

  • Added scripts/install-pinned-openspec-cli.py to install the pinned OpenSpec CLI via the existing verifier logic, append it to $GITHUB_PATH, and avoid presenting installation as a validation verdict.
  • Updated .github/workflows/pytest-suite.yml to use the installer (with a persistent cache dir) instead of npm install -g @fission-ai/openspec@....
  • Extended tests/openspec_cli_pin/ coverage to assert the workflow no longer carries a version/literal install and to test installer behavior (PATH append, refusal semantics, option surface).
File summaries
File Description
scripts/install-pinned-openspec-cli.py New installer entrypoint that reuses the verifier’s pin parsing/resolution to place the pinned CLI on PATH for CI tests.
scripts/validate-openspec-cli-pin.py Docstring/prose updated to reflect the workflow no longer installs via a literal.
tests/openspec_cli_pin/test_openspec_cli_pin.py Adds installer module loading, shared fake registry support for two module instances, and new assertions about pytest-suite.yml wiring.
.github/workflows/pytest-suite.yml Replaces the literal npm install with python3 scripts/install-pinned-openspec-cli.py --cache-dir ....
.github/workflows/openspec-cli-pin-gate.yml Comment/prose corrected to remove now-stale present-tense claim about pytest-suite.yml.
contracts/openspec-cli-pin.yaml Comment/prose corrected to reflect the literal workflow line is gone.
openspec/changes/add-openspec-cli-pin/tasks.md Tasks annotated/ticked to record the workflow change as completed with evidence.
openspec/changes/bump-openspec-cli-pin-to-1.12/tasks.md Tasks annotated/ticked to record the workflow change as completed with evidence.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment on lines +168 to +174
except verifier.PinRefusal as exc:
# Printed VERBATIM, trailer and all. This script adds no wording of its
# own to a refusal: the verifier owns the refusal vocabulary and the one
# fixed remediation, and a caller branching on the code must see the code
# the verifier raised.
print(str(exc), file=sys.stderr)
return 2
Comment on lines +667 to +668
body = "\n".join(line for line in workflow.splitlines()
if not line.lstrip().startswith("#"))
@brettheap
brettheap merged commit 6159eb6 into main Sep 5, 2026
10 of 11 checks passed
brettheap added a commit that referenced this pull request Sep 5, 2026
…ANDED commit (3afd8a8 retired; 67 -> 67) (#689)

Lane: openxfactory-2 (openXfactory-2)
Refs #675

`mirror-floor-addition-grace` tasks 4.1-4.3: the regeneration the packet's
own realization made possible, requested at a LANDED openxFactory commit
rather than at any pull request's own unlanded head, per task 4.1's own
instruction ("the first repair that does not block the pull request that
caused it").

FIVE SITES, advanced e57643a7 -> 67a6ffc9 in this one commit:
`contracts/review-lane-pin.yaml` `core_commit`;
`.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` and its
core checkout `ref:`; `.github/workflows/pytest-suite.yml`'s core checkout
`ref:`; `contracts/review-lane-floor-snapshot.yaml` (re-copied byte for byte,
never hand-edited).

WITNESS. codexFactory PR #212 (MERGE COMMIT `67a6ffc9`, merged
2026-09-05T18:08:23Z) regenerated
`scripts/merge_master/openxfactory-review-authority-floor.yaml` at
openxFactory `f6724f04` — the merge commit of PR #686, this repository's own
`mirror-floor-addition-grace` realization, and reachable from openxFactory
`main` (`git merge-base --is-ancestor f6724f0 origin/main` holds on THIS
repository's tree, re-measured before this commit). The resulting document:
sha256 `18389a3d…3521a8`, 15402 bytes, blob `fdcd9f7e…5b5a8` — vendored here
byte for byte, `cmp`-identical to `git show 67a6ffc9:scripts/merge_master/
openxfactory-review-authority-floor.yaml`.

THE FLOOR CHANGED BY TWO HEADER LINES. `git diff e57643a7 67a6ffc9 --
scripts/merge_master/openxfactory-review-authority-floor.yaml` in the pinned
core is exactly the generated block's `generated_at` and `--ref` lines
(`3afd8a8c` -> `f6724f04`) and nothing else: `entry_count` stays 59, the
floor's `never_clearable_paths` total stays 67 — the SECOND advance in this
pin's history whose floor grew by zero paths, and this time deliberately: no
`openspec/specs` path exists at `f6724f04` that did not already exist at
`3afd8a8c`.

THIS IS THE ADVANCE THAT RETIRES THE NON-ANCESTOR PIN. `3afd8a8c` was
measured 2026-09-05 (this same packet's task 4.3) as NOT an ancestor of
openxFactory `main`. `f6724f04` IS an ancestor of it. That is the whole
operational content of this advance: `specs_floor_block.
pin_window_for_document` fail-safes to `None` ("not measured") whenever the
declared `generated_at` will not resolve as an ancestor of the base branch
being measured, so the addition grace's B1 pending-extension window could
only ever report `pin_measured: false` on this repository's own `main`
against the eighth advance's `3afd8a8c`. Against `f6724f04` the window is
MEASURABLE for the first time — the addition-grace mechanism the eighth
advance (`e57643a7`) made operative finally has a resolvable pin to measure
from.

NO COLLISION MEASURED. openxFactory PR #687 (`change/repoint-pytest-suite-
at-pin`, a separate lane) also edits `.github/workflows/pytest-suite.yml`,
still OPEN at this commit (`gh pr view 687 --json state,mergeCommit` ->
`OPEN`, no merge commit). Its diff touches only the header comment above the
OpenSpec-CLI install step and the `actions/setup-node` block that follows it
(originally lines ~190-215 and ~393-420); this commit's only change to that
file is the codexFactory core checkout's `ref:` at line 372, a separate step
entirely — no line this commit touches is a line #687 touches, measured by
reading both diffs rather than assumed from file identity alone.

LOCKSTEP RE-MEASURED ON xFactory `main`: unchanged in kind, carried forward
undischarged against the same floor size as before (see this commit's own
addition to `contracts/review-lane-pin.yaml`'s `lockstep.reason`).

VALIDATED. `pytest tests/review_lane_pin -q`: 73 passed / 2 skipped / 22
subtests (no core on disk, matching the prior advance's shape) and 75 passed
/ 0 skipped / 43 subtests with `PINNED_CORE_CHECKOUT` at a codexFactory
checkout of `67a6ffc9`. `OPENSPEC_TELEMETRY=0 openspec validate --all
--strict`: 93 passed / 0 failed. `validate-sequenced-after.py .` and
`--ledger-diff`: consistent with the corpus (172 rows), no row moves. All
four touched YAML files re-parse. `git diff --stat` against origin/main is
exactly the five sites plus `tasks.md`.

Packet boxes ticked in `openspec/changes/mirror-floor-addition-grace/
tasks.md`: 4.1 (the regeneration, cxF #212 -> 67a6ffc9, landed at f6724f0,
the negative control's refusal observed), 4.2 (this advance), 4.3 (the
non-ancestor retirement, measured), 6.1 and 6.2 (Brett Heap's ratification,
verbatim "ratify the companion when green, then realize it", applied at head
ce9a81e, recorded in review/ratification-2026-09-05.md; decisions A-F stand
as recommended). 5.2, 5.3 and 6.3 remain open — they are evidence from a REAL
advisory/required run and a codexFactory-owned value, not this commit's to
claim.

Do NOT merge on this commit alone: STEP (2) of the two-repository act,
opened for review.

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…or joins the floor (67 -> 68), the first advance that lands with no red before it (#702)

* Re-pin the decision core at codexFactory #226: review-lane-floor-mirror joins the floor (67 -> 68), the first advance that lands with no red before it

STEP (2) of the two-repository act. codexFactory issue #203, ruled option
(c) by Brett Heap ("rule c, this lane authors it"). Brett Heap's word in
session 2026-09-05 ~20:0xZ, verbatim "land the companion archive when green,
then do the regeneration". The companion archive landed as openxFactory PR
#699 (merge b5eddaa) — the openxFactory half of archiving
`mirror-floor-addition-grace` itself, promoting
`openspec/specs/review-lane-floor-mirror/spec.md` under a floor that is an
exact enumeration. PR #699 landed GREEN under the grace: the required lane
held the surface `covered-pending` (`created_by_candidate`, tolerance 3) and
the advisory lane printed `pending_floor_extension` naming the path — the
first promotion in this programme's history that did not block the pull
request that caused it.

codexFactory PR #226 (MERGE COMMIT `ad15a8988490bf19c659254a92354987ec3a4028`,
merged 2026-09-05T21:52:00Z) then ran `generate_specs_floor_block.py --write`
at openxFactory `b5eddaa3` — PR #699's own merge commit, a commit reachable
from openxFactory `main` (`git merge-base --is-ancestor` holds) — closing the
deferral: `generated_at` / `--ref` move `f6724f04` -> `b5eddaa3`;
`entry_count` moves 59 -> 60; the floor total moves 67 -> 68. This commit is
the five-site advance that regeneration makes owed.

## Five sites, before -> after

| Site | Before (`67a6ffc9`) | After (`ad15a898`) |
|---|---|---|
| `contracts/review-lane-pin.yaml` `core_commit` | `67a6ffc932da44ebe1529d8cc25ab222b60a4ca1` | `ad15a8988490bf19c659254a92354987ec3a4028` |
| `.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` | `67a6ffc9…` | `ad15a898…` |
| `.github/workflows/merge-master-approval.yml` core checkout `ref:` | `67a6ffc9…` | `ad15a898…` |
| `.github/workflows/pytest-suite.yml` core checkout `ref:` | `67a6ffc9…` | `ad15a898…` |
| `contracts/review-lane-floor-snapshot.yaml` (byte copy) | sha256 `18389a3d…3521a8`, 15402 bytes, blob `fdcd9f7e834a487d96cb87b8cc0c3ef5d6a4d771`, entry_count 67 | sha256 `b4dcf676…45bf241`, 15456 bytes, blob `3912c660649f0258f85fccbf14a1c1c4ce465296`, entry_count 68 |

Exactly ONE 40-hex commit-shaped token remains in `review-lane-pin.yaml`
(`core_commit`), verified with `\b[0-9a-f]{40}\b` — the sha256 digest is 64
hex characters and matches no 40-char word-bounded substring of itself.

## Witnesses

At codexFactory `ad15a898`,
`scripts/merge_master/openxfactory-review-authority-floor.yaml`:
sha256 `b4dcf676e388e7984da90a8e71b135cc06f2d740b34a41a86de663bc145bf241`,
15456 bytes, blob `3912c660649f0258f85fccbf14a1c1c4ce465296` — three-way
identity confirmed: `git show ad15a898:…floor.yaml | sha256sum` == the
vendored copy's `sha256` == `cmp` byte-for-byte against the vendored file on
disk == `git hash-object` on the vendored file matches the blob `git
rev-parse ad15a898:…floor.yaml` names.

**THE FLOOR GREW BY ONE AND IT IS THE SPEC promoted by #699.** `git diff
67a6ffc9 ad15a898 -- scripts/merge_master/openxfactory-review-authority-floor.yaml`
in the pinned core, read in full rather than summarized: the block's
`generated_at` / `--ref` header lines move `f6724f04` -> `b5eddaa3`,
`entry_count` moves 59 -> 60, and ONE entry line is added —
`openspec/specs/review-lane-floor-mirror/spec.md` — inserted in sorted order
among the other `openspec/specs/**` paths. The EIGHT hand-reasoned
chokepoints are untouched and nothing is removed, so no dead entry arrives
with it.

## No collision measured

openxFactory PR #687 (`change/repoint-pytest-suite-at-pin`), the lane noted as
a collision risk in the prior re-pin, is **MERGED** (`gh pr view 687
--json state` -> `MERGED`) and already part of `origin/main` before this
branch was cut, so its edits to `.github/workflows/pytest-suite.yml` are
already in this tree; this commit's only change to that file is the
codexFactory core checkout's `ref:`, a separate line from anything #687
touched. No other open pull request was found editing any of the four
touched files.

## Lockstep re-measured on xFactory main

xFactory's own two merge-master surfaces still pin codexFactory
`f4702f647c285012c15717043332f68f1edefc29` (the 2026-08-28 ceremony), read
from the local aggregation checkout without fetching or writing to it (never
touch `~/projects/xFactory`). At that commit,
`scripts/merge_master/openxfactory-review-authority-floor.yaml` still carries
exactly FOUR never-clearable paths, not the sixty-eight this pin now names —
the divergence this file's own comment history already records stands
unchanged by this advance, and is re-stated (SIXTY-SEVEN -> SIXTY-EIGHT) where
it is a live claim; the dated historical paragraphs describing each prior
advance are left untouched.

## Validated

- `pytest tests/review_lane_pin -q` (no core on disk): **73 passed, 2
  skipped, 22 subtests passed.**
- `PINNED_CORE_CHECKOUT=<codexFactory clone at ad15a898> pytest
  tests/review_lane_pin -q`: **75 passed, 43 subtests passed, no skips** —
  the freshness verifier and the vector replay both ran.
- `OPENSPEC_TELEMETRY=0 openspec validate --all --strict`: **95 passed, 0
  failed.**
- `python3 scripts/validate-sequenced-after.py . --ledger-diff`: **consistent
  with the corpus (174 rows), no row moves** — this re-pin is not an OpenSpec
  change and touches no ledger row.
- All four touched YAML files (`review-lane-pin.yaml`,
  `review-lane-floor-snapshot.yaml`, and the two workflow YAMLs) re-parse
  clean under `yaml.safe_load`.
- `git diff --stat` against `origin/main` is exactly the five sites, four
  files, no more.

## Frozen records untouched

Both governing packets are ARCHIVED: openxFactory
`openspec/changes/archive/2026-09-05-mirror-floor-addition-grace/` and
codexFactory `2026-09-05-add-floor-addition-grace/`. Neither `tasks.md` is
edited — they are frozen records, and this advance's own obligation is not a
box either packet declares (the second post-grace regeneration is the grace
mechanism operating as designed, not a packet task). Only the five pin sites
move.

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Copilot round 1: the live counts read 68 and 60 everywhere the pin speaks in the present tense

Copilot thread PRRT_kwDOTAvnrs6fnUaW on `contracts/review-lane-pin.yaml:521`
(PR #702) found a genuine miss: the pinned_members `why:` for
`openxfactory-review-authority-floor.yaml` says "SIXTY-EIGHT never-clearable
paths as of this advance" two lines above, then still read "8 + 1 rather
than 67 equally-reasoned chokepoints" a few lines later — the SAME live
sentence describing the document's own self-description, left at the old
count. Fixed: 67 -> 68.

Swept the whole file for every other live-tense count claim
(`SIXTY-SEVEN|67-entry|\b67\b|FIFTY-NINE|\b59\b`) and classified each hit:

- Every `59`/`67` inside the dated "ADVANCED ... TIME" / "UNCHANGED IN KIND
  BY THE Nth ADVANCE" paragraphs (declared_from's comment history and the
  pinned_members `why:` narrative) is HISTORICAL — each paragraph is a frozen
  record of what was true at ITS OWN advance, and later paragraphs already
  supersede them without editing them in place, exactly as the eighth's
  paragraph was left alone when the ninth's was added. Left untouched.
- The `FIFTY-NINE` at "the same FIFTY-NINE the `67a6ffc9` advance carried,
  plus ONE" is a correct backward reference to the PRIOR pin's count, not a
  stale current-count claim. Left as written.
- `lockstep.reason`'s last paragraph, "UNCHANGED IN KIND BY THE NINTH
  ADVANCE ... this file now names `67a6ffc9`, carrying the SAME 67-entry
  floor as `e57643a7`", was the field's live endpoint before this advance and
  is now itself historical — same treatment as every earlier "now names"
  paragraph in that field once superseded. Left it exactly as it reads (it
  was true when the ninth advance made it true) and APPENDED a new paragraph,
  "THE GAP WIDENS AGAIN, THE TENTH ADVANCE, 2026-09-05", which is now the
  field's live endpoint: names `ad15a898`, a SIXTY-EIGHT-entry floor, ONE
  MORE than `67a6ffc9`'s sixty-seven (the added entry being
  `openspec/specs/review-lane-floor-mirror/spec.md`), and records that this
  advance — unlike the eighth and ninth — actually grows the floor, so the
  gap against xFactory's still-unmoved `f4702f64` (re-read from the local
  aggregation checkout without fetching or writing to it; both its surfaces
  still name `f4702f64` verbatim) widens again rather than holding.

Validated on this head: `\b[0-9a-f]{40}\b` still matches exactly ONE token
(`core_commit`); `pytest tests/review_lane_pin -q` (no core) 73 passed / 2
skipped / 22 subtests; the same with `PINNED_CORE_CHECKOUT` at codexFactory
`ad15a898`, 75 passed / 43 subtests, no skips; all four pin-site files
re-parse clean under `yaml.safe_load`; `git diff --stat` against the prior
commit on this branch touches only `contracts/review-lane-pin.yaml`.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants