Repository navigation
Lane tooling moves home: filter-repo from brett-wip, openRepoTools wip init, --install installs the lane skill and hook (Amendment 9 act 3) - #24
Conversation
…ranch of opensoft/xFactory, with all of its history
git subtree add of opensoft/xFactory's orphan 'lanes' branch. Rule 9
(Amendment 3, 2026-09-09) put LANES.md in git on that orphan branch for one
reason: the aggregation's main is PR-only, so a per-edit registry commit could
not land there. This repository is excluded from the organisation's PR-only
ruleset by design, so the register can live on main of the person's own
workspace repository instead — which is where Brett Heap placed it on
2026-09-10 ('since we now have the user-wip repo this is a better place to
store our lanes'). Amendment 5.
Every register commit comes across: the pre-move history is reachable under
the path the commits used, LANES.md, and the file is now lanes/LANES.md. The
~/projects/xFactory/LANES.md symlink is repointed here, so every path in every
protocol and memory keeps resolving.
Lane: openreposhape-2 (openRepoShape-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
git-subtree-dir: lanes
git-subtree-mainline: 4e1d99fd2ca6c3545f1bf6943ac00ef372dd57c3
git-subtree-split: dcd8fdd267cbbdd875f7f376e4b8ca056504bc38
…own checkout, and no longer mistakes a peer's half-written handoff for a rebase conflict The register's writer, repointed for Amendment 5. Same verbs, same refusals, same --no-sweep default, same commit → pull --rebase → push cycle. What changed, and why each: - The checkout root is DISCOVERED (`git rev-parse --show-toplevel` from the script's own resolved directory) and the pathspec derived with `--show-prefix`, so the script spells no path: the clone may live wherever a workstation likes, and the symlink at ~/projects/xFactory/lanes-edit.sh resolves to the same code. New overrides LANES_REPO / LANES_PATH / LANES_BRANCH exist for tests; LANES_NO_GIT=1 still edits without git. - `origin lanes` → `origin main`, everywhere including the recovery text. - Every `git add` / `commit` / `diff` carries the pathspec `lanes/LANES.md`, so a peer's uncommitted handoff in this shared checkout can never ride along in a register commit. - NEW, and the reason this needed care: the register no longer owns its whole worktree. `git pull --rebase` refuses on ANY unstaged tracked change, so a lane writing a handoff two directories away would have turned every register write into a bogus "REBASE CONFLICT" with recovery advice that does not apply. The helper now detects unstaged changes to other tracked files, warns and names them, skips the pull and pushes straight out — the common case, since the remote has usually not moved. If that push is also rejected it stops with exit 3, says the edit is a local commit, and prints the real fix: that file's own author commits it (Amendment 4(d) requires that anyway), then re-run `lanes-edit.sh commit`. - The usage block printed its own header with a hard-coded `sed -n '3,59p'`, which went stale the moment the header grew. It now prints from line 3 to the first non-comment line. Exercised in a sandbox (bare origin + clone + estate symlinks, nothing real touched): 35 checks — every verb, every refusal, the pre-existing-edit capture, --sweep's annotation, symlink survival, the dirty-elsewhere warning and its push, the blocked-and-behind exit 3 with the local commit intact, and LANES_NO_GIT. README-lanes.md: the new location and Amendment 5 up front, the orphan-branch rationale rewritten as why it left, the shared-checkout note, Raven's two commands, and how to read the 1242 pre-move commits (`git log --oneline pre-move/lanes -- LANES.md`). The 2026-09-08 incident and the sed -i hazard table are kept verbatim — they are why any of this exists. handoffs/README.md, workspaces/README.md: this repository is the home now, `~/.agents/…` for the protocol instead of new-workstation's `home/.agents/…`. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s reached through, and never deletes a real file Adopting this repository on a workstation is now `clone` then `scripts/link-estates`. It links ~/projects/<estate>/handoffs at handoffs/<estate> for every estate this machine actually has (the rest are reported and skipped — an estate nobody cloned gets no link), and ~/projects/xFactory/LANES.md and lanes-edit.sh at their files under lanes/. Those are Rule 4/Amendment 4 and Rule 9/Amendment 5's own paths: every protocol, memory and habit that names them keeps working, and nothing else has to be rewritten. link()'s semantics are scripts/link-home's, deliberately — the same habit, so there is one thing to learn: a link already pointing here is KEPT, a link pointing elsewhere is relinked and its old target printed, a real file whose bytes match is replaced, and anything else — a real file that differs, or a real directory with content in it — is MOVED ASIDE to <path>.pre-link-estates-<UTC> and never deleted. That last case is the one that matters here: ~/projects/<estate>/handoffs may be a real directory holding handoffs nobody ever tracked. --dry-run prints the plan and writes nothing. PROJECTS_ROOT overrides ~/projects for tests. Exercised in a sandbox (24 checks): the fresh link, the keep on a second run, the relink of a symlink pointing at the retired .lanes worktree, a real directory moved aside with its untracked handoff intact, an identical file replaced, a differing file moved aside, the missing estate skipped, handoffs/README.md not mistaken for an estate, and --dry-run writing nothing at all. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…s, instead of `unknown`
Found by a peer lane's real write at 20:02Z, which committed as
`LANES(unknown@Eagle): append line — LANDED — lane openreposhape-2 …`. Not a
regression from the move: the pre-move script has the identical
`${LANES_LANE:-unknown}` (git show pre-move/lanes:lanes-edit.sh, line 364).
`append-line` takes no lane argument, so a caller who does not export
LANES_LANE loses the line's author from the log — and a Rule 6 line always
names its own lane in its text.
So: with LANES_LANE unset, read the name that follows "lane " in the text,
reject anything outside [A-Za-z0-9._-] rather than sanitising it, and — the
part that matters — trust it only if the register actually has a row for it.
Without that check "a line that names no lane at all" would be attributed to
a lane called "at". LANES_LANE still wins when it is set; `unknown` remains
the fallback when the text names nothing real.
Three more sandbox checks (38 total): derivation, the fallback, and
LANES_LANE's precedence.
Lane: openreposhape-2 (openRepoShape-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
… tag stops at the import, --full-history does not The orphan branch took 12 more register commits while the move was in flight; they came in on the final sync, after `pre-move/lanes` was cut, so the tag and `--full-history` are not the same query. Anyone recovering a row needs to know which one reaches the whole thing. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…because Rule 10's wire form is lowercase and the row's token often is not Two live Rule 6 lines landed minutes ago as `LANES(unknown@Eagle)` — 4352b6c and a84737c, both "LANDING/LANDED — lane openxfactory-2 (openXfactory-2)". The register's row for that lane is spelled `openXfactory-2`, the wire form in the line is `openxfactory-2`, and the exact-match guard added an hour ago therefore refused the candidate and fell back to unknown. So: when the exact lookup finds no row, look again ignoring case and, if exactly one row matches, attribute the commit to THAT ROW'S OWN spelling. Two or more matches, or none, still give `unknown` — a guess is worse than a blank. Case-insensitivity is for ATTRIBUTION only; the lookup that decides which line an edit rewrites stays exact, because that one can destroy a row. 39 sandbox checks now, the new one being a camel-cased row addressed by a lowercase Rule 6 line. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…h end (#1) The lane rule — lane = tmux window name = Claude session name, `<repo>-<n>` — takes five manual acts to honour and the register shows where they are dropped: rows added hours late ("ROW ADDED LATE … a Rule 4 gap this row closes"), windows still named `claude`, `(2)`-suffixed session names minted when a rename collided with a title that was still held, and lanes that stopped without ever updating their row (Rule 4's second half). `lane-start <repo> <n>` does the five in one act, in the order Amendment 2 requires — window named BEFORE the row is appended: 1. refuses outside tmux: it renames the window it is run in, and never creates a tmux session; 2. LIVENESS CHECK before it takes the name (Rule 4, and the lane rule's own "the row's live session id decides whether a name is free"): the session ids in the row's session CELL are looked up in every profile's sessions/*.json, and a record counts as live only if its pid is alive AND /proc/<pid>/stat's start time still matches what the record wrote down, so a recycled pid does not lock a name. A live holder in ANOTHER tmux window is a refusal naming the next position; a row whose sessions have all ended is a lane you are resuming; 3. `tmux rename-window`, which also turns automatic-rename off for it; 4. the row, through lanes-edit.sh — `add-row` when there is none (state STARTING, session id `pending — set by the session's first act`, workstation/env/user per Rule 10), `append-row-status` when there is; 5. `exec claude --resume <lane>` when a transcript for that directory already carries the custom title and nothing live holds it, else `exec claude --name <lane>`. Resume beats new because a rename into a held title is exactly what mints `<lane> (2)`. A record whose session NAME is some other lane is not a holder: this register already carries rows whose recorded session retired from the lane and was renamed (openRepoShape-2 is one), and refusing on those would lock free names forever. `lane-end <lane>` writes the closing line, and refuses (exit 2) while the state cell's last LANDING or CLAIMED has no LANDED or RELEASED after it — Rule 6 holds other lanes' merges while a row reads LANDING, so a lane that ends without closing its landing window stalls the estate. The phrases that SAY nothing is open ("NOTHING CLAIMED", "no LANDING open", "LANDING WITHDRAWN") are removed case-insensitively before the scan, because a substring match on CLAIMED inside NOTHING CLAIMED would refuse on every healthy lane. `--force` ends it anyway and says so in the line it writes. `--retire` marks the cell RETIRED <UTC> by replacing the state WORD it opens with, never the whole cell: the cell is the row's history and the register exists to keep it. It never renames the window — the name is the lane's history until the next lane-start. Both resolve the register and its writer from their own real path, like lanes-edit.sh, so the ~/.local/bin symlink works; both have --dry-run, --help, and documented exit codes (0 ok, 1 environment, 2 refusal); neither spells an absolute path of its own. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
They are typed by a person at the boundary of a lane, so `~/.local/bin/lane-start` and `~/.local/bin/lane-end` join the three links this script already places. Same `link()` semantics as the rest: idempotent, KEEP when it is already right, RELINK a symlink that points elsewhere, and never delete a real file — one is moved aside as `<path>.pre-link-estates-<UTC>`. The directory is created when it is missing (PLAN in --dry-run), and the run says so when `$BIN_DIR` is not on the shell's PATH, because a link nobody can type is not an install. `BIN_DIR` overrides it, the way `PROJECTS_ROOT` already overrides ~/projects. The helpers resolve the register and its writer from their own REAL path, so a symlink is all they need: nothing else has to be configured on a new workstation. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ing it can run for real (#1) A temp HOME, a bare repo and a clone seeded with a header and eight rows, a `tmux` that answers display-message and logs rename-window, and a `claude` that logs its argv so the launch can be watched even when lane-start exec's it. lanes-edit.sh runs FOR REAL against the sandbox register — commit, pull, push — so the tests cover the write path rather than a stub of it, and liveness is a real `sleep` process and a reaped pid rather than a mocked /proc. Covered: --help; the refusal outside tmux; a missing directory; a new lane (row added, window renamed, `--name`, the row's own commit, pushed); --estate; a free lane with a titled transcript (`--resume`) and without one (`--name`); a lane live in another window (exit 2, refusal names the session and the next position, renames nothing); the same lane live in THIS window (not a collision); a live session RENAMED to another lane (does not hold the row); the real exec; `<n>` alone from the cwd's git root; the full lane name; args after `--`; --dry-run (no commit, LANES.md byte-identical, no rename). For lane-end: the open-LANDING refusal and that it writes nothing; that `NOTHING CLAIMED` and `no LANDING open` are NOT something in flight; LANDING→LANDED; --force; --retire (cell opens RETIRED, history kept, window never renamed); a lane with no row; --dry-run; and a lane named before the `<repo>-<n>` rule, ended by its own name. Verified by mutation: with the tmux refusal and the same-window comparison removed from a scratch copy, exactly the six assertions that cover them fail and the run exits 1. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
`lanes/README-lanes.md` gains the section that is the manual — the lane rule it implements, the six steps of `lane-start` in order, what each of the two refuses and why (including why the phrases that SAY nothing is open have to be stripped before the in-flight scan, and why `--retire` replaces the state WORD and not the cell), the stdout/stderr split that makes `--no-launch` a launcher hook, and how to run the tests. Its Layout table and its Raven adoption block name the two new links. `README.md` gains "The two ends of a lane" and two rows in the link table, which is no longer "the three". `AGENTS.md` gains rule 7 — both are BOUNDARY acts, never mid-session, because renaming a running session into a title something else still holds is exactly what mints `<lane> (2)`; and neither writes LANES.md except through rule 1's writer. Rule 8 says out loud that the register's own tooling is the one exception to "no code", and is not a licence to add more. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
… dot (#1) A session record's `tmux` field is `<session>:@<window>.%<pane>`, and the comparison against this window wants the `<session>:@<window>` half. `${t%%.*}` cuts at the FIRST dot, which is wrong the moment a tmux session name contains one — `claude-team-05b-…` does not, but nothing stops one. `${t%.*}` drops only the `.%pane` suffix. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Fable 5.1 <[email protected]>
) A title is not an address. `claude --help` describes `-r, --resume [value]` as "Resume a conversation by session ID, or open interactive picker with optional search term" — so only a session id resumes exactly; a title just filters the picker. On 2026-09-11 four transcripts in one working directory carried the title `codeXfactory-1`, eight more carried `codeXfactory-1 (2)` or `(4)`, and the session actually being driven carried no title at all, so resuming by name could only ever land on a stale lineage. It did. Step 6 is now decided in a new step 5a, before the row is written, in three cases: resume THE LAST session id in the row's session cell when its `<id>.jsonl` is here; else fall back to the title (unchanged, now with a warning that says what it is); else start new with `--name` and a freshly minted `--session-id`, so the row can record the id and the next start resumes it exactly. A new row is created with that id in its session cell instead of `pending`; an existing row has it appended to the cell's last id by `lanes-edit.sh replace-in-row`, which refuses unless its anchor is unique — a refusal prints the act and never fails the launch. Two readings of the same cell, because they want different things: the liveness check wants the SET and sorts, the resume target wants the ORDER, since the cell is a history written oldest first. Also: `<LANE> (N)` now counts as the lane's own title (live_holder() has always read it that way, and a matcher that disagreed hid this orchestrator's own `codeXfactory-1 (4)` session from itself), and a row whose cell holds only PR-footer `session_01…` ids — which are not transcript ids and cannot be resumed or liveness-checked — is named as such instead of read as empty. LANE_START_SESSION_ID=0 turns the minting off and restores the old row text. `--dry-run` and `--no-launch` are unchanged in contract. Tests: 58 -> 88 assertions, all passing, three consecutive runs (the minted uuid differs each run). `--session-id` is proven only against the sandbox's fake `claude`, which logs its argv; it is documented in `claude --help` on the installed build but has not been exercised live. Drafted for Brett Heap's ratify word alongside lane-collision-protocol Amendment 6 (brettheap/new-workstation). Lane: codexfactory-1 Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…STARTED, lane-end exact refusal (#3) Lane: openrepoproject-1 (openRepoProject-1) Claim: brettheap/new-workstation#11 (comment) Ratified by Brett Heap 2026-09-12, verbatim "ratify 3" (ratify commit ca91338 over 69976b7), after "ratify 12" landed the protocol text (brettheap/new-workstation#12 → cb0bbc1). Adoption acts 5 and 6 of Amendment 7: this merge, and the sanction of lanes/repos.tsv, lanes/log/README.md and the AGENTS.md rule 1 / rule 8 edits. 590 sandbox assertions. Full history on branch lanes/amendment-7-object-log. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]>
… harness's new uuid; swapped + session-start reads (#4) * lanes-edit.sh: Amendment 8's reads — swapped, session-start, window-session, sibling-filter A swap is a planned stop and a restart is the launch that follows it. Neither adds a file: the RECORD a swap leaves is the lane's own PAUSED line, payload `swap; window <s>:<i>; workstation <ws>`, and a lane is swapped when that PAUSED is its LAST lane-kind line. Four read-only subcommands, no new writer and no new path: swapped [<ws>] the lanes a swap paused and nothing has resumed, as <lane>\t<UTC>\t<window>, exit 0 with rows / 8 with none. Ordered by LANDING ORDER on origin/main — the distance from the tip of the commit that added each PAUSED line — never by the UTC: file order does not reach across two lanes' files and two lanes' clocks are not an order. The UTC stays in the output as information. session-start the SessionStart hook's whole block. Resolves the lane by tmux window name, else by the session id against every row's session cell; distinguishes an EARLIER lineage of the lane from a transcript uuid no row carries, which is the harness having minted one with nobody acting, and sends each at the act that fixes it. source=compact prints nothing; fork, and an unknown or missing source, get the block. It never writes and always exits 0 — a hook that fails is a hook that breaks the session it was meant to orient — so it is exempt from the registry-not-found die. window-session which LIVE record is in a tmux window, keyed on the window and not on a lane's recorded ids. The three live tests are shared with live-holder through record_is_live; the two that are about a lane are not applied, because a window holds one session whatever it is called. sibling-filter Rule 1's reads 2 and 3, kept to lines that NAME the object. `#15` matched somebody else's PR #10 and a 40-character sha, both printed as existing work on the object; the term is now `#<n>` and the match a whole token, with ls-remote's sha stripped before the test. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * lane-start: write Amendment 6(c)'s stamp, and follow the harness's new transcript uuid THE STAMP. The append-row-status line becomes <UTC> RESUMED by <uuid> (lane <lane>) — lane-start on <ws>: window renamed, launching … with STARTED where a new session takes the name, and the uuid the one this run really resumes or mints, read from the PUBLISHED row (R33). Amendment 6(b) makes that stamp load-bearing — it is what the next lane-start resumes — so a stamp owed to a session that dies at a usage reset before its first act is a lost lane, which is the shape this estate hits daily. A brand-new row needs none: it is created with that uuid already in its cell. THE HARNESS UUID. New step 3b asks which live session is in THIS WINDOW, which is not live-holder's question. On 2026-09-12 a usage reset carried this lane's conversation into 4a91f1dc… while its row still ended on 09dd34d1…; an id in no row is an id live-holder cannot look up, so it answered 8 — this lane is parked — about the conversation sitting in the window it was asked about, and the next lane-start would have resumed the PREVIOUS one and stamped that uuid on to an append-only line. When the window's live record carries a transcript uuid the published cell does not, the cell is extended with `→ harness <uuid> (transcript uuid; profile <p>)` BEFORE the stamp, and that uuid is the resume target and the stamped one. Not when step 3 already found the row's own session live here, and only for a transcript uuid. There is no flag and there could not be one: the id does not exist until the session does, so the act is `lane-start --no-launch <repo> <n>` run in that window. --confirm / --yes. When the window's name is not the lane, the triple — window, the session live in it, the row — and `Take lane <lane> in this window? [y/N]`, before the rename and before any write. No terminal and no --yes refuses, exit 2, having renamed and written nothing: a question nobody can answer is not a Yes. LANE_START_ANSWER is the seam the tests drive it through. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * tests: Amendment 8, and the log check that asserted an empty directory 116 assertions: the stamp's verb, text and uuid on both paths; the harness uuid appended to the cell, named in the stamp and in the object log, and NOT appended when the cell already carries it or when step 3 found that session holding the lane here; --confirm answered y, N, empty, with --yes, with no terminal, and with the window already named for the lane; swapped with 0, 1 and 2 swapped lanes, a since-resumed one, another workstation's, a PAUSED that is not a swap, under LANES_NO_FETCH=1, and two lanes whose UTCs disagree with their landing order; session-start's six shapes including compact and fork, resolution by window name and by session id, a case-blind window name, garbage stdin, no register at all, and proof that it wrote nothing; window-session found and not; sibling-filter over the exact shapes that produced the bad reads. And a fix: 'the suite never created a log outside the sandbox' asserted that lanes/log/ in the checkout the suite ran from was EMPTY apart from README.md, which stopped being true the moment a real lane's log landed there — it failed at e6044d3 for that reason and for no other. It now compares the listing taken before the first case with the one after the last, which is the property it always meant. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * README-lanes: 'Swap and restart (Amendment 8)', and the reads' exact output The new section documents what a swap RECORD is, and both new subcommands with the output they really print — including why swapped's rows are in landing order and not UTC order, and the two different mismatches session-start distinguishes. The lane-start section gains steps 3b and 3c and the stamp's exact text; the exit-code table gains swapped's and window-session's 8, register-row's 2 for a name that is not lane-shaped, and session-start's always-0; the liveness section gains window-session beside live-holder; the claim section gains the sibling reads' whole-token filter; the test count is 706. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * sibling-filter: two reads, two tests — and read 2 filters over the BODY Measured live against the governing repository while writing this, which is how the first version's own defect was found. `gh pr list --search 15` answers with PR #16 and PR #10; #10 is a false positive — GitHub matched the digits inside '15 of the register's 41 rows' — and #16 is the real sibling, the PR for that very issue. The first version applied ONE test to both reads: the slug as a whole token with the '#' optional. It dropped #16 and would have kept #10 over a body, which is the wrong direction twice over: * `gh pr list` never printed BODIES, and the reference that makes a PR a sibling is almost always there — it is what GitHub's own search matched. So the body is now fetched, flattened, used for the test, and cut off before anything is printed. Under-reporting a sibling is the direction that lets a lane claim what somebody else is already working on. * a required '#' cannot be bounded on its LEFT: the canonical spelling is `owner/repo#15` and the character before the '#' is a letter. So: two reads, two tests. `pr` — '#<n>' anywhere, or the row's own number column, which is the PR the object IS. `branch` — the bare number as a whole token after the 40-character sha is stripped, because a ref carries no hash and `issue-15-fix` names the object. A change directory takes the whole-token test in both. `sibling-filter` gains --branch; the suite gains the four shapes the live reads produced, and is 710. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * window-session: where two live records name one window, the newest wins A session that outlives the window it started in keeps the `tmux` value it was born with, so a backgrounded predecessor whose pid is still alive matches the same target as the session at the keyboard. Taking whichever the filesystem listed first would append a stale uuid to the row and make a boundary act depend on directory order. `updatedAt` is the record's own heartbeat; a record without one sorts as 0 and can only lose to a record that has one. 713. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * whose-session: a companion is not a holder, and the writer never blocks the estate RULING (g). `lane-start --no-launch openRepoProject 1` refused in the very window whose own session was running it. Two records carry one `sessionId` — the pane's `kind: interactive` process and a `kind: bg` companion with no `tmux` and no `nameSource` — and `live_holder` returned the COMPANION, whose target reads `none`, which is not this window. The companion also carried the LATER `updatedAt` of the two (…975177 against …958137), so the sixth commit's "the most recently updated one wins" picks precisely the wrong record: it is a liveness heartbeat, and an idle companion beats on after a working session. Identity decides, in this order: `$CLAUDE_CODE_SESSION_ID`, which the harness exports into every shell a session runs; then the `tmux` target, now a FAST PATH and not the test, because a record with no target is not a record in no window; then this pane's process tree, walked through /proc. `record_is_session` drops every `kind: bg` record from `live_holder` and `window_session` alike. `live-holder` gains a fifth field — here / elsewhere / orphan — because the caller must not have to infer whose session it is from a column that can say `none` about the session asking. Records sharing a `sessionId` are ONE session: the windowed one represents it, and a targetless record with a windowed sibling is never ranked. An orphan is reported with Amendment 6(d)'s act, not refused. RULING (h). On 2026-09-12 ~01:44Z an ssh `git-receive-pack` hung for five minutes AFTER its push had landed, with `append-row-status` inside it holding the mutex, and every lane on Eagle blocked behind it until the ssh was killed by hand. Every git call that touches the network — push, pull, fetch, ls-remote — now runs under `LANES_GIT_TIMEOUT` (60s; `LANES_GIT` is the binary, so a test can hang these calls and only these). A timeout is not a retry: it aborts any rebase, releases the lock, prints how to check whether the push landed anyway, and exits 3 with the edit safe in a local commit. The lock records its holder's pid, and a lock whose pid is dead is stale at once rather than after ten minutes of every other writer waiting. And a signal now stops it. `trap cleanup EXIT INT TERM` ran the handler and then RESUMED — measured, SIGTERM at 8s and the process still going at 56s, with the lock already released under it, which is worse than blocking. The handler re-raises with the default disposition. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * lane-start: read the helper's verdict, and write Rule 3's handoff stamp RULING (g). Whose session it is comes from `live-holder`'s new fifth field, not from a string compare on the `tmux` column here. That compare is what refused this lane the window it was running in: the record it was handed was the harness's `kind: bg` companion, carrying the interactive session's own `sessionId` and no target, so `"none" != "$this_window"` and the refusal read "lane openRepoProject-1 is live in session c5701b54… (tmux none)" about the session typing the command. `here` carries on, `elsewhere` still refuses and names the window, and `orphan` — live, in no window, in no pane's tree — is reported with Amendment 6(d)'s `end pid <n>` and carried past, because a process in no window is nobody's rival. An empty fifth field refuses: an older helper that cannot answer must not be read as saying `here`. RULING (i). Seven resumes in two days each needed the Rule 3 handoff stamp written by hand, and the counts across the row, the register and the handoff drifted to 6/4/5. `lane-start` writes it: on a resume of an existing row whose handoff cell names a file it can find — absolute, under the register's own repository, or under the workspace repository named once in `~/.agents/workspace.yaml` — it inserts RESUMED by <uuid> (lane <lane>) at <UTC> — lane-start on <ws> under the header block, commits `handoff(<lane>@<ws>): RESUMED by <uuid>` with an explicit pathspec and a `Lane:` trailer, pulls with rebase and pushes, each network call bounded by ruling (h)'s `LANES_GIT_TIMEOUT`. The uuid is the one the row stamp names, a harness uuid step 3b just appended included. IT IS NEVER A REASON TO REFUSE A LAUNCH. A missing file, an unreadable one, no git, a failed commit, a rebase conflict, a timeout, a rejected push — each prints the exact manual command and carries on to the launch, because a lane that will not start is a worse failure than a stamp written by hand. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * tests: rulings (g) and (h), 713 -> 760 The fake tmux learns `#{pane_pid}`, which is the one question ruling (g) asks it, and the suite unsets `CLAUDE_CODE_SESSION_ID` — the harness exports it into the shell running the suite too, and it is a holder test now, so a case that does not set it deliberately must not answer differently inside a session than outside one. (g) is driven by two live processes, each a child of this shell and so under neither the other nor a pane: the incident itself (one sessionId, an interactive record in the window and a bg companion with the NEWER updatedAt) proves live-holder answers `here` and names the interactive record, that the companion is reported and not obeyed, and that lane-start does not refuse; a bg record alone holds nothing; `$CLAUDE_CODE_SESSION_ID` makes a record with neither a target nor a pane-tree pid `here`, and the very same record without it is an `orphan`, reported with `end pid <n>` and carried past; a real rival in another window still refuses. For `window-session`: the record in this pane's tree beats one that names the window and updated 9999999999 against 1000 — the sixth commit's rule, corrected — while another window's read ignores this pane entirely, and a bg record that names a window is still not what is in it. (h): a push that hangs past a 2s budget exits 3 with the lock free and the edit a local commit; a lock whose holder is dead is taken over by name; the holder's own pid is read out of the lock from inside the critical section by a `git` that peeks during the push; a lock whose holder is alive is not stolen, and a SIGTERM ends the run there instead of resuming its wait. Lane: openRepoProject-1 (Eagle) Co-Authored-By: Claude Fable 5.1 <[email protected]> * session-start reads what it has, and the uuid append is cell-scoped R-A8-1 — `session-start` never writes and never touches the network. The `log_sync` call is gone from that branch: it ran an `ls-remote` and a `fetch`, two round-trips bounded at 60s EACH, in front of every session start on the workstation, writing FETCH_HEAD, objects and refs/remotes/origin/main, and advancing origin/main under any concurrent lane-start. Amendment 7's "a read fetches first" governs STATE decisions; this block decides nothing. It now reads the checkout AS LAST FETCHED and ends every branch with clause (e)'s own line, `as of <age> (no fetch)`. The review's mutation (remove log_sync) went uncaught at 760 because nothing pinned it; it is pinned now by a fake `git` that aborts on fetch/ls-remote/pull/push, with the tree, every ref, HEAD and FETCH_HEAD's mtime compared either side of the call. R-A8-4 — the uuid append is cell-scoped. `replace-in-row` refuses unless its anchor occurs exactly once in the WHOLE ROW, and the anchor for this act is a transcript uuid, which the 6(c) stamp writes into the STATE cell as well: openRepoProject-1's own row on origin/main carries its current uuid three times and its previous one three times. So `lanes-edit.sh append-session-id` matches its anchor INSIDE THE SESSION CELL and nowhere else, and `replace-in-row`'s whole-row rule is unchanged. And the second half of the same finding: the text is appended at the END of the cell, never AT the anchor. The cell spells its ids inside backticks, so a replace at a bare-uuid anchor wrote `harness `<old> -> harness <new>`` and put the new id inside the old one's code span. The anchor proves the cell is the published one; the append adds a lineage after all of them. F-B5 — the stamp's tail states what happened, so a `--no-launch` run ends `window renamed, no launch` and never claims to have launched anything. Its head, which Amendment 6(b) and clause (d) quote, is unchanged. F-B6 / R-A8-7 — the hook fills in `<repo> <n>` from the lane it already holds, says "handoff already stamped by lane-start" where it derives that lane-start wrote it, and prints ONE no-lane notice. SonarCloud: shelldre:S7682 explicit returns and S7679 named positional parameters applied to the test functions this round touches or adds (sw_seed, ss_run, write_record_g, g_clear, tree_of). Suite: 809 passed, 0 failed (760 at fafc739). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * no answer exits, `unknown` never reaches the log, and the orphans are named R-A8-3 — a launcher never refuses to start Claude, so `lane-start` never exits on an answer. `claude-profile` EXECS this script, so its status IS the launcher's: an explicit `N`, and `--confirm` with no tty and no `--yes` (the same answer with nobody there to give it), now rename nothing, write nothing, print ONE notice naming the lane declined and the act that would take it, and `exec` Claude BARE with the pass-through arguments, exit 0. Under `--no-launch` that bare command is what stdout carries, so the launcher can exec it itself. Exit 2 is left to argument errors alone, in the header table and README-lanes. R-A8-2 — `unknown` never reaches the object log or the handoff, and THE RULE IS THE CONDITION, NOT THE PATH. Wherever `lane-start` has no transcript uuid — the title fallback, a live session whose transcript is not in this directory, no uuid source, LANE_START_SESSION_ID=0 — it writes the row's stamp with the literal `unknown` and DEFERS both the object-log line (Amendment 7(b): that field is a transcript uuid and only that, and the log is append-only) and Rule 3's handoff stamp, naming the one act that writes them: this session's own `lane-start --no-launch <repo> <n>`, arguments filled in. `unknown` never enters the SESSION cell and so is never replaced in it — the deferred run APPENDS the real uuid through the cell-scoped edit, which is what Amendment 6(b) resumes from. The suite's two pins at :1626 and :1635 invert, one per sub-case. R-A8-6 — `lane-start` reports every idle holder of the row's EARLIER session ids and never kills. `lanes-edit.sh idle-holders <lane>` is a new read-only subcommand (0 rows / 8 none / 1 unreadable) answering with every LIVE record that is not a session in a window — a `kind: bg` companion, or one with no tmux target — for any id but the cell's last. `lane-start` prints each with the session id and profile beside it and the exact act, `kill <pid>`. The retire act's name is fixed to `kill <pid>` in `who` too: there is no `end pid` subcommand and none is added. R-A8-7 — the hook branches on the id's POSITION in the session cell, not its presence: the cell's LAST id is the lane (already stamped by lane-start); an id IN the cell but not last is a SUPERSEDED transcript, cured by a real `lane-start`; an id in no cell is the harness's new transcript, cured by `lane-start --no-launch`. And no cure sends a reader back through the picker (clause (f)): where the row's newest stamp says `unknown`, a relaunch would take the same title fallback again, so the recording act is the cure there too. No branch names `/resume`. F-B8 / F-W4 — `swapped` exits 64 on a usage error of its own. The launcher gates its whole Amendment 8 degrade on a 2 from `swapped` meaning ONE thing, "this lanes-edit.sh predates Amendment 8"; a caller's bug must not look like an old helper there. F-B7 — the handoff stamp's recovery note says which case the reader is in: the next `lanes-edit.sh` write carries an orphaned commit out only where the handoff lives in the register's own checkout. Suite: 828 passed, 0 failed. Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * tests: the idle holders, the three hook branches, and the deferred pair The fix round's code landed at `3477e55` and `fcf9690`; these are the dedicated tests it owed, and one bug they found in the suite itself. R-A8-2, the deferred pair: one run that DEFERS and one that SETTLES. The title fallback writes the row stamp with the literal `unknown` — the state cell is a history of acts and the act happened — and writes NEITHER the object-log line (Amendment 7(b): that field is a transcript uuid and only that) NOR Rule 3's handoff stamp. `unknown` never enters the SESSION cell, which Amendment 6(b) resumes from. The second `--no-launch` run, with the operator's pick now live in the window, APPENDS the real uuid through the cell-scoped edit and only then writes both deferred records, in one commit each, naming the same uuid. R-A8-6, the orphaned holders: `idle-holders` answers 8 for none, 0 with one line per holder; the cell's LAST id is the lane and never one of its own orphans; a live interactive record IN a window is a rival, which is `live-holder`'s question. `lane-start` reports each with `kind`, profile and the exact act, `kill <pid>` — and the record is still there and the process still alive after, because clause (f) rules the running of it the operator's. R-A8-7, the third branch: a superseded transcript of a normally-resumable lane is cured by a real `lane-start`; the same id on a lane whose NEWEST row stamp says `unknown` is cured by the RECORDING act instead, because a relaunch would take the same title fallback again. No branch names the picker. And the bug: six assertion DESCRIPTIONS spelled ids and subcommands inside backticks within a double-quoted string, so the shell ran `unknown`, `session unknown@`, `kind: bg` and `end pid` as commands and substituted the empty result. The suite printed six `command not found` lines and six mangled descriptions — including `…and never an subcommand, because there is none`, on the assertion that pins there is no `end pid`. Escaped; the needles were always separate arguments, so no assertion changed meaning. 859 passed, 0 failed (828 at `fcf9690`). Co-Authored-By: Claude Fable 5.1 <[email protected]> * who: the second reader of R-A8-6's idle holders, and its own bug Completes the `who` half of R-A8-6 left uncommitted at a6de7cf. `lane-start` already named a row's orphaned holders to the operator about to take the lane; `print_holder_detail` now names the same orphans to everyone else who asks `who` holds an object — the question a person asks when a picker has just offered them two transcripts of one lane, not only the operator's own question at launch. Same source (`idle_holders`), same act (`kill <pid>`, never run here either), same silence on another workstation's records or a failed read. The uncommitted version never printed anything: it piped `idle_holders`' stripped command substitution into `while read`, so on the common one-holder case `read` hit EOF on that single, newline-free line before completing it, returned failure, and the loop body never ran — a `who` on an object held by a lane with a live orphan silently omitted the `idle` line every time. `lane-start`'s own reader of the same helper avoided this by feeding the loop with a here-string instead of a pipe; this now does the same, and adds the here-string's rationale as a comment so the next reader doesn't restore the pipe. Added the test that would have caught it: a log line written directly (the same fixture pattern the repoJ-1/repoJ-2 tests above it use, since `claim` refuses on the dirty checkout the earlier `rm -rf handoffs` fixture cleanup leaves behind for the rest of the file) gives `who` an object to report on, and the assertions check the exact idle line, its session/pid/kind/profile, the retire act, that no `end pid` subcommand is ever named, and that nothing was killed and the process is still alive after. 866 passed, 0 failed (859 before this commit). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * RV-B1: the tree digest is sha256, and the Security gate has one cause The `new_security_rating` condition is the ONLY one of the five the gate fails at `77a2f49` — reliability 1, maintainability 1, duplicated lines 0.0%, hotspots reviewed 100.0%, security **4** against a threshold of 1 — and the whole of that 4 is one issue: `AaCXxOSfi2WmFx-_lncg`, rule `shell:S4790` "Make sure this weak hash algorithm is not used in a sensitive context here", CRITICAL, `lanes/test_lane_helpers.sh:2421`, created 2026-09-12T22:37Z, i.e. R-A8-1's own no-write test. Read first-hand this session through the `sonarqube` MCP server, which is up here and was down for both the four-way reviewer and the re-verifier; all 22 open issues on this PR's new code were enumerated, and this is the only one Sonar files under SECURITY. The other 21 are `shelldre:S7688` (`[[`) and `shelldre:S1192` (duplicated literals), both MAINTAINABILITY, which is rating 1 and passing, and both left standing by this round's ruling. So RV-B1's characterisation is settled in the re-verifier's direction and against the round-up's: it is not pre-existing, it is not inherited, and it is not unrelated — it is this PR's own line, added by this PR's own commit. `tree_of` compares a directory with itself either side of the hook, which needs no cryptographic strength at all; `sha1sum` was simply the shorter word. `sha256sum` does the same job, is not a weak algorithm, and costs nothing at this size. No `# NOSONAR` marker: that hides a finding rather than answering it, and a Security gate on new code is not a thing to label past. The whole PR diff was grepped for every other spelling — `git diff fafc739..HEAD -- lanes/ | grep -E 'md5sum|sha1sum|md5|sha1|openssl'` returns this one line and nothing else. Also takes `shelldre:S7679` on the function being touched: `to_dir` is now `local`. The `return 0` S7682 wants was already there. 866 passed, 0 failed (unchanged — the digest is compared with itself). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * RV-B2: hs_carry_note's two branches, each exercised for real F-B7's deliverable IS the sentence, and at `77a2f49` nothing read either branch of it: `grep -c "register's own checkout" lanes/test_lane_helpers.sh` returned 0, and neither calling path — the pull that aborts, the push that is rejected — had a scenario at all. An untested sentence is what drifts, and this one is the difference between a stamp that lands by itself and a stamp nobody will ever see again. Two runs of one launch, each with the stamp's push refused for real: (a) the handoff in the register's own checkout. The next `lanes-edit.sh` write out of it pushes the branch and takes the orphaned commit with it, so the note may promise the carry — and the assertions read that promise verbatim, plus the whole of the recovery block above it, plus that the launch still exits 0 and the stamp is really on the file and really committed. (b) the handoff resolved through `LANES_WORKSPACE_ROOT` into a SECOND checkout with its own bare origin — `hs_resolve`'s case (c), reached only because the cell names a file `$WIP` does not hold, which is asserted rather than assumed. Nothing there will ever be pushed by a register write, so the note names that checkout and says the printed command is the whole of the recovery. Asserted verbatim, with the register's checkout confirmed never to gain a copy of the file. THE REJECTION IS SCOPED BY THE COMMIT, NOT THE DIRECTORY, and that is the only way this case can be built: in (a) the handoff repo IS the register's checkout, so refusing every `push -C $WIP` would fail `append-row-status` first, and `lane-start` is `set -e` — it would never reach the block under test. Amendment 8(d) gives the stamp commit the subject `handoff(<lane>@<ws>): …`, which no register write carries, and both `commit_push` and the handoff block commit before they touch the network, so HEAD is an exact discriminator at every call the fake sees. Proven to bite: inverting `hs_carry_note`'s condition (`=` → `!=`) gives 876 passed, 4 failed — both sentences missing from the branch that owes them and both present in the branch that must not print them. Restored exactly; `git status --porcelain` clean but for this file. 880 passed, 0 failed (866 before this commit). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * RV-B3: an aborted pull is not proof the commit stayed here The pull-abort branch's recovery was a bare `pull --rebase && push`, with nothing in front of it. The case that bites, live on 2026-09-12T23:04Z: this lane's handoff commit hit an abort on a peer lane's UNTRACKED log file, and the peer's own helper then rebased and pushed — carrying this lane's local commit `59a2576` out to origin underneath its own `f053245`. By the time a reader read the recovery, the commit it was recovering was already on origin; running it blind lands the same Rule 3 stamp twice, in the one document this protocol never rewrites. So the branch now prints the same look-first pair the push-rejected branch below it has always printed: git -C <repo> fetch origin <b> && git -C <repo> log --oneline origin/<b> -3 # a peer's push may already carry it git -C <repo> pull --rebase origin <b> && git -C <repo> push origin <b> # only if it is not there Symmetry is the point: the two degrade paths leave the reader in the same state — a local commit that may or may not have travelled — and only one of them used to say so. The test pins the ORDER as well as the text, because a look printed after the push it gates is not a look: the two `note` lines are located by `grep -n` in the captured stderr and the look's line number is asserted less than the re-push's. It also pins that this is the conflict wording and NOT ruling (h)'s timeout wording, which is a different failure with a different recovery. Built on RV-B2's fixture, with `RJ_VERB=pull` refusing the stamp's own pull the same way the push case refuses its push. Proven to bite: restoring the old single-line recovery gives 885 passed, 3 failed — the look absent, the annotated re-push absent, and the order assertion reporting `look , push 22`. Restored exactly. 888 passed, 0 failed (880 before this commit). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * RV-B4: the README states all three of session-start's properties, and quotes the hook `README-lanes.md` said "**It never writes, and it always exits 0**" — two of the three ratified properties. The missing one, *never touches the network, reads the checkout as last fetched*, is R-A8-1's own subject and the property the four-way review's UNCAUGHT mutation was about: nothing in the document told a reader the block is an offline read, so nothing told them what a re-added `log_sync` would have cost. It now states the third, explains `as of <n> ago (no fetch)` — `ssb_tail`'s unconditional last line, Amendment 8(e) — with what the age is measured from (`.git/FETCH_HEAD`'s mtime), what `never` and `unknown` mean there, and why a `4d ago` block is one a reader knows not to trust about another workstation's lane. All four example blocks gain that closing line, because the requirement is EVERY block. Reading the section against the code also turned up drift the finding did not name, on the very lines RV-B5 is about, so it is fixed in the same motion rather than in a third round: * the superseded-transcript block quoted `WARNING: this window is lane repoSS-1 whose current session is <U>; you resumed <V> — run: lane-start <repo> <n>` — a sentence no branch of the hook has ever printed. The code says `WARNING: this is a superseded transcript of lane repoSS-1; the live one is <U>; you resumed <V> — exit this session and run: lane-start repoSS 1`, and the difference is load-bearing twice over: it is a different diagnosis, and the command is FILLED IN (F-B6). * the `row_stamp_is_unknown` SUB-BRANCH was absent entirely — the case where a relaunch would take the same title fallback again and the cure is the recording act. Documented as a sub-branch, not a third mismatch, which is what F-T2 pins. * the third bound-branch line and the two derived second lines (`handoff already stamped by lane-start …`, `the row records no handoff path …`) were undocumented; so was `row session none recorded` and the `--dir <path> <lane>` fallback for a pre-lane-rule name. Every quoted string above was checked to occur in `lanes-edit.sh` before it was written down. AND THE DOCUMENT IS NOW READ BY THE SUITE. A quoted line nobody reads is the same defect as an untested sentence (RV-B2), one file over — so seven assertions read `$SRC_DIR/README-lanes.md`, the checkout's own copy, for the three-property sentence, the tail, each mismatch branch verbatim, and a `hasnt` on the drifted spelling. Proven to bite: restoring the previous README gives 889 passed, 6 failed. Restored exactly. 895 passed, 0 failed (888 before this commit). Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * Ratify Amendment 8 tooling (lane-start 6(c) stamp + new-uuid append + bare launch on decline, lanes-edit.sh swapped/session-start/append-session-id, idle-holder reports): "ratify 4", Brett Heap, 2026-09-13T03:31:02Z, bare over 41149b5 Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
`git filter-repo` over a fresh clone of `opensoft/brett-wip`, seven paths, one
rename each — R-A9-2's written path map, which `git subtree split --prefix=`
could not do because it carves one prefix and renames nothing while this move
is two source prefixes landing on three destinations:
lanes/lanes-edit.sh -> lanes-edit.sh
lanes/lane-start -> lane-start
lanes/lane-end -> lane-end
lanes/repos.tsv -> repos.tsv
scripts/link-estates -> link-estates
lanes/test_lane_helpers.sh -> tests/test_lane_helpers.sh
lanes/README-lanes.md -> docs/README-lanes.md
The four commands and the shipped table land at the ROOT and nowhere else,
because `--install` resolves every installable by bare name there
(`openRepoTools:147-151`, `cp -- "$selfdir/$name"` / `fetch_from_repo "$name"`).
The suite goes where this repository's suite lives and the manual where its
prose does.
Merged with `--allow-unrelated-histories` so that every moved file keeps the
commits that wrote it: `git log --follow -- lanes-edit.sh` reaches back into
brett-wip. Nothing is edited in this commit — the bytes are the ones that were
in `opensoft/brett-wip` at `aade605b`, unchanged, so that the move and the
changes the move requires are two different reads.
Rollback is `opensoft/brett-wip` tag `pre-amendment-9-move`, which adoption
act 5 places at the commit that still carries all seven paths, before its strip.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openRepoProject-1 Stage 1 of 6 pushed — the history move. Head
Nothing is edited in that commit on purpose: the move and the changes the move requires are two different reads. Stages 2–6 follow. Rollback tag for act 5 recorded in the PR body: |
There was a problem hiding this comment.
🟡 Changes recommended
Critical path-resolution and macOS portability issues remain, along with documentation and alias corrections.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR relocates lane tooling, alias data, and documentation from brett-wip into openRepoTools for future installation.
Changes:
- Adds repository aliases in
repos.tsv. - Adds root-level
lane-start,lane-end, andlink-estatescommands. - Moves lane documentation to
docs/README-lanes.md.
File summaries
| File | Summary |
|---|---|
repos.tsv |
Adds repository alias mappings; one documented alias is missing. |
link-estates |
Relocated symlink manager with unresolved path, layout, and macOS portability issues. |
lane-start |
Lane startup helper with unresolved installed-path, portability, host, and repository-validation issues. |
lane-end |
Lane closure helper with unresolved installed-path, portability, and workstation-identity issues. |
docs/README-lanes.md |
Documentation still references obsolete paths, migration history, tests, and recovery procedures. |
Review details
Suppressed comments (6)
docs/README-lanes.md:56
- The documentation still describes the pre-move layout (
lanes/lanes-edit.sh,lanes/lane-start,lanes/repos.tsv, andscripts/link-estates), while this PR places those files at the repository root. The listed paths and copy-paste commands therefore point at files that no longer exist; update the layout and adoption instructions as part of the move.
| the register | `~/projects/brett-wip/lanes/LANES.md` |
| the path every lane already uses | `~/projects/xFactory/LANES.md` — a **symlink** to `~/projects/brett-wip/lanes/LANES.md` |
| the writer | `~/projects/brett-wip/lanes/lanes-edit.sh` (symlinked as `~/projects/xFactory/lanes-edit.sh`) |
| the two ends of a lane | `lanes/lane-start` and `lanes/lane-end` (symlinked as `~/.local/bin/lane-start` and `~/.local/bin/lane-end`) |
| their tests | `lanes/test_lane_helpers.sh` — run it from anywhere; it touches nothing real |
| the object logs | `lanes/log/<lane>.md` — one per lane (Amendment 7), with `lanes/repos.tsv`, the repo alias table |
| who places the symlinks | `~/projects/brett-wip/scripts/link-estates` (idempotent, `--dry-run`) |
docs/README-lanes.md:10
- This document says the register history arrived as a
git subtree, but the PR description says subtree split was rejected and the move used onegit filter-reporun followed by an--allow-unrelated-historiesmerge. That gives readers the wrong provenance and makes the recovery guidance below misleading; describe the actual migration.
`8fa66b30-4cf5-4b80-b40c-ac3640cf45ab`, on workstation **Eagle**. All 1242
register commits came across with it as a `git subtree`; the orphan branch is
docs/README-lanes.md:1250
- This recovery section repeats the rejected subtree model and refers to
pre-move/lanes/pre-move/handoffstags, while the PR description defines the rollback tag aspre-amendment-9-moveonbrett-wipand says the move was performed withgit filter-repo. These commands and refs will not recover the moved history as documented; replace them with the actual tag/path recovery procedure.
## Reading the history from before the move
`git subtree add` imports commits unchanged, so the 1242 register commits made
between 2026-09-09 and the move carry their pre-move path (`LANES.md`, at the
root of the orphan branch), and git's default history simplification stops at
the subtree merge. Both halves are one command each, in
`~/projects/brett-wip`:
lane-end:392
- Use the same short workstation source here as
lanes-edit.sh(hostname -s). This text is persisted in every closing status, solane-endcurrently records a fully qualified host while the surrounding lane metadata uses the short name, making the workstation history inconsistent.
ws="$(hostname)"
lane-start:992
- The stripping expression removes the host without validating it, so GitLab or arbitrary HTTPS origins such as
[email protected]:alice/repo.gitbecomealice/repoand are recorded as GitHub homes. That contradicts the function's documentedunknownbehavior and can give subsequent#Nobjects the wrong repository; reject non-GitHub hosts before canonicalizing.
nwo="$(printf '%s\n' "$url" | sed -E 's#\.git$##; s#^git@[^:]+:##; s#^ssh://[^/]+/##; s#^https?://[^/]+/##')"
[[ "$nwo" =~ ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$ ]] || return 1
lane-start:858
lane-startwrites this value directly into a new row and its status/handoff stamps, butlanes-edit.shand the documented protocol usehostname -s(lanes-edit.sh:233,docs/README-lanes.md:154). A host with a domain suffix will therefore get inconsistent workstation identities in one lane; use the same short-name source.
ws="$(hostname)"
- Files reviewed: 5/7 changed files
- Comments generated: 13
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| codeXfactory codeXfactory/codexFactory | ||
| codeXfactory/codexFactory codeXfactory/codexFactory |
…nstall` places nine files, a skill and a hook (Amendment 9(a)(b)(c)) Three acts that the move makes necessary, in one commit because each is unreadable without the others. (a) THE WORKSPACE IS FOUND THROUGH `$AGENT_PROTOCOL_ROOT/workspace.yaml`, never beside the file that reads it. `lanes-edit.sh`, `lane-start`, `lane-end` and `link-estates` carry one byte-identical resolver — the same trade this file already makes for its own fetch shim, because a shared `lanes-common.sh` would be a tenth file for `--install` to place. It reads `repository:` and `path:`, checks the path is the ROOT of a checkout of that repository (new: nothing validated it before), and refuses exit 1 naming `openRepoTools wip init` when it cannot. `link-estates` stops placing `~/.local/bin/lane-start` and `lane-end` — `--install` owns those now, and a host still carrying the old symlinks makes workBenches' estate install refuse everything — and reports them as stale instead. It keeps the `lanes-edit.sh` link and repoints it at the installed command, because Amendment 8(e)'s hook names that path. (c) `openRepoTools wip init` — detect, derive login/org/team, create or print the administrator's three acts, clone, seed from openRepoShape's `templates/workspace-root/` with the three-token substitution table, push (which IS the ruleset probe), write the pointer file, run `link-estates`, print the one next line. Zero prompts except where an administrator must act. Exits 0 or 2. `openRepoTools:13`'s "There is no verb here" and the `*)` arm change with it — Brett Heap ruled the command, so the line is what changes (R-A9-1). (b) `--install` places nine files instead of four, plus the `/lane-swap` skill in the shared skills directory and in `~/.claude`, plus one `SessionStart` entry merged into `~/.claude/settings.json` with `jq`, byte-identical to what the launcher ensures per profile. Twelve artifacts, all in hand before any is placed, the merge included: a merge that cannot be computed refuses having placed nothing. It never writes a profile's settings.json — that stays the launcher's under R-A8-5(b). The suite comes with them: `$SRC_DIR` re-anchored at the repository root, the sandbox given a bin directory and its own `workspace.yaml`, the peer workstation addressed through `LANES_WORKSPACE_ROOT` instead of by standing in its directory, and the two "nothing real was touched" guards re-pointed at the operator's own workspace — which is where they were always aiming. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openRepoProject-1 Stages 2, 3 and 4 pushed — head (2) the pointer file. One byte-identical resolver in (3) (4) Stage 5 (tests + the bash-3.2 gate + a CI runner for the moved suite) and stage 6 (docs) next. |
…ite, and the new surfaces covered (Amendment 9 act 3, obligations 1, 4, 5, 6)
`lanes-edit.sh:1697` used `${base,,}` and `${lane,,}`, which are a SYNTAX
error under macOS' /bin/bash 3.2 — the very construction the macOS job's own
comment names as its example. They become `tr '[:upper:]' '[:lower:]'`, and
the four helpers and the moved suite join that job's file list. Checked: no
`mapfile`, `declare -A`, `local -n` or `${x^^}` anywhere in the seven moved
paths.
A SUITE NOTHING RUNS IS NOT A SUITE. This repository's CI is pytest-only, so
196 KB of bash at `tests/test_lane_helpers.sh` would have run in no job at
all. `tests/test_lane_helpers_suite.py` is the wrapper obligation 6 names: one
test, because the bash suite owns its own reporting and re-expressing 897
assertions as pytest ids would be a second implementation of it, and the whole
transcript goes into the assertion message on failure.
The contract's own tests change with the contract (R-A9-1): `USAGE_LINES`,
`INSTALLED` (four to nine), `NOT_ITS_ARGUMENTS`, and the refusal's words. One
new test IS workBenches#68's `--help` probe, byte for byte, so that seam
cannot drift on this side without a red test here. `command_env` now clears
`CLAUDE_PROFILES_HOME` and `CLAUDE_USER_DIR` and points them inside `tmp_path`
— without that, running this suite would install a skill into the developer's
own live profile set.
New: 12 tests for `wip init` (the whole path with a real push, idempotence,
`--dry-run`, no rights → the administrator's THREE acts with every value
substituted, no tty, adoption after an administrator acts, teams 0/1/2, a
non-compliant login, a pointer file naming another repository, an existing
foreign checkout) and 11 for `--install`'s three new artifacts (both skill
paths at 644, the byte-identical hook entry, the merge preserving every other
setting and mode 600, idempotence, and the four refusals — a differing
lanes-edit entry, unparseable JSON, a non-object `hooks`, no `jq` — each
asserting the bin directory is still empty afterwards).
`SHIPPED_BASH` splits: the estate commands keep `set -euo pipefail`; the lane
helpers are held to `set -u`, because `lanes-edit.sh` holds a lock and must
reach its own refusal rather than exiting where it stands. `ALL_BASH` is what
the parse gate and the LF index use.
The openRepoShape pin moves to `ba14e1d`, which is the first commit on that
repository's main to carry `templates/workspace-root/` at all (act 2, #154,
`511e9c2`). Without the bump `wip init` has no template to seed from: the pin
and the gitlink move in one commit, as this repository's own rule requires,
and the digest is recomputed with the pinned checkout's own `repo_shape.py`.
One host-absolute path came across in the moved suite (`/home/x/...`, a hook
payload nothing reads back) and is now a path no machine has.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openRepoProject-1 Stage 5 pushed — tests. Head
One thing the text could not anticipate: the openRepoShape pin had to move. Counts so far: 356 pytest passed, 1 deselected (the slow bash runner, run separately) and 897 passed / 0 failed in |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical and moderate issues affect installation, portability, initialization reliability, tests, aliases, and documentation.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (23)
docs/README-lanes.md:1224
- This moved Raven setup still tells the operator to clone
opensoft/brett-wipand run its deletedscripts/link-estates. After this PR, installation and workspace creation are owned byopenRepoTools, and the workspace repository is user-specific, so following these instructions either fails or bypasses the new pointer-based setup. Rewrite this adoption block to useopenRepoTools --installandwip init.
git clone [email protected]:opensoft/brett-wip.git ~/projects/brett-wip
~/projects/brett-wip/scripts/link-estates --dry-run # rehearse
~/projects/brett-wip/scripts/link-estates # place the symlinks
docs/README-lanes.md:56
- The new documentation still describes the pre-move
brett-wiplayout and paths (scripts/link-estates,lanes/lane-start, and so on), whereas this PR installs those files fromopenRepoToolsand makes the workspace checkout user-specific. A reader following this file will target paths that no longer exist; rewrite the layout and command references around the installed tool andworkspace.yaml.
| repository | `opensoft/brett-wip` — Brett's workspace repository, private, org-owned (the `<user>-wip` form, `openRepoShape#81`) |
| branch | `main`. Direct commits are the norm there **by design**: the repository is excluded from the organisation's PR-only ruleset precisely so a per-edit register commit can land |
| checkout | `~/projects/brett-wip/` |
| the register | `~/projects/brett-wip/lanes/LANES.md` |
| the path every lane already uses | `~/projects/xFactory/LANES.md` — a **symlink** to `~/projects/brett-wip/lanes/LANES.md` |
| the writer | `~/projects/brett-wip/lanes/lanes-edit.sh` (symlinked as `~/projects/xFactory/lanes-edit.sh`) |
| the two ends of a lane | `lanes/lane-start` and `lanes/lane-end` (symlinked as `~/.local/bin/lane-start` and `~/.local/bin/lane-end`) |
| their tests | `lanes/test_lane_helpers.sh` — run it from anywhere; it touches nothing real |
| the object logs | `lanes/log/<lane>.md` — one per lane (Amendment 7), with `lanes/repos.tsv`, the repo alias table |
| who places the symlinks | `~/projects/brett-wip/scripts/link-estates` (idempotent, `--dry-run`) |
lane-end:399
- The PR adds and moves
tests/test_lane_helpers.sh, but CI only runspytestand no Python test invokes this shell suite. The new object-log guard and the end-to-end lane-start/lane-end behavior can therefore regress while CI remains green; add an explicit Bash test step.
# has two rows with stray pipes in them: for one, NF-1 is ` re-cut `. A
# fragment that happens not to carry the word LANDING is a fail-open.
state_cell_of() {
local s
s="$(printf '%s\n' "$1" | awk -F'|' '{
if (NF >= 9) { c = $8; for (i = 9; i < NF; i++) c = c "|" $i; print c }
else { print $(NF-1) }
}')"
s="${s#"${s%%[![:space:]]*}"}" # ltrim
s="${s%"${s##*[![:space:]]}"}" # rtrim
printf '%s' "$s"
link-estates:247
readlink -fis not available in the stock macOS toolset. When it fails here, both command substitutions become empty, so every non-dangling symlink satisfies"" == ""and a link pointing at the wrong target is reported asKEEPinstead of being repaired. Use a portable canonicalization helper/fallback before comparing targets.
# established in brettheap/new-workstation, and the one Amendment 4(f) names.
link-estates:289
-mindepth,-maxdepth, andsort -zare GNU-only; the macOSfind/sortimplementations reject this process substitution. Because the failure occurs inside process substitution, the parent continues with no handoff rows and can still report the rest of the linking run as successful. Replace this with a portable directory iteration/sort.
return
link-estates:184
wip_initclones into$PROJECTS_DIRand then invokes this script, butlink-estatesonly honors$PROJECTS_ROOT; with a configured non-default project directory it checks~/projectsand leaves the links absent. Use the same configured root so the documentedPROJECTS_DIRoverride works end to end.
if [ -z "$real" ] || [ "$toplevel" != "$real" ]; then
link-estates:266
- Although this script promises never to delete a real file, the identical-file branch removes the regular file before creating the symlink. An interruption between these commands loses the path and violates the recovery guarantee; move the file aside as in the other real-file branch before linking it.
return
openRepoTools:1034
- These value-taking arms only check that an argument slot exists.
--org ""silently falls back toopensoft,--login ""triggers a new login lookup, and--team ""re-derives teams, so an explicitly supplied empty value is ignored instead of refused. Reject empty values consistently with the other commands before assigning these variables.
local verb="${1-}"
shift || :
case "$verb" in
openRepoTools:902
- A pre-existing checkout can be clean but currently be on a feature branch; this check only verifies its origin and root. The seed commit is then created on that branch and pushed below as
HEAD:main, which can publish branch-only workspace history as main. Refuse non-main checkouts (or otherwise verify the intended branch) before adopting an existing clone.
else
openRepoTools:952
git add -A -- .stages every local modification and untracked file in an existing checkout, not just files seeded by this run. If the target directory was reused with unrelated work, the subsequent commit and push can publish that work to the workspace repository. Refuse unrelated dirty paths or stage only the explicit template paths.
say " seeded $seeded of ${#WIP_TEMPLATE_FILES[@]} template files from $SHAPE_REPOSITORY @ $ref"
else
openRepoTools:999
- The pointer file is written before the linker result is handled, and a linker refusal is converted to a message with
|| say.wip inittherefore exits successfully and a rerun hits the early idempotence return, so a transient or missing link-estates failure is never retried by the advertised initialization command. Only mark the workspace complete after linking succeeds, or make idempotence verify the required links.
say " wrote $config"
openRepoTools:544
- This checkout path is derived from
$PROJECTS_DIRand supports~/Projects, butlink-estatesandlane-startuse the separate$PROJECTS_ROOTdefault of~/projects. On a supported host using the documented override or~/Projects, initialization puts the workspace in one tree while the linker searches another and skips the estate links. Use one shared project-root resolution for initialization and the helpers.
wip_projects_dir() {
if [ -n "${PROJECTS_DIR:-}" ]; then printf '%s\n' "$PROJECTS_DIR"; return 0; fi
[ -d "$HOME/projects" ] && { printf '%s\n' "$HOME/projects"; return 0; }
if [ -d "$HOME/Projects" ]; then printf '%s\n' "$HOME/Projects"; return 0; fi
printf '%s\n' "$HOME/projects"
openRepoTools:1011
- The command printed here puts
--laneafterrun, but the lane-swap instructions in this same change note thatclaude-profileaccepts--laneonly as a leading option; afterrunit is passed to Claude. The advertised next step therefore does not select the lane. Print the leading-option form instead.
else
openRepoTools:762
- The local template fast path copies any files present under
upstream/openRepoShapewithout checking that the submodule HEAD matches therefread from the pin file. A stale or locally modified submodule can therefore seed an unpinned workspace while the command reports the pinned revision. Validate the submodule commit before using this path, or fetch the exact pinned ref.
if fetch_from_repo "contracts/openreposhape-pin.yaml" "$WORKDIR/pin.yaml"; then
pin="$(sed -n 's/^commit:[[:space:]]*//p' -- "$WORKDIR/pin.yaml" | head -n 1)"
pin="${pin%\"}"; pin="${pin#\"}"
openRepoTools:260
place_skill_and_hookruns only after the nine command files have already been copied. If either skill copy or the settings write fails, those commands remain installed despite the all-or-nothing promise and refusal text. Include the skill and hook writes in the same transaction, or roll back the command replacements before returning an error.
place_skill_and_hook
openRepoTools:190
- These four moved Bash files are now PATH-installed commands, but
tests/test_repo_hygiene.py:23-29and the macOS/bin/bash -nstep in.github/workflows/tests.yml:210-216still enumerate only the original four. A regression in their mode, shebang,set -euo pipefail, or Bash 3.2 syntax can therefore ship unnoticed; extend both checks with the new command set.
INSTALLABLES=(openRepoTools park resume status lanes-edit.sh lane-start lane-end link-estates repos.tsv)
openRepoTools:973
- If the initial seed push fails, the clone and committed seed remain. On the rerun after the administrator fixes the ruleset,
git status --porcelainis clean, so this branch skipsgit pushand writesworkspace.yamleven thoughorigin/mainstill lacks the seed. Check for a local commit ahead oforigin/mainand push it before declaring the seed complete.
THAT IS THE RULESET, and it is the thing this push exists to find out: the
openRepoTools:308
- The SessionStart command is hardcoded to
~/projects/xFactory/lanes-edit.sh, while the installer exposes a configurable project root andlink-estatesplaces the link under that root. With a non-default root, the hook points at a path that is never linked; its|| truethen hides the failure and session-start registration never runs. Generate the hook command from the same configured root or target the installed writer.
HOOK_COMMAND='~/projects/xFactory/lanes-edit.sh session-start || true'
repos.tsv:47
- The Rule 6 data and tests use the bare
codexFactoryspelling (for example,tests/test_lane_helpers.sh:1760), but alias lookup only accepts aliases present in this table and no barecodexFactoryrow exists. Those records will be refused or remain unpaired despite the comment claiming all four spellings resolve. Add the missing alias.
codeXfactory codeXfactory/codexFactory
skills/lane-swap/SKILL.md:96
- This block is described as copy-pasteable, but the commit command contains literal
<lane>,<ws>, and<one-line state>placeholders. Running it records those placeholders in the handoff commit instead of the actual lane metadata, and no preceding step derives the state text. Generate the complete commit command from the values already derived in the skill or explicitly require a filled command before execution.
git commit -m "handoff(<lane>@<ws>): PAUSED, <one-line state>" -m "Lane: <lane>"
git pull --rebase && git push
skills/lane-swap/SKILL.md:19
Lis fixed to~/projects/xFactory/lanes-edit.sh, butlink-estatesandwip initsupport configured project roots. On a workstation using$PROJECTS_DIRor$PROJECTS_ROOT, the symlink is under that root and eachregister-rowcall fails before the swap workflow starts. Derive this path from the configured root or call the installed writer directly.
L=~/projects/xFactory/lanes-edit.sh
skills/lane-swap/SKILL.md:129
append-linewrites a lane-kindPAUSEDline intoLANES.md, while the moved writer's contract says that file is unchanged except Rule 6LANDING/LANDED(lanes-edit.sh:996-999), andswappedreads the object log. This adds an unconsumed register line and violates the shared-register format; keep the PAUSED event only in the object log.
# (b) the LANES.md file-level line, the shape every prior PAUSED/RESUMED used
"$L" append-line "PAUSED — lane $lane, session $uuid@$(hostname -s), $(date -u +%Y-%m-%dT%H:%M:%SZ), on <operator>'s word \"<sanitized verbatim>\"; <what's open, or NOTHING CLAIMED>; handoff refreshed"
skills/lane-swap/SKILL.md:132
- This matcher requires the literal
·suffix, butlane-startcreates| STARTING |and ordinary rows use| ACTIVE |. For those rowsstateis empty,replace-in-rowis never called, and the swap record is not written. Extract the leading state cell with or without the history suffix (and with the comma form used byIDLErows).
state="$(printf '%s' "$row" | grep -o '| [A-Z][A-Z]* ·' | head -n 1)" # e.g. '| LIVE ·'
- Files reviewed: 15/17 changed files
- Comments generated: 4
- Review effort level: Lite
| # destination and a second mode in this file, in the loop below, and again in | ||
| # workBenches' `setup-estate-commands.sh`, whose post-install verify refuses any | ||
| # target whose mode is not exactly 755. Amendment 9(b) chose the ugliness. | ||
| INSTALLABLES=(openRepoTools park resume status lanes-edit.sh lane-start lane-end link-estates repos.tsv) |
| pin="${pin%\"}"; pin="${pin#\"}" | ||
| [ -n "$pin" ] && { printf '%s\n' "$pin"; return 0; } | ||
| fi | ||
| printf 'main\n' |
| RESOLVED="$(readlink -f "$SELF" 2>/dev/null || printf '%s' "$SELF")" | ||
| else | ||
| RESOLVED="$SELF" | ||
| fi | ||
| SCRIPT_DIR="$(cd -- "$(dirname -- "$RESOLVED")" && pwd)" |
| and the Rule 5 `Lane:` trailer, then pull-rebase and push: | ||
|
|
||
| ```sh | ||
| cd ~/projects/brett-wip |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical portability, data-safety, and installer/workspace-initialization defects remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (15)
docs/README-lanes.md:1224
- The Raven setup still clones
brett-wipand invokes its removedscripts/link-estates. After this move the supported sequence isopenRepoTools --installfollowed bywip init/the installed linker, so this onboarding block cannot work against the repository state produced by the PR.
git clone [email protected]:opensoft/brett-wip.git ~/projects/brett-wip
~/projects/brett-wip/scripts/link-estates --dry-run # rehearse
~/projects/brett-wip/scripts/link-estates # place the symlinks
docs/README-lanes.md:1238
- This statement is now false: the new
link-estatesexplicitly does not placelane-startorlane-endsymlinks, because--installplaces them as regular files. Following this instruction can recreate the legacy symlinks that the new installer and estate setup reject.
`link-estates` also places `~/.local/bin/lane-start` and
`~/.local/bin/lane-end` (creating that directory if it is missing, and saying
so when it is not on your PATH). The helpers resolve the register and its
writer from their own real path, so the symlink is all they need.
lane-end:272
lanes_workspace_rootpromises to setLANES_WS_WHYon failure, but this command substitution runs the function in a subshell, so that assignment is discarded. Every missing/invalid workspace therefore falls through tono reason recordedinstead of naming the actionable YAML or checkout problem; invoke the resolver without command substitution or return the reason through another channel.
LANES_WS_ROOT="$(lanes_workspace_root || :)"
lane-start:412
lanes_workspace_rootpromises to setLANES_WS_WHYon failure, but this command substitution runs the function in a subshell, so that assignment is discarded. Every missing/invalid workspace therefore falls through tono reason recordedinstead of naming the actionable YAML or checkout problem; invoke the resolver without command substitution or return the reason through another channel.
LANES_WS_ROOT="$(lanes_workspace_root || :)"
link-estates:263
- macOS
readlinkdoes not implement-f. For a valid but wrong symlink, both substitutions can therefore yield empty strings and the comparison keeps the link instead of relinking it; this makes the installer leave stale links in place on a supported platform. Use a portable canonicalization path and treat resolution failure as a mismatch.
if [[ -e "$live" && "$(readlink -f -- "$live")" == "$(readlink -f -- "$target")" ]]; then
link-estates:305
- This process substitution depends on GNU-only
find -mindepth/-maxdepthandsort -z; macOSfind/sortdo not provide those options. The loop then receives no handoff directories, so a supported macOS workstation silently skips all estate handoff links.
done < <(find "$repo_dir/handoffs" -mindepth 1 -maxdepth 1 -type d -print0 | sort -z)
link-estates:219
lanes_workspace_rootpromises to setLANES_WS_WHYon failure, but this command substitution runs the function in a subshell, so that assignment is discarded. Every missing/invalid workspace therefore falls through tono reason recordedinstead of naming the actionable YAML or checkout problem; invoke the resolver without command substitution or return the reason through another channel.
repo_dir="$(lanes_workspace_root || :)"
openRepoTools:765
- Falling back to
mainwhen the pin file is unavailable or malformed breaks the pinned-template contract: an installed command can silently seed a workspace from whateveropenRepoShapecurrently has onmain. A missing or invalid pin should refuse before any template is fetched rather than selecting a moving ref.
printf 'main\n'
openRepoTools:774
- This local-copy fast path trusts whatever commit is currently checked out in
upstream/openRepoShapeand never compares it with the pinnedref. A stale or manually detached submodule therefore seeds different bytes even thoughwip_shape_refread the pin; only use the checkout when itsHEADequalsref, otherwise fetch/refuse.
if [ -n "$selfdir" ] && [ -f "$selfdir/upstream/openRepoShape/$path" ]; then
cp -- "$selfdir/upstream/openRepoShape/$path" "$dest"
return 0
fi
openRepoTools:260
- The nine command files are copied into their final directory before
place_skill_and_hookwrites the skill and settings. A permission or I/O failure in either of those later placements leaves a partial install, despite the documented all-or-nothing contract and the refusal messages saying that nothing was installed; stage all destinations or roll back the earlier copies on failure.
for name in "${INSTALLABLES[@]}"; do
source="$STAGED/$name"
target="$dir/$name"
if [ -e "$target" ] && cmp -s "$source" "$target"; then
verb="already installed at $target (unchanged)"
else
if [ -e "$target" ]; then verb="updated at $target"; else verb="installed at $target"; fi
cp -- "$source" "$target"
fi
# Stamped every time: a copy that is not executable is not a command.
chmod 755 "$target"
placed=$((placed + 1))
say "$name: $verb"
done
# THE COUNT, out loud: a person reading eight lines cannot tell whether a
# ninth was meant to be there.
say "openRepoTools: $placed of ${#INSTALLABLES[@]} placed in $dir"
place_skill_and_hook
openRepoTools:1071
- Because
wipis accepted after--install,openRepoTools --install wip initbypasses installation and creates a workspace.--installis documented and tested as taking no other argument, so the dispatcher must reject this combination before enteringwip_dispatch.
wip) shift; wip_dispatch "$@"; exit $? ;;
openRepoTools:506
- This introduces
OPENREPOTOOLS_WIP_ORGas a user-controllable default, but the command's usage omits it and the installer test's environment-variable contract does not cover it. A workstation or fork cannot discover why the derived organization differs from the documented default; either document and test this variable or remove the hidden override.
WIP_ORG_DEFAULT="${OPENREPOTOOLS_WIP_ORG:-opensoft}"
openRepoTools:190
- Expanding the installer to nine files leaves the repository's existing hygiene contract red:
tests/test_repo_hygiene.py:458-460still requires README text sayingFOUR filesand4 of 4 placed, while this code now reports9 of 9. Update the README and those assertions in the same change, otherwise the full pytest suite cannot pass.
INSTALLABLES=(openRepoTools park resume status lanes-edit.sh lane-start lane-end link-estates repos.tsv)
openRepoTools:1022
- The launcher documents
--laneas a leading option and explicitly says thatpclaude run <profile> --lane <lane>is passed to Claude instead of the launcher. This newly printed next step uses exactly that invalid ordering, so following it will not select the requested lane; printpclaude --lane <repo>-<n> run <profile>and update the corresponding output assertion.
say " pclaude run <profile> --lane <repo>-<n>"
skills/lane-swap/SKILL.md:95
- This installed skill still documents the pre-move Brett-specific checkout.
wip initderives<login>-wipand acceptsPROJECTS_DIR, so on any other login or non-default projects directory these commandscdto the wrong repository and cannot update the handoff that the preceding steps found. Resolve the workspace path fromworkspace.yamlinstead of hard-coding it.
cd ~/projects/brett-wip
git add "$handoff"
git commit -m "handoff(<lane>@<ws>): PAUSED, <one-line state>" -m "Lane: <lane>"
- Files reviewed: 15/17 changed files
- Comments generated: 13
- Review effort level: Lite
| # Stale lock (>10 min) is removed: a helper run never takes that long. The | ||
| # age test is now the FALLBACK — the pid test above is the real one. | ||
| if [ -d "$LOCK" ]; then | ||
| if [ -z "$(find "$LOCK" -maxdepth 0 -mmin -10 2>/dev/null)" ]; then |
| if [ -n "${OPENREPOTOOLS_BIN_DIR:-}" ] && [ -f "$OPENREPOTOOLS_BIN_DIR/repos.tsv" ]; then | ||
| LANES_REPOS_TSV_SHIPPED="$OPENREPOTOOLS_BIN_DIR/repos.tsv" | ||
| else | ||
| LANES_REPOS_TSV_SHIPPED="$SCRIPT_DIR/repos.tsv" |
| printf 'PLAN replace identical file with link %s\n' "$live" | ||
| return | ||
| fi | ||
| rm -- "$live" |
| proc = subprocess.run(["bash", str(SUITE)], capture_output=True, text=True, | ||
| check=False, cwd=str(REPO), timeout=TIMEOUT_SECONDS, | ||
| env=env) |
| --org) shift; [ $# -gt 0 ] || die "--org needs a value"; WIP_ORG="$1"; shift ;; | ||
| --login) shift; [ $# -gt 0 ] || die "--login needs a value"; WIP_LOGIN="$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')"; shift ;; | ||
| --team) shift; [ $# -gt 0 ] || die "--team needs a value"; WIP_TEAM="$1"; shift ;; |
…story at nine files and twelve artifacts, the onboarding chain, and the invariant that retired on purpose (Amendment 9 act 3, obligations 2, 3, 7) `docs/README-lanes.md` is rewritten for the installed-command world, which is obligation 7. Its layout table names no person's checkout any more: the repository is `<org>/<login>-wip` named by `repository:` in the pointer file, the register is `<the checkout>/lanes/LANES.md`, the writer is an installed command, and the two ends of a lane are regular files rather than symlinks. Its § "Adopting this on another workstation (Raven)" is two commands where it was a clone of somebody else's private repository and that repository's own linker, and it gains the pre-move section act 6 needs: remove the two `~/.local/bin` symlinks BEFORE the first `--install`, because workBenches' `setup-estate-commands.sh` refuses the whole estate install on a symlink at an install target and `setup.sh` swallows that exit into one warning line. § "Reading the history from before the move" becomes "before either move", because there have now been two and they used different mechanisms: the register moved by `git subtree` under Amendment 5 and the code moved by one `git filter-repo` run under Amendment 9(f)(2). Conflating them is what the first review of this branch did, and the section now gives each its own commands — `git log --follow` here, `pre-move/lanes` there — and names the rollback tag `pre-amendment-9-move`. `README.md` gains § "The lane tooling" and § "`openRepoTools wip init`", and its § "Install" grows from FOUR files to NINE and from four artifacts to TWELVE. The two-line onboarding chain of clause (e) leads that section, with both preconditions named — `gh auth login`, and `~/.local/bin` on `PATH` after a restarted terminal — and the by-hand pair for a host that has this toolset without workBenches. `AGENTS.md` says the lane tooling answers to a different document, that the code is here and the data is not, and that one exit code now means two things across the seam between two toolsets: 1 is *registry not found* in the protocol's commands and *findings were printed* in this toolset's, so no caller reads a number without knowing which command produced it. Obligation 3, the retired invariant, in all three places at once and deliberately rather than by red test: `~/.agents/workspace.yaml` has TWO writers now, `resume --workspace` and `wip init`, both only on a machine that has none and neither overwriting one. Obligation 2, the caps: AGENTS.md 155 -> 179 and README.md 251 -> 351, each with the dated docstring entry `tests/test_repo_hygiene.py` requires, naming which rule the new lines bought. And the install count the hygiene suite holds moves with the documents it guards — "NINE files", "9 of 9 placed" — so a release that grows the install and forgets to say so is still red. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved correctness, portability, safety, and installation issues remain.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (13)
Previously missed (1) — in code that hasn't changed since the last review.
openRepoTools:1108
wip initdocuments only exit codes 0 and 2, but this unguardedmkdirruns underset -eand returns the shell's status 1 when the projects parent is unavailable. That makes an ordinary filesystem refusal look like the toolset's 'findings printed' result; guard it with|| dielike the other setup writes.
README.md:150
- This onboarding command has the same invalid option order as the command output: the shipped lane-swap instructions state that
--lanemust precederun, not follow the profile argument. A new user copying this documented line will have the flag handled by Claude rather than the launcher; change it to the leading-option form and keep the generated message/tests aligned.
pclaude run <profile> --lane <repo>-<n>
link-estates:283
- On stock macOS,
readlinkdoes not provide GNU's-foption. When an existing link is already correct, both substitutions fail and this condition is false, solink-estatesneedlessly removes and recreates the link on every run (and loses the target in the diagnostic). Use the same portable real-path fallback used by the other helpers so the documented idempotence works on macOS.
if [[ -e "$live" && "$(readlink -f -- "$live")" == "$(readlink -f -- "$target")" ]]; then
openRepoTools:936
- Falling back to
mainhere silently violates the promise that workspace templates come from the pinned openRepoShape commit. An installed command whose pin file is missing or unreadable can therefore seed from a moving branch and produce a workspace that differs between runs; refuse with a controlled error instead of using an unpinned ref.
printf 'main\n'
openRepoTools:507
- The
presentbranch wins whenever the exact command appears, even if anotherSessionStarthook also contains a differentsession-startcommand. That leaves both hooks active and defeats the documented conflict refusal; the jq predicate should returnconflictwhenever a non-exact session-start command exists, before acceptingpresent.
existing="$(jq -r --arg c "$HOOK_COMMAND" '
[ (.hooks.SessionStart // [])[]? | (.hooks // [])[]? | .command // empty ] as $cmds
| if ($cmds | index($c)) then "present"
elif ($cmds | map(select(test("session-start"))) | length) > 0 then "conflict"
else "absent" end' "$settings" 2>/dev/null || printf 'error')"
openRepoTools:1255
- This prints an invalid launcher invocation.
skills/lane-swap/SKILL.md:169-172explicitly says--laneis a leading option and thatpclaude run <profile> --lane <lane>is passed through to Claude instead ofclaude-profile; users following this output will not select the lane. Emit the leading-option form (and update the matching tests/documentation).
say " pclaude run <profile> --lane <repo>-<n>"
openRepoTools:1099
- An existing checkout is accepted based only on its origin, but the later
git add -A -- .andgit push HEAD:mainoperate on its current state. If the checkout is dirty or is on a feature branch,wip initcan commit and publish unrelated user work to the workspace repository'smain; require a cleanmaincheckout or stage only the files this run seeded before pushing.
if [ -d "$checkout/.git" ]; then
wip_is_checkout_of "$target" "$checkout" ||
die "$checkout is already a checkout, and not of $target. This command will not
write into a clone of somebody else's repository, and it will not move one aside.
Move it yourself, or pass a different projects directory with \$PROJECTS_DIR.
openRepoTools:559
- The nine command destinations are protected against symlinks during planning, but these two skill targets are not. If an existing
SKILL.mdis a symlink, thecmp/cpsequence follows it and overwrites the symlink's referent outside the intended install path. Refuse symlinked skill targets during planning, before any of the twelve artifacts are placed.
if [ -e "$target" ] && cmp -s "$WORKDIR/SKILL.md" "$target"; then
say "$SKILL_NAME: already installed at $target (unchanged)"
else
if [ -e "$target" ]; then verb="updated at $target"; else verb="installed at $target"; fi
cp -- "$WORKDIR/SKILL.md" "$target" ||
openRepoTools:248
- The command destination is not included in the planning checks, and this
mkdiris unguarded. If$OPENREPOTOOLS_BIN_DIRalready exists but is not writable (or its parent cannot be created), the shell exits 1 here or on the firstcpinstead of the documented refusal path (exit 2); with pre-existing targets, later commands can also be partially updated. Validate/create the bin destination during planning and route failures throughdiebefore placing any files.
mkdir -p "$dir"
openRepoTools:1134
- These two filesystem operations have the same unguarded
set -epath: a permission failure while materializing a nested template exits 1 and can leave earlier template files behind, instead of producing the command's documented exit-2 refusal. Guard both operations and report the checkout and template path in the refusal.
mkdir -p -- "$checkout/$(dirname -- "$rel")"
cp -- "$dest" "$checkout/$rel"
openRepoTools:1189
- Every push failure is reported as proof that the organisation's PR-only ruleset rejected the commit, while the actual
git pusherror is discarded. Authentication, network, and non-fast-forward failures take this same branch and lead the operator to change an unrelated ruleset, so preserve the push diagnostic and only give the ruleset remediation when the remote explicitly indicates that gate.
elif ! git -C "$checkout" push -q origin HEAD:main >/dev/null 2>&1; then
die "the seed commit could not be pushed to $target's main.
THAT IS THE RULESET, and it is the thing this push exists to find out: the
organisation's PR-only ruleset refuses a direct commit, and Rule 9's one commit
per write cannot land through a PR gate — so the register would be unwritable.
openRepoTools:1096
- A valid Git worktree has a
.gitfile rather than a.gitdirectory. Sincewip_is_checkout_ofalready accepts such a checkout, this condition incorrectly falls through to the generic existing-path refusal instead of adopting the workspace worktree. Test for the presence of.git(or ask Git directly) so the step-6 check agrees with the validator used by step 1.
if [ -d "$checkout/.git" ]; then
wip_is_checkout_of "$target" "$checkout" ||
skills/lane-swap/SKILL.md:93
- This still points the skill at the pre-migration data checkout. After Amendment 9,
wip initcreates the workspace repository named by$AGENT_PROTOCOL_ROOT/workspace.yaml(for example~/projects/brettheap-wip), whilebrett-wipis being stripped to data; running this block there means the handoff path is outside the repository being committed and the pause update is not pushed. Resolve andcdto the pointer's workspace checkout (or derive the Git root from$handoff) before thegit add.
cd ~/projects/brett-wip
- Files reviewed: 18/20 changed files
- Comments generated: 1
- Review effort level: Lite
| teams="$(gh api --paginate /user/teams \ | ||
| -q ".[] | select((.organization.login | ascii_downcase) == \"$(printf '%s' "$org" | tr '[:upper:]' '[:lower:]')\") | .slug" \ | ||
| 2>/dev/null || :)" |
…variable name, quotes written into the register, a `case` bash 3.2 cannot parse, and a bound that is not on this platform at all (A9 Addendum 4, R-A9-11, round 4)
`e3d57dd` took `tests-macos` from **560 passed / 438 failed** to **973 passed /
26 failed**, and the run from 1108 s to 415 s — the cascade was most of both.
The transcript decoded this time, which is the first round of this act in which
the macOS failures could be READ. Four of the five remaining groups are fixed
here; the fifth is probed rather than guessed at.
**1. BASH DECIDES WHERE A NAME ENDS WITH `isalnum()`, AND THAT IS A LOCALE
CALL.** `lane-end:573` printed the pre-cutover excerpt as `" …$excerpt…"`.
Under the `en_US.UTF-8` the runner sets, bash 3.2 on Darwin reads the three
bytes of `…` as name characters, so that is a reference to `excerpt…` — unset,
`set -u`, and the script DIED where it was about to print the refusal:
`lane-end: line 573: excerpt…: unbound variable`, and exit 0 out of the branch
whose whole purpose is exit 2. `${excerpt}` says where the name ends. This
estate writes every message with `…`, `—` and `·` in it, so the rule is held
for all three across all ten bash files rather than for the one line that was
found.
**2. BASH 3.2 WRITES THE QUOTES OUT.** In `${var/pattern/replacement}`, bash
4.3 and later read quotes as "this half is a literal, not a pattern". Bash 3.2
removes them from the pattern half and KEEPS THEM IN THE REPLACEMENT, so
`replace_line "$n" "${row/"$old"/"$new"}"` wrote the new text wrapped in
double quotes. `lane-end --retire` on macOS produced
`| "RETIRED 2026-09-13T20:39:04Z" · …` where every reader of that column
expects `| RETIRED 2026-…`, and NOTHING WENT RED FOR IT except the two
assertions that read the cell: the write succeeded, the commit landed, the row
was quietly wrong. Prefix and suffix now, so the replacement never enters the
pattern machinery at all.
**3. A `)` THAT CLOSES A `case` PATTERN CLOSES THE SUBSTITUTION TOO.** Bash
3.2's parser cannot read `$(case "$x" in ''|*[!0-9]*) … esac)`; the macOS job
answered `command substitution: line 3284: syntax error near unexpected token
'newline'` and the assertion then compared a fragment of the suite's own source
against `yes`. Hoisted one line up, same test.
**4. `timeout(1)` IS NOT ON A STOCK macOS, so Amendment 8(h)'s bound is not
either** — `lanes-edit.sh:810` reaches for it through `command -v`, and where
it is absent a hung push holds the mutex until it is killed. That is a real
platform gap and it is RECORDED, not shimmed: a fake `timeout` in the sandbox
bin would make these cases green on a host where the behaviour they assert does
not happen. So the suite gets a third answer — `skip`, printed, counted, and
named in the footer — and six cases take it there. Two of those six were not
red before: they were GREEN AND VACUOUS, asserting that a command which had
failed as `command not found` printed nothing.
**5. AND THE ONE THAT IS NOT YET PROVED, asked rather than guessed.** Fourteen
of the twenty-six were `who --landing` answering `none open` about a LANDING
plainly in the register; every `who --landing` that PASSED there was reading a
lane's own object log instead, so `who_landing`'s register half is producing
nothing on that platform and only on that platform. It runs green here under
mawk and under `--traditional` and `--posix`. A `probe` step now asks the
runner directly — whether its awk counts bytes or characters, what `RSTART`
and `substr` do to a line carrying an em dash, whether `-v` survives a newline,
and what bash 3.2 makes of a nested `$( )`. One suspect is removed rather than
left standing: `awk -v aliases="$(rule6_aliases)"` inside `"$( … )"` is the
shape 3.2's parser is worst at, and it is two lines now.
Also: `cat -A` is GNU, and it killed the facts step this act added — on its
first run, under `bash -e`, before the rest printed. It had already done its
job by then: `wc -l pads? : [ 2]`.
NO BEHAVIOUR CHANGE ON GNU. `lane-start` is still untouched by this act's macOS
rounds, and the hotfix ported at `dcf1027` is unaffected.
Local: `python3 -m pytest tests -q` **418 passed**;
`bash tests/test_lane_helpers.sh` **999 passed, 0 failed, 0 skipped**, and
999/0/0 again under shims that pad `wc` and reject `cmp -n` and `head -c 0`;
and with `HAVE_TIMEOUT` forced to 0 to rehearse a host with no `timeout(1)`,
**993 passed, 0 failed, 6 skipped** — the six, and nothing else.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Lane: openRepoProject-1 Round 8 — head
The new It also died one line later on The 26, in five groups. Four are fixed here. 1 — 2 — 3 — the suite's own 4 — 5 — the one still open, probed rather than guessed (14 failures).
No behaviour change on GNU, and none to the hotfix ported at Still DRAFT. Nothing marked ready, merged or retargeted. |
|
Lane: openRepoProject-1 HANDOFF — head Watch run 34782845181 (head Where the macOS job has got to
The one group still open (14 of the 26)
Two suspects, and the probe distinguishes them:
If the probe says awk: a replacement ($1 == "LANDING" || $1 == "LANDED") && $2 == "—" {
verb = $1
lane = ""; pr = ""; repo = ""; utc = ""
for (i = 3; i <= NF; i++) {
if (lane == "" && $i == "lane" && i < NF) { lane = $(i+1); sub(/,$/, "", lane) }
if (pr == "" && $i == "PR" && i < NF && $(i+1) ~ /^#[0-9]+$/) { pr = substr($(i+1), 2) }
if (repo == "" && $i == "into" && i + 2 <= NF && $(i+2) == "main") repo = canon($(i+1))
if (utc == "" && $i ~ /^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9](:[0-9][0-9])?Z,?$/) { utc = $i; sub(/,$/, "", utc) }
}
if (lane == "" || pr == "") next…and keep everything from The four fixed at
|
| mutation | result | |
|---|---|---|
| M1 | the re-derive line removed from all four lane helpers | caught — 7 failed, incl. test_the_workspace_refusal_carries_the_reason_it_computed |
| M2 | step 8 gated on the worktree again | caught — 4 failed, all in test_wip_init_command.py |
| M3a | the [ -w "$d" ] refusal disabled — this is the one that SURVIVED the #24 review (F6) |
caught now — test_a_leaf_destination_that_exists_unwritable_refuses_before_anything_is_placed |
| M3b | hook merge computed after the nine files are placed | running |
| M4 | the wip init usage line dropped |
running |
Every one restored byte-exact (md5sum on all five files, git status --porcelain empty). openRepoTools is byte-identical between e3d57dd and 584180a, so M2/M3a/M3b/M4 carry over unchanged; M1's mutated line is present exactly once in each of the four lane helpers at both commits.
Still to do
- Read the probe step, fix the Rule 6 group, get 4/4 on one head.
- Finish M3b and M4.
- PR body: head sha, per-platform counts, run links; then the closing
DONE @<sha>comment.
Still DRAFT. Nothing marked ready, merged or retargeted.
Worktree note for whoever picks this up: work in /tmp/claude-1000/-workspace-projects-openRepoProject/a3ab3df2-1191-4629-8a2b-ac4bd5757a5a/scratchpad/ort-a9. There is a SECOND worktree on this same branch at /workspace/projects/.lane-worktrees/openRepoProject-1/ort-a9 whose index is staged to delete 3804 lines across 16 files — do not commit from it.
There was a problem hiding this comment.
🟡 Changes recommended
Critical and moderate review findings remain unresolved across the implementation, documentation, portability paths, and tests.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (13)
link-estates:284
- Stock macOS
readlinkdoes not provide GNU-f; both substitutions therefore fail to produce paths, and an existing symlink can satisfy the empty-string comparison and be kept even when it points at the wrong target. This breaks the relink/keep decision on a platform the repository explicitly supports. Use a portable canonical-path helper (or a guardedgreadlinkfallback) for this comparison.
if [[ -e "$live" && "$(readlink -f -- "$live")" == "$(readlink -f -- "$target")" ]]; then
printf 'KEEP %s -> %s\n' "$live" "$target"
openRepoTools:1278
- These checks only verify that a value is present, so
--org '',--login '', and--team ''are silently treated as omitted: the first falls back to the default organisation and the latter two trigger derivation. This contradicts the toolset's established value-option contract, which rejects both missing and empty values with exit 2 before doing work; add an explicit non-empty check for each option.
--org) shift; [ $# -gt 0 ] || die "--org needs a value"; WIP_ORG="$1"; shift ;;
--login) shift; [ $# -gt 0 ] || die "--login needs a value"; WIP_LOGIN="$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')"; shift ;;
--team) shift; [ $# -gt 0 ] || die "--team needs a value"; WIP_TEAM="$1"; shift ;;
openRepoTools:559
- The skill targets are not protected like the nine bin targets: an existing
SKILL.mdsymlink passes the-e/cmpchecks andcpfollows it. Installing a drifted or dangling symlink can therefore overwrite a file outside the managed skill path. Reject symlink/non-regular skill targets during planning or replace them without following links.
if [ -e "$target" ] && cmp -s "$WORKDIR/SKILL.md" "$target"; then
say "$SKILL_NAME: already installed at $target (unchanged)"
else
if [ -e "$target" ]; then verb="updated at $target"; else verb="installed at $target"; fi
cp -- "$WORKDIR/SKILL.md" "$target" ||
openRepoTools:1189
- Every push failure is classified as the organisation's PR-only ruleset here, but
git pushcan also fail for a network/authentication error or a non-fast-forward race. Because stderr is discarded, the user is told to edit rulesets for failures that have nothing to do with rulesets. Preserve and report the push error, and only emit the ruleset remediation when the server actually rejects the direct update for that reason.
elif ! git -C "$checkout" push -q origin HEAD:main >/dev/null 2>&1; then
die "the seed commit could not be pushed to $target's main.
THAT IS THE RULESET, and it is the thing this push exists to find out: the
organisation's PR-only ruleset refuses a direct commit, and Rule 9's one commit
per write cannot land through a PR gate — so the register would be unwritable.
openRepoTools:1243
- A failed
link-estatesinvocation is only printed and then discarded, sowip initstill returns success after writing the pointer file. On the next invocation step 1 returnsnothing to doand never retries the linker, leaving a host with an initialized workspace but missing links that this command cannot repair. Propagate the failure or make the idempotent path retry the unfinished link step.
PROJECTS_ROOT="${PROJECTS_ROOT:-$(wip_projects_dir)}" "$linker" ||
say " (link-estates reported the above and changed nothing else)"
openRepoTools:418
- Although this function is documented as proving the nine targets are placeable, it only checks whether each path is a symlink, directory, or other non-regular object. An existing regular target can still be read-only, and the later
cp/chmodthen fails after earlier files were installed, violating the all-or-nothing contract with shell status 1. Preflight the directory and regular-file writeability before any placement.
plan_install_targets() {
local dir="${OPENREPOTOOLS_BIN_DIR:-$HOME/.local/bin}"
local name target kind bad="" paths=""
for name in "${INSTALLABLES[@]}"; do
target="$dir/$name"
openRepoTools:1153
- This stages the entire checkout rather than only the template files added by this invocation. Because
wip initdeliberately reuses an existing checkout on a re-run, any unrelated uncommitted data or edits to an existing template will be committed and pushed as the seed, contradicting the additive/no-overwrite behavior and potentially publishing work the command did not create. Track the seeded paths and refuse or leave unrelated dirty changes untouched.
if [ -n "$(git -C "$checkout" status --porcelain 2>/dev/null)" ]; then
wip_quietly git -C "$checkout" add -A -- . ||
die "could not stage the seed in $checkout.
What it said:
$WIP_LAST_ERR"
wip_quietly git -C "$checkout" commit -q \
openRepoTools:936
- Falling back to
mainhere violates the pinned-standard contract whenever the installed command cannot readcontracts/openreposhape-pin.yaml: it silently seeds from moving upstream instead of the repository's verifiedcommit, so different workstations can receive different workspace templates. This should refuse with an actionable error rather than choosing an unpinned ref.
printf 'main\n'
openRepoTools:1212
- This guard checks only
-e, so a pre-existing dangling symlink atworkspace.yamlpasses and the following redirect writes through it to its target, potentially modifying a path outside$AGENT_PROTOCOL_ROOT. Reject symlinks as existing pointer files (during the initial idempotence check as well as immediately before the redirect) before creating or writing the workspace.
[ ! -e "$config" ] ||
die "$config appeared while this ran; it was not overwritten."
openRepoTools:944
wip_fetch_template_fileis called in an|| diecondition, soset -eis disabled inside it. If this local template copy fails, the unconditionalreturn 0reports success and the caller can substitute/seed a missing or partially copied file instead of refusing the fetch. Propagate thecpstatus before returning success, as for the staged skill copy.
if [ -n "$selfdir" ] && [ -f "$selfdir/upstream/openRepoShape/$path" ]; then
cp -- "$selfdir/upstream/openRepoShape/$path" "$dest"
return 0
openRepoTools:467
- An existing
settings.jsonsymlink is treated as a normal file here:jqreads through it, then the latermv -freplaces the symlink with a new regular file. That silently disconnects a user-managed settings target from future updates, contrary to the installer’s stated rule that this file is not its own to replace. Refuse symlinked settings paths (including dangling ones) before composing the merge.
if [ ! -e "$settings" ]; then
HOOK_PLAN="nofile"
jq -n --arg c "$HOOK_COMMAND" --arg m "$HOOK_MATCHER" --argjson t "$HOOK_TIMEOUT" \
'{hooks: {SessionStart: [{matcher: $m, hooks: [{type: "command", command: $c, timeout: $t}]}]}}' \
>"$HOOK_MERGED" || die "could not compose $settings; nothing was installed."
return 0
fi
openRepoTools:974
- Step 1 treats only a regular file as an existing pointer. If
workspace.yamlis a directory or a dangling symlink, this condition is false, sowip initcan create/clone/push the workspace and only discover the occupied path at the final write. That violates the two-writer/idempotence contract and causes side effects for an already-occupied pointer path; treat any existing path (including-L) as present before network work.
if [ -f "$config" ]; then
tests/test_wip_init_command.py:331
- The
orassertion does not verify that no team flag is printed: for the two-team case, an erroneous--team infrapasses because only--team platformis checked. Filter the generatedgh repo create/gh apicommand lines and assert that none contains--team, so this test actually protects the stated decision to omit the flag when there is not exactly one matching team.
assert "--team" not in out.split("openRepoTools wip init")[0] or \
"--team platform" not in out
- Files reviewed: 18/20 changed files
- Comments generated: 6
- Review effort level: Lite
|
|
||
| ```sh | ||
| gh repo clone opensoft/workBenches && cd workBenches && ./setup.sh | ||
| pclaude run <profile> --lane <repo>-<n> |
| # A handoff may be reached through the estate's `handoffs` symlink, so the | ||
| # path git is given is the REAL one: a pathspec that leaves the repository | ||
| # lexically is a pathspec git refuses, however plainly it is inside it. | ||
| hs_real="$(readlink -f -- "$hs_file" 2>/dev/null || printf '%s' "$hs_file")" |
| if [ -n "$selfdir" ] && [ -f "$selfdir/$SKILL_SOURCE_PATH" ]; then | ||
| cp -- "$selfdir/$SKILL_SOURCE_PATH" "$WORKDIR/SKILL.md" | ||
| return 0 | ||
| fi | ||
| fetch_from_repo "$SKILL_SOURCE_PATH" "$WORKDIR/SKILL.md" |
| # a function of the workspace repository. | ||
| say "" | ||
| say "Done. The next step is one line:" | ||
| say " pclaude run <profile> --lane <repo>-<n>" |
| assert "gh repo clone opensoft/workBenches && cd workBenches && ./setup.sh" \ | ||
| in readme, ( | ||
| "README.md does not carry Amendment 9(e)'s first line, byte for byte") | ||
| assert "pclaude run <profile> --lane <repo>-<n>" in readme, ( |
| assert remote.stdout.strip(), "the seed never landed on main" | ||
| assert "pushed the seed" in result.stdout | ||
|
|
||
| assert "pclaude run <profile> --lane <repo>-<n>" in result.stdout |
…een, proved on Linux before it was pushed (A9 Addendum 4, R-A9-11, round 5)
The probe step of run 34782845181 answered the question round 4 asked, and
the answer was neither of the two suspects. macOS's awk parses `RULE6_AWK`
perfectly — with an empty table it emitted both fixture rows byte-for-byte —
and `length`, `match`, `RSTART`, `RLENGTH` and `substr` all agree with each
other there on a line carrying an em dash. What it will not take is the
TABLE:
--- awk -v carrying a newline ---
awk: newline in string x
y... at source line 1
POSIX says a `-v assignment` value is processed as if it were a string
literal, and a string literal cannot span lines. one-true-awk enforces
exactly that; gawk and mawk accept it without a word. `who_landing` handed
`-v aliases=` the whole `repos.tsv` alias table, one `<alias>\037<owner/repo>`
per line, so on macOS that awk exited 2 with nothing on stdout and the
REGISTER half of `who --landing` produced nothing at all. Every open LANDING
in the estate read as `none open` — fourteen red assertions on that job, and
off CI a workstation running macOS that cannot see the estate's merge holds
while saying, in words, that there are none. Every `who --landing` that
passed there was being answered by the lane's own object log, which is the
SECONDARY source.
`ENVIRON` has no such restriction and is POSIX awk. Two lines change:
`lanes-edit.sh:2814` reads the table from `ENVIRON["LANES_RULE6_ALIASES"]`,
and `:2908` puts it in the environment of that one command. The awk program
is otherwise untouched, and the pre-validated rewrite the handoff carried is
NOT applied: it was written for a byte-vs-character fault the probe has
since disproved, and a core parser is not rewritten on a hypothesis the
runner has answered no to.
PROVED ON A LINUX BOX, WHICH THIS ONE COULD BE. A proxy that refuses exactly
what one-true-awk's `qstring` refuses and passes everything else to the real
awk reproduces the macOS job to the assertion: at `584180a` under it, `985
passed, 14 failed` against that runner's `979 passed, 14 failed, 6 skipped`
— the same fourteen names, in the same order, the six being the `timeout(1)`
skips a Linux host does not take. After this commit it is `1004 passed, 0
failed, 0 skipped`, with and without the proxy.
The proxy is now part of the suite, pointed at the register's own
mixed-spelling fixture, so this class is red on EVERY job rather than on the
one that costs twenty minutes: five assertions, two of which check the proxy
itself refuses a many-line `-v` and hands a one-line one through unchanged.
Against the previous `lanes-edit.sh` it goes 1002/2 — and the two it catches
are two of the fourteen, by name.
`tests/test_repo_hygiene.py` pins the call site, and its docstring records
why it is a pin and not a shape: "a shell function's output is a stream, so
it does not go into a `-v`" was written first and is wrong about this file,
where `lc`, `short_ws` and `object_slug` are functions that each transform
ONE value. It reddened three correct call sites, and a hygiene test with
three carve-outs teaches the wrong rule.
The `probe` step is removed — it asked one question and the answer is in the
code now — and the two lines that matter are folded into `what this runner
actually is`, which is the standing platform record: this runner's awk, and
whether it takes a newline in a `-v`. That step also no longer ends on the
probe's own exit 2.
No behaviour change on GNU: `ENVIRON` and `-v` deliver the same string to
the same `split`, and the suite is byte-identical in its answers under mawk.
None to the hotfix ported at `dcf1027` (R-A11-1's step-3b fence, `--name` on
every launch, `log` refusing a non-uuid session): `lane-start` and `lane-end`
are untouched by this commit, and nothing outside `who_landing` and
`RULE6_AWK`'s `BEGIN` is edited in `lanes-edit.sh`.
Local: `bash tests/test_lane_helpers.sh` 1004 passed, 0 failed, 0 skipped;
the same under the one-true-awk proxy; `python3 -m pytest tests -q` 437
passed.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
|
Lane: openRepoProject-1 Round 9 — the probe answered, and it was neither suspect. Head The So the pre-validated
The fix is two lines, and
Nothing else in the awk program changes. Not a shim and not a locale setting: it is the POSIX way to hand awk a value that is not one line. Proved on a Linux box before it was pushed, which this one could be. A proxy that refuses exactly what
The six are the The proxy is now in the suite, pointed at the register's own mixed-spelling fixture, so this class is red on every job rather than on the one that costs twenty minutes. Five assertions; two of them check the proxy itself (it must refuse a many-line
The No behaviour change on GNU — Still DRAFT. Nothing marked ready, merged or retargeted. Next: the four jobs on this head, the review's five mutations re-run, then the PR body and the closing comment. |
There was a problem hiding this comment.
🟡 Changes recommended
Critical and moderate findings remain in initialization, installation safety, portability, and command correctness.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (19)
README.md:150
- This onboarding command repeats the same invalid argument order:
skills/lane-swap/SKILL.md:169-172documents that--lanemust precederun, while this line places it after the profile and sends it to Claude instead of the launcher. Update the copy-paste command to use the leading-option form.
pclaude run <profile> --lane <repo>-<n>
docs/README-lanes.md:191
- This paragraph still documents the pre-move resolver: the helpers no longer find the checkout from the script's directory, but read
repository:andpath:fromworkspace.yamlas stated above. Leaving this text in the manual gives operators the wrong recovery model after installing the moved commands; update it to describe pointer-file resolution.
The script spells no path of its own: it finds the checkout root with `git
rev-parse --show-toplevel` from its own directory and derives the pathspec
`lanes/LANES.md` with `--show-prefix`, so the clone may live anywhere. The
overrides `LANES_REPO`, `LANES_PATH` and `LANES_BRANCH` exist for tests.
lane-end:666
- The real log write now forwards
--home, but the dry-run branch still prints a command without that required option. For a pre-cutover lane, following the displayed PLAN command will be refused because the home repository is missing, so dry-run is not a faithful rehearsal. Include--home $home_overridein the planned command when the override is present.
elif LANES_LANE="$LANE" "$LANES_EDIT" log "$lane_verb" "lane:$LANE" ${home_override:+--home "$home_override"} --text "$lane_text" >/dev/null; then
link-estates:283
link-estatesis part of the repository's macOS/Bash 3.2 support contract, but BSDreadlinkdoes not implement GNU-f. On macOS both substitutions here fail to produce a path, so any non-dangling symlink compares as empty == empty and is reportedKEEPeven when it points somewhere else; the link reconciliation is therefore incorrect. Use a portable symlink-resolution helper (or compare the absolute targets directly) here and in the other link comparisons.
if [[ -e "$live" && "$(readlink -f -- "$live")" == "$(readlink -f -- "$target")" ]]; then
openRepoTools:944
- This fast path ignores
refand copies whatever bytes happen to be in the localupstream/openRepoShapedirectory. If the submodule is checked out at another commit or has local edits,wip initreports the pinned ref but seeds unpinned content, contradicting the documented promise that the workspace is seeded from the pinned commit. Verify the local checkout is at the pin (and clean) or fetch the pinned files instead.
if [ -n "$selfdir" ] && [ -f "$selfdir/upstream/openRepoShape/$path" ]; then
cp -- "$selfdir/upstream/openRepoShape/$path" "$dest"
return 0
openRepoTools:1097
- An existing checkout is accepted after only the origin/root check; its current branch is never validated. If that checkout is on a feature branch, the seed commit is made there and the one-time
HEAD:mainpush leaves the localmainunchanged, while subsequent lane writes pushorigin/mainfrom the wrong local branch. Refuse non-maincheckouts (without changing them) or explicitly establish amainworking tree before seeding.
if [ -d "$checkout/.git" ]; then
wip_is_checkout_of "$target" "$checkout" ||
die "$checkout is already a checkout, and not of $target. This command will not
openRepoTools:1149
- The global dirty check is followed by
git add -A -- ., so adopting an existing target checkout also stages every unrelated dirty file inhandoffs/,workspaces/, or any other path.wip initcan therefore commit and push a user's pre-existing work as part of the seed, despite the additive-seeding contract. Track only the template paths actually added by this invocation, or refuse a checkout with unrelated changes.
if [ -n "$(git -C "$checkout" status --porcelain 2>/dev/null)" ]; then
wip_quietly git -C "$checkout" add -A -- . ||
openRepoTools:597
- When
~/.claude/settings.jsonis a symlink,jqreads the linked file but thismv -freplaces the symlink itself with the temporary regular file. That silently severs a user's shared settings link: the referent is not updated and future changes diverge. Detect and refuse symlinked settings (or preserve the link while updating its referent) before placing the other artifacts.
mv -f -- "$hook_tmp" "$settings" ||
{ rm -f -- "$hook_tmp"; die "could not move the merged settings into $settings."; }
openRepoTools:429
- Existing regular command files pass this planning branch without any writability check. If, for example,
$OPENREPOTOOLS_BIN_DIR/parkis a drifted mode-0444 file, the loop copies earlier commands and thencpexits underset -e, breaking the claimed all-or-nothing install and leaving a half-updated bin directory. Treat an unwritable regular target as a planning refusal before placement.
elif [ ! -e "$target" ] || [ -f "$target" ]; then
continue
elif [ -d "$target" ]; then
kind="a directory"
else
kind="not a regular file"
openRepoTools:586
- BSD/macOS
mktempdoes not accept the GNU-style--option separator. When a new or merged settings file needs to be written, this fails after the nine command files and skill copies have already been placed, so the macOS install path both fails and leaves a partial installation. Pass the absolute template directly tomktempwhile retaining the existing refusal handling.
hook_tmp="$(mktemp -- "$(dirname -- "$settings")/settings.json.openrepotools.XXXXXX")" ||
openRepoTools:559
- The planning phase checks that the skill directories are writable, but not an existing
SKILL.mdtarget. A drifted read-only skill file can therefore pass planning; the nine commands are placed, then thiscpfails underset -e, leaving a partial install. Check existing skill targets for writability (and unsafe symlinks) before placing any command files.
if [ -e "$target" ] && cmp -s "$WORKDIR/SKILL.md" "$target"; then
say "$SKILL_NAME: already installed at $target (unchanged)"
else
if [ -e "$target" ]; then verb="updated at $target"; else verb="installed at $target"; fi
cp -- "$WORKDIR/SKILL.md" "$target" ||
openRepoTools:936
- Falling back to
mainhere defeats the repository's openRepoShape pin. A stdin-installed command that cannot fetch or parsecontracts/openreposhape-pin.yamlwill silently seed from whatevermaincurrently contains, so different workstations can receive unverified template bytes. Refuse when the pin cannot be determined instead of selecting an unpinned ref.
printf 'main\n'
openRepoTools:1192
- Any nonzero result from
git pushenters this branch, but the message asserts a confirmed PR-only ruleset and tells the operator to change that policy. A network/authentication failure or a non-fast-forward remote also returns nonzero, while the actual Git diagnostic is discarded, so the remediation is wrong. Preserve the push error and emit the ruleset guidance only for a confirmed ruleset rejection.
elif ! git -C "$checkout" push -q origin HEAD:main >/dev/null 2>&1; then
die "the seed commit could not be pushed to $target's main.
THAT IS THE RULESET, and it is the thing this push exists to find out: the
organisation's PR-only ruleset refuses a direct commit, and Rule 9's one commit
per write cannot land through a PR gate — so the register would be unwritable.
An administrator excludes $target from it:
gh api /orgs/$WIP_ORG/rulesets
then adds $target to the PR-only ruleset's exempt repositories.
openRepoTools:1278
--organd--teamoverrides are accepted verbatim, but they are later interpolated into asedreplacement and into unquoted administrator shell commands. An invalid value such as an org containing#,&, or a shell metacharacter can corrupt template substitution or make the printed copy-paste block execute unintended commands. Validate both as GitHub slugs and/or shell-quote every generated command before using them.
--org) shift; [ $# -gt 0 ] || die "--org needs a value"; WIP_ORG="$1"; shift ;;
--login) shift; [ $# -gt 0 ] || die "--login needs a value"; WIP_LOGIN="$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')"; shift ;;
--team) shift; [ $# -gt 0 ] || die "--team needs a value"; WIP_TEAM="$1"; shift ;;
openRepoTools:1134
- These filesystem operations are not guarded, so under
set -ea permission or I/O failure exits with the shell's status 1 instead ofwip init's documented refusal status 2, and can leave a partially seeded checkout. Guard both operations withdieso the failure is reported consistently and the pointer step is never reached.
mkdir -p -- "$checkout/$(dirname -- "$rel")"
cp -- "$dest" "$checkout/$rel"
openRepoTools:1108
- Creating the clone's parent directory is also unguarded. If this fails,
set -ereturns 1 without the command's refusal message, contradicting the explicit 0-or-2wip initcontract and giving no actionable reason. Wrap it in|| diebefore attempting the clone.
mkdir -p -- "$(dirname -- "$checkout")"
openRepoTools:507
- The
presentarm wins whenever the exact command exists, even if anotherSessionStarthook also contains a differentsession-startcommand. That leaves both writers installed and defeats the refusal intended to prevent the hook from firing twice; detect a differingsession-startentry before accepting the exact-match case.
existing="$(jq -r --arg c "$HOOK_COMMAND" '
[ (.hooks.SessionStart // [])[]? | (.hooks // [])[]? | .command // empty ] as $cmds
| if ($cmds | index($c)) then "present"
elif ($cmds | map(select(test("session-start"))) | length) > 0 then "conflict"
else "absent" end' "$settings" 2>/dev/null || printf 'error')"
openRepoTools:1255
- The next-step command puts
--laneafterrun <profile>, but the installed lane-swap contract says--laneis a leading launcher option and that this ordering is passed to Claude rather thanpclaude. The printed command is therefore not executable as advertised; emitpclaude --lane <repo>-<n> run <profile>(or the launcher’s equivalent leading-option form).
say " pclaude run <profile> --lane <repo>-<n>"
skills/lane-swap/SKILL.md:96
- This skill is installed for every workspace, but its handoff commit block hardcodes
~/projects/brett-wip. The workspace checkout is derived fromworkspace.yamland is<login>-wip, so on any other account the command runs in the wrong repository (or fails) and cannot refresh the handoff. Derive the checkout from the pointer file or from the handoff path instead of embedding Brett's path.
cd ~/projects/brett-wip
git add "$handoff"
git commit -m "handoff(<lane>@<ws>): PAUSED, <one-line state>" -m "Lane: <lane>"
git pull --rebase && git push
- Files reviewed: 18/20 changed files
- Comments generated: 3
- Review effort level: Lite
| teams="$(gh api --paginate /user/teams \ | ||
| -q ".[] | select((.organization.login | ascii_downcase) == \"$(printf '%s' "$org" | tr '[:upper:]' '[:lower:]')\") | .slug" \ | ||
| 2>/dev/null || :)" | ||
| count="$(printf '%s' "$teams" | grep -c . || :)" |
| gh api --method PUT \ | ||
| "/orgs/$WIP_ORG/teams/$WIP_TEAM/repos/$target" -f permission=pull \ | ||
| >/dev/null 2>&1 || { | ||
| say " (could not give team $WIP_TEAM read. An administrator can:" | ||
| say " gh api --method PUT /orgs/$WIP_ORG/teams/$WIP_TEAM/repos/$target -f permission=pull)" | ||
| } |
| proc = subprocess.run(["bash", str(SUITE)], capture_output=True, | ||
| encoding="utf-8", errors="replace", | ||
| check=False, cwd=str(REPO), timeout=TIMEOUT_SECONDS, | ||
| env=env) |
|
Lane: openRepoProject-1 — DONE @956b93a All four jobs green on one head, run 34785166353 at
The review's five mutations, re-run at this head in a throwaway detached worktree, all five caught:
All five restored byte-exact afterwards ( Local at this head: No behaviour change on GNU from any macOS round, and none to the hotfix ported at The 2400 s suite bound is untouched: this job ran the suite in 613 s. Still DRAFT. Not marked ready, not merged, not retargeted — the PR body now carries the head, the per-platform counts and the run links, and this is the closing record. Note for whoever takes openRepoTools#26: it is stacked on this branch and rebases onto |
brettheap
left a comment
There was a problem hiding this comment.
Lane: openRepoProject-1
READY confirmation pass @956b93a — partial progress 1/3 (checklist items 1, 2, 6 in part)
Worktree 956b93a verified as PR head (headRefOid 956b93a1d3ba0cffba2d02f0c311482c864f2683, DRAFT, base main, MERGEABLE/CLEAN).
1. CI — confirmed 4/4 green in one run on this exact SHA. gh run view 34785166353 --json headSha,jobs: headSha 956b93a1d3ba…, conclusion success, and all four jobs success — tests, tests-macos, tests-no-submodule, tests-windows.
continue-on-errorappears exactly once in.github/workflows/tests.yml, at:261, on the diagnostic stepwhat this runner actually is. No test step carries it;tests.yml:69,:104,:175,:283are all barepytestruns. Nothing is masked.- The removed
probestep does leave the record:tests-macosstep 7 iswhat this runner actually is, and it printed on this run —bash on PATH : /bin/bash/GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25),wc -l pads? : [ 2],head -c 0 ok : no,awk -v \n : awk: newline in string a. So the suite really does run under bash 3.2 on that job, which is what makes the 3.2-specific fixes below load-bearing rather than theoretical. - The bound is unchanged at
tests/test_lane_helpers_suite.py:56,TIMEOUT_SECONDS = 2400, and the macOS suite finished in437 passed in 613.52s (0:10:13)— 26% of the bound.
2. The move — history carried, and the seven paths classified. git log --oneline --follow -- lanes-edit.sh | tail -3 reaches 3fc6215 lanes/: the estate lane register moves here from the orphan 'lanes' branch of opensoft/xFactory, with all of its history (15 commits). Every moved path carries its brett-wip history; repos.tsv is byte-identical to brett-wip origin/main:lanes/repos.tsv (md5 099b28fc94d74a6212a27534bb14f4a8 both sides).
lane-startis byte-identical acrossdcf1027..956b93a— blobc565173d093fe8b4ac8b67c514a525efa26c6760at all five ofdcf1027 d3d59b5 e3d57dd 584180a 956b93a; working-tree md5b11277c09e19d82314f39fd4a4e6db49, as the writer claimed.- The hotfix port is behaviourally identical. Diffed against
brett-wip origin/main(which carries3719d97, brett-wip#5): the step-3bsession-laneownership fence is verbatim atlane-start:844/849/851(brett-wip:656/661/663), and--name "$LANE"is on all three launch branches atlane-start:1035/1044/1055(brett-wip:846/855/866) under the sameAMENDMENT 11, EVIDENCE 4comment at:1020. Zero diff hunks touch either region — the offset is a clean +188/+189 throughout. The writer's refusal is atlanes-edit.sh:1251(valid_uuid) and:2466(if ! valid_uuid "$we_uuid"), the exact lines cited, with theunknown/session_*/ other three-way diagnosis intact.
6. Suites, re-run in a clean worktree on Eagle. LANES_WORKSTATION=Eagle bash tests/test_lane_helpers.sh → 1004 passed, 0 failed, 0 skipped, exit 0. Matches the writer's number exactly. pytest still running; will report.
Still to do: the --install rehearsal on a scratch HOME (item 3), wip init and link-estates scratch runs (4, 5), the awk-proxy mutation and M3a/M3b re-runs (6), the portability sweep (7), hygiene and downstream (8, 9).
brettheap
left a comment
There was a problem hiding this comment.
Lane: openRepoProject-1
READY confirmation pass @956b93a — partial progress 2/3 (items 3, 4, 5, 6, 7)
3. --install rehearsal on a scratch HOME. Run from the worktree with HOME=<scratch> OPENREPOTOOLS_BIN_DIR=<scratch>/bin, every CLAUDE_* var unset. Real ~/.claude/settings.json md5 0290a93d27982b6545fec8ce98b22ddf before and after — untouched.
Run 1 — twelve artifacts, exit 0:
| artifact | mode | vs checkout |
|---|---|---|
bin/{openRepoTools,park,resume,status,lanes-edit.sh,lane-start,lane-end,link-estates,repos.tsv} |
755 ×9 | all 9 byte-identical |
~/.claude-profiles/shared/skills/lane-swap/SKILL.md |
644 | identical |
~/.claude/skills/lane-swap/SKILL.md |
644 | identical |
~/.claude/settings.json SessionStart entry |
file 600 | see below |
It prints openRepoTools: 9 of 9 placed in …. The bin dir holds exactly those nine and nothing else. The hook string is byte-exact — od -c gives ~/projects/xFactory/lanes-edit.sh session-start || true, matcher startup|resume|clear|fork, timeout 5: Amendment 8(e)'s string, character for character. Note claude_home() at openRepoTools:307 keys off CLAUDE_USER_DIR, not CLAUDE_CONFIG_DIR — which is what keeps clause (b)'s "never writes a profile's settings.json" true when --install is run from inside a pclaude session, where CLAUDE_CONFIG_DIR points at a profile. That is right, and easy to get wrong.
Run 2 — idempotent: every line already installed … (unchanged), SessionStart hook: already installed … (unchanged), exit 0, and the tree fingerprint (path size mode for every file) is identical before and after.
The refusals, each leaving NOTHING placed (no bin dir created, no skill, settings byte-identical):
- Amendment 8 act 6's hand-installed entry (
bash -lc '"$HOME/projects/…" session-start 2>/dev/null || true') → exit 2, "already carries a SessionStart entry that runssession-startwith a DIFFERENT command string", prints the exact block. R-A9-8/R-A9-14 as ruled. - An unrelated SessionStart entry (
~/bin/herdr-agent-state.sh session) → exit 0, merged beside it;model,UserPromptSubmitand the rival entry all preserved, file re-written at 600. The narrowing works in both directions. settings.jsonnot valid JSON → exit 2.hooksnot an object → exit 2. Nojqon PATH → exit 2 namingjqand printing the block.- R-A9-12, all three shapes at once: a live symlink at
bin/lane-start, a dangling symlink atbin/lane-end(where[ -e ]is false andcpwould have written through it), and a directory atbin/repos.tsv. It names all three in one refusal — not just the first — printsrm -f -- "…" "…" "…", and the far end of the live symlink still readOLD lane-start bytesafterwards.plan_install_targets:418tests[ -L "$target" ]before[ -e ], which is what makes the dangling case reachable. - A skill directory that exists unwritable → exit 2,
is not writable(openRepoTools:385), nothing placed.
4. wip init. --dry-run on a virgin scratch HOME with a stub gh: derives brettheap / opensoft / team platform, prints the six would-dos, writes 0 files. The no-rights path (stub gh repo create fails, stdin </dev/null): prints the three-act administrator block with every value substituted — gh repo create opensoft/brettheap-wip --private --team platform, the PUT …/repos/… -f permission=pull, and gh api /orgs/opensoft/rulesets with the reason — then exits 2 without waiting, and writes 0 files. Full end-to-end against a local bare repo laid out as opensoft/brettheap-wip: clone → seeded 9 of 9 template files from opensoft/openRepoShape @ ba14e1d9… (the pin) → commit → pushed the seed to … main (which is also the ruleset probe) → wrote …/workspace.yaml → link-estates. No {{TOKEN}} survives anywhere in the seeded tree. The live opensoft/brett-wip was never touched: git status --porcelain -- <the seven moved paths> is empty throughout, and the only commits that landed there during this pass are other lanes' register writes.
5. link-estates from the scratch checkout. It places exactly three kinds of link and no more: xFactory/LANES.md → <workspace>/lanes/LANES.md (data), xFactory/lanes-edit.sh → <bin>/lanes-edit.sh (repointed at the installed command, which is what keeps the hook string working — clause (f)(3) row 3), and one handoffs link per estate this host has cloned (SKIP absentEstate — no …/absentEstate on this workstation). It places no ~/.local/bin/lane-start|lane-end. With the pre-move symlinks restored at those two paths it reports STALE … is still a symlink -> … for both with the rm && openRepoTools --install line and a 2 stale footer — not exiting on the first, which is the failure mode clause (f)(3) warns about in workBenches' own pre-flight. With lanes-edit.sh missing from the bin dir it refuses, exit 1, naming openRepoTools --install, and links nothing. Every link landed inside the scratch root; the live ~/projects/xFactory/* symlinks still point at ~/projects/brett-wip/lanes/…, unchanged.
6. Suites and mutations.
LANES_WORKSTATION=Eagle bash tests/test_lane_helpers.sh→ 1004 passed, 0 failed, 0 skipped.python3 -m pytest tests -qwith the submodule materialized → 437 passed (without it, 285 passed / 152 skipped, which is exactly thetests-no-submodulejob's number).- The awk-proxy guard is real.
tests/test_lane_helpers.sh:1972-2013writes a shim that refuses exactly what one-true-awk'sqstringrefuses and passes everything else through. Mutating a scratch copy to put-v aliases=back (both halves:RULE6_AWK'sBEGINsplit and thewho_landingcall site) reds it by name —FAIL …and the register half still answers, so the hold is still reportedandFAIL …and the alias table still reached awk, so the LANDED is still placed— andtests/test_repo_hygiene.py::test_the_rule_6_register_scan_takes_its_alias_table_from_the_environmentreds too, so the class is caught on every job, not just macOS. - M3a — deleting the
[ -w "$d" ]line fromplan_skill_targetsredstest_a_leaf_destination_that_exists_unwritable_refuses_before_anything_is_placed(1 failed, 18 passed), and the fallback message proves the point:The 9 commands above are placed; the skill and the hook are not. - M3b — moving
plan_hook_mergeto after the placement loop reds five:test_a_differing_session_start_entry_refuses_and_places_nothing,…not_json…,…hooks_value_that_is_not_an_object…,test_without_jq_it_refuses_and_places_nothing,test_a_second_writer_of_this_hook_refuses_whatever_file_carries_it— each on "the refusal must cost a whole install, not half of one".
7. Portability sweep over the five moved bash files. sed -i, grep -P, mapfile/readarray, declare -A/local -n, sort -z, find -printf, cp/ln -T, sed -r, base64 -w: 0 hits. ${x,,}/${x^^}, cmp -n, xargs -r, head -c: hits are in comments only — the code is gone. date -d survives only as the GNU-first arm of a three-way fallback (lanes-edit.sh:1640-1644; the suite's own utc_at at :211-213 has the BSD -v twin). stat -c %Y || stat -f %m carries both spellings (lanes-edit.sh:3092, tests:2979). The remaining -- uses all sit after an option (head -n N -- file), never after an operand — the grep PATTERN -- file shape the rounds removed is gone. And no awk -v anywhere carries a multi-line value: every one is a lane name, a one-character separator, an object key, a path, an integer or a regex.
Remaining: hygiene (8) and downstream (9), then the verdict.
brettheap
left a comment
There was a problem hiding this comment.
Lane: openRepoProject-1
READY confirmation — openRepoTools#24 @956b93a (A9 act 3)
Read-only pass in a detached worktree at 956b93a (git worktree add … 956b93a; head confirmed 956b93a1d3ba0cffba2d02f0c311482c864f2683, DRAFT, base main, MERGEABLE/CLEAN). Not a fresh adversarial review of 15,000 lines — the narrow question: is 956b93a the act 3 the ratified text describes, with nothing regressed by the five macOS rounds. Nothing was fixed, committed, pushed, marked ready, merged or retargeted; no live checkout changed branch. Measured against the in-force ~/.agents/protocols/lane-collision-protocol-amendment-9.md (clause (b) :265-270, clause (c), clause (e), clause (f), adoption act 3 :930-960) and A9 Addenda 3–4 (R-A9-8..15, ratified 2026-09-13T17:34:23Z, comment 5654908335).
Answer: yes. Every claim below is a command I ran and quoted. Three findings, none blocking; two are wording, one is whitespace.
1 · CI — 4/4 green on this SHA, in one run, nothing masked
gh run view 34785166353 -R opensoft/openRepoTools --json headSha,jobs → headSha 956b93a1d3ba0cffba2d02f0c311482c864f2683, conclusion success, and all four jobs success: tests, tests-macos, tests-no-submodule, tests-windows. gh pr checks 24 agrees, and adds SonarCloud Code Analysis pass.
- No
continue-on-errormasks a test. It appears exactly once in.github/workflows/tests.yml, at:261, on the diagnostic step. The four test steps —:69,:104,:175,:283— carry none. - The removed
probeleaves the record.tests-macosstep 7 iswhat this runner actually isand it printed, on this run:bash on PATH : /bin/bash→GNU bash, version 3.2.57(1)-release (arm64-apple-darwin25). That is the load-bearing fact of this whole branch: the suite runs under bash 3.2 on that job, so every 3.2-specific fix is exercised at runtime and not merely parsed. Alsowc -l pads? : [ 2],head -c 0 ok : no,awk -v \n : awk: newline in string a,/proc exists : no,timeout -> (absent). - The bound is unchanged and is not close.
tests/test_lane_helpers_suite.py:56,TIMEOUT_SECONDS = 2400; the macOS job's own line is437 passed in 613.52s (0:10:13)— 26% of it.
2 · The move — history carried, seven paths classified, hotfix behaviourally identical
git log --oneline --follow -- lanes-edit.sh | tail -3 reaches 3fc6215 lanes/: the estate lane register moves here from the orphan 'lanes' branch of opensoft/xFactory, with all of its history (15 commits). All seven carry their brett-wip history.
Diffed each against brett-wip origin/main — which carries 3719d97 (brett-wip#5), the commit after the filter-repo base aade605b, so the hotfix had to be ported:
| path | hunks | classification |
|---|---|---|
repos.tsv |
0 | byte-identical, md5 099b28fc94d74a6212a27534bb14f4a8 both sides |
lane-start |
12 | resolver + openRepoTools seams + macOS portability |
lane-end |
6 | same |
lanes-edit.sh |
25 | same |
link-estates |
4 | same + clause (f)(5)'s two dropped links |
tests/test_lane_helpers.sh |
32 | harness re-anchor + the new guards |
docs/README-lanes.md |
10 | the installed-command rewrite (obligation 7) |
I found no behaviour change that is not one of those three classes. Every hunk carries an in-line reason naming its round.
lane-startis byte-identical acrossdcf1027..956b93a— blobc565173d093fe8b4ac8b67c514a525efa26c6760atdcf1027,d3d59b5,e3d57dd,584180a,956b93a; working-tree md5b11277c09e19d82314f39fd4a4e6db49, exactly as the writer claimed.- The hotfix port. The step-3b
session-laneownership fence is verbatim atlane-start:844/849/851(brett-wip:656/661/663),--name "$LANE"on all three launch branches at:1035/1044/1055(brett-wip:846/855/866) under the sameAMENDMENT 11, EVIDENCE 4header at:1020. Zero hunks touch either region — a clean +188/+189 offset throughout. The writer's refusal is atlanes-edit.sh:1251(valid_uuid) and:2466, with theunknown/session_*/ other three-way diagnosis intact. - brett-wip#6's landing gate, re-run at
956b93arather than atd3d59b5: of the distinct lines3719d97added — 48 tolane-start, 62 tolanes-edit.sh, 154 totests/test_lane_helpers.sh— 0 are absent at this head.584180aand956b93aboth touchedlanes-edit.shafterd3d59b5, so that gate needed re-running and it passes. - The shared resolver really is one answer. The
BEGIN…END shared workspace resolverblock is byte-identical in all four helpers: 130 lines, md543ef50ad72c00b9ad684bb09dc9a4582inlanes-edit.sh,lane-start,lane-endandlink-estates. - The two-layer alias table.
alias_lookup(lanes-edit.sh:1157) reads override-then-shipped and falls through per alias (awk exits 1 on a miss, so&& return 0does not fire);rule6_aliases(:2786) reads shipped-then-override so the last assignment wins. Both are clause (b)'s rule, reached from opposite ends, and they agree.
3 · --install — the rehearsal, on a scratch HOME
Run from the worktree, HOME=<scratch> OPENREPOTOOLS_BIN_DIR=<scratch>/bin, every CLAUDE_* var unset. The real ~/.claude/settings.json was md5 0290a93d27982b6545fec8ce98b22ddf, mode 600, before and after every case below — nothing of mine went near it, the live ~/.local/bin, ~/.agents or opensoft/brett-wip.
Run 1 — twelve artifacts, exit 0. Nine files into the bin dir, each 755 and byte-identical to the checkout (openRepoTools park resume status lanes-edit.sh lane-start lane-end link-estates repos.tsv, and nothing else in the directory); it prints openRepoTools: 9 of 9 placed in …. Then lane-swap: installed at …/.claude-profiles/shared/skills/lane-swap/SKILL.md and …/.claude/skills/lane-swap/SKILL.md, both 644, both byte-identical to skills/lane-swap/SKILL.md. Then SessionStart hook: installed in …/.claude/settings.json (the file was created, mode 600):
{ "hooks": { "SessionStart": [ { "matcher": "startup|resume|clear|fork",
"hooks": [ { "type": "command",
"command": "~/projects/xFactory/lanes-edit.sh session-start || true",
"timeout": 5 } ] } ] } }od -c on that command string gives ~/projects/xFactory/lanes-edit.sh session-start || true — Amendment 8(e)'s string, character for character, || true included. 9 + 2 + 1 = twelve.
Worth naming because it is easy to get wrong and right here: claude_home() at openRepoTools:307 keys off CLAUDE_USER_DIR, not CLAUDE_CONFIG_DIR. That is what keeps clause (b)'s "--install never writes a profile's settings.json at all" true when --install is run from inside a pclaude session, where CLAUDE_CONFIG_DIR points at one of the 418 profiles.
Run 2 — idempotent. Every line already installed … (unchanged), SessionStart hook: already installed … (unchanged), exit 0, and the whole-tree fingerprint (path size mode for every file, md5 fba2591755a8c5fc7b3f323fdbf92454) identical before and after.
The refusals. Every one leaves NOTHING placed — no bin directory created, no skill, settings byte-identical:
| case | result |
|---|---|
A8 act 6's hand-installed entry (bash -lc '"$HOME/…/lanes-edit.sh" session-start 2>/dev/null || true') |
exit 2, "already carries a SessionStart entry that runs session-start with a DIFFERENT command string", prints the exact block and names act 6 |
an unrelated SessionStart entry (~/bin/herdr-agent-state.sh session) |
exit 0, merged beside it; model, UserPromptSubmit and the rival entry all preserved, file re-written at 600 |
settings.json not valid JSON |
exit 2 |
hooks not an object |
exit 2 |
no jq on PATH (verified absent first) |
exit 2, names jq, prints the block |
| skill directory exists unwritable | exit 2, is not writable (openRepoTools:385) |
R-A9-8/R-A9-14's narrowing works in both directions — that is the pair of rows that matters, and both were run.
R-A9-12, all three shapes in one go. A live symlink at bin/lane-start into a fake wip, a dangling symlink at bin/lane-end (where [ -e ] is false and cp writes through), and a directory at bin/repos.tsv:
REFUSED: `--install` places REGULAR FILES, and these targets are not regular files:
$H/bin/lane-start — a symlink to $H/fake-wip/lanes/lane-start
$H/bin/lane-end — a symlink to $H/fake-wip/lanes/lane-end
$H/bin/repos.tsv — a directory
…
Clear them, then re-run:
rm -f -- "$H/bin/lane-start" "$H/bin/lane-end" "$H/bin/repos.tsv"
exit 2; the far end of the live symlink still read OLD lane-start bytes afterwards. It names all three, not just the first — unlike workBenches' own refuse_preflight, which is the failure clause (f)(3) warns about. plan_install_targets:418 tests [ -L "$target" ] before [ -e ], which is what makes the dangling case reachable at all.
4 · wip init
--dry-runon a virgin scratch HOME (stubgh): derivesbrettheap/opensoft/ teamplatform, prints the six would-dos, writes 0 files.- Ruling 2, the no-rights path (
gh repo createfails, stdin</dev/null): prints the block with every value substituted —gh repo create opensoft/brettheap-wip --private --team platform \ --description "brettheap's workspace repository: …", then thePUT /orgs/opensoft/teams/platform/repos/… -f permission=pull, thengh api /orgs/opensoft/rulesetswith the reason. Three administrator acts, no placeholder anywhere. Then exit 2 without waiting, 0 files written, naming the re-run. - Full end-to-end against a local bare repo laid out as
opensoft/brettheap-wip: clone →seeded 9 of 9 template files from opensoft/openRepoShape @ ba14e1d9…(the pinned ref fromcontracts/openreposhape-pin.yaml) → commit →pushed the seed to … main (which is also the ruleset probe)→wrote …/workspace.yaml→link-estates.grep -ro '{{[A-Z_]*}}'over the seeded tree: nothing;{{LOGIN}}/{{ORG}}substituted 9 and 7 times inREADME.mdalone. - It never touched the live
opensoft/brett-wip.git status --porcelain -- <the seven moved paths>in that checkout was empty at the start and at the end; the only commits that landed there during this pass are other lanes' register writes (6c266d4,89fb13c), and~/.agents/workspace.yamlis unchanged (md5b9b952f2861a2aeed56604a59ea202f1).
5 · link-estates
Three kinds of link and no more: xFactory/LANES.md → <workspace>/lanes/LANES.md (data, unchanged), xFactory/lanes-edit.sh → <bin>/lanes-edit.sh — repointed at the installed command, which is what keeps Amendment 8(e)'s hook string working across the move (clause (f)(3) row 3) — and one handoffs link per estate this host has cloned, with SKIP absentEstate — no …/absentEstate on this workstation for the rest. It places no ~/.local/bin/lane-start|lane-end.
With the pre-move symlinks restored at those two paths it reports both, not just the first:
STALE $H/bin/lane-start is still a symlink -> …/lanes/lane-start
rm $H/bin/lane-start && openRepoTools --install
STALE $H/bin/lane-end is still a symlink -> …/lanes/lane-end
0 linked, 4 already right, 1 skipped, 0 moved aside, 2 stale
With lanes-edit.sh absent from the bin dir it refuses, exit 1, naming openRepoTools --install, and links nothing. Every link landed inside the scratch root; the live ~/projects/xFactory/* symlinks still point into ~/projects/brett-wip/lanes/, untouched.
6 · Suites and mutations, re-run here
LANES_WORKSTATION=Eagle bash tests/test_lane_helpers.sh→ 1004 passed, 0 failed, 0 skipped, exit 0.python3 -m pytest tests -qwith the submodule materialized → 437 passed. Without it: 285 passed, 152 skipped — which istests-no-submodule's number exactly, and 285 + 152 = 437.- The awk-proxy guard catches a reintroduction, by name.
tests/test_lane_helpers.sh:1972-2013writes a shim refusing exactly what one-true-awk'sqstringrefuses and passing everything else through. Mutating a scratch copy to put-v aliases=back — both halves,RULE6_AWK'sBEGINsplit and thewho_landingcall site — gives1002 passed, 2 failed, the writer's own number, with the two named:FAIL …and the register half still answers, so the hold is still reportedandFAIL …and the alias table still reached awk, so the LANDED is still placed. The static pin reds too —test_repo_hygiene.py::test_the_rule_6_register_scan_takes_its_alias_table_from_the_environment(:1482,:1485,:1489assert "-v aliases=" not in text) — so the class is held on every job, not only the one that costs twenty minutes. - M3a (delete the
[ -w "$d" ]refusal fromplan_skill_targets) → caught:test_a_leaf_destination_that_exists_unwritable_refuses_before_anything_is_placed, 1 failed / 18 passed. The fallback message is the proof of what the guard buys:The 9 commands above are placed; the skill and the hook are not. - M3b (compute the hook merge after the nine files are placed) → caught five:
test_a_differing_session_start_entry_refuses_and_places_nothing,…not_json…,…hooks_value_that_is_not_an_object…,test_without_jq_it_refuses_and_places_nothing,test_a_second_writer_of_this_hook_refuses_whatever_file_carries_it— each on "the refusal must cost a whole install, not half of one".
7 · Portability
Across lanes-edit.sh lane-start lane-end link-estates tests/test_lane_helpers.sh: sed -i, grep -P, mapfile/readarray, declare -A/local -n, sort -z, find -printf, cp/ln -T, sed -r, base64 -w — 0 hits. ${x,,}/${x^^}, cmp -n, xargs -r, head -c — hits are in comments only; the code is gone. date -d survives only as the GNU-first arm of a three-way fallback (lanes-edit.sh:1640-1644; the suite's own utc_at at :211-213 has the BSD -v twin). stat -c %Y || stat -f %m carries both spellings. Every surviving -- sits after an option (head -n N -- file), never after an operand — the grep PATTERN -- file shape the rounds removed is gone. No awk -v anywhere carries a multi-line value: I read all 28 call sites; every one is a lane name, a one-character separator, an object key, a path, an integer or a regex.
Two set -e shapes the rounds introduced, checked rather than assumed: row_tail="$row"; [ "${#row}" -gt 200 ] && row_tail="${row: -200}" does not trip errexit when the test is false (a failing non-final command of an AND-OR list), and rule6_aliases's [ "${#r6_files[@]}" -gt 0 ] || return 0 returns cleanly with no table at all under set -u.
8 · Hygiene
Body line 1 is Lane: openRepoProject-1. DRAFT, base main, mergeable MERGEABLE / mergeStateStatus CLEAN. The body cites 956b93a, run 34785166353, the four per-platform counts with per-job links (437 / 437 / 285+152 / 82+355) and the nine defect classes in a table; the closing comment 5656489977 matches everything I measured independently.
SonarCloud: quality gate OK — new_reliability_rating 1, new_security_rating 1, new_maintainability_rating 1, new_duplicated_lines_density 0.0, new_security_hotspots_reviewed 100.0. Of the 110 open issues on the PR, zero are in lanes-edit.sh, lane-start, lane-end, link-estates or openRepoTools (queried by file key: total: 0). All 36 MAJOR/CRITICAL sit in tests/test_lane_helpers.sh: 34 × shelldre:S7688 "Use [[ instead of [" — advice this file must not take, since it is POSIX-portable bash held to a 3.2 gate — and 2 × shelldre:S131 "Add a default case" in the harness.
Findings
F-R1 · non-blocking (wording) — the cmp -n claim is contradicted by this branch's own CI, in the same run.
lanes-edit.sh:711-716 states: "no cmp -n: the -n <limit> … is GNU's, and BSD cmp's trailing numbers are SKIPS, not a limit — so where GNU compared a prefix, BSD answers illegal option -- n, exits 2", and the PR body's defect table repeats it as a cause: "cmp -n is a SKIP on BSD, not a limit | append_text_line's proof | same die, same dirty checkout, one line later". But .github/workflows/tests.yml:273-274 prints cmp -n taken : … on that very runner, and on run 34785166353 it answered cmp -n taken : yes. macOS 26.6's cmp accepts -n. The narrower true statement is that BSD cmp's trailing positional numbers are skips — but the old code used the flag, not positionals, so cmp -n was not one of the defects that reddened the macOS job; the change was defensive.
This is not a code defect. The replacement — rebuild the expected whole file and cmp -s -- "$target" - — is strictly stronger (it proves the appended line is the line asked for, not merely that no byte moved), is POSIX-only, and needs no byte count. I would land as-is and narrow the comment and the body row in a follow-up to "defensive, not observed on this runner", since a governed record that overstates a platform fact next to a CI step printing the contradiction will mislead the next reader.
F-R2 · non-blocking (wording) — tests.yml:16 and tests/test_lane_helpers_suite.py:6 say "196 KB of bash". Accurate for what arrived (196,659 bytes at 17f3749) and now stale for the file (233,706 bytes at 956b93a). The sentences are past-tense and defensible; flagged only so it is a decision and not a drift.
F-R3 · non-blocking (whitespace) — lane-end has a doubled blank line after LANES_EDIT="${LANES_EDIT:-$(lanes_edit_default)}" (before LE_TMP="") where lane-start has one. Cosmetic; no test sees it.
No BLOCKING findings. The act matches the ratified text clause by clause: clause (b)'s seven moved paths, nine installed files, twelve-artifact count and R-A9-12 refusal; clause (c)'s eleven steps including ruling 2's printed block; clause (e)'s hook string byte-for-byte in all three places; clause (f)'s path map, repointed lanes-edit.sh link and dropped ~/.local/bin links.
9 · Downstream — nothing in 956b93a changes what the stacked work assumes
INSTALLABLES is identical at e3d57dd and 956b93a; so are HOOK_COMMAND, SKILL_SOURCE_PATH (skills/lane-swap/SKILL.md) and the twelve-artifact invariant at openRepoTools:297. Of the ten paths workBenches#74 vendors, only lanes-edit.sh and lane-end changed since the head it rehearsed its re-pin against (e3d57dd) — and #74's recipe derives the row set from the shim at the pin target and rewrites every changed digest, so that is covered rather than broken. brett-wip#6's assumptions all hold at this head, and its own landing gate re-runs green here (§2). openRepoTools#26 is based on this branch and is currently CONFLICTING; it rebases onto 956b93a.
Landing notes:
landing note: retarget #26 before deleting the branch—gh pr view 26givesbaseRefName: lanes/amendment-9-tooling-home. Merge #24 without--delete-branch, retarget #26 tomain, then delete; or retarget first. GitHub's auto-retarget-on-base-deletion is a convenience, not a guarantee, and #26 needs a rebase either way.- Land #24 before #27.
fix/record-worktree-path-parity(#27, ready, basemain) touchesAGENTS.md,README.md,tests/test_repo_hygiene.pyandtests/test_park_resume_commands.py— four files #24 also touches, two of them the doc-cap files. #24 is CLEAN now; #27 landing first would cost another cap re-measure. Its own lane already said it would merge main after #24 (comment 5655242230). - workBenches#74's pin must still name a commit at or after #26 lands, per its own body and the register's ORDER FIX — landing #24 does not unblock 4b on its own.
- Act 6 (
--installon Eagle and Raven) still precedes act 5, and Eagle carries no differing hand-installed hook entry, so--installwill reportalready installed (unchanged)there.
READY
As an opinion for Brett Heap's advance word: 956b93a is adoption act 3 as the ratified text describes it, the five macOS rounds regressed nothing — the hotfix ported at dcf1027 is line-for-line intact at this head and lane-start is byte-identical across all of them — and both conditions on "ratify 24" are met: 4/4 CI green on one head, and this confirmation. The three findings above are wording and whitespace; none of them should hold the landing.
There was a problem hiding this comment.
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters
…at read one back refused itself `origin/lanes/amendment-9-tooling-home` moved to `e3d57dd` (#24's macOS round 3) while this branch sat at `dae38be`. Taken as a merge rather than a rebase for one reason: `e3d57dd` is a fast-forward child of `d3d59b5`, which `dae38be` already merged, so a merge reconciles only the five-file delta and LEAVES `dae38be`'S OWN RESOLUTIONS RECORDED. A rebase re-derives them — it conflicted in exactly the two places `dae38be` was written to settle (README.md's eleven-file paragraph, `test_repo_hygiene.py`'s 372 cap), which is the defect `dae38be`'s own message names: a cap raised from where this branch started rather than from where the merge left it. `git diff --stat dae38be` is `e3d57dd`'s delta exactly — 5 files, 170 insertions, 23 deletions — so no #24 commit is reverted and nothing of this branch is lost. Co-Authored-By: Claude Opus 5 (1M context) <noreply\@anthropic.com>
…last two rounds `#24` — Amendment 9's adoption act 3, this branch's base — merged as `d4b5710` on `main`, so act 3 is cited by that commit from here on and not by a branch name. What this branch was missing, and now carries, is #24's round 4 and round 5 (`584180a`, `956b93a`): the `awk -v`→`ENVIRON` fix under `who_landing`, the bash 3.2 `${row/…}` quoting fix in `replace-in-row`, and the macOS `wc -l` padding guard — measured present here, 2 occurrences of the `wc` guard and 1 each of the other two. **A MERGE AND NOT A REBASE, AND THE REASON IS MEASURED.** A rebase was attempted first and abandoned: this branch's own history carries TWO merge commits with hand-written resolutions, and `git rebase` drops merge commits. `git show --cc` on `301a7e3` alone is **2,117 lines** that are in neither parent — the whole `repoVT` window-name-veto fixture among them, which is `R-A11-12`'s second layer and exists nowhere else. Rebasing would have deleted it silently. The #74 writer's own note put the two as equivalent for its purpose — *"merging #24 first and then this is equally fine — the merge commit carries both"* — and the thing that had to be true is that this branch carries #24's bytes, which it now does. The one conflict was the suite's own reporting vocabulary, and both answers are kept because neither replaces the other: `skip()` is #24's, for a case this HOST cannot run (`timeout(1)` on stock macOS); `pending()` is this branch's, for a case another REPOSITORY's commit lands. The footer prints all four numbers, and `test_lane_helpers_suite.py`'s `" passed, 0 failed"` reads back unchanged. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…was in review, and a PUSHED branch is merged, never rebased `main` moved to d4b5710 — openRepoTools #24, the lane collision protocol's Amendment 9 act 3 — while this branch was answering its sixth round of review, and GitHub called the pull request DIRTY. THE BRANCH IS PUSHED, so the estate's rule is the one that decides how: nothing that has been pushed is rebased or amended, and a merge commit is what carries the base forward. ONE CONFLICT, IN `tests/test_repo_hygiene.py`, AND IT IS THE TWO CAPS. Both sides raised AGENTS.md and the README from the same base and neither touched the other's lines, so both dated entries stay and the number becomes the count of what merged: AGENTS.md 187 (this branch, from 162) and 186 (`main`, from 155 by way of 162) meet at 211; the README's 270 (this branch, from 256) and 363 (`main`, from 251 by way of 256) meet at 377. Each entry still names the rule its own lines bought, which is what the cap's own docstring asks of them, and a third entry in each says the arithmetic. EVERYTHING ELSE AUTO-MERGED. `status` and `tests/test_status_command.py` are this branch's alone — `main` touched neither — and `AGENTS.md`, `README.md` and `tests/test_park_resume_commands.py` merged clean, the two documents because the paragraphs are in different sections and the third because `main` widened the same environment list this branch had added `$SPECKIT_GIT_WORKTREE_ROOT` to. The openRepoShape pin moves with `main`: gitlink and `contracts/openreposhape-pin.yaml` both at ba14e1d, taken whole from that side, because this branch never touched either and rule 3 of the pin section says they move in ONE commit. THE SUITE IS 479 PASSED, 0 FAILED on the merged tree with `upstream/openRepoShape` checked out at ba14e1d — this branch's 374 and the 105 `main` brought with the lane tooling. `bash -n status` and `shellcheck --severity=warning status` are clean. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…irectory the shell is standing in (corrects this round's own ruling-6 build)
Brett Heap's settlement of 2026-09-13T20:38:11Z, verbatim *"Narrow inside a
checkout (Recommended)"*, carried into clause (j) by `R-A11-22`: *"Inside a lane
checkout the bare word narrows to **that repository's** lanes … and ends with
the next free position and the `lane-start <repo> <n>` that takes it."*
`24f9f7e` of this branch read that repository as
`basename "$(git rev-parse --show-toplevel)"`, which is the name of the
DIRECTORY the shell is standing in. **Inside a worktree that is the worktree's
own name.** Measured in this lane's own worktree — a worktree of
`opensoft/openRepoTools` whose directory is `ort-a11`:
no lane of ort-a11 is recorded.
next free position: 1
take it: lane-start ort-a11 1
`lane-start ort-a11 1` is a lane whose `$PROJECTS_ROOT/<repo>` cannot exist, so
the one line the settlement exists to print was a line that does not work. Every
lane on this estate is named for the REPOSITORY — which is what `origin` says
and what `repos.tsv` aliases — and `origin_nwo` was already being read one line
below for `--repo`. So the origin's own repository name is the prefix wherever
there is an origin, and the directory's name is the fallback for a checkout that
has none, because then there is nothing else to have. The same run now says
`1 lane(s) of openRepoTools` and offers `lane-start openRepoTools 1`.
**The four red assertions at `0303baa` are the same defect seen from the suite.**
`LANES_WORKSTATION=Eagle bash tests/test_lane_helpers.sh` reported **1275
passed, 4 failed**; all four were bare `lanes` runs that mean the ESTATE-WIDE
listing, and the suite runs from a checkout, so the narrowing answered a
question they were not asking. That section's own header already said so —
*"THE SUITE RUNS FROM A CHECKOUT … `--all` is what asks the estate-wide
question"* — and four invocations had not been moved. They are `--all` now, and
the `hasnt` beside them still bites because the narrowed listing is asked for
separately.
**Tests** — a new case makes a real `git worktree` whose directory name is
nothing like its repository, runs the bare word inside it, and asserts the
listing names `repoA11` and never the worktree's directory. It is a worktree
deliberately: a plain clone cannot tell the two derivations apart, which is why
this survived the round that wrote it. It `skip`s where the sandbox refuses
`git worktree add`, using #24's own third answer rather than passing vacuously.
Lane: openRepoProject-1
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…r and profile in the record (Amendment 11 tooling) Lane: openRepoTools-3 (taken over from openRepoProject-1) ← brettheap/new-workstation#20 Amendment 11's **tooling** half, against the moved layout, built to the text on `brettheap/new-workstation#21`, **SPEC rev 4** (issuecomment-5655199395) and the eight decisions Brett Heap ratified verbatim on 2026-09-13T18:05:29Z — *"Ratify all four"*, *"Yes, build `lanes` in A11"*, *"Ratify the bundle"*, *"Hotfix brett-wip now, move it with history"* — as corrected by **A11 Addendum 3** (`R-A11-12`, `R-A11-13`, `R-A11-14`). **Base is `main`.** #24 — adoption act 3, the tooling move — landed as `d4b5710`, and this branch MERGED it at `ea28e12` rather than rebasing onto it: this history carries two merge commits with hand-written resolutions — `git show --cc 301a7e3` prints a combined diff that is in neither parent, the `repoVT` window-name-veto fixture among them — and `git rebase` drops merge commits. ## Taken over **Lane `openRepoTools-3`, from 2026-09-13T23:38Z, on Brett Heap's word, after lane `openRepoProject-1`'s session died holding this work.** Its last four commits were pushed by the orchestrator at 23:33Z and stand exactly as they are: **nothing on origin is rewritten, nothing is force-pushed and nothing is amended.** Run `34790026014` at `708395e` was the baseline — `tests-windows` green, and **three distinct failing assertions** across the other three jobs (`tests` 1321/1, `tests-no-submodule` 1321/1, `tests-macos` 1313/3/6). The host-absolute-path hygiene failure named in the handover was already gone by then. **Five commits are added.** The first is seven things (`git log` for the evidence behind each); the four after it are the review of that first one, and then the fail-closed family Brett Heap ruled in, one commit per surface. **`3d06a2b` — seven things** (`git log -1` for the evidence behind each): 1. **The last two `case`s bash 3.2 cannot parse**, in the suite's own cross-lane-veto block: 3.2 reads the `)` that closes a case PATTERN as the one that closes the `$( )`, so `tests-macos` compared a fragment of the suite's own source against `did not`. Hoisted, as A9 Addendum 4 R-A9-11 did for the same shape at `584180a` — and the rule is held for **all eleven bash files** now by `test_no_shipped_bash_opens_a_case_inside_a_command_substitution`, because `bash -n` on a GNU runner parses the construct perfectly. 2. **The one failure the Linux jobs had:** `restart`'s no-recorded-directory refusal wrapped between `reads it` and `back`, and its own assertion reads `reads it back`. The message is reflowed; not one word of it changed. 3. **The settled narrowing reaches the prose.** `24f9f7e` and `c4b6868` built Brett Heap's settlement of 20:38:11Z (*"Narrow inside a checkout (Recommended)"*, and *"Yes, list and suggest (Recommended)"* for `lane-start <repo>`); **five surfaces still stated the pre-settlement default** — `lanes`'s own header line, README.md's code block, the manual's *"two words"* block, `--help`'s entry, and `restart`'s two notes and usage tail — wrong twice over, because the scope is the ESTATE now and inside a checkout it is one repository. All five corrected, the manual gains the section the settlement is entitled to, and **two new tests plus seven shell-suite assertions** hold them, ABSENCE included. 4. **The artifact count.** Three prose statements still said *sixteen* (`openRepoTools:38`, `openRepoTools:260`, the manual's R-A9-12 paragraph) and README.md's install paragraph named *five* things that are not files in the bin directory while listing four skill copies and the hook — never naming `commands/swap.md` at all. It is **eighteen**, derived in `tests/test_openrepotools_command.py` and unchanged by this round: `11 + 2×2 + 2×1 + 1`. 5. **`lanes --prefix <repo>`** — how `lane-start <repo>` with no position asks for its listing — was parsed, used and documented in the body of `--help`, and **missing from the synopsis**. Added, and `test_every_option_the_parser_accepts_is_in_the_usage` now derives the check from the parser's own arms for both of Amendment 11's words. 6. **The manual offered `kill <pid>` as the retirement**, three words after saying none of them kills anything. The one act is `lane-end <lane> --retire <pid|uuid>` (ratified decision 8(e), clause (k) rule (e)). `F-X8` corrected the five other surfaces at `83e3ab8`; this one survived because that test matches LINES and the contradiction's two halves were on two lines. The new test reads PARAGRAPHS. 7. **`lane-start`'s clause (c) fences were missing `; `.** SPEC rev 6 §5 refuses `, `, ` — ` **and `; `** in `dir` and `profile`; the `/lane-swap` skill has done all three since `68614bf` and this one did two. The quoting does not cover the gap: `payload_subfield` splits on `; ` BEFORE it honours a quote, so `dir "/p/a; b"` splits and `lane-dir` answers `"/p/a` — a wrong directory, silently, which is Evidence 3 exactly. Eight assertions. **`window` is not widened** (`R-A11-15`). **Then Brett Heap ruled on that list, verbatim: *"Take it first, then land (Recommended)"*** — so **four more commits** follow, and the fail-closed family is in this PR rather than after it. **`2f44da0` — the review of `3d06a2b`, eight findings taken and four answered.** The manual promised *"four rungs … there is no fifth rung"* while `708395e` had added **two**: the estate's `project.yaml` legs and a checkout named for the home's repository, each proved by that directory's own `origin` and each skipped where the lane has no recorded home. `restart`'s lane-name fence was `[A-Za-z0-9]*)`, which pins ONE CHARACTER — `repoA11-1/extra` passed it and the person was told the register had no row for it; it is `lanes-edit.sh`'s own `check_lane_name` pattern now, held by a test that takes the pattern out of the helper. `lanes --all --prefix repoA11` (either order) listed every lane in the estate under a footer saying `of repoA11` with a next free position computed from one repository's rows. Four stale counts in the installer's own comments (`FIVE ARTIFACTS`→seven, `FOUR FILES`→six, `NINE TARGETS … TWELVE`→eleven … eighteen, `twelve of eighteen`→eleven), two refusals that named the skills while covering the command file, and `/lane-swap`'s container message, which told an operator *"the row is still flipped to PAUSED"* about a write that block skips. Answered rather than taken: `readlink --` (four assertions read its output and **`tests-macos` runs them** — 481 passed, nothing skipped), `line.strip() == "esac"` (applied, the dispatcher parse drops from thirty arms to **two**), and `collect_commands` (it collects the eleven INSTALLABLES and `die`s on its own; the command files are fetched inside the guarded `collect_skills`). **`43b6320` — the family, 1 of 3: `lanes`.** `log_sync` falls back to the local refs when a fetch fails or times out, says so on stderr and answers 0, because a read in front of a launch may not refuse. This command ran it with `2>/dev/null` and printed **"as of a fetch just now"** over the top — the one line a person reads to decide whether the answer is current, asserting the opposite of what the run had been told. The fetch path's stderr is kept and rendered; the local path's still is not, because there the notice is `LANES_NO_FETCH=1` saying what the caller asked for. The **empty** listing gets it too: *"no lane is recorded"* off a stale checkout is the answer likeliest to be acted on. **`013e0d5` — the family, 2 of 3: `restart`.** Three reads had one arm for four codes. The window's `register-row` behind a `&&` could not tell `8` (this window is not a lane — the fall-through's whole purpose) from `1` (the register could not be read). `list_this_checkout`'s `|| out=""` turned every nonzero into *"no lane of this checkout"*, including the **`2` every workstation gives until act 3's install reaches it** — which now gets the same refusal `lanes` gives it, naming `openRepoTools --install`. And `swapped`'s status was unreadable twice over — a pipeline's `$?` is `awk`'s, and `awk` succeeds on empty input — where the fall-through is not a listing but **rungs 3 and 4 of the directory resolution**: a failed read resolved `$PROJECTS_ROOT/<repo>` while the record naming the real checkout sat unread, which is Evidence 3 exactly. **`73caa5d` — the family, 3 of 3: `/restart`.** Six reads, one fence (`lread`), defined once beside `$L` and `$WS`: `0` an answer · `8` no answer · `2` a helper predating the read — both fall to the next rung, which `R-A11-8` requires — anything else a refusal naming the read. **It sets a variable rather than printing**, because a refusal inside `$( )` kills only the substitution's subshell and the skill would carry on with an empty answer. The explicit-lane check joins the fence and gains the `LANES_NO_FETCH=1` it lacked, so `/restart <lane>` no longer fetches before deciding whether the lane exists. And step 4's empty row is a **refusal**: the act below it is `lane-start --no-launch`, whose new-lane path CREATES a row, so a read that answered 8 must not reach it. The fence is extracted from the file and RUN against a helper stubbed to exit 0, 8, 2 and 6. **`6508e99` and `c3ebcfe` — two the suite caught on itself.** The fence cases landed between a `run` and the assertion that reads its `$rc`, so a case that had passed measured the leading-dash refusal's 2; and the fallen-back footer QUOTED the sentence it disowns, so `hasnt "…never claims a fetch it did not get"` fired on the message written to prove it never fires. Both are in the round because the suite is what found them. **`370dcba` — `main` at `7efc850` is merged in** (#27's computed worktree path), as a MERGE and not a rebase, for the reason `ea28e12` gives. One conflict, the README cap's docstring, and **neither dated entry is dropped**: this branch's 26 lines from 363 (372, 382, 389) and `main`'s 14 (#27), `363 + 26 + 14 = 403`, and the merged README measures **403** exactly. AGENTS.md came through unconflicted at #27's **214**, which is what the merged file measures. **`f368a75`, `e7b7a85` and `37632b1` — Copilot's review of `c3ebcfe` (5193115486), which is this same family ONE LAYER OUT: thirteen suppressed findings and one raised inline, and all fourteen are taken.** Same ruling, same three-commit shape, a suite case for each. **`f368a75` — `lanes` and the helper.** `43b6320` closed the LOUD half of the fetch; **four ways out of `log_sync` never reach the fetch at all** — `LANES_NO_GIT=1`, a `LANES_NO_FETCH=1` already in the environment, a `$LANES_REPO` that is not a checkout, and an `origin/<branch>` `ls-remote` could not confirm, THE TIMEOUT AMONG THEM — and every one answered 0 in silence while the footer said *"as of a fetch just now"*. The helper records which of the four it took and says it in the one phrase the wrapper already matches on. The `mktemp` fallback that can make no capture file threw that same sentence away again (the inline finding). `lane_payload_field` read its events **inside the here-document that feeds its loop**, where a command substitution's status is discarded outright — measured, with `pipefail` on — so a log that could not be READ left through the **8** every caller reads as *"this lane has not started under Amendment 11 yet"*. And `--all` cleared four filters and left `lr_one`, so `lanes --all --lane X` answered about one lane. **`e7b7a85` — `restart` and `lane-start`.** The two reads `013e0d5` missed are the ones whose fall-through is **a refusal that prescribes a WRITE**: `lane-start --dir <checkout>`, which appends a second `dir` to an append-only log, and the form that asks the operator to supply a profile by hand, which is the one guess the command exists to refuse. `--dry-run` printed `cd $lane_dir` unquoted, for a clause (c) directory that may carry a space — `lane-start:550`'s own `quoted` has printed its plan properly all along. The `lanes --prefix` refusal promised *"a position from the listing above"* when what was above it was a refusal. `--dir=` with an empty value fell through as ABSENT while `--dir ""` refuses — **eight such arms across three files**, guarded in the two-token spelling and in none of the `=` ones, now all guarded and held by a rule derived from the arms themselves. And the contract at the top of `lane-start` still said *"FOUR RUNGS … THERE IS NO FIFTH RUNG"* a hundred lines above the sixth; a second new rule counts the rungs the block declares, the rungs it lists, the rungs the code marks, and the number the manual states, and requires them to be one number. **`37632b1` — the two skills.** `/lane-swap`'s three step-1 reads go through one `sread` fence, because the rung beneath them is the workstation's **newest swap — a different lane** — and step 4 would then write a PAUSED record and a restart command for it. Its `dir` read may not stop (`R-A11-11`, *a swap is never left unwritten*), so it takes no substitute, drops the sub-field and **names the read that failed** — the third source below it is this session's own `cwd`, which is Evidence 3 written into an append-only log. And `/restart`'s step 3 stops deriving `$PROJECTS_ROOT/<repo>` where that is not there, so `lane-start`'s rungs 5 and 6 — the two this PR added — finally reach the lane they were added for, and step 5 passes `--dir` only where step 3 has one rather than putting a DERIVED directory at rung 1, the operator's own word. **`29d3417` — Copilot then reviewed those three commits (5193967331), and six of its seven findings are taken here.** The largest is the family again, under the whole fork layer: `session_files` returns **1** for a session tree it could not read and three callers refuse on it directly, but `session_records` read it through `|| :` inside a `$( )` — losing the status and the message with the subshell — and **cached the empty answer for the life of the process**; below it `fork_map`, `live_session_ids` and `lane_forks` each read their own source inside a here-document. So `forks` answered **8**, *no fork of it is live*, and the refusal its own arm has carried since it was written — *"That is NOT 'no fork of it is live'"* — **was unreachable**. `who`, the SessionStart hook and `live-holder` now say they could not look instead of printing the same nothing they print for "no fork"; the LISTING answers and says the STATE column is the log's verb alone, which is `43b6320`'s rule for a read that sits in front of a launch — and to make that notice reachable both `lanes` and `restart` stop discarding the helper's stderr on the local path, keeping the stream and dropping only the one `LANES_NO_FETCH=1` sentence they asked for. With it: a relative `--dir`, which `restart` resolved twice from two different directories; the `/restart` skill's tmux probe, whose status nothing tested under a paragraph promising a refusal; and `openRepoTools`'s staging comment, which counted **four** files of eleven. One finding is answered rather than taken — *"`--dir` bypasses the lane's recorded `dir`"* — because clause (c) makes `--dir` **rung 1, the operator's own word**, ahead of the record, and this suite has asserted exactly that since it was written. **`0241402` — the macOS runner, and three descriptions that ran what their backticks held.** `29d3417` was green on Linux, no-submodule and Windows and RED on macOS, on two assertions it had just added: `restart` resolves a relative `--dir` with `cd … && pwd -P`, which is PHYSICAL, and on that runner `/var` is a symlink to `/private/var` — so the case asserted the sandbox's own spelling of a path the code had resolved, which on that one runner is an assertion that it was NOT resolved. The expectation is computed the way the code computes it now. The same log prints the suite's own stderr, and in it, twice: *"command substitution: syntax error near unexpected token `newline'"* — three assertion DESCRIPTIONS whose unescaped backticks bash read as command substitutions, running `kill <pid>` and `forks` and handing the assertion a description with a hole where those words were. None can fail a test, which is why all three sat there. A third rule holds every description in the file. **`90cef58` — Copilot's review of `29d3417` (5194269988): five taken here, one in this description, one answered.** `/lane-swap`'s `workstation` read tested `-z "$ws"` alone, and `workstation` is an Amendment 11 read — so a `lanes-edit.sh` that has not taken act 3's install exits **2** with no output, and the skill told the operator of an ordinary host that they were in a container with `$LANES_WORKSTATION` unset, and skipped step 4's writes. **Until the install reaches every workstation, 2 is the answer every one of them gives** (`R-A11-8`): this was the case a swap meets today. The writes still stop — `$ws` goes into the PAUSED payload and into `session <uuid>@<ws>`, and a record filed under nothing is the placeholder `R-A11-14` refuses — but the gap is named truthfully and the act that closes it is the install. With it: `/restart`'s step 2(d), whose heading says PRINT THE LISTING AND STOP and whose code fell through with `$lane` still empty; and three surfaces that still said `--retire` **writes** an Amendment 6(d) record when it is the DOOR to 6(d) and writes nothing (`lanes`'s own printed footer has said so all along). The stale **sixteen-artifact** line in this description's generated summary is corrected here too — it is eighteen, derived in `tests/test_openrepotools_command.py`. One finding is answered rather than taken: *"the normal path builds the launcher command without `--dir`"* — `restart` reaches the launch only with a directory it took from the lane's own record, so `lane-start` reads the same two rungs and finds the same directory, and passing it as `--dir` would put a value the operator never typed at rung 1, which is the defect `37632b1` took OUT of the `/restart` skill. **`bf59ad3` — and one defect this round INTRODUCED, taken on the review of the commit that made it reachable.** `/restart`'s step 2(d) read was the last one in that file outside the `lread` fence, and while the block fell through that cost nothing. `90cef58` made the rung terminal — which its heading and the outcome table had both said it was — and the moment a rung ENDS in an outcome, its read's status IS the outcome: a `lanes` that exited **1** or **64** would have printed as `NO LANE FOR THIS WINDOW` **[8]**, a refusal turned into a no-answer, at the one rung whose next act is `lane-start`, which CREATES a row. Through the fence now, like every other read there. **That is where this round stops taking**: a defect it introduced is taken, a defect that predates it is listed — and everything still open from the reviews is listed, with a verdict each, in the comment. **Measured at `bf59ad3` (HEAD):** `bash tests/test_lane_helpers.sh` **1500 passed, 0 failed, 0 skipped, 0 pending**; `python3 -m pytest tests -q` **538 passed**; `bash -n` over all eleven bash files, eleven ok; CI **all five green**. **Measured at `29d3417`:** `bash tests/test_lane_helpers.sh` **1482 passed, 0 failed, 0 skipped**; `python3 -m pytest tests -q` **537 passed**; `bash -n` over all eleven bash files, eleven ok. At `37632b1` CI was green on all five (`tests` 7m3s, `tests-macos` 20m23s, `tests-no-submodule` 7m25s, `tests-windows` 29s, SonarCloud 21s). **Measured at `37632b1`:** `bash tests/test_lane_helpers.sh` **1463 passed, 0 failed, 0 skipped** (1387 at `c3ebcfe`); `python3 -m pytest tests -q` **537 passed** (525 at `c3ebcfe`, +12 instances from the two new rules); `bash -n` over all eleven bash files, eleven ok. Both new rules were run against the defect each was written for and refused it, then against the fix and passed. **Still open:** nothing. Of the first review's findings, four are answered above rather than taken, with the measurement beside each; of the second review's fourteen, all fourteen are taken — four of them with a different remedy or a different reason than the review gives, each resting on a line already in force; and of the third review's seven, six are taken and one is answered on the ratified precedence it contradicts. Every one of them is named, with its verdict, in the comment for this round. ## What is here **Clause (c) — the record.** `lane-start`'s `STARTED`/`RESUMED` lines and the swap record carry `dir <path>` and `profile <name>`, and the `window` sub-field carries its `<@id>`. A path with a space is written **quoted**, which makes it one ref under Amendment 7(b)'s grammar; one carrying `, `, ` — `, `; ` or `"` is **refused, naming the path** — in **both** writers as of this round. Four rungs resolve the directory — `--dir`, the swap record, the lane's log, `$PROJECTS_ROOT/<repo>` — **no fifth rung**, the cwd ruled out by name, and `lane-start` `cd`s there before it launches. `swapped` gains a fourth `<dir>` field and a fifth `<profile>`. **Clause (h) — the reads.** `window-lane [<ws>]` (three callers) **owns** the `<@id>`-versus-ref agreement rule: a record carrying an id is matched on its `<session>:<index>` only where the window now holding that ref reports that same id. Beside it: `lane-dir`, `last-session` (the cell of any shape, then the log's last `PAUSED`/`RESUMED`, never a title while a uuid exists), `forks`, `lanes [--repo|--dir|--prefix|--ws|--here|--all|--fetch]`, `workstation`, `fetch-age`. All read-only, all out of `origin/<branch>`, all treating **2 as a helper predating Amendment 11** rather than as a refusal. **Decisions 6 and 7 — two words on PATH.** `restart [<lane>]` reads the lane's own record, `cd`s there and relaunches **through the launcher**, never `claude` itself; with no argument it takes this window's lane, else prints this checkout's lanes and stops. `lanes` is the estate-wide listing, **local by default** with `--fetch` — and **inside a lane checkout it narrows to that repository's lanes and ends with the next free position and the `lane-start <repo> <n>` that takes it**, which is the settlement of 20:38:11Z; `--all` clears it. Neither is a picker. `/restart [<lane>]` is the in-session half, `skills/restart/SKILL.md`, installed beside `lane-swap`. **Decision 8.** `R-A11-12`: step 3b's fence is **two vetoes and no permission** — the register veto is adoption act 0's, and this adds the **window-name veto**: a window named for another lane never lends its session. A name is a veto and **never a permission**, so a window still called `claude` vetoes nothing and the `/clear` case step 3b exists for stays alive. `R-A11-14`: the workstation name is **read** from `$LANES_WORKSTATION`; outside a container `hostname -s` still answers; **inside one with no value every writer refuses, exit 2, naming the variable**. Rule (c)/(e): a live **fork** of a lane's transcript is never a holder and is shown as a defect to retire by `lanes`, `who --lane`, `live-holder` and the `SessionStart` hook — and killed by none of them. **`--install`** places **eleven** files, **two** skills at two paths each and **one** command file at that same pair of paths, plus one merged `SessionStart` entry: **eighteen artifacts**, and the count is the invariant — derived in `tests/test_openrepotools_command.py`, never restated from memory. `R-A11-13`: **no second installer** — workBenches' `setup.sh` already runs `openRepoTools --install`, and these two words ride that. ## What is deliberately NOT here - **Adoption act 0's three defects** (step 3b's register veto, `--name` on every launch branch, `log` refusing `unknown`) and its **`session-lane`** arrive from `opensoft/brett-wip#5` through `openRepoTools#24`. They are not authored twice. - **Clause (g)'s arming** of the usage-guard flag by `lane-start` is not in this round. ## Verification `bash tests/test_lane_helpers.sh` and `python3 -m pytest tests -q` — counts in the progress comments, and in CI on all four runners. PR #26 Co-Authored-By: Claude Fable 5.1 <[email protected]>



Lane: openRepoProject-1
← brettheap/new-workstation#17 (Amendment 9, ratified
fc33f39, "ratify 18") — adoption act 3.DRAFT. Head
956b93a. All four CI jobs are green on it —tests,tests-no-submodule,tests-windows,tests-macos— in run 34785166353. All six stages are in, plus a verification round against the ratified text that found two promises the code could not keep, and five rounds of macOS portability that thetests-macosjob bought one answer at a time. The lane tooling now lives here, with its history;openRepoToolshas a verb;--installplaces twelve artifacts instead of four.The path map —
git filter-repo, one run, seven paths (R-A9-2)Run in a fresh clone of
opensoft/brett-wip(aade605b, Amendment 8's tooling merge), never in a live checkout:opensoft/brett-wipopensoft/openRepoToolslanes/lanes-edit.shlanes-edit.sh--installfetches by bare namelanes/lane-startlane-startlanes/lane-endlane-endscripts/link-estateslink-estateslanes/repos.tsvrepos.tsvlanes/test_lane_helpers.shtests/test_lane_helpers.shlanes/README-lanes.mddocs/README-lanes.mdgit subtree split --prefix=was rejected for the mechanical reason Amendment 9(f)(2) gives: it carves one prefix and renames nothing, while this is two source prefixes landing on three destinations with a rename on every path.Merged with
--allow-unrelated-histories, so every moved file keeps its brett-wip history — 14 commits carried, andgit log --followon each of the seven reaches back through3fc6215to the register's arrival from the orphanlanesbranch ofopensoft/xFactory:What this PR changes, beyond the move
openRepoToolshas a verb.wip init— all eleven steps of clause (c). The login fromgh api userlowercased, the organisation from this toolset's shipped default, the team fromgh api /user/teamswhere exactly one matches and otherwise dropped from what it runs AND what it prints. Where the person cannot create the repository it prints the administrator's three acts with every value already substituted, waits once, re-checks once, and exits 2 — and never at all where stdin is not a terminal. It seeds from openRepoShape'stemplates/workspace-root/at the pinned commit, substitutes{{LOGIN}}×17,{{ORG}}×4 and{{SHAPE_REPOSITORY}}×2, and pushes one commit tomain, which is the ruleset probe — better to meet the org's PR-only gate there than at a firstlane-start. Then$AGENT_PROTOCOL_ROOT/workspace.yaml, thenlink-estates.openRepoTools:13's "There is no verb here and no scaffold", the*)arm andNOT_ITS_ARGUMENTSall change with it (R-A9-1, obligation 1).--helpsatisfies opensoft/openBenches#68's probegrep -Eq '(^|[[:space:]])wip[[:space:]]+init([[:space:]]|$)'and exits 0.The helpers find the person's data through the pointer file (clause (a), obligation 5). One resolver in
lanes-edit.sh,lane-start,lane-endandlink-estatesreadsrepository:andpath:from$AGENT_PROTOCOL_ROOT/workspace.yamland checks the path is the root of a checkout of that repository, which nothing validated before. Failure is exit 1 namingopenRepoTools wip init, never a guess and never a fallback to the script's own location.link-estatesloses the two~/.local/binsymlinks —--installowns those now — and reports either stale one with the command that replaces it; it keeps and repoints thelanes-edit.shlink, because Amendment 8(e)'sSessionStarthook names that path.--installplaces twelve artifacts, not four. Nine files at 755 from one list, all in hand before any is placed; the/lane-swapskill into${CLAUDE_PROFILES_HOME:-~/.claude-profiles}/shared/skills/and~/.claude/skills/; and oneSessionStartentry merged into~/.claude/settings.jsonwithjq— matcherstartup|resume|clear|fork, command~/projects/xFactory/lanes-edit.sh session-start || true, timeout 5, byte-identical to whatclaude-profileensures per profile (R-A8-5, R-A9-4). Mode 600 preserved, never the file whole, idempotent by exact match; a differing entry, an unparseable file or a non-objecthooksrefuses and places nothing.One thing the ratified text could not anticipate: the openRepoShape pin had to move.
contracts/openreposhape-pin.yamlpinned32450eb5, which predatestemplates/workspace-root/— sowip inithad no template to seed from. Bumped toba14e1d(that repository'smain, carrying act 2's template;compare/main...ba14e1disidentical), pin + gitlink in one commit, digest recomputed with the pinned checkout's ownrepo_shape.pyas this repository's rule requires. Act 4b's--atis unaffected — that pins openRepoTools, not openRepoShape.Tests
All four jobs green on
956b93a, run 34785166353:teststests-macosen_US.UTF-8tests-no-submoduleupstream/openRepoShapetests-windowsThe moved bash suite runs inside every one of those as
tests/test_lane_helpers_suite.py, and its own transcript is printed only when it fails. Locally it is 1004 passed, 0 failed, 0 skipped; on macOS six cases take the third answer,skip, because a stock macOS ships notimeout(1)and Amendment 8(h)'s bound is therefore absent there — recorded rather than shimmed.New here:
tests/test_wip_init_command.py(21 — rights present, rights absent, an existing checkout, a foreign checkout, teams 0/1/2, the administrator block with every value substituted, a realpre-receivehook in the bare repository so the ruleset-probe branch is a gate and not a mock, and six parametrized fixtures provingwip initand the lane helpers read one pointer file the same way),tests/test_install_skill_and_hook.py(13 — both skill paths, the merge, and each refusal asserting the bin directory is still EMPTY afterwards), andtests/test_lane_helpers_suite.py, the pytest runner that makes CI run the 196 KB of bash that arrived with the move (obligation 6: a suite nothing runs is not a suite).tests/test_wip_init_command.pyis 23 now,tests/test_install_skill_and_hook.py19,tests/test_repo_hygiene.py77 andtests/test_openrepotools_command.py42 — 437 collected in all.The bash-3.2 gate (obligation 4):
lanes-edit.sh's${base,,}/${lane,,}→tr '[:upper:]' '[:lower:]', the four helpers and the moved suite added to the macOS/bin/bash -njob, and nomapfile,declare -A,local -nor${x^^}left in the seven moved paths.The document caps (obligation 2):
AGENTS.md155 → 186,README.md251 → 363, each with the dated docstring entry naming which rule the lines bought.What running the moved suite on macOS cost, and what it found (A9 Addendum 4, R-A9-11)
Obligation 6 made the macOS job RUN 196 KB of bash that had only ever run on Linux, and obligation 4's
/bin/bash -ngate could see none of it: every defect below PARSES. The job went 507/447 → 560/438 → 973/26 → 979/14 → 437 passed, and none of it was in the move — all of it was estate tooling that had never met a BSD userland or bash 3.2.--after an operand is a FILENAME on BSDsed, 1awk, 2grepgetoptpermutes; BSD's stops at the first operanddate -u -dis GNU-only, and staleness is made of itepoch_of/age_of/older_than_thresholdage unknownand every row read as fresh —who's stale reporting silently offwcright-aligns its countslanes-edit.sh× 4[ " 5" = "5" ]is FALSE, soappend_text_linerefused every append it had already made and left the checkout dirty — the single largest cause of the 438cmp -nis a SKIP on BSD, not a limitappend_text_line's proofdie, same dirty checkout, one line laterisalnum(), which is locale-dependentlane-end:573"…$excerpt…"looked upexcerpt…— unset,set -u, exit 0 out of the branch that exists to exit 2${var/pat/rep}lanes-edit.sh replace-in-row| "RETIRED 2026-…"into the register and nothing went red but the two assertions that read the cell)closing acasepattern as the one closing$( )yestimeout(1)lanes-edit.sh:810awk -vcarries ONE LINEwho_landing's register half-v; gawk and mawk accept it, sowho --landingreported every merge hold in the estate asnone openon macOS and only on macOSTwo of those are silent data corruption on a real workstation rather than test noise: the padded
wcmeant Amendment 7's object log was never written on macOS at all, and the quoted replacement wrote a malformed status cell into the register that every reader of that column then misread.The rule throughout was POSIX constructs and not shims, and the suite fixed where the suite was at fault. Nothing sets
LC_ALLorLANGin a shipped command to paper over a locale; the fourLC_ALL=Cprefixes that do appear are ontr,cutandsort, each declaring "this one is a BYTE operation", which is what those calls always meant.timeout(1)'s absence is recorded, not shimmed — the suite gained a third answer,skip, printed and counted and named in the footer, because a faketimeoutin the sandbox would make six cases green on a host where the behaviour they assert does not happen.Three hygiene rules and one behavioural proxy hold the classes down in every job,
tests-windowsincluded:test_no_shipped_bash_ends_its_options_after_an_operand,test_no_shipped_bash_leaves_a_variable_name_to_bash_3_2s_locale,test_no_shipped_bash_quotes_the_replacement_half_of_a_substitution,test_no_shipped_bash_reaches_for_gnu_only_utilities_unaccompanied(which also holds thewcpadding andcmp -n), and — for the last one, which no static rule can see —tests/test_lane_helpers.shrunswho --landingunder a proxy that refuses a many-line-vexactly as one-true-awk does. That proxy reproduced the macOS job on a Linux box to the assertion:985 passed, 14 failedhere against the runner's979 passed, 14 failed, 6 skipped, the same fourteen names in the same order.The macOS job also carries a standing platform record,
what this runner actually is:sw_vers, bothbashes, the locale, whether/procexists, which of nine utilities are present, whetherwcpads, whethercmp -nandhead -c 0are taken, which awk it has and whether that awk takes a newline in a-v. Every one of those lines was bought by a ~20-minute round, and it iscontinue-on-errorbecause a diagnostic must never be the thing that reddens a job.Rollback
opensoft/brett-wiptagpre-amendment-9-move, placed by adoption act 5 at the commit that still carries all seven paths, immediately before its strip commit. Recovery on any workstation: check that tag out and run itsscripts/link-estates, which restores the two~/.local/binsymlinks, the register link and thelanes-edit.shlink. No data moved, so nothing else has to come back. This PR pushes no tag tobrett-wip— act 5 does.The Raven sequence (Amendment 9(f)(4))
Two workstations run lanes, Eagle and Raven.
openRepoToolsmain.~/.local/bin/lane-startand~/.local/bin/lane-endwhile they are still symlinks; remove the hand-installedSessionStartentry from~/.claude/settings.json(its command is not clause (e)'s string, so--installrefuses on it and places nothing); runopenRepoTools --install; run the installedlink-estates.#63skill-loop deletion) — only after act 3 is onmain, because a pin row with no digest is refused structurally and that refusal takes the estate commands off every host.brett-wiptag + strip to data) waits on the last workstation reporting act 6 done. Landed early,~/.local/bin/lane-start,~/.local/bin/lane-endand~/projects/xFactory/lanes-edit.shall dangle on any machine that has not done act 6, and a stalelink-estatesrun after--installis silently destructive (the oldlink-estatesmoves the freshly installed command aside and links to a path that does not exist — exit 0, nothing printed).Stages
--allow-unrelated-historiesmerge (17f3749).$AGENT_PROTOCOL_ROOT/workspace.yaml(b60e8bd).openRepoTools wip init(clause (c)); the "no verb here" contract change (b60e8bd).--install's new targets — the five extra files, the/lane-swapskill, the~/.claudepair (b60e8bd).703f902).docs/README-lanes.md,README.md,AGENTS.md, the onboarding chain (bd27fc3).9000e86).What the verification round found
Two places where the code said one thing and did another, neither with a red test:
Clause (c) step 8's re-run never pushed. The clause leaves "the clone and the seed commit exactly where they are, so that a re-run after the administrator acts has only to push" — and rejects the earlier draft in which a person "finish[es] successfully and meet[s] the failure at their first register write, which is the worst place there is to meet it". The push was gated on
git status --porcelain, on the worktree, which is CLEAN once the seed is committed. So the re-run printednothing to commit; … already carries the seed, wrote the pointer file and exited 0 over an emptymain— and step 1's file test then returned on every later run, so no re-run of the command could ever repair it. The gate is the remote now (git ls-remote origin mainagainstHEAD). Mutation-checked: the two new tests fail against the previous commit.The refusal reason died in a subshell, in all four helpers.
lanes_workspace_rootcomputes six distinct diagnoses; every caller reaches it throughLANES_WS_ROOT="$(lanes_workspace_root || :)", a command substitution, so$LANES_WS_WHYwas set in that subshell and the parent printedno reason recordedfor all six. Clause (a)'s whole case for the new checkout test is that apath:naming another repository "is currently accepted and after this is not"; a person could not learn which of the six it was. Re-derived in the parent shell now, with 58 new assertions driving every branch through every helper.Smaller, each with its own reason in the commit:
wip initcould exit 1 (the code reserved for "findings were printed") through an unguarded redirect underset -e;--installcould exit 1 having placed ten of twelve artifacts, so its three non-file placementsdieand their destinations are proved writable in the planning phase;~/.claude/settings.jsonis writtenmktemp+chmod 600+mv -frather thancp, since it is the one file this installer does not own;$OPENREPOTOOLS_WIP_ORGis gone, because clause (e) says--orgis the only way an operator override gets in;wip initnow runslink-estatesagainst the tree step 6 actually cloned into ($PROJECTS_DIRhere,$PROJECTS_ROOTin the arriving helpers); andlanes-edit.sh's header no longer names one person's repository as THE register.One thing the ratified text could not be followed on, recorded rather than silently narrowed. Clause (b) reads "an entry under
SessionStartwhosecommanddiffers … → refuse, print the exact block, and place nothing at all", unqualified. Read literally, a person whose~/.claude/settings.jsoncarries ANY unrelatedSessionStarthook could never run--installat all, and removing our entry would not help them. The reason the clause gives is the narrow one — "merging would fire the hook twice" — and the case it names is Eagle's hand-installed entry, which the arm does catch. The code implements the clause's reason and not its literal scope, the divergence is written intoopenRepoToolswhere the arm is, and widening it is one word ofjqif Brett rules the literal reading.New guards, because none of the above would have gone red: the four helpers' 109-line workspace resolver is now held byte-for-byte (the discipline
park/resume/statusalready have for theirs); the re-derived reason is pinned;openRepoToolscarries a fifth copy of the pointer-file logic whose own comment says the two "have to agree", and six parametrized fixtures now prove they do; and the--installtests that merge JSON skip rather than fail where there is nojq.What acts 4b and 5 must do next
Act 4b, on workBenches
main(not on #63, which is based at53ae3f6whilemainhas moved):python3 devBenches/base-image/update-upstream.py apply \ --source openrepotools --at <this PR's merge commit on openRepoTools' main> --yes \ --add lane-start --add lane-end --add lanes-edit.sh --add link-estates --add repos.tsvplus the pre-flight and verify lists in
scripts/setup-estate-commands.sh(nine targets, mode 755, one destination), and the deletion ofscripts/setup-claude-profiles.sh'sfor skill in lane-swaploop together with the vendored copy it installs from —openRepoTools --installowns both of those paths from this PR. The launcher'sSessionStartensure inbase-image/files/claude-profileis not deleted: R-A8-5(b) is ratified and--installnever writes a profile'ssettings.json.Act 5, on
opensoft/brett-wip: tagpre-amendment-9-movefirst, then delete the seven paths, rewrite rule 8 (the tooling exception goes;lanes/repos.tsvandlanes/log/keep their sanction, named as records), repoint rules 1, 2 and 7 at the installed commands, and rewriteREADME.md's layout block, link-targets table, § "The two ends of a lane" and § "Adopting it on another workstation (Raven)".🤖 Generated with Claude Code