Repository navigation
The name guard offers a readable, recoverable lane/session mismatch three choices, and lane-start resumes an exact transcript uuid, never a title - #87
Conversation
…hree choices instead of refusing outright, and lane-start resumes an exact transcript uuid, never a title Brett Heap's own work in the main checkout, committed on his word "commit it" (2026-09-15). The UserPromptSubmit name guard used to block whenever the Claude session name differed from the lane name, so a mistaken rename could strand a valid lane. For a readable, recoverable mismatch it now warns and offers exactly three choices: (1) allow this mismatch for the current lane/transcript — a scoped allowance for the exact lane/session/uuid; later prompts pass with a warning while that identity is unchanged, and a changed lane or session name invalidates it and re-offers; (2) adjust the lane binding to the Claude session name, through the window-first `lane-start --no-launch` lane-move path; (3) adjust the Claude session name to the lane name — it types `/rename <lane>` into the verified active Claude pane, and the offer stays pending if the rename cannot be typed. Unsafe states — unreadable data, ambiguous rows, superseded transcripts, duplicate live holders — keep blocking (lanes-edit.sh near guard_run). lane-start no longer falls through to `claude --resume <title>` — the interactive picker, which ended four launcher-made windows today with the lane already stamped RESUMED by unknown: it prefers the row-last uuid when its transcript exists, else the same agent's last PAUSED transcript, requires an exact valid uuid with an existing transcript file, keeps the current-window and duplicate-holder fences, resumes that exact uuid, and restores the recovered uuid to the end of the session cell through the anchored writer before recording RESUMED. Titles are not unique (fourteen transcripts share this lane's title; some are `bg` forks) and are never lane identity. Verified in place after review: an allowance no longer silences the superseded-transcript or not-in-any-row refusals; an untitled session's offer is answerable; the allowed pass says ALLOWS, not REFUSES; the re-ask uses the offer's own words; ratified decision D4's ` (N)` suffix evidence lives in the offer; dup_check reproduces the harness's own fence — `--resume <uuid>` is refused while a `bg`/fork record holds that id — before the exec, with the attach line. Shell suite 2409 passed, 0 failed; tests/run.sh 655 passed. Docs: README-lanes.md (the two-rule count before a launch; the allowance's scope), README.md; openspec/changes/interactive-lane-name-repair. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 2 days and 7 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis PR changes recoverable lane/session drift from an automatic hard failure into an explicit, scoped three-choice guard workflow while preserving fail-closed identity checks, and hardens lane-start to resume exact transcript UUIDs and preflight harness refusals instead of using title-based picker behavior. Flow diagram for exact UUID lane-start resume selectionflowchart TD
A[lane-start for lane] --> B{Current window has live session?}
B -- Yes --> C[Keep live session authoritative]
B -- No --> D{Row-last UUID transcript exists?}
D -- Yes --> E[dup_check exact UUID]
D -- No --> F{Same agent has last PAUSED transcript?}
F -- Yes --> G[Restore exact UUID to session cell]
F -- No --> H[Use title picker fallback]
G --> E
E --> I{Harness background or fork record holds UUID?}
I -- Yes --> J[Refuse before exec; print attach and stop guidance]
I -- No --> K[Record launch state and exec claude --resume <uuid>]
C --> K
H --> L[exec claude --resume <lane>]
L --> M[Claude title picker]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
`lane-start`'s row-write section was the one conflict, and it is a union: Amendment 13 (#82) re-ordered that block — the session cell first, then the stamp, which is now `set-row-state` and not the retired `append-row-status` — while this branch added the write that puts the transcript recovered from the lane's last PAUSED record back at the end of the session cell. The recovered-id write is a CELL write, so it keeps its place beside the harness-minted one and main's re-ordered stamp follows both, unchanged. The guard merged without a textual conflict and needed three words changed after it: the lane a `2` moves away from is marked with `set-row-state` (#82's writer) and the two lines that still called that answer a `yes` now call it choice 2, which is what the offer asks for. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved moderate findings remain in lane-start and lanes-edit.sh involving UUID recovery, stale repair state, partial renames, and protocol alignment.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds recoverable lane/session mismatch handling and exact transcript UUID recovery for lane-start, with updated tests, documentation, and OpenSpec materials.
Changes:
- Adds three-choice mismatch repair and scoped allowances.
- Recovers verified paused transcript UUIDs and blocks background-held IDs.
- Expands regression tests and supporting documentation/specifications.
File summaries
| File | Description |
|---|---|
tests/test_lane_helpers.sh |
Adds coverage for guard choices and UUID recovery. |
README.md |
Updates guard behavior guidance. |
openspec/changes/interactive-lane-name-repair/tasks.md |
Tracks implementation tasks. |
openspec/changes/interactive-lane-name-repair/specs/interactive-lane-name-repair/spec.md |
Defines repair requirements and scenarios. |
openspec/changes/interactive-lane-name-repair/proposal.md |
Describes the change scope and rationale. |
openspec/changes/interactive-lane-name-repair/design.md |
Documents implementation decisions. |
openspec/changes/interactive-lane-name-repair/.openspec.yaml |
Adds change metadata. |
lanes-edit.sh |
Implements mismatch offers and repair flows. |
lane-start |
Implements exact UUID recovery and launch fencing. |
docs/README-lanes.md |
Documents repair choices and resume behavior. |
Review details
Suppressed comments (4)
lane-start:2389
- When
--agent claudeis supplied, the earlier selection branch skipsread_recorded_agent, soRECORDED_AGENTis still empty here. In the exact shape this change adds—row-last UUID has no file but the same-agent PAUSED UUID exists—an explicit--agent claudetherefore skips the recovery and falls through to the new-session branch instead of resuming the recovered UUID. Read the recorded agent whenever Claude is selected before evaluating this fallback.
if [ -z "$rec_file" ] && [ -z "$harness_sid" ] && [ "$AGENT" = claude ] \
&& [ "$RECORDED_AGENT" = claude ] && (( ! fresh )); then
lane-start:2389
- This fallback is entered even when
row_sidis empty, although the new rule is for a row-last UUID whose transcript is missing. In the no-UUID case the later restoration block cannot append anything (it only prints a first-act hint), but this branch still resumes the PAUSED transcript and records the launch, leaving the row without the UUID it just resumed. Require a non-empty row-last UUID here or refuse until the selected ID can be anchored in the session cell.
if [ -z "$rec_file" ] && [ -z "$harness_sid" ] && [ "$AGENT" = claude ] \
&& [ "$RECORDED_AGENT" = claude ] && (( ! fresh )); then
lanes-edit.sh:6524
tmux rename-windowhas already run before thislane-startcall, but this failure path says the window has not moved and leaves it namedga_towhenlane-startrefuses (for example, because the destination is unavailable). The offer then remains pending while the next guard sees a different window lane, so it can follow the wrong row and choice 3 targets the stalega_from. Restore the original window name or otherwise handle the partially applied move before returning.
guard_refuse "\`lane-start --no-launch $(lane_start_args "$ga_to")\` exited $ga_rc (its own words are above), so this window has NOT moved and $ga_from has NOT been marked MOVED. The offer is KEPT, so answer \`2\` again once that refusal is settled, or choose \`3\` to rename the session back to $ga_from."
lanes-edit.sh:6231
- This new return-0 path allows a prompt after choice 1, while the current Amendment 12 contract still requires the name guard to stop/refuse; the PR description explicitly says the addendum permitting explicit allow is not part of this PR. Unless the protocol/addendum is landed together, this implementation and its README/spec claim are out of sync with the governing contract.
if [ "$gr_mode" = allow ] && guard_allow_active "$gr_off"; then
guard_triple "THE NAME GUARD ALLOWS THIS PROMPT ON AN EXPLICIT CHOICE (lane-collision-protocol Amendment 12). The three names:"
note "WARNING: this lane/session name mismatch was explicitly allowed for this transcript. It will remain allowed only while the lane and session names stay unchanged."
return 0
- Files reviewed: 10/10 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
… asked, and the manual says `2` where it still said `yes` (Copilot round 1 on #87) **The offer is keyed by TRANSCRIPT and its answer is a LATER PROMPT**, and between the two the window can be renamed to another lane and the session renamed by hand. Every one of the three choices then acted on a state nobody was shown: `2` moved to a destination derived from a session name that had gone, `3` typed `/rename` for a lane this window no longer is, and `1` recorded an allowance for a pair that does not exist. The stored `from`/`session` are now compared with the live `$G_LANE`/`$G_NAME`, and a stale offer is DROPPED rather than answered — 3 is that status, and it is the one answer that does not consume the prompt: `guard_run` falls through to the table, which asks the question again where the mismatch still stands and refuses where the state has become one of the unsafe ones. A case proves all four of those. **The manual's move paragraph still said `yes` four times** where the guard now takes only `1`, `2` or `3`, so a person reading it would look for an answer that no longer exists. It says choice `2` now, in the same four places. **And openspec task 2.3 is ticked**, because it is done: the canonical suite is run and the user-facing documentation is updated in this branch. `lane-start`'s recovered-id write is DECLINED as a refusal (Copilot asked for an abort where `append-session-id` fails): the write that fails there is a register write refused for a stale copy of the row, and every other cell write in this command prints the act and carries on rather than costing a person their session — the minted-id append two blocks above says so in Amendment 8's own words. The next launch does not fail either: the recovery reads the lane's last PAUSED record and NOT the cell, so it finds the same transcript again. The note now says that, where a person reads it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
There was a problem hiding this comment.
🟡 Changes recommended
The live current-window resume path and mismatch rename/binding failure handling need correction before approval.
Get a fresh assessment by requesting another Copilot review.
Review details
Suppressed comments (2)
lane-start:2392
- This fallback calls
lane-transcript, but that helper returns the last non-emptytranscriptsubfield across STARTED/PAUSED/RESUMED/ENDED/RETIRED records, not the same agent's last PAUSED record. If a later RESUMED or terminal record carries another UUID, this can resume the wrong transcript (or skip recovery when it equalsrow_sid) and fall through to the title picker. Use a PAUSED-specific reader that returns the agent and transcript from the same record.
paused_sid="$("$LANES_EDIT" lane-transcript "$LANE" 2>/dev/null)" || paused_rc=$?
lanes-edit.sh:6722
- The window is renamed to
$ga_tobeforelane-startruns. Iflane-startrefuses (for example because the destination lane is live), this branch keeps the offer but claims the window did not move; in reality the next guard sees the destination window lane while the session and offer still name$ga_from, drops the offer as stale, and no longer offers choice 3. Make the rename/binding failure transactional or re-read and report the partial state before retaining this offer.
if [ "$ga_rc" != 0 ]; then
guard_refuse "\`lane-start --no-launch $(lane_start_args "$ga_to")\` exited $ga_rc (its own words are above), so this window has NOT moved and $ga_from has NOT been marked MOVED. The offer is KEPT, so answer \`2\` again once that refusal is settled, or choose \`3\` to rename the session back to $ga_from."
- Files reviewed: 10/10 changed files
- Comments generated: 3
- Review effort level: Lite
…nscript, and the lock's own paragraph says what still reaches it (Copilot round 2 on #87) **`$harness_sid` is empty in TWO states, and only one of them is "no live session is being bound here".** It is set where step 3b TAKES a session the row does not name; where the window's own session IS the row's, step 3 has already said so with `holder_here` and step 3b takes nothing. Gating the PAUSED-record recovery on `$harness_sid` alone therefore let it fire on the one shape it was written to stand off — the lane live in THIS window, its transcript not under this directory (the harness has been seen to keep one under another `cwd` key), an older PAUSED record beside it — and it would have `--resume`d the older conversation over the person's own, in the window they are sitting in. Both halves of the evidence are asked for now, and `repoAG-6` proves it: step 3 finds the session holding the lane here, the PAUSED id is NOT resumed, and the recovery does not even speak. **The manual's lock section still described the act the lock no longer makes.** Its table row and its opening paragraph said a session name that is no lane's is renamed for you; only a difference of CASE reaches the lock now, and everything wider is the offer, which types nothing until a person picks `3`. The table says that, the paragraph says it, and ratified decision D4's ` (N)`-suffix reading is named where it is now printed — with the three choices. **And the file's own header contract said `yes` or `no`.** `lanes-edit.sh`'s Amendment 12 block is the authoritative summary a maintainer reads first, and it now states the lock's one case, the three numbered answers, the dropped stale answer and the states that still refuse outright. Five narrative comments beside the guard say choice `2` where they said `yes`; the two places that QUOTE the amendment keep its word, with the sentence beside them saying that choice `2` is that yes in the numbered offer. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
|
There was a problem hiding this comment.
🔵 Needs a closer look
Unresolved moderate findings affect refusal rollback, transcript selection, unreadable-log handling, and stale mismatch offers.
Review details
Suppressed comments (8)
Previously missed (3) — in code that hasn't changed since the last review.
lane-start:2404
- This recovery calls
lane-transcript, but that subcommand returns the newest non-emptytranscriptfield across every lane-kind event, whilelane-agentindependently returns the newest agent field. It is therefore not guaranteed to select the same agent's last PAUSED record: a later dead RESUMED id can makepaused_sid == row_sidand send this path back to the title picker, or a later event can pair an agent with a different record. Use a PAUSED-specific, record-paired read before selectingresume_sid.
lanes-edit.sh:6729 - When
lane-startrefuses, this branch has already unconditionally renamed the window at 6716 but leaves the offer for the old lane/session. The next guard prompt sees the destination window name, drops the offer as stale, and the original choices (including choice 3) are no longer recoverable; this also makes “window has NOT moved” false. Restore the original window name before keeping the offer, or provide a rollback/preflight, so a failed choice 2 remains recoverable.
openspec/changes/interactive-lane-name-repair/specs/interactive-lane-name-repair/spec.md:9 - This requirement says every name difference must receive the three-choice offer, but the implementation intentionally auto-repairs case-only drift (
guard_lock_rename), and the surrounding docs define case-only names as the same lane. As written, the spec contradicts the shipped behavior for e.g.repo-1vsREPO-1; narrow this requirement to mismatches differing by more than case or explicitly exempt case-only drift.
docs/README-lanes.md:1634
- The new introduction is followed by the unchanged claim that every mismatch exits 2 and prints “the ONE command that cures it” (lines 1643-1647). A readable mismatch now presents three choices, and an explicit allow makes later prompts exit 0 with a warning, so this summary gives operators the old blocking/single-cure contract. Update the surrounding contract text to distinguish the initial offer and the allowed continuation from hard refusals.
**A lane session normally works while three names are one.** A readable,
recoverable lane/session mismatch now pauses for an explicit choice; unreadable,
ambiguous, duplicate, or superseded identity still refuses the prompt. Ratified
by Brett Heap 2026-09-13T18:20:44Z — *"Ratify revision 2"*, with M1 *"Type
/rename into the pane"*.
lane-start:2491
- The new background preflight runs after step 4 has already renamed the tmux window (1925). When it finds a background holder,
dup_checkreturns 1 after that rename, while the diagnostic says no window was renamed; a launcher-createdclaudewindow is therefore left renamed to the lane even though no launch occurs. Run this fence before the window rename or roll the rename back on refusal, and keep the refusal's side-effect claim accurate.
dup_check "$resume_sid" "resume transcript $resume_sid as lane $LANE" "$ls_rules"
lane-start:2429
lane-transcriptexits 1 when the lane log cannot be read (lanes-edit.sh:4406-4407,8700-8701), but this branch treats every result other than 0/2/8 as if no PAUSED transcript were available and continues to the title picker/new-session path. That can resume an arbitrary title-matched conversation or start over while the source of truth was unreadable; distinguish an unsupported old helper from a failed log read and refuse on the latter.
8|2) : ;;
*) note "$LANES_EDIT lane-transcript $LANE failed (exit $paused_rc) — carrying on without the last PAUSED record's exact resume id" ;;
lanes-edit.sh:6424
- Choice 1's allow file is only invalidated in the case-agreement branch or after the code reaches this mismatch branch. If the window changes to another lane, the guard exits through the superseded/not-in-row refusal above without removing the file; changing it back to the original lane/session/UUID then reactivates the old allowance instead of asking again, contrary to the scoped-pair contract. Drop or invalidate the allow as soon as either live name differs from the stored pair, before the other refusal branches.
# AN ALLOWANCE THAT NO LONGER FITS IS DROPPED RATHER THAN CARRIED: either
# name having changed is exactly what invalidates it, and the person is
# asked again below.
[ "$gr_mode" = allow ] && rm -f -- "$gr_off"
guard_offer "$gr_off" "$gr_pane"
lanes-edit.sh:6675
- This stale-offer check only compares the stored lane and session names. If the register advances this UUID out of the row (or removes it) while the offer remains, choice 3 can type
/renameand choice 1 can record an allowance before the superseded/no-row checks at 6428-6433 run. Revalidate that the current row is unambiguous and still ends onG_IDbefore dispatching any answer; otherwise drop the offer and let the safety table refuse or re-offer it.
if [ "$ga_from" != "$G_LANE" ] || [ "$ga_session" != "$G_NAME" ]; then
rm -f -- "$ga_f"
note "the pending question was about lane $ga_from and session '${ga_session:-none}', and this window is now lane ${G_LANE:-none} with session '${G_NAME:-none}' — so the offer has been DROPPED rather than answered on a state you were never shown. Nothing was renamed or written. This prompt is judged afresh below."
return 3
- Files reviewed: 10/10 changed files
- Comments generated: 0 new
- Review effort level: Lite
…FORE the table, so an allowance answers a name mismatch and never a handoff request `main` (#87) rewrote the name guard's mismatch path into a three-choice offer with a standing `allow`, and this branch adds Amendment 18's clauses (d) and (e) to the same function. The two changes land in `guard_run` within twenty lines of each other, and the ORDER is the whole of the union: * THE OFFER FILE IS READ AND A PENDING QUESTION IS ANSWERED FIRST — main's block, unchanged, because the answer to a question this guard asked is consumed here and never reaches the model. * THEN (d) AND (e) ARE READ, ABOVE THE TABLE. Neither of main's two early `return 0`s can therefore skip them: the three-names-agree row and `guard_allow_active`'s allowed pass are both INSIDE the table, below this block. A HANDOFF REQUEST AND A FORCED RELEASE ARE NOT NAME DRIFT — an allowance is a person's standing answer about a lane/session SPELLING, and it must not silence a second place asking for the lane or a release written over this session's binding. * THEN THE TABLE, where that allowance is honoured at the one row it was given for. `lane-start` composes in the order it already had, and the fence still comes first: Amendment 18's are steps 3b(ii) (refuse a binding elsewhere, then ask) and 3d (read the binding again as the LAST thing before the first act), #87's resume-source change is step 5a, and step 4 — the rename — is between them. So the lane is proved free here before anything is renamed, written or launched, and WHICH transcript is resumed is decided after that, out of the row's own last uuid or the last `PAUSED` record's — never a title. MECHANICALLY THIS MERGE IS A UNION AND NOTHING ELSE, and it is checked rather than asserted. For every file both sides touched — `lane-start`, `lanes-edit.sh`, `docs/README-lanes.md`, `README.md`, `tests/test_lane_helpers.sh` — the added and removed lines of `merge-base -> f9e63f4` are byte-identical to those of `57cccbc -> this commit`, and the lines of `merge-base -> 57cccbc` are byte-identical to those of `f9e63f4 -> this commit`. Neither side lost a line and no third edit rode in. The one place a resolution was owed is the comment `main` still carries where this branch has the code — *"AMENDMENT 18 CLAUSES (d) AND (e) PLUG IN HERE, AND NOT IN THIS PULL REQUEST"* — and #38 IS this pull request, so the code replaces the note that promised it. Local on the merged tree: `bash tests/test_lane_helpers.sh` 2737 passed, 0 failed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r
…start's resume sources, not beside one #87 gave `lane-start` an exact-uuid resume (`resume_sid`, the row's last id or the last PAUSED record's) and a bg-holder fence. Both of its resume sources are gated on `(( ! fresh ))`, and this branch moves what decides `fresh` above them: the lane's own restart intent on disk, then `--fresh`, then the environment variable that #94 measured not arriving. The merge is a union — no hunk of either side is dropped — and the semantic check is that #94's own suite case still holds with BOTH of #87's sources available on disk and no variable set. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r
…name of this lane is the SECOND drift the lock closes, and is never one of the three choices `main` is f9e63f4 — #87, the name guard's three-choice offer and `lane-start`'s exact-uuid resume. Three textual conflicts in `lanes-edit.sh`, all in the guard and all resolved as UNIONS, plus one resolution that is a decision and not a merge and is written out here because a reader of the diff cannot see it. THE THREE TEXTUAL ONES. * `guard_triple` gains BOTH: my `guard_window_renamed_note` and its `GUARD_RENAME_SAID` flag (Amendment 16(f) — the guard's own rename of a window is the one act it takes that is not a refusal, so it is announced wherever the run ends), and #87's `[<heading>]` argument (an allowed prompt prints the same three names under a heading that does not say REFUSES). * the window line prints my "— a former name of $G_LANE (Amendment 16(e))" annotation UNDER #87's `${1:-…}` heading. * the agreeing branch does #87's allowance sweep and THEN my window-renamed note, in that order: the allowance dies with the mismatch it allowed, and the note is the last thing said before the prompt is let through. AND THE ONE THAT IS A DECISION: THE LOCK NOW CLOSES TWO DRIFTS, NOT ONE. #87 left `guard_lock_rename` exactly one case — a session name differing from the row's only by CASE, the same lane under Amendment 15 — and made EVERY other readable mismatch a three-choice offer, on the reasoning that a person renaming a session to another lane's name is choosing something a guard may not choose for them. That reasoning is right and it does not reach a FORMER NAME OF THIS VERY LANE: clause (e) makes that name resolve to this row FOR EVER, so a session still called `repoRen-1` on a lane the register now spells `repoRen-7` is this lane under the name it was renamed away from. It is not a decision anybody is making — it is what a `lane-rename` run from ANOTHER window leaves behind, and finishing it is the whole of clause (f). Merged verbatim, that state would have gone to the offer, and TWO OF ITS THREE ANSWERS WOULD BE WRONG: `1` makes the old name permanent for this transcript and `2` moves the lane BACK to the name it was renamed away from. The condition is `$G_SES_LANE`, which is already the resolved answer — `rows_named_ci_alias "$G_NAME"`, computed thirty lines above — so it is this lane exactly when the session's name is this lane's under any case or any former spelling. The lock then says which of the two drifts it is closing, in the amendment's own words. The suite caught this: `…while the SESSION's name is typed, which is the only path it has` asserts `send-keys -t %16 /rename repoRen-7` for a window and a session both still carrying `repoRen-1`, and a verbatim merge stops typing it. That case now also asserts the offer is NOT made — neither `1) explicitly allow this lane` nor `2) adjust the lane to session` appears — and that the refusal names clause (e) as what already settled it. THE HEADER AND THE MANUAL SAY TWO where they said one: `lanes-edit.sh`'s Amendment 12 block, the guard TABLE's row for it, and the lock's own paragraph in `docs/README-lanes.md`. And `guard_lock_rename`'s D4 note is corrected rather than deleted: it said a name differing by more than case no longer reaches this lock, which the second drift makes untrue — the point it was making survives intact, because NEITHER name that reaches the lock can carry a ` (N)` suffix (a suffixed former name is not a KEY of the alias table, so it resolves to nothing and goes to the offer with every other wider mismatch). ONE VARIABLE RENAMED, `gr_arc` → `gr_warc`. #87 introduced `gr_arc` in `guard_run` for the pending answer's status; Amendment 16 already had one there for the window-name alias read. Both are set before every read of them, so nothing leaked — but one name for two questions in one function stays harmless only until somebody moves a block, and mine pairs with `gr_sarc` beside it. `README.md`, `lane-start`, `tests/test_lane_helpers.sh` and `openspec/changes/interactive-lane-name-repair/` merged with no conflict; `lane-start`'s and `lane-end`'s Amendment 16 exit-66 branches are untouched, and the thirteen files / twenty-seven artifacts counts are unchanged by this merge. `bash tests/test_lane_helpers.sh`: 2803 passed, 0 failed, 0 skipped, with the guard section (both #87's three-choice cases and Amendment 16's) and the Amendment 16 section (232 assertions) green in one run. Lane: openrepotools-3 (openRepoTools-3) Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01EaHzfTLW4u9ukpWuw8Dt6r



Lane: openRepoTools-3. Brett Heap's own work in the main checkout, committed on his word "commit it" (2026-09-15); verified and repaired in place by this lane's writer before the commit.
The guard (lanes-edit.sh, guard_run): a readable, recoverable mismatch is offered exactly three choices — (1) allow this mismatch for this lane/session/uuid (scoped; later prompts pass with a warning; a changed lane or session name invalidates it and re-offers); (2) move the lane binding to the session name via the window-first
lane-start --no-launchpath; (3) type/rename <lane>into the verified active pane (the offer stays pending if it cannot be typed). Unsafe states keep blocking: unreadable data, ambiguous rows, superseded transcripts, duplicate live holders.lane-start: resumes an exact uuid — row-last when its transcript exists, else the same agent's last PAUSED transcript; never a title (
--resume <title>is the picker, which ended four launcher-made windows today). dup_check now also reproduces the harness's own fence:--resume <uuid>is refused while abg/fork record holds that id, so lane-start refuses before the exec and prints the attach line.Counts: shell suite 2409 passed, 0 failed (in the checkout, fixtures untouched);
tests/run.sh655 passed in 1449 s. Docs and openspec change included.Residuals (not in this PR): with no register row the recovered id is written as
pending; the title fallback still opens a picker where neither the row nor a PAUSED record resolves; the SessionStart hook renames at the next start, so an allowance does not survive a relaunch. Protocol: Amendment 12 says the guard must stop and refuse — an addendum for the explicit-allow choice is drafted at brettheap/new-workstation on Brett's word.🤖 Generated with Claude Code
https://claude.ai/code/session_019UFwD7bCS73jaUMJ2vuo5m
Summary by Sourcery
Make recoverable lane/session drift explicitly repairable while ensuring lane starts resume exact transcript UUIDs and refuse harness-blocked sessions before launch.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests:
Chores: