Skip to content

Realize step 1: the re-pin lane accepts an ordered path list - #823

Merged
brettheap merged 3 commits into
mainfrom
realize/relocate-review-authority-floor-mirror-step1
Sep 9, 2026
Merged

brettheap merged 3 commits into
mainfrom
realize/relocate-review-authority-floor-mirror-step1

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-2 (openXfactory-2)

M-1 STEP (1) of the D-2/M-1 landing order — the FIRST of three, and it must land before codexFactory moves.

Refs #745
Refs opensoft/codexFactory#232

Realizes the ratified packet relocate-review-authority-floor-mirror (#817 → c98a0544) on Brett Heap's word of 2026-09-08T23:51Z, "ratify 293 and 817 when green, then realize them", and "accept (a), merge 817 when green, then realize step 1".

Why this repository moves first

codexFactory is relocating the authoritative floor document off every CODEOWNERS prefix (relocate-review-authority-floor, codexFactory #293 → e4e13599). This lane fetches that document BY PATH — FLOOR_IN_SOURCE, fetched in the floor step — and a two-repository move cannot be atomic. If codexFactory moved first, every firing here would refuse floor_document_unobtainable and no pinned site would advance.

The order is (1) this repository accepts both paths → (2) codexFactory moves → (3) this repository drops the old path. This is (1).

Why it is an observable no-op — the point of old-first (M-2)

FLOOR_IN_SOURCE becomes an ordered list, first-obtained-wins:

  1. scripts/merge_master/openxfactory-review-authority-floor.yaml — the path in force
  2. floor/openxfactory-review-authority-floor.yaml — the successor

Until codexFactory actually moves the file, candidate one always resolves and this lane behaves exactly as it did with a single path. That is what makes it safe to land ahead of another repository's change: nothing observable changes on the day this lands, only on the day the document moves. Newest-first would have inverted that, and the ordering is therefore load-bearing rather than cosmetic.

What the next sweep should print

The witness line the floor step emits, verbatim, on the next firing — while the document is still at the old path:

fetched scripts/merge_master/openxfactory-review-authority-floor.yaml at <sha> (<n> bytes) — candidate 1 of the declared list, the path in force; no migration in progress

That exact line, naming candidate 1, is what proves the no-op and is what tasks.md boxes 2.3 and 2.7 wait on. On the day codexFactory's move lands it becomes:

fetched floor/openxfactory-review-authority-floor.yaml at <sha> (<n> bytes) — NOT the first declared candidate: scripts/merge_master/openxfactory-review-authority-floor.yaml did not resolve, so the relocation ruled by relocate-review-authority-floor has landed in codexFactory and M-1 step (3) is now owed here

— which is the lane telling the reader that step (3) is due, without anyone opening either diff.

Files

  • .github/workflows/review-lane-repin.yml — the ordered FLOOR_IN_SOURCE_CANDIDATES env, the first-obtained-wins loop, the witness line, --floor-source-path passed through. set -euo pipefail is kept: every tolerated failure is tolerated by an explicit construct.
  • scripts/review_lane_repin.py — FLOOR_IN_SOURCE_CANDIDATES (with FLOOR_IN_SOURCE retained as its head, the path in force); the refusal names every path tried and fires only when none resolved (M-3); plan_advance gains floor_source_path, carried on Advance so the witness and the read are one value.
  • contracts/review-lane-repin-binding.template.yaml — source_documents: beside the grant that authorizes the read (M-4, a RECOMMENDATION — MQ-2 is open; nothing reads it at run time, and vetoing M-4 deletes that block and nothing else).
  • tests/review_lane_pin/test_repin_lane.py — eight new cases, plus one existing pin moved with its reason recorded inside it.
  • openspec/changes/relocate-review-authority-floor-mirror/tasks.md — ticks.

Tests

Eight new cases pin the decisions, not the implementation: every declaration of the list agrees (workflow / module / test literal / binding when present); the path in force is first; the refusal names every candidate; a later candidate carries its own name into every witness; a no-op names the path it read; the lane never SEARCHES beyond the declared list (M-7) — asserted as an absence of discovery verbs and wildcards, because a discovered file is one an author elsewhere can plant and what is found here is byte-copied into this repository's witnessed snapshot; the binding is depended on by nothing; and contracts/review-lane-pin.yaml does NOT move (M-6).

One existing pin moved, with its reason written into it: the closed-interface assertion on plan_advance's parameter set. floor_source_path is admitted because it is a measurement the workflow made — the same class as candidate_reachable, not payload-shaped, unable to come from an event, compared against the module's own declared list, and changing no decision. It returns to seven at step (3).

Not touched, each for a stated reason

contracts/review-lane-pin.yaml (M-6 — that is step (3); advancing it now would point a live pin at a file codexFactory has not created); contracts/review-lane-floor-snapshot.yaml (its bytes do not move, M-5, because the document's bytes do not move); the LQ-A7 coverage assertion and the freshness verifier, which are the judge of this lane's pull request.

Ticks

2.1, 2.2, 2.4, 2.5, 2.6 — and no others. 2.3 is NOT ticked and is half-satisfied: its condition is "the same commit PLUS ONE OBSERVED RUN", the reporting is built and asserted here and the run has not happened. It stays open beside 2.7, which waits on the same first firing against the old path.

Validators

  • openspec validate --all --strict → 102 passed, 2 failed — identical to origin/main, measured in the same clone (disposition-codexfactory-declared-renames, refresh-install-repository-enumerations; neither is this branch's).
  • python3 scripts/validate-sequenced-after.py . → passes (44 active, 11 declaring; archive-date agreement passes).
  • pytest tests/review_lane_pin → 164 passed, 2 skipped vs main's 156 passed, 2 skipped — exactly the eight added.
  • The repository has no workflow linter; the workflow was YAML-parsed and the floor step's shell was checked with bash -n.

Brett Heap, 2026-09-08T23:51Z: "ratify 293 and 817 when green, then realize
them", and on the correction "accept (a), merge 817 when green, then realize
step 1". This is the FIRST of the pair's three landings and it must precede
codexFactory's move: that repository is relocating the authoritative floor
document off every CODEOWNERS prefix (relocate-review-authority-floor,
codexFactory #293 -> e4e13599), this lane fetches that document BY PATH, and a
two-repository move cannot be atomic. If codexFactory moved first, every firing
here would refuse floor_document_unobtainable and no pinned site would advance.

WHAT LANDS. FLOOR_IN_SOURCE becomes an ORDERED LIST, first-obtained-wins:
scripts/merge_master/openxfactory-review-authority-floor.yaml (the path in
force) then floor/openxfactory-review-authority-floor.yaml (the successor).
The workflow's fetch step walks the list in order, stops at the first hit, and
emits a WITNESS LINE naming which candidate answered and whether that is the
path in force or a migration in progress. The module's refusal keeps its
identifier and fires only when NO candidate resolved, naming every path tried
(M-3). plan_advance gains floor_source_path so the witness a reviewer reads and
the path the lane read are one value carried on the outcome, not re-derived
where the body is built.

OLD-FIRST IS THE SAFETY ARGUMENT, NOT A FORMATTING CHOICE (M-2). Until the
document actually moves, candidate one always resolves and this lane behaves
exactly as it did with a single path — so this realization is an OBSERVABLE
NO-OP, which is what makes it safe to land ahead of another repository's change.
Newest-first would have changed behaviour on the day it landed instead.

M-4 IS IMPLEMENTED AS A RECOMMENDATION, NOT A MANDATE, because MQ-2 is open and
the ratified text was corrected to say so: the binding template gains
source_documents: beside the grant that authorizes the read, as documentation
with a lockstep test. Nothing reads it at run time — that would be the tautology
the lane already refuses — and vetoing M-4 deletes that block and nothing else.

EIGHT NEW CASES pin the decisions rather than the implementation: every
declaration of the list agrees (workflow, module, test literal, and the binding
when present); the path in force is first; the refusal names every candidate;
a later candidate carries its own name into every witness; a no-op names the
path it read; the lane never SEARCHES beyond the declared list (M-7, asserted as
an absence of discovery verbs and wildcards, because a discovered file is one an
author elsewhere can plant and what is found is byte-copied into this
repository's witnessed snapshot); the binding is depended on by nothing; and
contracts/review-lane-pin.yaml does NOT move (M-6 — that is step (3), and
advancing it now would point a live pin at a file codexFactory has not created).

ONE EXISTING PIN MOVED AND THE REASON IS RECORDED IN IT: the closed-interface
assertion on plan_advance's parameter set. floor_source_path is admitted because
it is a MEASUREMENT THE WORKFLOW MADE, the same class as candidate_reachable —
not payload-shaped, unable to come from an event, compared against the module's
own declared list, and changing no decision. It returns to seven at step (3).

NOT TOUCHED, each for a stated reason: contracts/review-lane-pin.yaml (M-6,
step 3); contracts/review-lane-floor-snapshot.yaml (its bytes do not move —
M-5 — because the document's bytes do not move); the LQ-A7 coverage assertion
and the freshness verifier, which are the JUDGE of this lane's pull request.

TICKS 2.1, 2.2, 2.4, 2.5 AND 2.6 AND NO OTHERS. 2.3 is NOT ticked and is
half-satisfied: its condition is "the same commit PLUS ONE OBSERVED RUN", the
reporting is built and asserted here and the run has not happened, so it stays
open beside 2.7 which waits on the same first firing against the OLD path.

Lane: openxfactory-2
Copilot AI lite review requested due to automatic review settings September 9, 2026 01:04

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

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 multi-candidate fetch loop can misclassify non-404 gh api failures as “candidate misses” (risking incorrect relocation signaling), and the step-1 task/test assertions are inconsistent with other still-single-path declarations.

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

Pull request overview

Implements M-1 step (1) of the relocate-review-authority-floor-mirror change by teaching the review-lane re-pin workflow/script to obtain the authoritative floor document from an ordered list of candidate paths (old path first), enabling a safe two-repository relocation without an immediate behavior change.

Changes:

  • Replace single FLOOR_IN_SOURCE with an ordered FLOOR_IN_SOURCE_CANDIDATES list and a first-obtained-wins fetch loop, including a human-readable “witness line” about which candidate resolved.
  • Carry the resolved source path through scripts/review_lane_repin.py (floor_source_path) so the PR body and witnesses reflect the path actually read.
  • Add/adjust tests and packet bookkeeping (tasks ticks) for the step-1 realization, and document the candidate list in the binding template.
File summaries
File Description
.github/workflows/review-lane-repin.yml Fetches floor bytes via ordered candidate list and emits witness output; passes resolved path into the decision module.
scripts/review_lane_repin.py Introduces ordered candidate list and threads floor_source_path through outcomes and rendered PR body/witnesses.
contracts/review-lane-repin-binding.template.yaml Documents enumerated source_documents as a non-runtime, lockstep-declared read surface.
tests/review_lane_pin/test_repin_lane.py Adds step-1 dual-path acceptance assertions and admits floor_source_path into the closed-interface test.
openspec/changes/relocate-review-authority-floor-mirror/tasks.md Records step-1 realization and ticks associated task boxes.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 4
  • 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 thread .github/workflows/review-lane-repin.yml Resolved
Comment thread scripts/review_lane_repin.py Resolved
(1) THE FETCH LOOP READ EVERY FAILURE AS ABSENCE (comment 3963705654), and it
    is the worst misreading available during a migration window: an `if` around
    `gh api` swallows auth, rate-limit and 5xx alike, so a transient error on
    candidate one would fall through to the successor and report a relocation
    that has not happened, or exhaust the list and refuse for a reason that is
    not true. My comment claiming unexpected failures still abort was therefore
    also false. The status is now CLASSIFIED: `set +e` for exactly the length of
    the call, then a 404 — genuinely absent — continues to the next candidate
    and EVERY other failure aborts the step with a named error. Absence is the
    only thing that advances the loop, and "no candidate resolved" now means
    what it says.

(2) `floor_source_path` WAS ECHOED, NOT VALIDATED (comment 3963705678). It
    arrives from the workflow as a string and is written into the witness lines,
    the pull-request body and the repeat commands a reviewer runs, so a
    mis-wiring would put a path this lane never resolves in front of the one
    person checking it. It is now refused as `floor_source_path_undeclared`
    unless it is one of the declared candidates — fail-closed, on the same
    footing as the absent document, and it changes no decision when correct.

(3) BOX 2.5's TICK OVER-CLAIMED (comment 3963705705), and the box's own text was
    unsatisfiable. It asked `test_floor_snapshot.py`'s FLOOR_IN_CORE and
    `test_review_lane_caller.py`'s literal to carry the two-entry list. They
    cannot: both declare what `contracts/review-lane-pin.yaml` NAMES, and M-6
    freezes that pin until step (3) — making them carry the successor would land
    step (3) early and point a live pin at a file codexFactory has not created.
    They are declarations of the PATH IN FORCE, not of the candidate list. A new
    case asserts head-equality on both — each equals candidate one and neither
    yet names the successor — and the box's text is corrected to say that, with
    the correction disclosed IN THE BOX rather than only here.

(4) REFUSED, WITH THE MEASUREMENT (comment 3963705745): "reds here" is not a
    misspelling of "reads". It is this estate's established vocabulary for a
    check going red — 111 uses in this repository, including
    `scripts/validate-sequenced-after.py:11` and `:78`,
    `scripts/doc_health/promotion_fidelity.py:57`, `scripts/scope_globs.py:599`
    and `tests/doc-health/test_modified_block_currency_self_gate.py:1789` — and
    codexFactory uses the identical phrase at
    `tests/merge-master/test_floor_regeneration_enrolment.py:639`. Changing it
    here would make this one docstring the odd one out.

tests/review_lane_pin 165 passed, 2 skipped (main: 156, +9). Workflow YAML
parses and the fetch step passes `bash -n`.

Lane: openxfactory-2
Copilot AI review requested due to automatic review settings September 9, 2026 01:13

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 workflow’s stderr/exit-status classification is currently broken due to redirection order, which can cause 404s to be misclassified and abort the lane incorrectly.

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

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread .github/workflows/review-lane-repin.yml Resolved
Comment thread scripts/review_lane_repin.py Resolved
…al had no test

(1) THE REDIRECT ORDER DEFEATED THE CAPTURE (comment 3963736420), and it broke
    the very classification the previous round added. `> "${OUT}" 2>&1` points
    stderr AT THE FILE, so the command substitution captured nothing, `ERR` was
    always empty, the 404 match never fired — and EVERY miss took the abort
    branch. A genuine absence would have failed the step instead of moving to
    the next candidate, which is the exact opposite of the intent, and the error
    text landed in the document the lane then treats as the floor.

    PROVEN BEFORE FIXING, not reasoned about. A shell probe with a stub that
    writes to both streams and returns 1:
      `> FILE 2>&1`  -> ERR=[]                            FILE=[payload + error]
      `2>&1 > FILE`  -> ERR=[gh: Not Found (HTTP 404)]    FILE=[payload]
    The call is now written `2>&1 >"${OUT}"` — stderr duplicated to the
    substitution BEFORE stdout is sent to the file — and the reason is recorded
    at the call site, because the two forms differ by nothing a reader notices.

(2) THE NEW REFUSAL HAD NO TEST (comment 3963736478). `floor_source_path_
    undeclared` was added last round and asserted by nothing, so a later hand
    could delete it and stay green. It now has a case that pins the refusal, the
    value it was handed, the declared set, and the "wiring fault" phrasing that
    tells a reader this is mis-wiring rather than a relocation — plus negative
    controls proving it does NOT fire on either declared candidate, on None, or
    on the empty string the workflow produces when it reports nothing.

tests/review_lane_pin 166 passed, 2 skipped (main: 156). Workflow YAML parses
and the fetch step passes `bash -n`.

Lane: openxfactory-2
Copilot AI review requested due to automatic review settings September 9, 2026 01:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The ordered-path behavior is implemented consistently across workflow/script/contracts and is pinned by targeted unit tests covering both positive and fail-closed scenarios.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)
LANDING — lane openxfactory-2 (openXfactory-2), session 78b27179, 2026-09-09T01:39:36Z, PR #823 into openxFactory main

@brettheap
brettheap merged commit 5c782f2 into main Sep 9, 2026
10 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-2 (openXfactory-2)
LANDED — lane openxfactory-2 (openXfactory-2), 2026-09-09T01:39:45Z, PR #823 → 5c782f2

brettheap added a commit that referenced this pull request Sep 11, 2026
The 5.5a note this PR added conflated codexFactory relocate-review-
authority-floor's ratification PR (#293) with the realization that
actually moved the artifact, and cited d1f8bf1b — a reference-sweep
commit named in the council record, not the landing commit — as if
it were the move. Copilot review flagged this on the open thread.

Corrected to name #293 and its openxFactory mirror #817 only as the
ratification pair (ratified together 2026-09-08), and to cite the
real three-step realization chain the archived mirror packet records:
openxFactory #823 -> 5c782f2 (step 1, dual-path acceptance lands),
codexFactory #297 -> 8165d1f3 (step 2, the artifact lands at
floor/openxfactory-review-authority-floor.yaml, 2026-09-09T04:28:48Z),
and openxFactory #829 -> 82c9f05 (step 3, the superseded path is
dropped). Each PR and merge sha verified with `gh pr view`. The
archive citation (#925 -> 17a3b81) is unchanged.

No other dated note is touched. Checkbox counts unchanged (7 open,
27 ticked) and `openspec validate extend-merge-master-envelope-to-
floor-bot-lanes --strict` reports the change valid.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 11, 2026
…envelope-to-floor-bot-lanes on Brett Heap's rulings (bookkeeping only) (#944)

* Tick boxes 2.7, 2.9, 3.5, 5.1, 5.2, 5.5, 5.5a of extend-merge-master-envelope-to-floor-bot-lanes on Brett Heap's rulings

Brett Heap gave three selections 2026-09-11 ~02:20Z, in session to lane
openxfactory-2, on a multi-choice question, recorded on openxFactory #745
(comment 5628477104): "Yes, tick all five" (5.1, 5.2, 5.5 as already
recorded; 2.9 and 3.5 N/A under the standing scope, since they apply only
under a veto of N-1 toward (b), which did not happen), "(e) stands as
taken; tick 5.5a", and "Successor's arming discharges 2.7; tick it".

This is bookkeeping only: flips the seven checkboxes and appends one dated
note per box carrying the ruling and its evidence, plus a status paragraph
at the end of the file. No proposal.md, design.md or spec delta touched.
Still open by their own text: 3.1, 3.3, 3.4, 3.6, 4.1, 4.2, 4.4. The packet
is NOT archived.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Amend: cite PR #944 by number in the seven ticked-box notes

The prior commit left "Ticked by this PR." as a placeholder since the PR
number did not exist yet at authoring time. Now that PR #944 exists, amend
each of the seven notes (2.7, 2.9, 3.5, 5.1, 5.2, 5.5a, 5.5) to cite it by
number, matching this packet's own established citation style ("Ticked by
PR #927.").

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Fix 5.5a's evidence note: distinguish ratification from realization

The 5.5a note this PR added conflated codexFactory relocate-review-
authority-floor's ratification PR (#293) with the realization that
actually moved the artifact, and cited d1f8bf1b — a reference-sweep
commit named in the council record, not the landing commit — as if
it were the move. Copilot review flagged this on the open thread.

Corrected to name #293 and its openxFactory mirror #817 only as the
ratification pair (ratified together 2026-09-08), and to cite the
real three-step realization chain the archived mirror packet records:
openxFactory #823 -> 5c782f2 (step 1, dual-path acceptance lands),
codexFactory #297 -> 8165d1f3 (step 2, the artifact lands at
floor/openxfactory-review-authority-floor.yaml, 2026-09-09T04:28:48Z),
and openxFactory #829 -> 82c9f05 (step 3, the superseded path is
dropped). Each PR and merge sha verified with `gh pr view`. The
archive citation (#925 -> 17a3b81) is unchanged.

No other dated note is touched. Checkbox counts unchanged (7 open,
27 ticked) and `openspec validate extend-merge-master-envelope-to-
floor-bot-lanes --strict` reports the change valid.

Refs #745

Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Fix the status heading's undercount: four owner's-act boxes, not a pair

Copilot flagged that the "### 2026-09-11" heading this PR appended said
the ruling "ticks the remaining owner's-act pair," when the PR actually
ticks four Group 5 (owner's-act) boxes -- 5.1, 5.2, 5.5 and 5.5a (5.3
and 5.4 were already ticked by PR #927). The heading also never named
2.7, the successor-discharged box, at all.

Corrected the heading to "ticks the four remaining owner's-act boxes,
both scope-gated boxes, and the successor-discharged box": four (5.1,
5.2, 5.5, 5.5a) + both (2.9, 3.5, N/A under the standing scope) + one
(2.7) accounts for exactly the seven boxes this PR ticks, matching the
body paragraph beneath it (which already listed all seven correctly)
and the PR title. No other text touched; checkbox counts unchanged (7
open, 27 ticked).

`openspec validate --all --strict` reports the same 3 pre-existing
failures as origin/main (fa94dfb) -- disposition-codexfactory-declared-
renames, disposition-codexfactory-floor-relocation-retitle, repo-
boundary-governance -- and extend-merge-master-envelope-to-floor-bot-
lanes itself passes. `tests/doc-health` (1689 tests) passes unchanged.

Refs #745

Lane: 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