Skip to content

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

Closed

Description

@brettheap

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

  1. lanes-edit.sh: every lane-kind writer (STARTED/RESUMED from lane-start, PAUSED from the handoff, ENDED/RETIRED from lane-end) writes host <name>; os <linux|macos|wsl|windows>; container <name|none> beside Amendment 11(c)'s window/dir/profile, read from LANES_HOST/LANES_OS/LANES_CONTAINER with clause (a)'s fallbacks (host → hostname -s outside 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, none outside); workstation prints the two new columns and their sources.
  2. lanes-edit.sh binding <lane> — the read: host TAB container TAB window TAB utc of the last STARTED/RESUMED with no PAUSED/ENDED/RETIRED after it (0), free (8), unreadable (1); older lines without the sub-fields → the window on the row's workstation.
  3. HANDOFF-REQUESTED in VERB_LIST as 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.
  4. lane-start and restart: 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-handoff without one; after the line is pushed, tmux send-keys of /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 newer PAUSED/ENDED/RETIRED; then bind. --dry-run prints the whole plan.
  5. 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-REQUESTED newer than this session's binding and unanswered → exit 2 naming the requester and send-keys /handoff --exit requested by … into its own pane; and clause (e)'s: a PAUSED newer than the binding that this session did not write → refuse every prompt naming the line and who forced it.
  6. Clause (e): the empty wait refuses with the facts (binding, request, pane reachable or not) and names --force; --force on a second invocation writes PAUSED … → 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.
  7. lane-handoff / the handoff skill (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), and requested by … as a why.
  8. workBenches (claude-profile, the bench shells): export LANES_HOST, LANES_OS, LANES_CONTAINER beside LANES_WORKSTATION — its own issue there when this is ratified.
  9. Tests in tests/test_lane_helpers.sh: the sub-fields written and read back; each fallback under LANES_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 a PAUSED from the sandbox's second clone; the empty wait → refusal and no line written; --force → on-behalf PAUSED in the requester's session; the guard refusing after a forced PAUSED; a dead window on the shared server → the takeover path; older lines without the sub-fields still read.
  10. 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

  1. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    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: lanes partitions its listing by the binding read — AVAILABLE TO BIND by default (free, or a binding this host proves dead), each line carrying its exact lane-start <repo> <n>; --bound adds 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); --all keeps Amendment 11(j)'s every-repository meaning and combines. lanes still asks and writes nothing. lane-start with 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. restart never picks. Tests as act 8 lists. Also: act 7 (clause (h), one live process per transcript) was added in revision 2 — see #39.

  2. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    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.

  3. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    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's window sub-field / the live record's tmux field gives the session name), never a lane-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 --bound listing of a live-here lane carries the attach line with the session name filled in.

  4. brettheap commented on Oct 13, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-13T18:23:54Z, for #38

    Logged in lanes/log/openRepoTools-5.md at 7a0ade38c977dc41f4236045747b133547ab943a.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#38:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#38"`, kept where the row or its body names `#38`:
    45	`lane`: one word lists the lanes and binds the one you pick — available goes through the launcher in its own directory and profile, LIVE HERE attaches and never starts a second process, bound elsewhere names where; and `restart` leaves the person's PATH in the same breath (Amendment 18 Addendum 1 and Addendum 2)	feat/lane-the-word	MERGED
    83	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)	feat/amendment-18-one-binding	MERGED
    52	The name guard refuses a prompt whose window, session name and register row are not ONE lane — the lock types `/rename <lane>` into the pane, a person's rename is an OFFER answered at the next prompt, and a transcript two live processes hold is a refusal in the guard, in `lane-start` and in `lane-end --retire`	feat/amendment-12-name-guard-lock	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `38` as a whole token:
       none
    
  5. brettheap commented on Oct 13, 2026

    @brettheap
    ContributorAuthor

    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)".

    A note for whoever reads the docs: docs/README-lanes.md:1841 and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions