Repository navigation
Realize the re-pin lane: propose the pin advance, never dispose of it (mirror-floor-regeneration-automation) - #715
Conversation
…tion task 3) WIP. Pure functions only: plan_advance, apply_advance, verify_advance (the post-write RE-READ decision M-2 asks for), witnesses_of (computed from the bytes written, decision M-3), decide_idempotent_action and render_pr_body. No network, no gh, no merge. Lane: openxfactory-2
…ks 3.1-3.9) WIP alongside the decision module. The workflow holds only what a workflow can do -- triggers (hourly sweep as the MECHANISM, floor-regenerated dispatch as an accelerator whose payload is never read), the App identity, the two `gh api` reads, and the pull request. Every refusal lives in scripts/review_lane_repin.py where a test can drive it. The binding is a TEMPLATE with placeholder provider/vault and secret NAMES only -- no value. degraded_mode_permitted: false is decision M-6 in machine-readable form: no `|| github.token` fallback anywhere in this lane. Lane: openxfactory-2
…4.5) 47 tests, 0 skips. Every test names its scenario in its docstring, and test_every_ratified_scenario_has_a_test READS the ratified delta and fails on any scenario no docstring claims -- so the mapping is measured, not declared. The negative controls build a COPY OF THE REAL FIVE SITES and break them the way a real drift would (a renamed key in the shipped bytes), because #699's lesson was that a control which hard-codes its inputs measures nothing. Each one is paired with a positive that passes the same assertion (task 4.5). Also here: the stale-sha sweep the module's docstring promises -- every tracked file is swept for a pin-shaped VALUE line naming the core commit and the files found must be exactly the declared sites, so a sixth site fails a test instead of silently going stale. VALUE lines only: the pin file and merge-master-approval.yml carry the commit many times in advance-history comments, and a sweep that flagged those would be unusable. No conditional skips, so EXPECT_SKIPPED: "21" does not move. Lane: openxfactory-2
The lane runs the EXISTING tests/review_lane_pin suite -- unmodified, no -k, no --deselect, no skip -- against the tree it just wrote, with codexFactory checked out at the CANDIDATE commit. Checking out the old pinned core would compare the new snapshot against the old document and red every honest advance, which is why the ref is the candidate and a test holds it there. This asks for no exemption and grants none (requirement 5 / M-4): it is the same judge, run early, so a bad advance arrives as a failed run instead of a red pull request somebody has to triage. The pull request's own run stays the authority. Lane: openxfactory-2
… it (task 3/5) There was no re-pin runbook in this repository to extend: the procedure lived in `contracts/review-lane-pin.yaml`'s own `refresh:` field and its comment history. So this creates one, linked into the README doc index per working rule 4. It documents BOTH cycles deliberately. The lane replaces the transcription, not the operator: the hand cycle stays, with its commands, because it is what runs when the lane refuses or the credential is unavailable. Status: draft, and the reason is in the document: tasks.md section 5 (the first unattended cycle) is open by design and no refusal has been observed on a real run. The "What is not yet proven" section says so rather than leaving it to be discovered -- including that this is the first `schedule:` in any workflow here and should be watched. Lane: openxfactory-2
… why
22 boxes ticked, each with the measurement behind it rather than a claim.
Groups 1, 3 and 4 are done; 2.3 is done and measurable.
UNTICKED, deliberately, each with its reason written in:
* 2.1/2.2 -- codexFactory's half is a sibling lane's realization, in flight;
until it lands the cycle is HALVED, not closed.
* Group 5 -- no unattended cycle has been observed, and none can be right
now: the floor at codexFactory main is byte-identical to the vendored
snapshot, so the lane's correct behaviour today is the named no-op. 5.7
already refuses a tick on a test-only observation.
* Group 6 -- owner's acts; an agent may not tick one. 6.4 now names the
exact App permissions Brett's act needs, in both vocabularies.
Also recorded under section 3: the OUTBOUND dispatcher leg the realization
brief asked for is NOT taken, on three measured grounds -- it is outside the
ratified code_surface; it would need `contents: write` on codexFactory, which
requirement 8's third scenario forbids this binding; and its premise does not
hold, because merge-master-approval.yml (which computes the pending report)
runs on pull_request_target only, while pytest-suite.yml (which runs on main)
computes no report at all. The packet wins over the brief and the difference
is written down, with the exact next step if the leg is wanted.
3.1 records that the lane ships as `review-lane-repin`, not the task's
`floor-repin`, and why.
Lane: openxfactory-2
Lane: openxfactory-2
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
…em equal `owner:` alone -- the shape pytest-suite.yml uses -- yields a token good for every repository this App is installed on in the organization. That is right there: it is a read for a continue-on-error step. It is too wide HERE, because this token can push a branch and open a pull request. A binding that declares least privilege and then mints an org-wide token is declaring one thing and doing another, so the mint now names exactly the two repositories `privileges:` names, the binding records the same list as `scoped_to:`, and a test requires the two to be EQUAL rather than merely both present -- so the declaration cannot drift from the mint. An App not installed on both makes the mint fail, which is the loud refusal the binding asks for rather than a degradation. Lane: openxfactory-2
…roperly Two of my own assertions were wrong in ways a reviewer would rightly flag. 1. `test_the_bots_pull_request_meets_the_same_bar` asserted `EXPECT_SKIPPED: "21"` literally. That number legitimately moves whenever a conditional skip is added or removed anywhere in the suite, WITH its reason -- the required workflow says so itself. Pinning it here would red an unrelated lane's honest pull request and teach everyone to edit this file, which is the opposite of a guard. What must not happen is the pin DISAPPEARING or the named watch being dropped, so that is what is measured now: `EXPECT_SKIPPED: "<digits>"` present, verifier still watched by name. 2. `test_the_lane_asks_for_no_exemption_of_its_own` carried a nonsense assertion (a path with an "x" appended). Replaced with the distinction that actually matters: the lane may write NO test at all, and while the required WORKFLOW is writable -- it is pinned site 4 -- its pattern is proven to reach exactly one line, that line is the core checkout `ref:`, and it is not EXPECT_SKIPPED. Lane: openxfactory-2
There was a problem hiding this comment.
🟡 Changes recommended
It introduces an ineffective/no-op assertion in the new test suite and installs unpinned PyPI dependencies in the new workflow, undermining test intent and run determinism/supply-chain posture.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This pull request realizes the ratified mirror-floor-regeneration-automation packet by adding an automated “re-pin” lane that proposes (but never lands) updates to the pinned codexFactory decision core and its associated floor snapshot witnesses, along with a runbook and an extensive scenario-driven test suite to measure the lane’s guarantees.
Changes:
- Add the re-pin lane workflow (
review-lane-repin) and a pure decision module (scripts/review_lane_repin.py) that plans/executes an advance or refuses. - Add comprehensive tests (
tests/review_lane_pin/test_repin_lane.py) that measure each ratified scenario and validate workflow/binding invariants. - Add operational documentation (runbook + README index entry) and update the packet’s
tasks.mdwith realized evidence.
File summaries
| File | Description |
|---|---|
tests/review_lane_pin/test_repin_lane.py |
Adds scenario-mapped tests that measure the lane workflow shape and the decision module’s refusal/advance behavior. |
scripts/review_lane_repin.py |
Introduces the lane’s pure planning/writing/verification logic and PR-body witness rendering. |
.github/workflows/review-lane-repin.yml |
Adds the scheduled/dispatch/manual workflow that resolves the candidate core, runs the decision module, self-judges, and opens/updates the single PR. |
contracts/review-lane-repin-binding.template.yaml |
Declares the credential binding template (no live values) and least-privilege constraints for the lane identity. |
docs/review-lane-repin-runbook.md |
Documents the bot cycle and the still-supported hand cycle, including what is not yet proven. |
README.md |
Adds the runbook to the core domain-neutral docs index. |
openspec/changes/mirror-floor-regeneration-automation/tasks.md |
Ticks realized tasks with measured evidence and records deliberate deviations/omissions. |
Review details
Suppressed comments (1)
.github/workflows/review-lane-repin.yml:344
pytestis installed without version/hash pinning here. If you install the repo's hashed lockfile earlier (it already pinspytest), you can drop this unpinned install and keep the run deterministic.
# second run "with a codexFactory checkout on disk".
#
# `.merge-master-core` is never staged: step 6 stages four named paths.
- name: Check out the candidate core so the freshness verifier can run
- Files reviewed: 7/7 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.
🔵 Needs a closer look
There are a few concrete documentation inconsistencies (including a host-absolute path in the new runbook that conflicts with repo rules) that should be corrected before approval.
Review details
Suppressed comments (3)
Previously missed (3) — in code that hasn't changed since the last review.
.github/workflows/review-lane-repin.yml:96
- This comment references a test name that doesn’t exist in the repo, which makes the “payload is never read” claim harder to verify from the code. Point it at the actual test that enforces the absence of client_payload usage.
docs/review-lane-repin-runbook.md:129 - This runbook includes a host-absolute path example (
/path/to/...), which violates the repo’s “no host-absolute paths in committed files” rule. Use a placeholder without a leading slash so readers don’t copy an invalid absolute path format.
openspec/changes/mirror-floor-regeneration-automation/tasks.md:268 - This line hard-codes a test count that’s already inaccurate (there are currently 49
def test_...methods intest_repin_lane.py). To avoid repeated doc drift, either update the number or remove the count entirely.
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
The opening paragraph said group 1's boxes "are still unticked" and gave the reason: a box that moved on authorship would be a false completion "the moment a ratification did not follow". A ratification DID follow, and I then ticked them -- leaving the file asserting something its own checkboxes contradicted. The paragraph is kept unchanged as the record of this file at authoring, per the packet's own habit, and a dated note states the position now: which groups are ticked, that 5 and 6 stay open, and that NOTHING is archived because release-realization wants one complete unattended cycle first. Lane: openxfactory-2
There was a problem hiding this comment.
🔵 Needs a closer look
A few fixes are needed for accuracy/robustness (misreferenced test in workflow comments, brittle line-numbered refusal messaging, unhandled-exception path, and an absolute-path example violating repo constitution).
Review details
Suppressed comments (4)
Previously missed (4) — in code that hasn't changed since the last review.
scripts/review_lane_repin.py:658
plan_advance()(and the YAML parsing/witness helpers it calls) can raise exceptions (e.g., malformed/changed floor format), which would crash the workflow step with a stack trace rather than producing a structuredRefusalstage. Since the lane’s contract is “refuse loudly” with a machine-readable stage, wrap planning in a small try/except and convert unexpected exceptions into aRefusalso the workflow output remains stable and diagnosable.
.github/workflows/review-lane-repin.yml:96- The workflow comment cites a test (
test_the_lane_reads_no_trigger_payload) that doesn’t exist intests/review_lane_pin/test_repin_lane.py, which makes the workflow’s self-documentation misleading during maintenance. Update the reference to the actual test that asserts the payload is not read.
docs/review-lane-repin-runbook.md:129 - This runbook line uses a host-absolute path (
/path/to/...). Repository constitution forbids committing host-absolute paths; use a repo-relative example or a placeholder that doesn’t start with/.
scripts/review_lane_repin.py:373 - This refusal reason hard-codes a specific line range in
contracts/review-lane-pin.yaml(lines 375-382). That line number will drift as the file evolves, making the error message inaccurate even when the underlying reasoning is still correct. Prefer referencing the file/section without fixed line numbers.
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
…sert the true writable-set property Both findings are real. 1. UNPINNED INSTALLS (:211 and :341). `pip install pyyaml` and `pip install pytest` resolved whatever PyPI served at run time -- no version, no hash -- and this lane advances THE PIN THAT CHOOSES THIS REPOSITORY'S JUDGE, so it is the last place to take an unpinned dependency. Replaced with the repository's existing pattern, copied from pytest-suite.yml:450: `pip install --require-hashes -r requirements/hermes-runtime-contracts.lock`. ONE install now covers both sites: the lock already carries pyyaml==6.0.3 (the module's only import) and pytest==9.1.1 (the freshness run), so the second install is gone rather than pinned. New `test_the_lane_installs_only_from_the_hashed_lockfile` enumerates every pip install in the lane and requires the hashed form, and separately checks the lock really carries both -- so a single install cannot be a pin that omits the dependency. Proven capable of failing: adding `pip install requests` reds it; removing it greens. 2. THE FALSE DOCSTRING. The `+ "x"` no-op assertion was already gone (5db2bae), but its docstring still claimed "neither judge file is among them" -- and that is false, deliberately: `.github/workflows/pytest-suite.yml` IS the required suite and IS writable, because it is pinned site 4 carrying the core checkout `ref:`. Rewritten to assert the property that is actually true, in three measured parts: the writable set EQUALS the paths PINNED_SITES names (an equality, so a fifth cannot be added quietly); test_floor_snapshot.py and every other test are ABSENT from it; and inside the judge file it may write, its pattern reaches exactly one line, that line is the `ref:`, and it is not EXPECT_SKIPPED. The docstring now says exactly that. No pin moved: core ad15a898, snapshot b4dcf676, entry_count 68. Lane: openxfactory-2
There was a problem hiding this comment.
🔵 Needs a closer look
There are a few concrete correctness/convention issues in newly added docs and workflow comments (misreferenced test name, brittle error text, and a host-absolute path placeholder) that should be corrected before approval.
Review details
Suppressed comments (3)
Previously missed (3) — in code that hasn't changed since the last review.
scripts/review_lane_repin.py:373
- This refusal reason hard-codes
contracts/review-lane-pin.yamlline numbers (lines 375-382), which will drift as the file evolves and can become incorrect/misleading in the lane’s surfaced error output.
.github/workflows/review-lane-repin.yml:95 - The workflow comment cites a test name that does not exist (
test_the_lane_reads_no_trigger_payload), so the reference is misleading and can’t be used to locate the real guard that asserts the payload is unused.
docs/review-lane-repin-runbook.md:129 - This runbook command includes a host-absolute path placeholder (
/path/to/...), but the repo constitution forbids committed host-absolute paths and asks for repo-relative paths or runtime resolution (.specify/memory/constitution.md:72-73).
- Files reviewed: 7/7 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-2 (openXfactory-2) RULING — PIN-ONLY READING STANDS. Brett Heap, in session (lane openXfactory-2, session de9d8fd4), 2026-09-06T08:43Z, verbatim: "merge both when green, pin-only reading stands". The faithful reading of |
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
|
Lane: openxfactory-2 (openXfactory-2) LANDING — lane openxfactory-2 (openXfactory-2), session de9d8fd4, 2026-09-06T08:49:47Z, PR #715 into openxFactory main Provenance: landed on Brett Heap's word, in session, verbatim "merge both when green, pin-only reading stands" (2026-09-06T08:43Z); parent codexFactory #242 LANDED first → merge commit 55acd294. Pre-flight at 2026-09-06T08:49:47Z: head 4cca35d; all 9 checks green incl. pytest-suite; 0 of 2 threads unresolved; MERGEABLE; 1 behind main (3d1b8cc, another lane's commit, no file overlap — listed above in this lane's records); test-merge onto 3d1b8cc in this lane's own clone: clean, per-change sweep ledger consistent, review_lane_pin + sequenced_after tests green; no pin moved; no other LANDING window. Codex quota-refused. Squash --admin. |
|
Lane: openxfactory-2 (openXfactory-2) LANDED — lane openxfactory-2 (openXfactory-2), 2026-09-06T08:49:59Z, PR #715 → 1897f28 (squash |
…literal, and the specs/025 row (#1136) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **`lockstep.status: diverged → converged`, with its test literal, in one commit — the fourth re-point ceremony discharged the obligation.** Plus the `specs/025` ledger row, which is two transitions stale and is caught up here. ## The act in the other repository This file's `lockstep` block has said, since it was written, that re-converging is *"an act in ANOTHER repository and this pull request does not take it."* That act has now been taken. **`opensoft/xFactory#475` → merge commit `c88d1fdd`, 2026-09-21T21:55:36Z**, the FOURTH `MIGRATION_PIN` re-point ceremony, advanced `1f131a23 → b21f0100` at its three surfaces in one commit (`96d0b91b`, 3 files / 3 insertions / 3 deletions) on Brett Heap's explicit ceremony word of 2026-09-21 — *"(a) for all four, (i) for the tag, keep going"*, item 2, recorded at [#656 comment 5767804734](#656 (comment)). **The direction matters and is the reason this convergence is a discharge rather than another advance.** The ceremony's target was not negotiated: `b21f0100` is the commit `core_commit` here has named since PR #1122 (merge `38f826c2`, 2026-09-18). The aggregation moved **to** this file. That is exactly what `obligation:` asks for — *"A future re-point ceremony should converge all three surfaces onto one commit"*. **And the ORDER is the part that is genuinely first** — stated precisely, because a looser version of this claim was wrong and Copilot caught it (below). Every earlier convergence was a **paired window**: at the third, `opensoft/xFactory` PR #423 merged 2026-09-10T19:15:29Z and this file's `core_commit` followed the same evening at PR #922 (merge `6f95ff57`, 21:55:20Z) — two halves of one ruled pairing (OQ-1 option C, *"paired with openxFactory's five-site advance"*). This time the two moves are **three days apart** and were never a pairing: `core_commit` advanced on 2026-09-18 by an hourly lane that proposes such advances on its own, and the ceremony caught the aggregation up to where this file had been sitting since. That is the first time the aggregation has converged onto a commit this file was **already** pinned to. ## Measured, not assumed Taken the way every measurement in this field has been taken, and deliberately taken **two commits past the ceremony merge**, at xFactory `main` `cfe27de3`, so the reading survives a routine submodule-pointer sync (PR #476) instead of resting on the merge commit alone: | site | value | | --- | --- | | xFactory `.github/workflows/merge-master-approval.yml:152` | `b21f0100…` | | xFactory `.github/workflows/council-convening-lane.yml:308` | `b21f0100…` | | xFactory `tests/test_merge_master_workflows.py:66` `MIGRATION_PIN` | `b21f0100…` | | openxFactory `contracts/review-lane-pin.yaml:60` `core_commit` (main `6b298a1e`) | `b21f0100…` | Four sites, one commit. That a **routine** sync ran in between and left all three xFactory surfaces alone is itself the aggregation's working rule 2 holding: `MIGRATION_PIN` moves at a ceremony and at nothing else. **And the ceremony's after-check passed**, which is what makes `converged` a claim about behaviour rather than only about text. Gates G1–G4 are recorded in `96d0b91b`'s own commit message; **G5** — the live lane re-proved at the NEW pin — is recorded at [xFactory#475 comment 5769610282](opensoft/xFactory#475 (comment)): three post-landing runs (`35660330263`, `35660933433`, `35661430301`) each concluded `success`, each with `b21f0100` read out of its own checkout log and **zero** occurrences of the superseded pin, each judging the **same candidate object** as the pre-act baseline run `35658107765`, and each emitting a decision whose canonical sha256 is identical to that baseline's. The pin moved and the verdict did not. ## What moves here, and why it is one commit | file | change | | --- | --- | | `contracts/review-lane-pin.yaml` | `lockstep.status` `diverged` → `converged`; an appended `reason:` paragraph recording the convergence | | `tests/review_lane_pin/test_review_lane_caller.py` | `test_the_pin_records_its_lockstep_state_with_the_aggregation_pin`'s asserted literal `diverged` → `converged`; one appended docstring paragraph | | `specs/025-openxfactory-review-lane-caller/tasks.md` | task 6.5 gains a dated append; **stays unticked** | The first two move **together, in one commit**, because that is this field's own written convention and what every prior transition did — PR #483 / `d118bc79` (converge), PR #569 / `47f90080` (diverge), the 2026-09-10 flip `d8bdc58a`, the 2026-09-18 re-divergence `7fd8fa5f`. The assertion is a literal `assertEqual`, not a membership test, so flipping the data alone turns a green `pytest-suite` red. **No pin value moves in this diff.** `core_commit`, `floor_snapshot.sha256` and `floor_snapshot.entry_count` are untouched; the vendored snapshot and both workflows are not in the diff at all. Nothing here touches `MIGRATION_PIN` itself — that is the ceremony's act and it has already landed. ## Four decisions worth naming rather than leaving to be found **1. `reason:` is APPENDED, not rewritten.** The field's own text states the convention (*"an appended fix, not an edit of it, per this field's own append-only convention"*), and all four prior transitions appended. The appended paragraph ends the field, so `reason:` now reads as the converged narrative — without deleting the dated measurements the ceremony trail is built on. **2. Every SHA in the contract is written SHORT.** `test_the_pin_carries_exactly_one_commit_shaped_value` permits exactly ONE 40-hex token in the whole file, and that one is `core_commit`. Verified after the edit: the only 40-hex token in the file is `b21f010013fa51960c77377a8582943435b6db32`. **3. `converged_with:` keeps TWO entries and gains no third.** The test at line 636 asserts `len == 2` with the message *"both xFactory merge-master surfaces must be named"*. Those two are the **judging** surfaces — where a core is actually checked out and run — while `MIGRATION_PIN` is the aggregation's own test holding them identical to each other. It is named in the measurement without being promoted to a member, as through both prior cycles. Adding a third would change a shape no transition has touched since `d118bc79`. **4. The header comment above `lockstep:` is left exactly as written.** It still narrates the 2026-09-01/09-04 forced divergence and still ends *"written down as diverged"*. It is a **dated measurement**; the 2026-09-10 convergence left it standing for the same reason. Rewriting a dated measurement is how a record stops being one, and `lockstep.status` — not that comment — is where the live state is declared. The appended paragraph names this tension explicitly so the next reader finds it already seen. ## The `specs/025` row, and why it stays unticked Task 6.5 was last written on **2026-09-02** (`47f90080`). Measured rather than remembered — `git log -- specs/025-openxfactory-review-lane-caller/tasks.md` records no commit after it — so **neither** lockstep transition since wrote there: `d8bdc58a` and `7fd8fa5f` each moved the contract and its test literal and stopped. The row was two transitions stale, and the append says so rather than quietly filling the gap. It now records all three: the 2026-09-10 convergence, the 2026-09-18 **routine** re-divergence, and this ceremony. **It stays `- [ ]`, and the reason is new.** Its own criterion — *"BOTH halves true at once"* — is satisfied for the first time. What withholds the tick is not a missing act but the **durability** a tick asserts: since `mirror-floor-regeneration-automation` was realized, the hourly `review-lane-repin` lane can advance `core_commit` between ceremonies with auto-merge armed, and the 2026-09-18 re-divergence is precisely that happening. Convergence is therefore falsifiable by this repository's own automation within the hour, while a ticked box claims a standing state. The live state is `lockstep.status`; this row carries history — the same idiom as 6.3's *"STAYS UNTICKED, and the reason has changed"*. Ticking it, or narrowing the `obligation:` clause that still assumes only ceremonies advance this pin, is the ratifier's act. ## Proven - `python3 -m pytest tests/review_lane_pin -q` → **198 passed, 2 skipped, 54 subtests** — the same counts `d8bdc58a` and `7fd8fa5f` each recorded, with the assertion now reading `converged` against the file's `converged`. - `python3 openXwallet/scripts/wallet-yaml-syntax-gate.py .` (the pinned gate the required `wallet-validation` check runs) → **exit 0**. - `scripts/validate-pin-registrations.py`, `scripts/validate-manifest-digests.py`, `scripts/validate-workflow-contracts.py` → **exit 0** each. No validator names this contract; `tests/review_lane_pin/` is what stops it drifting, by its own CODEOWNERS note. - `yaml.safe_load` of the edited contract: `status: converged`, `len(converged_with) == 2`, exactly one 40-hex token in the file. ## Review round 1 — three findings, all fixed rather than argued Copilot reviewed at `fe7ca396` and raised three Low findings. **All three were factual errors in text this branch added**, so all three were fixed (`587fdc40`), replied to with the measurement, and resolved — none was argued down. 1. **`contracts/review-lane-pin.yaml` — the "first convergence" claim was false.** The appended paragraph said this was the first convergence closing a re-divergence this repository caused; the 2026-09-10 flip already did that, closing the 2026-09-01 re-divergence the (b′) activation caused here by hand. The paragraph now says it closes the **2026-09-18** re-divergence, explicitly declines the broader claim, and states what is actually first — the unpaired order described above. 2. **`specs/025` — the count was wrong.** *"discharged and re-incurred TWICE MORE"* distributed "twice more" over both verbs. Measured from the paragraph above: **discharged twice more** (2026-09-10, 2026-09-21), **re-incurred once more** (2026-09-18). Fixed, and the ambiguous *"this row missed both"* became *"this row recorded none of the three movements"*. 3. **The test docstring carried an unqualified present tense.** *"THE CURRENT CONTRACT IS `diverged`; … is not taken here"* sat in the same docstring as the new paragraph and directly above the assertion, contradicting both. It moves to the past tense of its own dated measurement. **This is deliberately not done to the contract's header comment** one file over: that header is a dated narrative standing *above* the field, and `lockstep.status` is where the live state is declared, so the appended paragraph records that tension instead. A sentence inside the same docstring as its own contradiction is a different thing from a dated narrative elsewhere in the file. A fourth correction was **self-caught** on a read-back and is not Copilot's (`ac764dbd`): the parenthetical pointed *"two paragraphs down"* at a paragraph one down. ## Review round 2 — one High finding, answered by measurement and **recorded in the file** Copilot's review at `ac764dbd` carries exactly one finding, severity High: *routine `review-lane-repin` advances can leave `lockstep.status` and the test literal stale, so the next advance would have the contract reporting `converged` while xFactory sits on the old pin.* **The premise is correct, and it was already in this diff** — appended `reason:` item (3) says this convergence *"IS FALSIFIABLE BY THIS REPOSITORY'S OWN AUTOMATION WITHIN THE HOUR"*. Measured at the source: `review_lane_repin.WRITABLE_PATHS` is `(PIN_FILE, SNAPSHOT_FILE, MERGE_MASTER_WORKFLOW, PYTEST_SUITE_WORKFLOW)`, within `PIN_FILE` it rewrites only regex-anchored pin sites, and **the string `lockstep` does not occur in that file at all** — so the lane cannot move this field even in principle. **It does not argue for withholding `converged`, for three measured reasons.** 1. **The hazard is symmetric.** `diverged` is falsifiable by the same lane in the same way, and caught by nothing either — *"the assertion reads this file's own value, not the cross-repository fact"* (`7fd8fa5f`). Picking the value that is false today to guard against tomorrow is strictly worse. 2. **Today `diverged` is the false one.** Four measured sites name `b21f0100`, read at `cfe27de3`, two commits past the ceremony merge. 3. **The estate has already declared `converged` under exactly this regime.** `.github/workflows/review-lane-repin.yml` landed **2026-09-06** (`1897f282`, PR #715); the last `converged` declaration, `d8bdc58a`, is **2026-09-10** — four days later, lane live and auto-merge armed. **And rather than leave the answer in a review thread, `016d055c` records the REMEDY SHAPE in the field itself**, because this file is where this repository keeps records: (a) widen the lane's writable set to this field and its test literal so an advance leaving the aggregation behind writes `diverged` in the same proposed diff; or **(b) make the cross-repository fact assertable at all** — nothing today reads xFactory's three surfaces and compares them to this value, which is why a false `status` survives in *either* direction until a human notices, and why 2026-09-18's survived eleven days. **(b) is the better fix**, because (a) still leaves this file's truth depending on a lane remembering to write it. Both are behaviour changes to a realized capability (`mirror-floor-regeneration-automation`) and go through OpenSpec — which is exactly why neither rides here, and is the same disposition `7fd8fa5f` recorded in this same field: *"Narrowing that clause is the ratifier's act, not this diff's."* ## Path class and landing **No `openspec/changes/` path is touched, and the README "OpenSpec Records" block is not touched** — `specs/` is the Speckit feature tree. Rule 6's landing window therefore does not apply and this is a **plain gate**. `/contracts/review-lane-pin.yaml` is routed to @brettheap by CODEOWNERS and is a never-clearable floor member, so the merge-master lane will park it by design; the human gate is the landing act. **The holder lands this, not this actor.** Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-2 (openXfactory-2)
Refs codexFactory #232 (the governing issue for option (b); origin codexFactory #203).
REALIZES the ratified
mirror-floor-regeneration-automation(ratified 2026-09-06 by Brett Heap, verbatim "ratify both when green, then land them" — a PAIR word with codexFactory #235; recordopenspec/changes/mirror-floor-regeneration-automation/review/ratification-2026-09-06.md). DRAFT, and it does not merge itself or anything else.What this is
This repository pays the second half of every floor repair, and the half it pays is the half where a human retypes a digest. Twice on 2026-09-05 — PR #689 (18:17Z → 18:39Z) and PR #702 (22:08Z → 22:50Z) — a human copied one codexFactory commit id into four places and recomputed two numbers from a document's bytes. The pin file's own
refresh:field instructs exactly that, and adds: "Never hand-edit the copy: it is a witness, and an edited witness proves nothing."This lane is that sentence, executed. It PROPOSES and never disposes; the judgment — is this the core commit we mean to be judged by? — stays with whoever merges.
Files
scripts/review_lane_repin.pygh. Every refusal lives here so a test can drive it with a fixture instead of grepping shell..github/workflows/review-lane-repin.ymlcontracts/review-lane-repin-binding.template.yamltests/review_lane_pin/test_repin_lane.pydocs/review-lane-repin-runbook.mdREADME.mdopenspec/changes/…/tasks.mdNo pin moves in this pull request. All four commit sites still read
ad15a8988490bf19c659254a92354987ec3a4028and the snapshot still digests tob4dcf676…; the floor document at codexFactorymain(a4aa41b0) is byte-identical to the vendored snapshot, verified withcmp. Neither judge file is touched —tests/review_lane_pin/test_floor_snapshot.pyand.github/workflows/pytest-suite.ymlare absent from the diff, so LQ-A7, its two negative controls, the byte-identity verifier, its named-testcase watch andEXPECT_SKIPPED: "21"are all unchanged.Scenario → test
All 24 ratified scenarios, and the mapping is MEASURED rather than declared:
test_every_ratified_scenario_has_a_testreads the scenario titles out of the ratified delta and fails on any that no docstring claims.R1 — An automated pin advance only ever proposes
test_the_lane_opens_a_pull_request_and_stops_theretest_the_lane_never_writes_to_the_default_branchtest_the_advance_carries_nothing_but_the_advanceR2 — refuses a decision-core commit the source default branch does not carry
test_a_commit_not_on_the_source_default_branch_is_refused,test_an_unmeasured_reachability_is_refused_tootest_the_lane_resolves_the_source_default_branch_itselftest_an_unresolvable_source_default_branch_refuses,test_an_unresolvable_candidate_commit_refusesR3 — moves every pinned site in one commit or opens nothing
test_all_sites_are_re_read_before_anything_is_openedtest_a_site_that_did_not_move_discards_the_run,test_a_site_the_verifier_finds_stale_discards_the_run,test_the_cli_turns_a_partial_advance_into_a_refusal,test_an_unreadable_pin_refuses_before_it_planstest_one_commit_not_severalR4 — re-copies the snapshot and recomputes its witnesses from the bytes it wrote
test_the_snapshot_is_copied_not_editedtest_the_witnesses_are_computed_from_what_was_written,test_no_witness_can_be_supplied_from_outside,test_the_clears_set_is_measured_by_differencetest_a_missing_copy_refuses_the_whole_advanceR5 — judged by the freshness checks that already exist, with no exemption
test_the_bots_pull_request_meets_the_same_bar,test_the_lane_submits_itself_to_the_judge_before_proposingtest_no_author_keyed_exemption_exists,test_the_lane_asks_for_no_exemption_of_its_owntest_a_failing_automated_advance_is_repaired_not_waivedR6 — the pull request carries the witnesses its reviewer needs
test_the_body_states_the_before_and_after_for_every_witness,test_the_body_names_the_covered_pending_paths_it_clearstest_the_landedness_of_the_pinned_commit_is_evidencedtest_no_value_only_the_lane_could_know_appearsR7 — triggered by the pinned core's own movement, and every firing is idempotent
test_nothing_to_advance_is_a_clean_named_no_op,test_the_no_op_writes_nothing_and_exits_zerotest_a_hand_authored_source_change_is_picked_up_too,test_the_schedule_is_declared_against_the_ruled_tolerancetest_a_second_firing_does_not_open_a_second_pull_request,test_the_lane_is_serialized_and_never_cancels_a_delivery,test_the_workflow_asks_for_the_open_pull_request_by_branchR8 — runs under a declared credential binding and refuses rather than widening or degrading
test_a_missing_binding_fails_loudlytest_the_declared_binding_is_a_template,test_the_references_are_names_and_never_valuestest_the_binding_is_least_privilege_and_says_what_it_is_for,test_the_workflow_grants_exactly_what_the_binding_declaresThe negative controls MEASURE
#699exposed two controls in this family's previous packet that hard-coded empty sets and so passed while measuring nothing (ca9fafe6— "controls must MEASURE the same inputs as the shipped assertion"). So every fixture here copies the four shipped files into a temp tree and runs the real regexes over the real bytes; a site is broken the way a real drift would break it (core_commit:→core_committ:), not by stubbing the writer. Each negative has a named positive that passes the same assertion.Verification
openspec validate --all --strictat the PINNED CLI (@fission-ai/[email protected], verified against its content address, run throughscripts/validate-openspec-cli-pin.py— the one entrypoint the pin governs):Both exit 0, and both name the identical two pre-existing DISPOSITIONED findings —
add-chain-attestation / signed-execution-chain/spec.mdandadd-composed-view-authoring / ideation-dashboard/spec.md, accepted by Brett Heap 2026-09-05 "take exit 2". The failure set is unchanged in count and identity. The change itself validates clean on its own:Totals: 1 passed, 0 failed (1 items).pytest —
tests/review_lane_pin tests/sequenced_after tests/openspec_cli_pin tests/doc-health/test_workflow_contract.py tests/doc-health/test_workflow_guards.py -q -m "not postgres":The 2 skips are pre-existing (the byte-identity verifier's own, when no codexFactory checkout is on disk) and this work adds none — every one of the 47 new tests is unconditional, so
EXPECT_SKIPPED: "21"does not move and no skip-by-name pin is touched.The FULL
tests/ -q -m "not postgres"run was not completed locally, and I am saying which was run rather than implying the whole suite was: at 18% after ~20 minutes it was not going to finish in a useful window, and its early errors turned out to be an artifact of this clone rather than a finding. Measured rather than assumed — two branch-vs-main baselines, run in a worktree atorigin/mainfrom the same clone:origin/mainclearing+client-identity-roster1 failed, 194 passed, 50 errors1 failed, 194 passed, 50 errorsmanifest_digests+credential_contracts+conformance-gate+trust-anchor+scope_globs+proposal-support86 failed, 425 passed, 2 skipped86 failed, 425 passed, 2 skippedIdentical on both sides, and the cause is named in the errors themselves —
the pinned openXwallet reader is not at …/openXwallet/scripts/validate-openxwallet.py. Run 'git submodule update --init openXwallet'. The submodule is not initialised in this working clone; CI initialises the gitlink. This work introduces no new failure in any suite measured. The five suites listed above are the ones that judge this change, and the second table's set was run specifically because this pull request adds acontracts/file and a workflow.The decision module driven with LIVE inputs, exactly as the workflow calls it — the two
gh apireads made for real against codexFactory, the floor document fetched at the resolved head,--writepassed:git status --porcelainafter it: empty. So the no-op path is observed against the live repository, and--writeis proven inert when nothing is owed. This is NOT the lane running and it does not discharge any § 5 box — no workflow fired, no App token was minted, and nothing was proposed. It is the decision module with real inputs, and it is reported as that.Sweep ledger —
python3 scripts/validate-sequenced-after.py . --ledger-diff:No row movement is owed. The realization changes none of the ledger's derived keys — the change dir stays
active, itsclass,declares,depthandproseare untouched by ticking boxes — so the seeder was not run and no row was stamped.The dispatch names used
The packets define no
event_typestrings, so the brief's names are used, and only the inbound one is consumed here:repository_dispatchtypefloor-regenerated. The lane listens for it and never reads its payload — nothing in the file referencesgithub.event.client_payload, asserted as an absence. The candidate commit is resolved from codexFactory's default branch at run time on every firing, which is requirement 2's second scenario in its own words: "it ignores any commit, branch or reference named by its trigger." A payload naming a commit would be an unauthenticated caller choosing which tree judges this repository.schedule: cron "17 * * * *", hourly, declared against the ruled tolerance of3and the measured worst case (five floored paths in 11.5 hours, 2026-09-04). This is the firstschedule:in any workflow in this repository — the decision and both its consequences are recorded in the workflow header and attasks.md3.6, which asked for exactly that.floor-regeneration-requested: NOT SENT. See "Packet vs brief" below.Cross-repo state, measured on the sibling branch rather than assumed. codexFactory's realization is open as cxF #242 (draft) on
realize/add-floor-regeneration-automation. Its lane declaresrepository_dispatch: types: [floor-regeneration-requested]— the name this side would have sent — and it sends nofloor-regenerateddispatch back. So both accelerator legs are declared and neither is fired by anything today, and both lanes are driven by their own hourly sweep, both atcron "17 * * * *". The pair therefore closes the cycle with no cross-repository dispatch identity on either side, which is exactly the combination codexFactory's E-1 records as legitimate — the sweep as the mechanism, the event leg as an accelerator a reviewer may add later. There is no race between the two:17firings: this lane no-ops unless the floor document on codexFactorymainhas actually moved, and it can only move after a human merges codexFactory's regeneration.What Brett must do — the App grant
The lane refuses loudly until its binding resolves, so nothing silently half-works. The App is the one already installed in both repositories (
secrets.OPENXFACTORY_APP_ID/secrets.OPENXFACTORY_APP_PRIVATE_KEY, already minted by six workflows here —session-open-pr.ymlandpytest-suite.ymlamong them). Permissions needed, in the App INSTALLATION vocabulary:opensoft/codexFactorycontents: readopensoft/openxFactorycontents: writebot/review-lane-repinopensoft/openxFactorypull_requests: writeThe workflow
permissions:spelling of the last ispull-requests(hyphenated); both spellings name the same capability and both appear here deliberately. It needs no write privilege over codexFactory, and the binding declares that it must not have one — stated asnever_grantsso a later widening has to delete a line rather than merely fail to add one.The mint is scoped to those two repositories and no other.
pytest-suite.ymlmints the same App withowner:alone, which yields a token good for every repository the App is installed on in the organization — right there, for a read in acontinue-on-errorstep, and too wide here for a token that can push and open pull requests. The workflow'srepositories:list and the binding'sprivileges:entries are held equal bytest_the_token_is_scoped_to_the_bindings_two_repositories, so the declaration cannot drift from the mint. If the App is not installed on both, the mint fails — the loud refusal the binding asks for, not a degradation.Packet vs brief — one difference, and the packet wins
The realization brief asked for an OUTBOUND dispatcher on this side — a step in the main-branch run firing
floor-regeneration-requestedat codexFactory when the floor report shows pending ≥ 1 (codexFactory's authoring decision E-1 leg (ii)). It is not built here. Three measured grounds, recorded intasks.md§ 3 as well:proposal.md'scode_surface:enumerates the re-pin lane, the binding template and thetests/review_lane_pin/assertions, and enumerates what is NOT the surface. An outbound dispatcher is in neither list, and M-1 makes any notification leg an accelerator rather than the mechanism on this side.POST /repos/{owner}/{repo}/dispatchesrequirescontents: writeon the target, so an openxFactory identity that could nudge codexFactory would hold write there — and R8's third scenario is that the binding "grants no write privilege over the source repository". A second identity would be a second, unratified binding, at the cost codexFactory's own design names: "minting a dispatch credential would widen an identity for a mere nudge" (Gate-Rules Council, 2026-08-22, quoted in that packet'sdesign.md§ 2).design.md§ 2 locates the signal in "openxFactory's main-branch run" atmerge-master-approval.yml:1031-1042. That workflow's triggers arepull_request_targetandworkflow_dispatchonly — it does not run onmain; andpytest-suite.yml, which does run onpush: branches: [main], computes nopending_floor_extensionreport at all (the string appears nowhere in it). There is today no main-branch run to add the step to.Nothing is blocked. codexFactory's sweep is the mechanism on that side too, and E-1 already records the alternative a reviewer may prefer on identity cost: "a much more frequent codexFactory-side schedule (hourly), which needs no openxFactory-side dispatch identity at all." If the leg is wanted, the exact next step is a separate proposal declaring the main-branch measurement and a second, narrower binding — not an edit to this packet.
A second difference, and it is the same rule cutting the other way. The brief also asked the lane to "measure snapshot sha256 / entry_count / generated_at and refuse on payload mismatch". All three are measured —
witnesses_ofcomputes every one of them from the bytes on disk — but there is nothing to compare them against, because the packet forbids reading the payload at all. R2's second scenario is that the lane "ignores any commit, branch or reference named by its trigger", and M-1 makes the dispatch a nudge rather than a source of facts. A payload-mismatch refusal would require first trusting the payload enough to read it, which is the one decision this family exists to keep out of a caller's hands. What replaces it is stronger: the lane re-resolves codexFactory's default branch itself on every firing and recomputes both witnesses from the bytes it wrote, so a lying payload is not caught — it is never consulted.Two smaller deviations, both recorded in
tasks.md:review-lane-repin, not task 3.1'sfloor-repin. Everything it touches is already spelledreview-lane-(contracts/review-lane-pin.yaml,contracts/review-lane-floor-snapshot.yaml,tests/review_lane_pin/); a sixth spelling would have been the onlyfloor-name in the family.tests/review_lane_pinitself before proposing (task 4.7's "green a second time with a codexFactory checkout on disk", made the lane's obligation). It runs the EXISTING suite unmodified — no-k, no--deselect, no skip — with codexFactory checked out at the CANDIDATE commit. This asks for no exemption; it just means a bad advance arrives as a failed run instead of a red pull request.What is NOT done, and stays open
tasks.md§ 5, all seven boxes open). None can be right now: the floor at codexFactorymainis byte-identical to the vendored snapshot, so the lane's correct behaviour today is the named no-op. § 5.7's own text refuses a tick on a test-only observation.realize/add-floor-regeneration-automation. Until it lands the cycle is halved, not closed: the re-pin is proposed automatically and the regeneration is still a hand act.release-realizationarchives a code surface only on merged + green realization evidence, and the packet's owntarget_release:names ONE COMPLETE CYCLE OBSERVED UNATTENDED as that evidence.tasks.md6.3 is not asked for here: whether the merge-master low-risk envelope should ever extend to this lane. The default is a human merge word and it holds until ruled. Noted becausecontracts/review-lane-pin.yamlis itself a never-clearable floor entry, on the ground that a clearable pin "would let a pull request choose its own judge".I did not merge anything, resolve any thread, or move any pin.