@vibelord/lanes 1.6.1 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,7 +96,7 @@ attention sections:
96
96
  | Needs you | `◆` | `!` | needs_approval | A permission prompt is blocking |
97
97
  | Needs you | `✗` | `X` | errored | The turn failed |
98
98
  | Needs you | `◇` | `?` | needs_input | The turn finished; waiting for your prompt |
99
- | Working | `▸` | `>` | working | The agent is working |
99
+ | Working | `▸` | `>` | working | The agent is working — or, for Claude Code, its turn is over while its background subagents or jobs still run (`Delegating` on the phone) |
100
100
  | Done | `✓` | `v` | done | The turn finished; stays until you open the lane — from any device of yours when the device has an owner, else from this one |
101
101
  | (rest) | `_` | `_` | shell | The harness ended into a shell |
102
102
  | (rest) | `·` | `.` | idle | The harness is up, no turn |
@@ -660,6 +660,18 @@ configuration defines, first `lanes-ip` (the server's tailnet address, when `lan
660
660
  `~/.local/state/lanes-client/launch-<target>.log`. When the server rebuilt the view, the client reconnects straight
661
661
  away. Before it connects, a window may first update its own client from npm ([Versions](#versions)).
662
662
 
663
+ A window on a slow link (a laptop over the tailnet with a large window, where the view repaints faster than the link
664
+ carries it) stays connected. Once more than 1 MiB of the view's output is waiting for your terminal, the server drops
665
+ the oldest part and, once your terminal has caught up, repaints the whole screen, at most once a second; the first
666
+ time in a session the line `lanes: the display fell behind; dropping stale frames and repainting` shows until the
667
+ repaint covers it. It explains a jump of the screen: nothing is lost but frames that were already out of date, and your
668
+ lanes and keys are not affected. When the window detaches, a line such as `lanes: the display fell behind 3 times;
669
+ 4.2 MiB of stale frames were dropped and the screen repainted.` stays. Only a terminal that accepts nothing at all for 5 s (a link that has
670
+ stopped) ends the view with `lanes: display output stalled; reconnecting the display.`, and the window reattaches as
671
+ for any lost connection. An operator can change both limits on the server (`LANES_DISPLAY_BACKLOG_BYTES`,
672
+ `LANES_DISPLAY_STALL_S`, [Appendix A](#appendix-a-environment-variables)). Through 1.6.1 a slow window instead looped on
673
+ `display output exceeded its backlog limit; reconnecting the display.` (BEY-6844); updating the server ends that.
674
+
663
675
  ### Devices and views
664
676
 
665
677
  - A **device** is the name of one view session on the server. The default is `<user>-<hostname>`, saved in
@@ -856,15 +868,16 @@ Unregistered section, no upload strip and no `+`, and its footer has no `x close
856
868
  | --- | --- |
857
869
  | 1 | `▌` the cursor; in truecolor and 256 colours the whole cursor row (to column 35) also sits on a soft background |
858
870
  | 2 | The agent glyph (table in section 1); dimmed while the lane is stale |
859
- | 3 | `›` the lane this pane shows (not on the cursor row, where the bold name says it) · `²` / `³` shown in viewport 2 / 3 · `…` (dim; ASCII `~`) an action on its way: a session `x` is closing, a session `P` is registering (until its lane is listed), a shell being created (on the New shell row) · `▲` (ASCII `^`) a lane you pinned (`p`), the lowest of these marks |
860
- | 4–27 | The name in its identity colour (else the theme's ink in truecolor and 256 colours), bold while shown, faint for a lane you hid while `o` shows it; up to three `·` when other sessions view the lane; a clipped name ends in `…` |
871
+ | 3 | One mark, the first that applies: `…` (dim; ASCII `~`) an action on its way: a session `x` is closing, a session `P` is registering (until its lane is listed), a shell being created (on the New shell row) · `²` / `³` shown in viewport 2 / 3 · `›` the lane this pane shows (not on the cursor row, where the bold name says it) · `★` (ASCII `*`) the workspace's coordinator lane, amber, or the fleet admin's lane, red · `≠` (dim; ASCII `/`) the lane's agent answers to another messaging name than the lane's address · `▲` (ASCII `^`) a lane you pinned (`p`), the lowest of these marks. The agent glyph in column 2 is never displaced |
872
+ | 4–27 | The name in its identity colour (else the theme's ink in truecolor and 256 colours), bold while shown, faint for a lane you hid while `o` shows it; up to three `·` when other sessions view the lane; a clipped name ends in `…`; on the cursor row, after them, the lane's handle `@<address>`, dim (see **Handles** below) |
861
873
  | 28 | `+` on an unregistered tmux session that can be added to a workspace |
862
874
  | 29–31 | Age: the agent's `since`, else the last output: `45s`, ` 3m`, ` 2h`, ` 4d` (at most `99d`); blank when unknown; amber inside **Needs you**, and in truecolor and 256 colours blue in **Working** and green in **Done** |
863
875
  | 33 | The terminal status glyph (section 1); dimmed when the lane is stale, and in 16 colours also when an agent glyph is in column 2 (`▸` with `○` is a long tool call, not a stuck lane) |
864
876
  | 34 | One tail cell by priority: `?` not observed right now > `⚠` starving > `↓` downgraded > `$` mostly paid (section 8) |
865
877
  | 35 | `×` close, on unregistered sessions only |
866
878
 
867
- Marks and their ASCII twins: `▌` `|` cursor · `›` `=` viewing · `²` `2` / `³` `3` other viewport · `▲` `^` pinned · `·` `.` viewer ·
879
+ Marks and their ASCII twins: `▌` `|` cursor · `›` `=` viewing · `²` `2` / `³` `3` other viewport · `▲` `^` pinned ·
880
+ `★` `*` coordinator or fleet admin · `≠` `/` messaging name is not the address · `·` `.` viewer ·
868
881
  `…` `~` clipped · `×` `x` close · `+` `+` new / add · `⋮` `:` more rows · `↑` `^` uploads · `↓` `v` drop now · `▤` `#` docs ·
869
882
  `⚠` `!` warning or starving · `↓` `v` downgraded · `$` `$` paid · the fleet block's `⚙` `@` Throttle, `◆` `*` provider,
870
883
  `▣` `[` host, and its bar `▰` `=` usable, `▱` `~` cooling, `▪` `:` benched, `·` `.` dead. The full tables, colours and mockups are in
@@ -884,7 +897,7 @@ draws the same footer (its picker says ` Choose a workspace · Tap Cancel`, and
884
897
  idle). An empty workspace shows `no lanes declared · + New shell` on its New shell row.
885
898
 
886
899
  **Sidebar keys** (`?` shows the short form of this table in place of the list until the next key; that key only closes
887
- the sheet). Its first row says which lanes: `lanes <installed version> · view <the version this sidebar runs>`. The sheet puts companion keys on one line (`J K`, `Tab S-Tab`, `+ U d`, `u z`, `p h`, `H o`, `r i ?`), leaves `PageUp` / `PageDown`
900
+ the sheet). Its first row says which lanes: `lanes <installed version> · view <the version this sidebar runs>`. The sheet puts companion keys on one line (`J K`, `Tab S-Tab`, `/ @`, `+ U d`, `u z`, `R m`, `p h`, `H o`, `r i ?`), leaves `PageUp` / `PageDown`
888
901
  to this table and ends with `Ctrl-Alt-l` — not a sidebar key but the chord that brings the keyboard here from a lane
889
902
  (section [Keybindings](#keybindings)). Every key below does something in the sidebar, and no other key does
890
903
  (`tests/unit/test_sidebar.py` `DocumentedKeys` presses each one and every other key a keyboard sends):
@@ -898,6 +911,7 @@ to this table and ends with `Ctrl-Alt-l` — not a sidebar key but the chord tha
898
911
  | `Tab` / `Shift-Tab` | Open the next / previous lane that needs you, cycling from the lane shown (` nothing needs you` when the section is empty) |
899
912
  | `2` / `3` | Show the cursor lane in viewport 2 / 3 (wide views) |
900
913
  | `/` | Find a lane |
914
+ | `@` | The cursor lane's handle in the footer for 3 s — ` @<address> · <harness>: <messaging name>`, ` ≠ ` in place of ` · ` when the agent answers to another name than the address — and, in place of the list until the next key (that key only closes it), every address: the workspace's coordinator and the fleet admin first, then each lane on screen (see **Handles** below) |
901
915
  | `Esc` | Clear the filter; cancel a prompt, a rename, Add to workspace or an armed upload strip; the keyboard goes back to the lane |
902
916
  | `g` / `G` | First / last row |
903
917
  | `+` | New persistent shell in this workspace |
@@ -906,6 +920,7 @@ to this table and ends with `Ctrl-Alt-l` — not a sidebar key but the chord tha
906
920
  | `u` | Unregister the cursor session added with `a`: it moves back to **Unregistered**, still running, and the cursor goes with it; on a lane a repository's `terminals.json` declares, take its terminal out of that file |
907
921
  | `z` | Undo that unregister (within 10 s) |
908
922
  | `R` | Rename the cursor lane |
923
+ | `m` | Message the cursor lane: one line in the footer (` › Message: █`), `Enter` sends it — typed into the lane at once when it is idle at its prompt, else left in its inbox and typed when it is next idle (` message … typed`, ` … queued`); `Esc` or an empty line sends nothing (see **Addresses, handles and messages**) |
909
924
  | `P` | Promote (register) the cursor session in the repository's `terminals.json`: the name first (`Enter` accepts), then `y` and `Enter` |
910
925
  | `p` | Pin / unpin the cursor lane: on every device you own it leads its section, marked `▲` (`^` in ASCII), and never falls below `⋮ N more` |
911
926
  | `h` | Hide the cursor lane on every device you own (` Hid ‘name’ · o shows it`); on a hidden lane `o` shows, show it again |
@@ -917,6 +932,32 @@ to this table and ends with `Ctrl-Alt-l` — not a sidebar key but the chord tha
917
932
  | `r` | Reload and repaint; while the footer says `update ready · reload (r)`, rebuild this view on the installed release (the window reconnects, agents are untouched); the keyboard goes back to the lane |
918
933
  | `?` | The key sheet |
919
934
 
935
+ **Handles, coordinators and the fleet admin** (W15). Every lane has a registered address — `<workspace>.<lane>` (the
936
+ lane id with its `--` as a `.`, `bw-tools.throttle-service`) or a short name the workspace settings give it — and its
937
+ **handle** is that address with an `@`: what a person or another agent uses to message the lane. Each workspace names
938
+ one **coordinator** lane, and the site one **fleet admin** lane. The server's status daemon publishes each lane's
939
+ address, role, and whether its agent's messaging name (a Claude session's name) is the address; the sidebar shows them:
940
+
941
+ - The handle, dim, after the cursor row's name: `▌ docs @bw-tools.docs`. The name is clipped first, down to 8 cells
942
+ (its `…` included; a shorter name keeps its own), and a handle that does not fit beside that is left out whole,
943
+ never cut — at 36 columns a handle of up to 15 cells fits beside a long name; the footer and the `@` sheet always
944
+ show it. `look.handles` chooses where: `cursor` (the default), `all` (every lane row) or `off`. It is a device
945
+ setting resolved like `--dim`: the device file's `handles` key on the server (`devices/<device>.json`), then
946
+ `LANES_HANDLES`, then `cursor`. No `lanes attach` flag writes it yet and `bin/lanes` does not forward
947
+ `LANES_HANDLES` into the views it creates, so today only a hand edit of that file changes it, and a recreated view
948
+ (`lanes ensure` after a reboot, `lanes rebuild`) drops the edit.
949
+ - `★` in column 3 on the coordinator (amber) and on the fleet admin (red); `✉` (amber; `&` in ASCII) on a lane whose
950
+ inbox holds messages that have not reached its agent yet (W15 L4); `≠` on a lane whose agent answers to another
951
+ messaging name than its address, so a message sent to the address by name (Claude's own `SendMessage`) does not find
952
+ it. One mark per row, in that order. The phone's rows carry the same marks in their mark column; they draw no
953
+ handle.
954
+ - `@` puts the cursor lane's handle in the footer for 3 s, ` @bw-tools.docs · claude: bw-tools.docs` (as much as the
955
+ row holds; ` @bw-tools.docs ≠ claude: fix-the-docs` when the agent answers to another name), and the addresses in
956
+ place of the list until your next key: ` @<workspace> → @<coordinator>` and ` @fleet → @<fleet admin>` in their
957
+ leader colours, then each lane on screen in list order, ` @<address> claude:<name>`, at most 18 lines (the last
958
+ ` ⋮ N more`). On a server whose status daemon predates W15 no lane has an address: the sheet says
959
+ ` no addresses published` and every row is exactly what it was.
960
+
920
961
  **Pins and hidden lanes** (`p`, `h`, `H`, `o`) are yours, not the device's: they live in your profile
921
962
  (`users/<login>.json`, section [Devices and views](#devices-and-views)) and every device you own follows them on its next
922
963
  tick. A hidden lane leaves the list, the header counts, the fleet strip and the desktop notifications; a session under
@@ -934,7 +975,7 @@ section the cursor and scroll position go with it.
934
975
  **The keyboard goes back to the lane.** The sidebar and the lane share one keyboard: whichever pane has the focus gets
935
976
  what you type. So every sidebar action that ends hands the focus back to the pane's viewport — opening a lane, a
936
977
  close, a rename (`Enter`), a register (`a` → workspace, or `P` → `y` → `Enter`), an unregister (`u`) and its undo
937
- (`z`), a cancel (`n`, `Esc` or any other key at a prompt), `r`, the key that closes the `?` sheet, a drop on the upload strip, and a click that opens nothing
978
+ (`z`), a cancel (`n`, `Esc` or any other key at a prompt), `r`, the key that closes the `?` or `@` sheet, a drop on the upload strip, and a click that opens nothing
938
979
  (a section header, `⋮ N more`, an empty row). Anything else typed in the same burst was meant for the lane and is
939
980
  dropped, never read as sidebar keys. A prompt, the filter and the armed upload strip keep the keyboard until you
940
981
  answer them, and so does a refused key (`x` on a lane that cannot be closed, `u` on a declared lane), so the `y` you
@@ -952,7 +993,7 @@ back clears it at once. On the phone the picker is a whole tab and has no such l
952
993
  **A message stays 3 seconds, or until your next action.** What an action says in the footer (` Closed sh`,
953
994
  ` Renamed → …`, ` Cancelled`, ` view not running yet`, or why a close failed) stays after the keyboard has gone back
954
995
  to the lane, for 3 seconds (within a second more: the sidebar looks once a second), then the legend returns. The next
955
- action you start in the sidebar — opening a lane, `x`, `R`, `P`, `a`, `u`, `z`, `/`, `U`, `+`, `r`, `?`, `d`, `Tab`, a chord —
996
+ action you start in the sidebar — opening a lane, `x`, `R`, `P`, `a`, `u`, `z`, `/`, `U`, `+`, `r`, `?`, `d`, `@`, `Tab`, a chord —
956
997
  replaces it at once. Moving the cursor, typing in a field, `Esc`, the wheel, a mouse release or the focus leaving and
957
998
  coming back does not clear it.
958
999
 
@@ -1029,9 +1070,10 @@ coming back does not clear it.
1029
1070
  stays. Meanwhile every key on that row — `x`, `a`, `R`, `P`, `u`, `Enter` — says ` closing ‘name’ — a moment`; the
1030
1071
  rest of the sidebar answers as usual. A session others are grouped onto (a Studio browser
1031
1072
  `view-…` viewer) has those viewers ended first; any other grouped session makes the close refuse and say why.
1032
- - **Paste into a prompt**: a paste into ` › Rename: `, ` › Register as: ` or the filter is typed there, after what is
1033
- already in the field. Line breaks and tabs become one space, so a copied line never acts as `Enter`; the prompt waits
1034
- for yours. Only the armed upload strip, or a sidebar with no prompt open, takes a paste as a file drop.
1073
+ - **Paste into a prompt**: a paste into ` › Rename: `, ` › Register as: `, ` › Message: ` or the filter is typed there,
1074
+ after what is already in the field. Line breaks and tabs become one space, so a copied line never acts as `Enter`; the
1075
+ prompt waits for yours, also when the terminal hands the paste over in pieces (its start or end cut between two reads,
1076
+ or a character). Only the armed upload strip, or a sidebar with no prompt open, takes a paste as a file drop.
1035
1077
 
1036
1078
  ### Markdown preview
1037
1079
 
@@ -1256,7 +1298,8 @@ The frontend chooses once per page load, by capability:
1256
1298
  closed. **Type here** is an ordinary text field: the normal keyboard with its suggestion bar, never the password
1257
1299
  keyboard. A suggestion you tap arrives as the whole word; long-press the field and choose **Paste** to paste.
1258
1300
  - The lane picker shows three rows per lane: the viewing mark, agent glyph and name; then what the agent needs, since
1259
- when and the harness (`Needs you · 25m · claude`; a shell says `Quiet · 2h`); then the agent's task. Its first line
1301
+ when and the harness (`Needs you · 25m · claude`; a Claude lane whose background subagents or jobs still run after
1302
+ its turn says `Delegating · 3m · claude`; a shell says `Quiet · 2h`); then the agent's task. Its first line
1260
1303
  counts the lanes that need you (`◆1 need approval · ◇2 need you · ▸6 working`). The footer says
1261
1304
  `Swipe to scroll · Tap to open`, and otherwise exactly what the desktop footer says: every prompt (Rename,
1262
1305
  Register as, the close and register confirmations), the filter and its match count, a banner, the last message.
@@ -1615,9 +1658,10 @@ reaches its lane, so Cursor and Lanes attach to the same tmux session:
1615
1658
 
1616
1659
  `cursor-commit` reads `commit-targets.json` in the site directory. Neither command runs automatically.
1617
1660
  **Operator gate:** `--canonicalize --write` or `--identity --write` on a live workspace rewrites operator-declared
1618
- recipes and produces the first `lanes/<ws>/<id>` trace; decide lane-level against per-session proxy fairness first
1619
- (DEF-1560, [RUNBOOK](RUNBOOK.md#cursor--vs-code-terminals--the-same-lanes)). The rewrite changes the file only: a
1620
- running lane gains its identity when it is next created.
1661
+ recipes and produces the first `lanes/<ws>/<id>` trace; the Throttle it routes through needs the DEF-1560 (BEY-6299)
1662
+ per-session fairness fix, or the whole lane shares one proxy fairness bucket
1663
+ ([RUNBOOK](RUNBOOK.md#cursor--vs-code-terminals--the-same-lanes)). The rewrite changes the file only: a running lane
1664
+ gains its identity when it is next created.
1621
1665
 
1622
1666
  ### Rename rules
1623
1667
 
@@ -1627,7 +1671,92 @@ running lane gains its identity when it is next created.
1627
1671
  | Registered session | Its record's `name` in `registered-sessions.json` |
1628
1672
  | Unregistered session | `~/.local/state/lanes/user-sessions/<id>.json` |
1629
1673
 
1630
- Names must be non-empty and free of control characters. The id, resolve file and `lane open <id>` never change.
1674
+ Names must be non-empty and free of control characters. The id, resolve file and `lane open <id>` never change, and
1675
+ neither does the lane's [address](#addresses-coordinators-and-the-fleet-admin): a display name is cosmetic.
1676
+
1677
+ ### Addresses, coordinators and the fleet admin
1678
+
1679
+ Every lane has a registered messaging address, `<workspace>.<slug>`: its id with the `--` after the workspace turned
1680
+ into a dot (`worlds--worlds-packages` is `@worlds.worlds-packages`; an adopted `<workspace>--x-…` session is
1681
+ `<workspace>.x-…`). Claude Code keeps such a name for a session and refuses one with `--` in it, so a Claude lane's
1682
+ session name should be its address: then `ListAgents` and `SendMessage` in any Claude lane show Lanes addresses.
1683
+
1684
+ | What | Where | Command |
1685
+ | --- | --- | --- |
1686
+ | Another address for a repository lane (`<workspace>.<alias>`, alias of `a-z 0-9 . _ -`, no `--`) | `addresses` in `workspaces.<workspace>.json`, keyed by the terminal name (with its repository prefix) | `lanes address set <lane-id> <workspace>.<alias>` (its derived address again removes it) |
1687
+ | The workspace's coordinator: `@<workspace>` reaches it, and only a coordinator messages the fleet admin | `coordinator` in `workspaces.<workspace>.json` (a terminal name) | `lanes address set-coordinator <workspace> <lane-id>` |
1688
+ | The fleet admin lane | `LANES_FLEET_ADMIN=@<address>` in the server's `~/.config/lanes/site.conf` | `lanes migrate addresses` sets `@fleet-management.fleet-management` when unset |
1689
+ | Statusd renames Claude sessions to their addresses | `LANES_NAMES_AUTO` in site.conf (`0` turns it off; on by default) | — |
1690
+
1691
+ `lanes address list [workspace]` prints every lane's id, address, role (`coordinator`, `fleet-admin` or `-`) and
1692
+ whether its Claude session name is its address (`yes`, `no`, `-` without a Claude session), then the fleet admin and
1693
+ the workspaces without a coordinator. `lanes address set` edits only that one member of the manifest, keeps a
1694
+ `.bak-<UTC>` copy on the manifest's first write and syncs; it is refused, writing nothing, when another lane already
1695
+ answers to the address. An adopted session keeps its derived address. `lanes sync` refuses a site where two lanes
1696
+ answer to one address (naming both), and makes a workspace whose `addresses` or `coordinator` is invalid keep its
1697
+ previous lanes (`lanes doctor` names the error).
1698
+
1699
+ **Name parity.** `lanes names sync [--board B]` lists the Claude lanes whose session name is not their address: those it
1700
+ would rename and those it leaves for later (working, waiting for an approval, delegating, output in the last 20 s,
1701
+ not observed). `lanes names sync --write` types `/rename <address>` and Enter into each of the first, after checking the
1702
+ session file again (Claude at its prompt, never at a dialog, and the Claude of that lane's own tmux server — never one
1703
+ of another server whose pane has the same name), holding the lane's dispatch lock while it types (another sender holding
1704
+ it defers the lane); exit 1 only when tmux did not take one. `lanes-statusd`
1705
+ retries the rest as they go idle, at most two lanes a pass and each at most once per 120 s, never into a lane a
1706
+ terminal is attached to.
1707
+
1708
+ **The migration.** `lanes migrate addresses` (a dry run until `--write`; `--board B` for one workspace, which leaves
1709
+ site.conf alone) gives every workspace without a coordinator one — the lane whose slug is the workspace id, else the
1710
+ first declared lane, printed with the rule — and sets the fleet admin when site.conf names none. `--write` keeps a copy
1711
+ of every file it changes under `~/.local/state/lanes/migrations/<UTC stamp>/` with a `receipt.json`, validates the
1712
+ site before and after (a new error puts every file back), and syncs; running it again changes nothing.
1713
+ [RUNBOOK](RUNBOOK.md#addresses-coordinators-and-name-parity-w15) has the operator's designations and the undo.
1714
+
1715
+ ### Addresses, handles and messages
1716
+
1717
+ (W15 L4, BEY-6842.) A lane's **address** is how it is messaged; its **handle** (`lanes_status`, the sidebar's `@`) says how a message
1718
+ reaches its agent. One envelope carries every message, so the receiving agent always knows who wrote and how to
1719
+ answer: `[lanes message from @<sender address> (<handle>) <HH:MM>Z] <text> — reply: lane message @<sender address>
1720
+ "…"` (a person's message: `[lanes message from host:<login> (a person) <HH:MM>Z] <text>`). Every message leaves a
1721
+ receipt; the log beside the inbox keeps who, to whom, when, how many bytes and how it went — never the text.
1722
+
1723
+ **Claude peers** (W15 L6, BEY-6843) — every lane is a Claude peer: `lane-peerd`, which the server starts in each
1724
+ workspace container, registers every lane whose agent is not Claude — Codex, Kimi, Grok, Muse, ZCode, and plain
1725
+ shells — as a Claude session of its own, named by the lane's address. So a Claude agent's `ListAgents` lists them all,
1726
+ and `SendMessage` to: <address> reaches Codex/Kimi/Grok/Muse/ZCode and shells as it reaches another Claude lane; the
1727
+ other way round, a Codex, Kimi, Grok, Muse or ZCode agent (or a shell's `lane message`) reaching a Claude lane writes into that
1728
+ Claude session's own messaging channel, so the message appears in its transcript mid-turn. `lanes_list` shows such a
1729
+ lane's handle as `claude-peer`. This works only with the Claude Code version Lanes measured the protocol on (2.1.310)
1730
+ or an older one; with a newer Claude Code the message waits in the lane's inbox instead (`peer_pin_failed` names why)
1731
+ until the server's operator re-measures.
1732
+
1733
+ | From → to | How it arrives | What a person sees |
1734
+ | --- | --- | --- |
1735
+ | Claude → Claude | the sender's own `SendMessage` to the address (Lanes refuses its own path, `use_send_message`) | the message in the recipient's transcript, mid-turn |
1736
+ | Claude → Codex, Kimi, Grok, Muse, ZCode or a shell | the sender's own `SendMessage` to the address (`lane-peerd`'s peer), which Lanes then delivers like any message below — `codex queue`, typed when idle, or the inbox | the message as in the rows below, from `peer:` or the sender's lane |
1737
+ | any other agent or a shell → Claude | one line on the Claude session's own messaging socket (`peer_socket`) | the message in the recipient's transcript, mid-turn |
1738
+ | any agent → Codex | `codex queue --thread <its thread>` when its hooks recorded the thread — or its Codex app-server names the one thread at the lane's folder — and `codex` is installed (several threads there, or an app-server that does not answer: refused, or waiting with `queue: true`, never typed) | the message at the thread's next turn |
1739
+ | any agent → Kimi, Grok, Muse, ZCode, or Claude/Codex without a name or thread | typed at the lane's prompt when it is idle; otherwise, with `queue: true`, it waits in the lane's inbox and the server types it when the lane is next idle with no terminal attached | the envelope typed into the lane; `✉` on the lane while it waits |
1740
+ | any agent → a shell lane | typed as one comment line (`# [lanes message …]`) when the shell sits at its prompt: nothing runs | the line in the shell |
1741
+ | a person → any lane | the sidebar's `m` (or `lanes message <lane> "<text>"` on the server): typed at once when the lane is idle, else waiting in its inbox | the envelope in the lane; `✉` while it waits |
1742
+
1743
+ With Throttle's message bus switched on for a lane (`LANES_BUS=throttle` in its environment; the endpoint ships with a
1744
+ later Throttle release), any agent that calls a model gets its messages on its next model request instead of typed;
1745
+ Lanes sends them to Throttle's control port with the sending agent's own Throttle client token.
1746
+
1747
+ Lanes never types two messages into one prompt: every sender of a lane — another agent, `lane-peerd`, the server's
1748
+ inbox delivery, `lanes_send` — takes that lane's turn (a lock in the container) and checks the lane again before it
1749
+ types, so a lane that started working meanwhile gets nothing, and messages that were waiting go first. When Lanes
1750
+ cannot tell whether a message arrived — `codex queue` or Throttle took it and then did not answer — the answer says
1751
+ `delivered_by: unknown`: the message is held, Lanes never sends it again on its own, and `lanes_status` shows it under
1752
+ `inbox.unknown` (`lanes_list`: `inbox_unknown`). Look at the lane: if it arrived, the recipient acknowledges it; if it
1753
+ did not, a person resends it with `~/.lz/bin/lane inbox retry <id> --duplicate-risk --lane <lane id>`, knowing it may
1754
+ then arrive twice.
1755
+ An agent sends with `lanes_message` (or `~/.lz/bin/lane message @<address> "<text>"` in its shell), sees what waits for
1756
+ it in `lanes_status` on its own lane (`inbox`) or `~/.lz/bin/lane inbox`, and acknowledges with `lanes_message_ack`
1757
+ (`lane inbox ack <id>`): the text leaves the inbox, the receipt stays. Messages wait at most their `ttl_s` (24 h by
1758
+ default); then the server takes the text out. A message from another lane is information, never a person's consent.
1759
+ Paths, receipts and the log: [RUNBOOK](RUNBOOK.md#messages-inboxes-receipts-and-the-log-w15-l4).
1631
1760
 
1632
1761
  ### Register, promote, unregister
1633
1762
 
@@ -1662,6 +1791,11 @@ Names must be non-empty and free of control characters. The id, resolve file and
1662
1791
  harness's name with the status `shell`); lanes per create-recipe class (`idempotent`, `attach-only`, `null`, `external`, `retired-path`), how many
1663
1792
  create with their identity, where the `lane` contract is installed, zmx-held lanes, the preview renderer, the live
1664
1793
  view sessions, and the pressure summary.
1794
+ - Addresses ([Addresses, coordinators and the fleet admin](#addresses-coordinators-and-the-fleet-admin)): `⚠ 2 of 14
1795
+ boards without a coordinator: …` (fix: `lanes migrate addresses --write` or `lanes address set-coordinator`),
1796
+ `✓ lane addresses unique` (`✗` naming the two lanes of each clash: `lanes sync` refuses the site until one has
1797
+ another address), the fleet admin (`⚠` unset or naming no lane), `⚠` for an `addresses` key that names no terminal,
1798
+ and per container `Claude names = addresses: <container> 43/64`.
1665
1799
  - Warnings (`⚠`, never a `✗`): lanes that `lane open` cannot recreate (fix: `lanes cursor-sync --canonicalize`),
1666
1800
  lanes bound to a numeric session name, more than 4 lanes on one container's tmux socket `default`, orphan tmux
1667
1801
  socket files in a container (report only; inside the container `~/.lz/bin/lane gc --sockets` removes the ones tmux
@@ -1743,8 +1877,15 @@ glyph 5 s. `status.json` carries both:
1743
1877
  entered its section — the sidebar orders each section by it. With the Claude hooks installed, every tool call that
1744
1878
  starts signals Working (`PreToolUse`); that hook fires before the permission dialog, so a call you approve still shows
1745
1879
  `◆` while it runs and for the 8 s dwell after it ends (`PostToolUse`; DEF-1571, open — [RUNBOOK](RUNBOOK.md#installing-agent-hooks-opt-in-per-container-dry-run-first)).
1746
- A Codex approval read from its pane title (a lane without hooks) keeps the same 8 s dwell once approved. The full rules:
1747
- [Attention queue](ARCHITECTURE.md#attention-queue).
1880
+ A Codex approval read from its pane title (a lane without hooks) keeps the same 8 s dwell once approved.
1881
+
1882
+ **Delegating.** Claude Code says `idle` as soon as its own turn is over, also while subagents, a workflow or a
1883
+ background Bash job it started still run. Such a lane is not waiting for you: it shows **Working**, and `status.json`
1884
+ carries `agent.activity: delegating` beside `agent.status: working`. The sidebar decides from the session's own work
1885
+ files (written in the last 3 minutes); a permission prompt or a question Claude asks you is still **Needs you**. A
1886
+ background job that prints nothing for more than 3 minutes shows Needs you until it writes again, and a background
1887
+ process that never stops writing (a dev server left running) keeps the lane Working. The full rules: [Attention
1888
+ queue](ARCHITECTURE.md#attention-queue).
1748
1889
 
1749
1890
  ### Harnesses
1750
1891
 
@@ -1941,7 +2082,10 @@ keys stay, and an earlier lane-signal install is replaced, not duplicated. An in
1941
2082
  left where it is, even when another tool (Throttle's `setup --install-clients`) has put its own group before or
1942
2083
  after it or re-sorted the file's keys, so running it again writes nothing. For
1943
2084
  Codex it also adds a top-level `notify` to `~/.codex/config.toml` only when none exists. Codex asks you to review and
1944
- trust new hooks; Lanes never writes that trust. Expect hooks to reach agent sessions started after the install
2085
+ trust new hooks; Lanes never writes that trust. The Codex hooks also record each Codex lane's thread id, which is what
2086
+ lets a message reach that lane by `codex queue --thread`; `lanes install-container` prints this step for a container
2087
+ that has `~/.codex` and runs nothing (without the hooks, lane-mcp finds most Codex threads through Codex's own daemon:
2088
+ [RUNBOOK](RUNBOOK.md#codex-lanes-thread-ids-w15-l3)). Expect hooks to reach agent sessions started after the install
1945
2089
  (inferred from how both harnesses read their configuration, not measured). Undo:
1946
2090
  restore the `.lanes-bak-*` file, or delete the groups whose command contains `lane-signal`.
1947
2091
 
@@ -1971,8 +2115,9 @@ verbs, so the holder stays swappable.
1971
2115
  | --- | --- |
1972
2116
  | `lane open <lane-id>` | The editor entry point: attach to the lane; if it does not exist, run its recorded create recipe. Refuses to nest inside tmux; attaches with `ignore-size` while a lanes view shows the lane |
1973
2117
  | `lane attach <id>` | Attach this terminal; never creates; refuses to nest |
1974
- | `lane send <id> [--no-enter] <text…>` | Type into the lane: tmux literally, then Enter half a second later unless `--no-enter` (an agent's prompt takes text and Enter that arrive together as a paste and never submits it); zmx sends the bytes as given |
1975
- | `lane capture <id> [--lines N] [--vt]` | Print the scrollback (plain, or with escapes under `--vt`) |
2118
+ | `lane send <id> [--no-enter] <text…>` | Type into the lane: tmux literally, then Enter half a second later unless `--no-enter` (an agent's prompt takes text and Enter that arrive together as a paste and never submits it); zmx sends the bytes as given. `<id>` may be an address ("Agent tools (MCP)" below) |
2119
+ | `lane capture <id> [--lines N] [--vt]` | Print the scrollback (plain, or with escapes under `--vt`); `<id>` may be an address |
2120
+ | `lane address [--json]` | This lane's address, role, its board's coordinator, the site's fleet admin and its handle (what `lanes_whoami` answers) |
1976
2121
  | `lane ls [--json] [--all]` | zmx lanes; `--all` adds the registry's tmux lanes with `alive` |
1977
2122
  | `lane status <id>` | JSON: alive, the hook agent, metadata; exit 1 when not running |
1978
2123
  | `lane kill <id> --yes [--force]` | End the lane (the only verb that ends an agent); refuses while the hook sidecar says `working` unless `--force` |
@@ -2020,15 +2165,33 @@ only read:
2020
2165
 
2021
2166
  | Tool | Answers |
2022
2167
  | --- | --- |
2023
- | `lanes_whoami` | Which lane the agent runs in: id, board, name, kind (declared, registered or unregistered), tmux socket and session. It comes from `LANE_ID`, else from the agent's own tmux pane. Outside a lane the answer is `lane: null` with the reason |
2024
- | `lanes_list` | Every lane in this container with its state and its agent (harness, status, task). Filters: `workspace`, `needs_you: true` (needs approval, errored or needs input, the sidebar's "Needs you" section) and `agent` (`any`, `none`, `claude`, `codex`, `kimi`, `grok` for Grok Build, `grok-cli`, `muse` for Muse Code, `zcode` for ZCode). `status.fresh` is false once the host's observation is more than 60 s old |
2025
- | `lanes_status` | One lane in full: what the registry says, the observed state and agent, whether its tmux session is alive now (`null` when tmux does not answer in 5 s) and its hook sidecar |
2168
+ | `lanes_whoami` | Which lane the agent runs in: id, board, name, kind (declared, registered or unregistered), tmux socket and session; its `address`, `role`, its board's `coordinator`, the site's `fleet_admin`, its `handle` and `name_match` (below). It comes from `LANE_ID`, else from the agent's own tmux pane. Outside a lane the answer is `lane: null` with the reason |
2169
+ | `lanes_list` | Every lane in this container with its state and its agent (harness, status, task; `activity: delegating` while a Claude agent's background subagents or jobs run after its turn, its status then `working`), its `address`, `role`, `handle` (kind and messaging name) and `name_match`. Filters: `workspace`, `needs_you: true` (needs approval, errored or needs input, the sidebar's "Needs you" section) and `agent` (`any`, `none`, `claude`, `codex`, `kimi`, `grok` for Grok Build, `grok-cli`, `muse` for Muse Code, `zcode` for ZCode). `status.fresh` is false once the host's observation is more than 60 s old |
2170
+ | `lanes_status` | One lane in full: what the registry says, its address and role, the observed state and agent, its handle with the transport, `name_match` and `messaging` (the Claude session's messaging socket and name, as the host saw them), whether its tmux session is alive now (`null` when tmux does not answer in 5 s) and its hook sidecar |
2026
2171
  | `lanes_capture` | The last `lines` (1 to 500, default 100) non-blank lines of a lane's screen and scrollback, as plain text. Any lane of the container can be read |
2027
2172
 
2028
2173
  Where the answers come from: `~/.lz/registry.json`, which `lanes sync` writes, and `~/.lz/status.json`, which the
2029
2174
  status daemon writes. A container that has neither yet answers with empty lists and says why.
2030
2175
 
2031
- Seven tools write. Each reaches the lanes of its own container only, and answers what it changed, what picks the
2176
+ **Addresses and roles.** Every lane has a messaging address, `<board>.<lane>`: its id with the `--` turned into
2177
+ `.` (`bw-tools--lanes-zellij` is `bw-tools.lanes-zellij`), or an alias the board's workspace settings give. The
2178
+ address is the lane's identity; the display name is cosmetic, and renaming a lane never changes its address. Where a
2179
+ tool takes a `lane` (`lanes_status`, `lanes_capture`, `lanes_send`), it takes an address too, the `@` optional:
2180
+ `@bw-tools.lanes-zellij`, `@bw-tools` for that board's **coordinator**, `@fleet` for the site's **fleet admin**; a
2181
+ lane id, the old `<board>--<lane>` spelling, still works. Each board has one coordinator and the site one fleet
2182
+ admin; `role` says which a lane is. Fleet and infrastructure needs go lane → coordinator → fleet admin:
2183
+ `lanes_send` refuses a text for the fleet admin from a lane that is not a coordinator (`use_coordinator`, naming
2184
+ that lane's coordinator), even with `force`. Claude lanes are started as `claude --name <address>`, so a Claude
2185
+ agent messages another with its own `SendMessage` to the address (without `@`); `handle` says how a message reaches
2186
+ a lane (`send_message` for a named Claude session, `codex_queue` for a Codex thread, `throttle_turn` for the other
2187
+ agents, `typed` for a lane without one) and `name_match` whether its messaging name is its address. A Codex lane's
2188
+ thread id comes from its hooks when they are installed; without them lane-mcp asks Codex's own daemon which thread
2189
+ runs in the lane's folder and, when several do, which one has the lane's title as its name — such a handle says
2190
+ `via: app-server`, and a Codex lane it could not place says `why` (`handle_ambiguous` when several threads fit). In
2191
+ a shell, `~/.lz/bin/lane address` prints the same, and `lane send` and `lane capture` take an address. What every
2192
+ agent is told about this: [AGENTS-lanes.md](AGENTS-lanes.md).
2193
+
2194
+ Nine tools write. Each reaches the lanes of its own container only, and answers what it changed, what picks the
2032
2195
  change up (`picked_up_by`) and how soon (`expected_within_s`):
2033
2196
 
2034
2197
  | Tool | Changes | Seen on the boards |
@@ -2036,9 +2199,11 @@ change up (`picked_up_by`) and how soon (`expected_within_s`):
2036
2199
  | `lanes_register` | `name`, optional `session` and `repo`. Declares an unregistered tmux session — the one the agent runs in, or the one `session` names — as a lane: one terminal appended to its board's `.vscode/terminals.json` (command `lane open <id>`, the exact tmux binding, the canonical create recipe). Nothing is started, stopped or renamed. Answers the id the lane will have, `<workspace>--<slug of prefix + name>` | after the next `lanes sync`, within about 15 s |
2037
2200
  | `lanes_unregister` | Removes a declared lane's terminal (its `terminals[]` item and its `lanes.terminals` entry). The session keeps running and shows as an unregistered session again | same |
2038
2201
  | `lanes_rename` | Sets the lane's `displayName` in its terminals.json; the id never changes. The lane's own title removes it. A name the host sets for the lane in its workspace manifest still wins, and the answer says so (`host_override`) | same |
2039
- | `lanes_new` | `name`, optional `cwd`, `command`, `workspace`, `repo`. Declares a lane on the board's shell socket `lanes-shells-<workspace>` and starts its session (detached, 100x30) with the lane's identity; the workspace defaults to the agent's own board, the folder to the repository's, the command to `bash -l`. When that starts the board's shell server, the server gets the account and locale variables (and `TMUX_TMPDIR`), never the agent's own environment, which every later shell on the board would inherit | the session at once; the lane after the next `lanes sync` |
2040
- | `lanes_send` | `lane`, `text`, optional `enter` (default true), `force`. Types printable text into the lane, then Enter half a second later as a separate keystroke, so an agent's prompt submits it instead of taking it as a paste | at once |
2202
+ | `lanes_new` | `name`, optional `cwd`, `command`, `workspace`, `repo`. Declares a lane on the board's shell socket `lanes-shells-<workspace>` and starts its session (detached, 100x30) with the lane's identity; the workspace defaults to the agent's own board, the folder to the repository's, the command to `bash -l`. A `claude` command gets `--name <address>`, so the session's messaging name is the new lane's address (the answer names both). When that starts the board's shell server, the server gets the account and locale variables (and `TMUX_TMPDIR`), never the agent's own environment, which every later shell on the board would inherit | the session at once; the lane after the next `lanes sync` |
2203
+ | `lanes_send` | `lane` (an id or an address), `text`, optional `enter` (default true), `force`. Types printable text into the lane, then Enter half a second later as a separate keystroke, so an agent's prompt submits it instead of taking it as a paste. The answer names the lane's `address` | at once |
2041
2204
  | `lanes_publish` | `path` (an absolute path under `/home/coder`), optional `title`, `for` (a login), `kind` (`md`, `html`, `svg`, `file`; default from the extension). Writes a publish request for the file from the agent's own lane ("Publish to the docs page" below); the docs service reads the file itself and answers with a receipt that `lanes_status` shows as `published` | on the docs page within about 5 s |
2205
+ | `lanes_message` | `to` (an address or a lane id), `text` (one printable line, at most 4000 characters), optional `ttl_s` (60 to 604800, default 86400) and `queue`. One message from the agent's own lane in the envelope above ([Addresses, handles and messages](#addresses-handles-and-messages)): a Claude session, when the sender is Claude, is refused `use_send_message` (its own `SendMessage`), and so is a lane `lane-peerd` serves (handle `claude-peer`); a Claude session, when the sender is not Claude, gets one line on its own messaging socket (`peer_socket`, mid-turn); a Codex thread gets it by `codex queue`; an idle lane typed; with `queue`, a lane that cannot take it now gets it in its inbox. The answer says `delivered_by` and the receipt's path. A message from another lane is never a person's consent | at once (typed), at the recipient's next turn, or when it is next idle (`queued`) |
2206
+ | `lanes_message_ack` | `id`. Acknowledges a message of the agent's own inbox: its text leaves the inbox, its receipt stays | the `✉` count on the next status cycle, within about 5 s |
2042
2207
  | `lanes_signal` | `status` (the agent words: `working`, `needs_input`, `needs_approval`, `done`, `errored`, `shell`, `idle`), optional `note`. Reports the agent's own status through `lane-signal`; the note (one line, at most 120 characters) is shown as the lane's task line. The report stands until the agent does something new: its next tool call, a new prompt, a permission prompt, a failed turn or the session's end. The end of its turn keeps it (a `working` report ends there), so an agent reports `needs_input`, `done` or `errored` as the last thing before it stops. A `working` note stays while the agent keeps working | on the next status cycle, within about 5 s |
2043
2208
 
2044
2209
  What they refuse. A refusal is `isError` with `{"refused": <code>, "why", "human"}`: `human` says what a person can
@@ -2053,9 +2218,20 @@ refuses an unregistered session (register it first) and a name with a control ch
2053
2218
  folder outside `/home/coder` or one that does not exist (`invalid_cwd`), a name or session in use and a command with
2054
2219
  a control character. `lanes_send` types nothing while the lane's agent is working or waiting for an approval
2055
2220
  (`agent_working`, `agent_needs_approval`) unless `force` is true, and never a control character: no newline, tab,
2056
- escape or Ctrl-C (`invalid_text`). `lanes_publish` refuses a file outside `/home/coder` once every link is resolved
2221
+ escape or Ctrl-C (`invalid_text`); an address names no lane here (`unknown_address`), a board without a coordinator
2222
+ (`no_coordinator`), a site without a fleet admin (`no_fleet_admin`), or a text for the fleet admin from a lane that
2223
+ is not a coordinator (`use_coordinator`). `lanes_publish` refuses a file outside `/home/coder` once every link is resolved
2057
2224
  (`outside_home`), anything but a regular file (`not_a_file`), a file over 32 MiB (`too_large`), a title or login that
2058
- is not one printable line (`invalid_title`, `invalid_for`), and an agent outside a lane (`not_in_lane`). Every tool
2225
+ is not one printable line (`invalid_title`, `invalid_for`), and an agent outside a lane (`not_in_lane`).
2226
+ `lanes_message` refuses a text longer than 4000 characters (`message_too_long`) or with a control or format character
2227
+ (`unprintable`), a Claude session a Claude sender reaches with its own `SendMessage` (`use_send_message`; two lanes
2228
+ answering to that name: `handle_ambiguous`), a lane that cannot take it now without `queue: true`
2229
+ (`recipient_busy`, also while another sender is typing into that lane), a Codex lane whose app-server names several
2230
+ threads (`handle_ambiguous`) or does not answer (`handle_unavailable`), a `codex queue` that could not start
2231
+ (`codex_queue_failed`) and a Throttle bus that refused it or took no connection (`bus_unavailable`) — those queue it
2232
+ instead with `queue: true`; a `codex queue` or Throttle that may have taken it without answering is no refusal but
2233
+ `delivered_by: unknown` (held, never sent again) —, the addresses and the routing rule as
2234
+ `lanes_send` does; `lanes_message_ack` an id the agent's own inbox does not hold (`unknown_message`). Every tool
2059
2235
  refuses a lane of another container (`not_in_container`). The edits go
2060
2236
  through the same minimal editor as everything else here: one span of strict JSON, the file re-read just before the
2061
2237
  atomic write, never the root `throttle` object, never a rename or reorder of terminals. The file is the
@@ -2379,7 +2555,7 @@ All units run in `lanes.slice` and are rendered by the server installer from `la
2379
2555
  | Unit | Schedule | Enabled by | Does |
2380
2556
  | --- | --- | --- | --- |
2381
2557
  | `lanes.slice` | — | (used by every unit) | High CPU weight and `MemoryLow` for the harness, so it stays scheduled on a thrashing host |
2382
- | `lanes-statusd.service` | Always on | Server install | Observes every lane (never touches one); writes `status.json` and `health`; hot-sync |
2558
+ | `lanes-statusd.service` | Always on | Server install | Observes every lane; writes `status.json` and `health`; hot-sync; types only `/rename <address>` into an idle Claude lane whose session name is not its address, with no terminal attached (at most two a pass, each lane at most once per 120 s; `LANES_NAMES_AUTO=0` in site.conf turns it off) |
2383
2559
  | `lanes-sync.timer` / `.service` | Every 2 min | Server install | `lanes sync` |
2384
2560
  | `lanes-ensure.timer` / `.service` | Every 1 min | Server install | `lanes ensure`: recreate missing device view sessions; rebuild a view an update left once no client is attached |
2385
2561
  | `lanes-gc.timer` / `.service` | Daily | Server install | `lanes gc`: truncate zmx logs over 5 MB, drop stale dynamic resolve files, prune old npm-staged trees — each folder keeps its 3 newest and every older tree `current`, `current.previous`, a view layout, a running daemon's run record or a process of this account uses; none when `/proc` cannot be read ([INSTALL](INSTALL.md#6-updates-optional-operations-and-removal)) |
@@ -2409,6 +2585,11 @@ Clients also get `lanes-helper.service` and `lanes-upload.path`/`.service` (Linu
2409
2585
  | Registry | `lanes register <lane-id> [workspace]` | Add an unregistered session to a workspace without restarting it |
2410
2586
  | Registry | `lanes unregister <lane-id>` | Take a session added that way out of its workspace again (the sidebar's `u`): nothing stops, a running one is listed under Unregistered with the same id and name; refused while tmux cannot check it, and for a lane a repository's `terminals.json` declares (the file to edit is named) |
2411
2587
  | Registry | `lanes rename <lane-id> <new-name>` | Change a lane's display name (not in the usage text) |
2588
+ | Registry | `lanes address list [<board>]` | Every lane's registered address, role and whether its Claude session name is that address ([section 6](#addresses-coordinators-and-the-fleet-admin)) |
2589
+ | Registry | `lanes address set <lane-id> <board>.<alias>` | Give a repository lane another address (the derived one again removes the override); refused while another lane answers to it |
2590
+ | Registry | `lanes address set-coordinator <board> <lane-id>` | Make a declared lane its workspace's coordinator |
2591
+ | Registry | `lanes names sync [--board B] [--write]` | Rename Claude sessions to their addresses (a dry run until `--write`; busy lanes are deferred) |
2592
+ | Registry | `lanes migrate addresses [--write] [--board B]` | Coordinators where none, the fleet admin when unset; backups under `~/.local/state/lanes/migrations/`, validated before and after; idempotent |
2412
2593
  | Registry | `lanes workspaces` | Print the workspace ids (used by the client installer) |
2413
2594
  | Registry | `lanes workspaces add <id> --container <name> --repo <path> [--title T] [--session S] [--write]` | Add a one-repository board to the site catalog (a dry run until `--write`; section 6) |
2414
2595
  | Views | `lanes attach <device> [--client ID] [--mobile] [--viewports N] [--ascii] [--glyphs …] [--theme …] [--color …] [--editor …] [--device-only]` | Attach this terminal to the device's view (create it if needed); record the look — in the owner's profile on a device with an owner, on the device with `--device-only` or without one (section 9) — and the quick-edit editor (always per device) |
@@ -2499,6 +2680,7 @@ Server (`~/.local/state/lanes/`, `$LANES_STATE`):
2499
2680
  | `notify.enrol-seen.json` | The enrolment requests the opt-in push notifier already announced (0600, pruned to the requests on disk); deleting it announces the ones still pending once more |
2500
2681
  | `flags/` | `coexist`, `readonly`, `tmpreap.armed`, `sockets-lost` |
2501
2682
  | `cursor-sync-backups/` | Backups taken by `cursor-sync --write` |
2683
+ | `migrations/<UTC stamp>/` | One directory per `lanes migrate addresses --write` (0700): a copy of each file it changed as it was (`<NN>-<file name>`, 0600) and `receipt.json` (`{v, verb, at, board, files: [{path, backup, change, sha256_before, sha256_after}]}`) |
2502
2684
  | `invariant.json` | `lanes invariant save` |
2503
2685
  | `tmpscan/` | `lanes tmp` plans and `deleted.log` |
2504
2686
  | `studio-host/` | Optional Studio Host: public key, receipt, enrolment record |
@@ -2581,6 +2763,8 @@ From the [RUNBOOK](RUNBOOK.md#never):
2581
2763
  | Nobody can file an access request after the server restarted (`requests-disabled`), although it worked before | Request mode is unpinned and the first request through Serve after the restart carried no tailnet identity (a tagged device) | On the server: `lanes enrol mode request` (after the header check) | [install guide](INSTALL.md#approve-a-request) |
2582
2764
  | Installer: "an older server?" / `lane open`: "registry is newer than this lane" / "site file … newer schema" | Client, server or container contract at different versions | Update the server (`./install.sh --server`), re-run `lanes install-container <name>`, update the client checkout | Section 2 |
2583
2765
  | Client window holds with a countdown | Connection lost or refused | Leave it open; `Enter` retries now | [RUNBOOK](RUNBOOK.md#what-you-see-and-what-it-means) |
2766
+ | `lanes: the display fell behind; dropping stale frames and repainting`, and the screen jumps | The terminal or link takes the view's output slower than it is drawn; out-of-date frames were dropped and the screen repainted | Nothing; a smaller window or a faster link avoids it | [Section 3](#open-a-view) |
2767
+ | `lanes: display output stalled; reconnecting the display.` | The terminal accepted no output for 5 s (`LANES_DISPLAY_STALL_S`) | Nothing; the window reattaches. Repeated on a link that works: raise the limit | [RUNBOOK](RUNBOOK.md#server-as-the-workspace-account) |
2584
2768
  | Wrong colours in Codex's input box | Codex sampled another client's background at start | Use the same light/dark choice on every client | [RUNBOOK](RUNBOOK.md#tuis-and-the-terminals-colours-codexs-dark-box-the-stars) |
2585
2769
 
2586
2770
  ## Appendix A: environment variables
@@ -2615,12 +2799,17 @@ Server and views:
2615
2799
  | `LANES_DEVICE` | `libexec/enrol.py` (`lanes invite`) | unset | Recorded as `minted_by.device` of an invite when it is a device name (a claim, not an identity) |
2616
2800
  | `SSH_CLIENT` | `libexec/enrol.py` (`lanes enrol approve\|deny`) | set by sshd | Its address is recorded in the approver `cli[:<device>]@<address>`; `local` without one |
2617
2801
  | `LANES_TESTS_FORCE` | `tests/guards.py` | unset | `1` runs live suites on a busy host (on purpose only) |
2802
+ | `LANES_DISPLAY_BACKLOG_BYTES` | `libexec/attach.py`, passed on by `lanes attach` | `1048576` | Output (bytes) a desktop view may hold for a terminal that is behind; beyond it the oldest part is dropped and the screen repainted. Whole bytes, 131072–268435456 |
2803
+ | `LANES_DISPLAY_STALL_S` | `libexec/attach.py`, passed on by `lanes attach` | `5` | Seconds a terminal may accept no output at all before the view is ended and reconnected. 1–600, up to three decimals |
2618
2804
 
2619
2805
  `LANES_THROTTLE_*` and `LANES_NOTIFY_CONF` set in the installer's environment are rendered into their units only. The
2620
2806
  `LANES_ENROL_*` settings go in a drop-in, `systemctl --user edit lanes-enrold.service`, which a re-install keeps; the
2621
2807
  `LANES_DOCS_*` settings in lanes-docsd's, `systemctl --user edit lanes-docsd.service` (`lanes upload` reads the age
2622
2808
  switch from the same files).
2623
2809
  `LANES_REPO`, `LANES_ZELLIJ` and `LANES_WS` are set by Lanes itself for its units and panes.
2810
+ The two `LANES_DISPLAY_*` limits are read from the environment `lanes attach` runs in on the server, the SSH
2811
+ session's (for example an sshd `SetEnv` line in a `Match User` block for the Lanes account); they apply from a window's
2812
+ next attach. A value that is not a plain number in its range is refused with one line naming it, and the default is used.
2624
2813
 
2625
2814
  Client:
2626
2815