Repository navigation
Description
Lane: openrepotools-3 (openRepoTools-3)
Tooling half of Lane Collision Protocol Amendment 18 — brettheap/new-workstation#34 (governing), #35 (DRAFT text). Brett Heap, 2026-09-14, verbatim: "we should probably note the host name, OS type and container name if there is one … we shoudl not allow two bindings to a lane … we need to send a signal to that session to shutdown. once it is shutdown, then we alow the new connection to bind" → record "Payload sub-fields (Recommended)", signal "Log line + tmux on same host (Recommended)", timeout "Refuse, offer --force (Recommended)".
Waits for ratification of #35, and sits on #25 (Amendment 12's prompt hook, the seat of act 5) and #36 (Amendment 17's lane-handoff, which gains --exit). Built from main by lane openRepoTools-3, with or after #31/#29/#35.
Acts
lanes-edit.sh: every lane-kind writer (STARTED/RESUMEDfromlane-start,PAUSEDfrom the handoff,ENDED/RETIREDfromlane-end) writeshost <name>; os <linux|macos|wsl|windows>; container <name|none>beside Amendment 11(c)'swindow/dir/profile, read fromLANES_HOST/LANES_OS/LANES_CONTAINERwith clause (a)'s fallbacks (host →hostname -soutside a container, else the Rule 10 workstation name; os → kernel probe: Darwin→macos, /proc/version microsoft→wsl, linuxkit→macos, else linux; container → the container's hostname inside one,noneoutside);workstationprints the two new columns and their sources.lanes-edit.sh binding <lane>— the read:host TAB container TAB window TAB utcof the lastSTARTED/RESUMEDwith noPAUSED/ENDED/RETIREDafter it (0), free (8), unreadable (1); older lines without the sub-fields → the window on the row's workstation.HANDOFF-REQUESTEDinVERB_LISTas a lane-kind verb (skipped by every last-line reader);lanes-edit.sh request-handoff <lane> [--wait <s>]writes clause (c)'s line→ by host <h>; container <c>; window <w>; wait <n>s, pushed.lane-startandrestart: the binding check before every launch branch (clause (b): a different host/container/window is a refusal; liveness pronounced only from inside the binding's own host and container; a window id gone from a shared tmux server is dead → today's takeover path); the question on a terminal,--request-handoffwithout one; after the line is pushed,tmux send-keysof/handoff --exit requested by <uuid>@<host>/<container>into the bound pane where its window id resolves on this server (Amendment 12 M1); the wait (--wait, default 300 s) polling the published log every 15 s for a newerPAUSED/ENDED/RETIRED; then bind.--dry-runprints the whole plan.- The guard (Amendment 12, Name guard (lane protocol Amendment 12): lanes-edit.sh guard as a UserPromptSubmit hook, lane-start --name on every launch, --install places the hook — after #24 lands #25) gains clause (d)'s read: a
HANDOFF-REQUESTEDnewer than this session's binding and unanswered → exit 2 naming the requester andsend-keys/handoff --exit requested by …into its own pane; and clause (e)'s: aPAUSEDnewer than the binding that this session did not write → refuse every prompt naming the line and who forced it. - Clause (e): the empty wait refuses with the facts (binding, request, pane reachable or not) and names
--force;--forceon a second invocation writesPAUSED … → on behalf of <bound uuid>; forced by <uuid>@<host>/<container>; <why>in the requester's own session field (the lanes-edit.sh: a dead lane's OPENED objects and its long-stale CLAIMED have no takeover path — claim --force takes a stale CLAIMED only, log TAKEOVER by hand is refused #30 release-on-behalf precedent), then binds. lane-handoff/ thehandoffskill (Amendment 17 tooling: lane-handoff + /handoff (swap kept as alias), PAUSED gains agent + transcript, lane-start --agent <name> resumes a lane from the handoff with any agent #36):--exit(the last step types/exit), andrequested by …as a why.- workBenches (
claude-profile, the bench shells): exportLANES_HOST,LANES_OS,LANES_CONTAINERbesideLANES_WORKSTATION— its own issue there when this is ratified. - Tests in
tests/test_lane_helpers.sh: the sub-fields written and read back; each fallback underLANES_IN_CONTAINER; a bound lane refused from a second window / container (seam) / host; the question on a fake terminal and the flag without one; the request line written FIRST; the pane typed into only when the window id resolves in the fake tmux; the wait ended by aPAUSEDfrom the sandbox's second clone; the empty wait → refusal and no line written;--force→ on-behalfPAUSEDin the requester's session; the guard refusing after a forcedPAUSED; a dead window on the shared server → the takeover path; older lines without the sub-fields still read. - Docs:
docs/README-lanes.md(the binding, the three sub-fields, the request, the wait, the word); AGENTS.md's lane paragraph.
🤖 Generated with Claude Code
Activity
brettheap commentedon Sep 14, 2026
Lane: openrepotools-3 (openRepoTools-3)
Act 8 added (Amendment 18 DRAFT revision 3, clause (i)) on Brett Heap's three answers of 2026-09-14:
lanespartitions its listing by thebindingread — AVAILABLE TO BIND by default (free, or a binding this host proves dead), each line carrying its exactlane-start <repo> <n>;--boundadds the bound lanes with host/container/window/profile, the last line's time and their one act (a live one here: its window; elsewhere: clause (c)'s request);--allkeeps Amendment 11(j)'s every-repository meaning and combines.lanesstill asks and writes nothing.lane-startwith no position, on a terminal, prints that listing and asks ONE question —which? [<n> takes that lane · f the next free · q](a bound<n>→ clause (c)'s question); with no terminal it lists and suggests as Amendment 11 ruled.restartnever picks. Tests as act 8 lists. Also: act 7 (clause (h), one live process per transcript) was added in revision 2 — see #39.brettheap commentedon Sep 14, 2026
Amendment 18 ratified 2026-09-14T13:15:18Z as revision 4 (brettheap/new-workstation#35 → main cd09d08); this issue is buildable once #25 (the guard seat) and #36 (
lane-handoff) land. Acts 1–8 as listed above and in the amendment's Adoption section.brettheap commentedon Sep 14, 2026
Lane: openrepotools-3 (openRepoTools-3)
Act 8 refinement, from a question Brett Heap asked 2026-09-14T13:47Z ("how do i start claude with that profile and that lane? do i use lane command?", about a LIVE lane in a detached tmux session): under clause (i) a BOUND lane's line names its one act — for a lane live on THIS host that act is the attach, printed filled in:
tmux switch-client -t <session>inside tmux,tmux attach -t <session>outside (the record'swindowsub-field / the live record'stmuxfield gives the session name), never alane-start/restart— which would be a second process on the transcript (clause (h)). For a lane bound elsewhere the act stays clause (c)'s request. Test: the--boundlisting of a live-here lane carries the attach line with the session name filled in.Amendment 18 clauses (d) and (e) get the comment that says WHERE they…
The name guard refuses a prompt whose window, session name and regist…
Merge main's three-choice name guard: clauses (d) and (e) are read BE…
One binding per lane: the record says host/os/container, liveness is …
brettheap commentedon Oct 13, 2026
CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-13T18:23:54Z, for #38
Logged in
lanes/log/openRepoTools-5.mdat7a0ade38c977dc41f4236045747b133547ab943a.The three reads (lane-collision-protocol Rule 1):
brettheap commentedon Oct 13, 2026
Lane openRepoTools-5: closing #38 as fixed, checked at main f87fd5a. Brett Heap's word, recorded in lane 5's register log as a RULED line at 2026-10-11T16:5xZ, verbatim: "Close all five (Recommended)".
binding,HANDOFF-REQUESTEDandrequest-handoff, the guard's two reads, thelane-start/restartask, wait, refuse and--force, the tests and docs): One binding per lane: the record says host/os/container, liveness is pronounced only from inside that binding, and a second place ASKS for the handoff before it binds (Amendment 18 acts 1-10) #83 (6faed35, merged 2026-10-03, "Closes the acts of Amendment 18 tooling: one binding per lane — host/os/container sub-fields, lanes-edit.sh binding + request-handoff, HANDOFF-REQUESTED, the guard's two reads, lane-start/restart ask → wait → refuse → --force — after #25 and #36 #38"). At main:lanes-edit.sh:2538(HANDOFF-REQUESTEDis a lane-kind verb),:15184(binding),:15239(request-handoff),:8694-8781(the guard's read of a newerHANDOFF-REQUESTED).lane-handoff --exit, andrequested by ...as a why): earlier, in Amendment 17 tooling: a handoff is the swap under one name —lane-handoffon PATH,/handoffwith/swap,/lane-swapand/ctx, the record naming the agent and its transcript, andlane-start --agentresuming a lane from any agent the table carries #47 (fcccbe0, merged 2026-09-15). At main:lane-handoff:256.LANES_HOST,LANES_OSandLANES_CONTAINER): claude-profile exports LANES_HOST, LANES_OS and LANES_CONTAINER into every session and container it starts — Amendment 18 clause (a)'s launcher half openBenches#98, closed 2026-09-16.A note for whoever reads the docs:
docs/README-lanes.md:1841and PR #83's body cite opensoft/openBenches#77 for that launcher half. #77 is a different issue (the launcher bare-resuming a transcript after "Take lane ... in this window?"); #98 is the right one.