Skip to content

lane: one word lists the lanes and binds the one you pick — available → lane-start; LIVE here → attach (move-window + select-window; never a second process); bound elsewhere → request the handoff; bare lane-start becomes its alias (Amendment 18 Addendum 1, Brett Heap 2026-09-14) #43

Closed

Description

@brettheap

Lane: openrepotools-3 (openRepoTools-3)

Amendment 18 Addendum 1 tooling — the word lane. Brett Heap, 2026-09-14, verbatim: "i dont understand in another window i want to attach to that lane. what command do i use to do that?" and "this is too hard for users. we need simple way to list the lanes and then pick one to bind." → the word "lane (Recommended)"; the launcher "Yes, picker replaces the guess (Recommended)"; when "Now: A18 Addendum 1 + build right after #31 (Recommended)". Measured the same hour: attaching a LIVE lane in a detached tmux session took tmux move-window -a -s <session>:0 plus tmux select-window -t <lane>, and pclaude <profile> in an unnamed window offered openRepoShape-2 (the newest swap record) to a person wanting openXfactory.

Acts (built from main right after #31 lands, in parallel with #25 — different files; text: Amendment 18 Addendum 1, brettheap/new-workstation, PR linked below)

  1. lane on PATH, placed by openRepoTools --install (artifact count +1 everywhere it is derived or stated). Bare, inside a checkout: the clause (i) listing as a NUMBERED pick — available lanes first (PARKED, or a dead binding), LIVE-here next with where they are (window <n> of this session / detached session <name>), bound-elsewhere last with host/container; CLOSED and DORMANT hidden (Amendment 19); then ONE question: which? [1-N, f = new lane at the next free position (<repo>-<n>), q]. Outside every checkout, or with --all: every repository, grouped.
  2. Three branches on the pick: available → exec lane-start <repo> <n> (resume by id under the current profile); LIVE here → ATTACH and never a second process (clause (h)): inside tmux tmux move-window -a -s <its session>:<index> into this session then tmux select-window -t <lane> (or, with --switch, tmux switch-client -t <session>); outside tmux tmux attach -t <session>; bound elsewhere → clause (c)'s question (request the handoff) once 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's act 4 exists — until then, the refusal naming where it is bound.
  3. lane <name> (any case, Amendment 15) goes straight to that lane's branch; lane --all lists every repository; with no terminal on stdin lane lists and suggests and asks nothing (an agent's stdin is not a terminal).
  4. Bare lane-start (no repo, no position) becomes an alias of lane — clause (i) as ruled still holds, one implementation.
  5. Tests in tests/test_lane_helpers.sh: the numbered listing on a seeded register (available / live-here in this session / live-here detached / bound elsewhere / closed hidden); each answer on a fake terminal (<n> available → lane-start argv; <n> live-here → the fake tmux logs move-window + select-window; f → lane-start at the next free; q → nothing); lane <name> straight in; no terminal → no question; --all; the alias. Plus pytest: the installer places it (count +1), README caps.
  6. Docs: docs/README-lanes.md — "One word: lane" at the top of "Starting and ending a lane"; README.md's install list.

The launcher half — pclaude <profile> in a window that is not a lane shows the same picker in place of rung 4's newest-swap-record guess — is opensoft/workBenches's (issue linked below).

🤖 Generated with Claude Code

Activity

  1. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    Amendment 18 Addendum 1 ratified 2026-09-14T14:05:54Z ('ratify the addendum'; brettheap/new-workstation#38 → main a53d7ce). Build proceeds right after #31 lands, in parallel with #25.

  2. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    Lane: openrepotools-3 (openRepoTools-3)

    Refinement from Brett Heap's question 2026-09-14T14:1xZ ("when do i use lane vs restart … they seem almost the same to me"): the AVAILABLE branch of lane must reach the lane the way restart does — through the launcher (pclaude --lane <lane> <profile>), in the lane's recorded directory, under the PROFILE the lane's last record names (Amendment 11(c)'s profile sub-field) — and never a bare lane-start under whatever profile the shell happens to carry, which outside a launcher session is the default config dir and therefore the wrong account. lane <name> [<profile>] takes an optional profile to switch accounts (the late-swap case), exactly as pclaude --lane <lane> <profile> does today. With that, lane ⊇ restart on the parked case, plus the pick, the attach and the elsewhere branch; restart <lane> stays as the launcher's respawn word (/ctx) and may become an alias of lane <name> once #43 lands — one implementation, two words. Tests: the parked branch's argv is the launcher's, with the recorded profile; lane <name> <profile> passes the named one.

  3. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    Lane: openrepotools-3 (openRepoTools-3)

    Act 7 added on Brett Heap's ruling 2026-09-14T14:2xZ (verbatim: "i think we can drop restart as a cli command and keep it inside a claude session with /restart. if we need it for ctx, keep it for that, but I do not see any reason to expose this to the user. lane does all the things a user wants"; Amendment 18 Addendum 2, DRAFT on brettheap/new-workstation): in the same PR that adds lane, retire the restart command — delete the file restart; drop it from INSTALLABLES (eleven → ten; every derived and stated count moves — the installer's help and prose, README.md, tests/test_openrepotools_command.py's derivation, tests/test_repo_hygiene.py's dispatcher parse); re-point lanes' hints (lanes:120-121, the did you mean restart refusal at :169) and the listing's suggested lines (lanes-edit.sh:~4301, lr_restart) to lane <name>; the manual's "Restart and list (Amendment 11)" section says lane <name> is the outside half and /restart the inside; the restart SKILL (/restart) stays unchanged and its prose stops naming the CLI; the suite's restart cases move to lane <name> (same behaviour: the launcher's path, the recorded directory and profile, asking nothing), the decision-7 section header included. Measured: the launcher never calls the restart command. #36's /ctx respawn uses lane <name> (comment there).

  4. brettheap commented on Sep 14, 2026

    @brettheap
    ContributorAuthor

    Amendment 18 Addendum 2 ratified 2026-09-14T16:50:32Z ('ratify'; brettheap/new-workstation#39 → main af13a59): act 7 (retire the restart command in this PR) is in force.

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