@vibelord/lanes 1.8.0 → 1.9.3

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.
Files changed (61) hide show
  1. package/package.json +1 -1
  2. package/payload/lanes/README.md +29 -11
  3. package/payload/lanes/VERSION +1 -1
  4. package/payload/lanes/bin/lanes +159 -59
  5. package/payload/lanes/bin-rs/BINARIES.json +2 -17
  6. package/payload/lanes/client/lanes-launch +51 -2
  7. package/payload/lanes/container/lane +142 -19
  8. package/payload/lanes/container/lane-mcp +168 -55
  9. package/payload/lanes/container/lane-peerd +6 -6
  10. package/payload/lanes/container/lane-signal +48 -3
  11. package/payload/lanes/container/lane_core.py +1040 -164
  12. package/payload/lanes/container/throttle-pulse +13 -4
  13. package/payload/lanes/docs/AGENTS-lanes.md +15 -7
  14. package/payload/lanes/docs/ARCHITECTURE.md +478 -101
  15. package/payload/lanes/docs/DESIGN.md +7 -2
  16. package/payload/lanes/docs/INSTALL.md +20 -3
  17. package/payload/lanes/docs/PLAN-1.9.1-SIDEBAR-CODEX.md +128 -0
  18. package/payload/lanes/docs/RUNBOOK.md +1428 -107
  19. package/payload/lanes/docs/USERGUIDE.md +488 -86
  20. package/payload/lanes/holders/tmux.sh +3 -3
  21. package/payload/lanes/install/services.py +68 -11
  22. package/payload/lanes/libexec/agent_state.py +2 -5
  23. package/payload/lanes/libexec/attach.py +11 -3
  24. package/payload/lanes/libexec/cursor_sync.py +22 -2
  25. package/payload/lanes/libexec/docsd.py +38 -4
  26. package/payload/lanes/libexec/lanes_lib.py +377 -39
  27. package/payload/lanes/libexec/mdlite.py +43 -3
  28. package/payload/lanes/libexec/notify.py +69 -26
  29. package/payload/lanes/libexec/registrations.py +5 -0
  30. package/payload/lanes/libexec/session_actions.py +114 -27
  31. package/payload/lanes/libexec/sidebar.py +246 -64
  32. package/payload/lanes/libexec/site_hooks.py +65 -0
  33. package/payload/lanes/libexec/statusd.py +139 -189
  34. package/payload/lanes/libexec/studio_host.py +8 -2
  35. package/payload/lanes/libexec/tokens.py +6 -2
  36. package/payload/lanes/libexec/update.py +13 -5
  37. package/payload/lanes/libexec/view.sh +39 -4
  38. package/payload/lanes/libexec/workspace_keys.py +54 -0
  39. package/payload/lanes/site/protocol.py +15 -5
  40. package/payload/lanes/site/relay.py +5 -2
  41. package/payload/lanes/site/server.py +29 -18
  42. package/payload/lanes/systemd/lanes-economy.service +3 -1
  43. package/payload/lanes/tokens/README.md +10 -0
  44. package/payload/lanes/tokens/generate.py +1 -1
  45. package/payload/lanes/web/Caddyfile +9 -2
  46. package/payload/lanes/web/README.md +2410 -95
  47. package/payload/lanes/web/browser.css +2 -0
  48. package/payload/lanes/web/browser.js +18 -6
  49. package/payload/lanes/web/directory.js +1 -1
  50. package/payload/lanes/web/docs.js +23 -0
  51. package/payload/lanes/web/links.js +157 -0
  52. package/payload/lanes/web/manifest.webmanifest +0 -2
  53. package/payload/lanes/web/mobile.css +30 -32
  54. package/payload/lanes/web/mobile.js +286 -227
  55. package/payload/lanes/web/upload.js +65 -22
  56. package/payload/lanes/web/workspace-keys.js +65 -0
  57. package/payload/lanes/zellij/config.kdl +1 -1
  58. package/payload/manifest.json +5 -22
  59. package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +0 -18953
  60. package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-hook +0 -0
  61. package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-terminal +0 -0
@@ -23,7 +23,7 @@ measurements; substitute your account, containers and paths in operational comma
23
23
  | Go to the next lane that needs you | `Tab` in the sidebar opens the next lane in **Needs you** (`Shift-Tab` the previous), cycling from the lane this pane shows — or from the cursor lane when the shown one does not need you; ` nothing needs you` when the section is empty |
24
24
  | Scroll a lane | mouse wheel / tmux copy-mode as before (history lives in the lane, not in the viewer) |
25
25
  | Edit a lane's AGENTS.md, CLAUDE.md or .env.local | `Ctrl-Alt-e`: a floating **Edit** pane runs `lanes edit --focused`, one key picks (`1`–`5`; `q`/`Esc` closes), then `docker exec -it -u coder -w <checkout> <container> ~/.lz/bin/lane-edit <file>` replaces it — the editor runs in the lane's container as uid 1000, the server only checks the paths through `/proc/<init>/root` and copies nothing out ([guide](USERGUIDE.md#quick-edit)). `lanes edit: lane-edit is not installed in <c>` → `lanes install-container <c>`; `lane-edit: no editor on PATH` (exit 127) → the container has none of micro, hx, nvim, vim, vi (Lanes installs none); `container <c> is not running` → nothing to edit until it runs; `no git checkout in or above <dir>` → the lane works outside a checkout. The editor is the device's `lanes attach <device> --editor E` choice |
26
- | Throttle monitor | its own full-size tab, `Throttle` (next to `Host`); it starts when you first open the tab and restarts itself if it exits. It is no longer an entry in every board's sidebar. |
26
+ | Throttle monitor | its own full-size tab, `Throttle` (next to `Host` where site.conf turns the Host tab on: `LANES_HOST_TAB=1`); it starts when you first open the tab and restarts itself if it exits. It is no longer an entry in every board's sidebar. |
27
27
  | Open what an agent published, or upload from a phone | the Docs page, `https://<server>:8443/lanes-docs/`: phone **More → Docs**, the laptop bar's **Docs**, a ⌘/Ctrl-click on the sidebar's ` ↑ uploads · ▤ docs N` strip, or `d` on a lane for its own link; an agent publishes with `~/.lz/bin/lane publish <file>` or `lanes_publish` (section "Docs service"; the [user guide's Docs](USERGUIDE.md#docs)) |
28
28
  | Detach | `Ctrl-Alt-o` then `d` — or just close the window. Nothing on the server stops. |
29
29
 
@@ -68,11 +68,11 @@ on the Mac — record the Zellij and Ghostty versions and the outcome here).
68
68
 
69
69
  Header: the workspace title, then `◆1 ◇2 ▸6 ✓1` in the column-2 glyphs (zeros omitted; `N lanes` without agents;
70
70
  dimmed while the footer warns that status is old). Sections: **Needs you** (◆, ✗, ◇ — most urgent first, then in the
71
- order the lanes entered the section), **Working** (entry order), **Done** (newest entry first), then the workspace's
71
+ order the lanes entered the section), **Working** (entry order), **Done, not seen** (newest entry first), then the workspace's
72
72
  other lanes under its own header. Once any lane of the workspace runs an agent, the Needs you and Working headers are
73
73
  always drawn, `(0)` included (an empty header's glyph is dimmed; a header with lanes says its words in its section's
74
74
  tone in `truecolor` / `256`), so a lane moving between them adds or removes no
75
- header row; Done only while it has a lane; without agents the list is the plain one. A filter flattens the sections
75
+ header row; **Done, not seen** only while it has a lane; without agents the list is the plain one. A filter flattens the sections
76
76
  and keeps column 2. The order key is `agent.stable_since`, never `agent.since` (which restarts on every status change
77
77
  inside a section — cockpit v3 S2, DEF-1811); ties by registry position. A lane moves UP a section at once and DOWN only after the
78
78
  lower word has held for 8 s (leaving Needs you) or 5 s (leaving Working or Done); a lane whose agent signal vanishes
@@ -264,11 +264,15 @@ lanes studio-host re-key --yes after the owner revoked the Host: a new mac
264
264
  client (`<device>: its layout changed and no client is attached: rebuilding it`); with a client, or when zellij does
265
265
  not answer, it keeps running and gets `~/.local/state/lanes/clients/<device>.update-ready` (`… left running, its
266
266
  sidebars offer update ready · reload (r)`). The sidebar looks for that file every 30 s and shows ` update ready ·
267
- reload (r)` in the footer; `r` then runs `lanes rebuild <device>` (the window reconnects). `lanes-ensure.timer`
268
- compares a stamped view again every minute and rebuilds it once its last client has left; a layout that is current
269
- again (after `lanes update --rollback`) drops the file. A view that cannot be rebuilt is named and the run exits 1
270
- (the update records `ensure` failed: run `lanes ensure --if-layout-changed` again); the other views are still done.
271
- A rebuild ends the view's Host tab shell like `lanes rebuild` does; lanes are never touched.
267
+ reload (r)` in the footer; `r` then runs `lanes rebuild <device>` (the window reconnects). A phone's footer says
268
+ ` update ready` alone, because `r` types on its picker (E2, BEY-8667; not yet checked on a device; a tap for it is
269
+ BEY-8675).
270
+ `lanes-ensure.timer` compares a stamped view again every minute and rebuilds it once its last client has left; a
271
+ layout that is current again (after `lanes update --rollback`) drops the file. A view that cannot be rebuilt is
272
+ named and the run exits 1 (the update records `ensure` failed: run `lanes ensure --if-layout-changed` again); the
273
+ other views are still done.
274
+ A rebuild ends the view's Host tab shell (where `LANES_HOST_TAB=1`) like `lanes rebuild` does; lanes are never
275
+ touched. A view built with a Host tab that site.conf has since turned off (BEY-8423) is such a changed layout.
272
276
  - **The view-session lock (DEF-1792):** `~/.local/state/lanes/locks/sessions.lock`. Whatever lists the view sessions
273
277
  and then creates, kills or deletes one holds it from that list to its last zellij call: `lanes ensure` (the whole
274
278
  run), `lanes rebuild` (also the sidebar's `r`), the create of `lanes attach`, `prepare` and `web`, the end
@@ -391,8 +395,9 @@ lanes studio-host re-key --yes after the owner revoked the Host: a new mac
391
395
  terminal, the supervisor asks Zellij for a full repaint: the client's size goes to one row less and, 0.1 s later,
392
396
  back (Zellij 0.45.1 repaints only on a size it has not seen; with no gap between the two it repaints nothing). At
393
397
  most one repaint a second. The panes are one row shorter for that 0.1 s, so a lane's program also sees a resize.
394
- The first fall-behind of a session prints `lanes: the display fell behind; dropping stale frames and repainting`,
395
- and the end of the session sums up the count and the dropped size. Nothing reconnects (BEY-6844).
398
+ The first fall-behind of a session prints `lanes: the display fell behind; dropping stale frames and repainting`
399
+ right after the first cut the terminal took whole (a refused or partial cut postpones the repaint, and the notice
400
+ with it; BEY-7309), and the end of the session sums up the count and the dropped size. Nothing reconnects (BEY-6844).
396
401
  - **Stall (a hung terminal).** A terminal that accepts no byte at all for 5 s (`LANES_DISPLAY_STALL_S`) while output
397
402
  waits ends only that client (TERM, then KILL after 1 s if needed); the supervisor prints `lanes: display output
398
403
  stalled; reconnecting the display.`, exits 1, and `lanes-launch` reconnects to the existing view (BEY-6844: progress,
@@ -411,7 +416,8 @@ lanes studio-host re-key --yes after the owner revoked the Host: a new mac
411
416
  limit` runs a server older than this fix. This guard covers desktop SSH attachments; Zellij's browser transport
412
417
  does not use it. Already attached desktops pick it up on their next attachment.
413
418
  - **A view's layout looks wrong:** `lanes rebuild mac`. Views are disposable; agents are untouched; the client
414
- reconnects. Rebuilding also ends that view's Host tab shell, so prefer a display reconnect for a frozen client.
419
+ reconnects. Rebuilding also ends that view's Host tab shell (where `LANES_HOST_TAB=1`), so prefer a display
420
+ reconnect for a frozen client.
415
421
  - **A lane was added/renamed/removed in a repo's `.vscode/terminals.json`:** nothing to do. `lanes-sync.timer`
416
422
  re-reads registries every 2 minutes and the sidebar follows. The zellij layout is never edited live. A sync that
417
423
  finds nothing new leaves `registry.json` (and its `generated_at`) untouched and only records the time in
@@ -521,12 +527,12 @@ lanes studio-host re-key --yes after the owner revoked the Host: a new mac
521
527
  Esc cancels` (phone: `Tap Cancel`) > the filter ` /abc · 3 matches` > the health banner > the version note
522
528
  ` server 1.2.0 · view 1.1.0 — press ?` (cockpit v3 V2: `Sidebar.version_note`, while `current/VERSION` — re-read every
523
529
  30 s by `recheck_version`, never per tick — differs from the VERSION of the tree the sidebar runs; ` — ?` at 36
524
- columns; not while an update is ready, whose rung says what to do) > ` ⚠ registry: …` > the last
525
- message > the undo offer ` Unregistered ‘name’ · z undo` (`Sidebar.undo`, 10 s after `u`: `UNDO_S`,
526
- `Sidebar.expire_undo` on the tick) > ` update ready · reload (r)` (W9 U6: an update changed this view's layout while
527
- it was attached — `clients/<device>.update-ready`, looked at once per `UPDATE_POLL` 30 s; `r` rebuilds the view; desktop
528
- and phone) > the legend ` ⏎ open · / find · x close · ? keys` (phone: ` Swipe to scroll ·
529
- Tap to open`). The last
530
+ columns; on the phone no tail since E2; not while an update is ready, whose rung says what to do) >
531
+ ` ⚠ registry: …` > the last message > the undo offer ` Unregistered ‘name’ · z undo` (`Sidebar.undo`, 10 s after
532
+ `u`: `UNDO_S`, `Sidebar.expire_undo` on the tick) > ` update ready · reload (r)` (W9 U6: an update changed this
533
+ view's layout while it was attached — `clients/<device>.update-ready`, looked at once per `UPDATE_POLL` 30 s; `r`
534
+ rebuilds the view; on the phone ` update ready` alone since E2) > the legend ` ⏎ open · / find · x close · ? keys`
535
+ (phone: ` Swipe to scroll · Tap to open`). The last
530
536
  message lasts 3 s (`MESSAGE_S`, measured on the 1 s tick: `Sidebar.expire_message`) or until the next action begins
531
537
  (`Sidebar.begin_action`: open, `x`/`×`, `R`, `P`, `a`/`+`, `u`, `z`, `p`, `h`, `H`, `o`, `i`, `/`, `U`, `+`, `r`, `?`, `Tab`, a chord) — never just until
532
538
  a key: a cursor move, typing in a field, `Esc`, a focus report, the theme's OSC 11 answer, a wheel tick or a mouse
@@ -646,7 +652,11 @@ running. `views/<device>/visibility.json` is only a five-second observer hint: u
646
652
  For a sidebar that refreshes too often, inspect `sidebar-status/@directory.json`, the shared directory every
647
653
  sidebar reads: `statusd` rewrites it only when a rendered lane fact, a session listing or a fleet fact changes,
648
654
  never for a sample time or process metadata alone, and a sidebar repaints only when its own board's view changed
649
- apart from the sample times (BEY-6933, Lanes 2.0 C7). A fleet block marked stale on that source while statusd
655
+ apart from the sample times (BEY-6933, Lanes 2.0 C7). A sidebar finds a rewrite with one stat of the file per tick:
656
+ `statusd` stamps every projection it writes (the directory and the board files) with a publish stamp as its mtime,
657
+ `max(now_ns, last + 1)` per file, taken from the file's own mtime after a restart, and the sidebar compares the file's
658
+ `(inode, mtime_ns, size)`. Two publishes inside one clock tick are therefore both painted, and a projection's mtime is
659
+ its last publish, never a heartbeat (BEY-7606). A fleet block marked stale on that source while statusd
650
660
  runs means statusd stopped publishing payloads: the health line's `status_at` stopped moving
651
661
  (`journalctl --user -u lanes-statusd | grep cycle`). Without the directory a sidebar reads
652
662
  `sidebar-status/<board>.json`, which `statusd` updates when that board's rows, shared fleet facts or cross-board
@@ -682,7 +692,8 @@ fails first. A question that got no answer is never published as "the lane is go
682
692
  ```
683
693
  lanes pressure memory / io / cpu pressure, swap, load, per-container memory (current / max / RAM-backed
684
694
  shmem) and /tmp fill. Plain files + statvfs: safe on a thrashing host. Exit 1 unless level ok.
685
- cat ~/.local/state/lanes/health what statusd wrote last; at= and status_at= are epochs — compare with `date +%s`
695
+ cat ~/.local/state/lanes/health what statusd wrote last; at= and status_at= are epochs — compare with `date +%s`;
696
+ reason= is the figure that set the level (memory, io, load; - while ok)
686
697
  lanes doctor every external call is bounded; "N shown with their last known state" = blind, not dead
687
698
  `preview renderer:` pinned glow | system glow (<path>) | less -R — looked up on the view
688
699
  server's PATH, the one the Ctrl-Alt-m pane sees, never your shell's
@@ -1472,9 +1483,14 @@ lands where, and how to take it back:
1472
1483
  (`CLAUDECODE`, `CLAUDE_CODE_*`, `ANTHROPIC_*`) to later sessions (DEF-1559, DEF-1802); the new session gets its
1473
1484
  own identity through `-e`, as the canonical recipe gives it. Check a board's shell server with
1474
1485
  `tmux -L lanes-shells-<board> show-environment -g` in the container.
1475
- - `lanes_send` types into a lane's active pane: printable text, then Enter half a second later as its own keystroke
1476
- (DEF-1803), never a control key, and not while the lane's agent is working or waiting for an approval unless the
1477
- agent passes `force`. When the Enter alone fails, the answer says the text is waiting at the prompt.
1486
+ - `lanes_send` types into the pane that holds the lane's agent, in whichever window of the session it is (BEY-8655; a
1487
+ lane without an agent: its active pane): printable text, then Enter half a second later as its own keystroke
1488
+ (DEF-1803), never a control key, not while the lane's agent is working unless the agent passes `force`, and never
1489
+ while it waits for an approval, `force` or not (BEY-7538: an answer typed into that prompt is a person's). For
1490
+ Claude Code and Codex it then reads the agent's screen and presses Enter once more only while the composer still
1491
+ holds exactly the text; its answer's `submitted` says which (`lane send` prints it on stderr). It is a typing tool
1492
+ that names its lane, never a message's delivery. When the Enter alone fails, the answer says the text is waiting
1493
+ at the prompt.
1478
1494
  - `lanes_signal` writes the agent's own hook sidecar through `lane-signal` (status, and an optional note shown as the
1479
1495
  lane's task line). The report stands until the agent's next tool call, prompt or permission prompt; the end of
1480
1496
  its turn keeps it unless it is `working` (DEF-1801). `cat ~/.lz/state/hooks/<lane id>.json` shows it: `event`
@@ -1484,9 +1500,10 @@ lands where, and how to take it back:
1484
1500
  about 5 s and answers in `<id>.receipt.json` beside it ("Docs service", "Publish pick-up"). `lanes_status` shows the
1485
1501
  newest receipt as `published`. The file is read by the host, never sent by the agent.
1486
1502
  - `lanes_message` (and `lane message` in a lane's shell) writes a message into the recipient lane's inbox,
1487
- `~/.lz/state/inbox/<lane id>/<id>.json` with its receipt `<id>.receipt.json`, and types it, queues it with Codex or
1488
- Throttle, or leaves it waiting ("Messages: inboxes, receipts and the log" below); `lanes_message_ack` takes the text
1489
- out of a message of the agent's own inbox.
1503
+ `~/.lz/state/inbox/<lane id>/<id>.json` with its receipt `<id>.receipt.json`, and queues it with Codex or
1504
+ Throttle, or leaves it waiting there for the lane's agent ("Messages: inboxes, receipts and the log" below) — never
1505
+ typed into a terminal (BEY-7538); `lanes_message_ack` takes the text out of a message of the agent's own inbox and
1506
+ answers it (`text`) on that one call, never again (BEY-8673 D).
1490
1507
  - Nothing an agent does ends, interrupts or attaches a lane, uploads a file, runs `lanes sync`, `lanes gc` or
1491
1508
  `lanes ensure`, renames a tmux session, or touches a session added with `lanes register` (`registered-sessions.json`
1492
1509
  on the host).
@@ -1496,6 +1513,23 @@ lands where, and how to take it back:
1496
1513
  - From the host, a declared lane leaves its file through the same editor: `session_actions.unregister_lane(<id>)`
1497
1514
  (the sidebar's `u` and `lanes unregister <id>` on a declared lane, which then start / run `lanes sync`) refuses a
1498
1515
  symbolic link in the container's home, the last terminal and an adopted session with the codes the tool uses.
1516
+ - One writer at a time, never a lost lane (BEY-7435). Every writer of a terminals.json — these tools, and on the host
1517
+ the sidebar's `P` and `u`, `lanes unregister`, `lanes register` and `lanes cursor-sync --write` — writes through
1518
+ `lane_core.update_terminals`: an flock on `.terminals.json.lock` beside the file (container and host share it through
1519
+ the home volume; it exists only while a writer holds it, so `git status` never shows it), the file re-read under the
1520
+ lock, only that writer's change applied to it, then temp file, fsync, rename and a directory fsync. A write that would
1521
+ make a row or binding vanish that it does not remove itself is refused — `registry_row_vanished` from a tool,
1522
+ `lanes: refused: '<name>' (<id>) would vanish …` on the host — naming it, and nothing is written; running it again
1523
+ is safe. A lane whose row was lost while its binding survived (its session listed as unregistered, `dangling_binding`
1524
+ on that row in `status.json`, `✗ binding without board row` in `lanes doctor`) is repaired with `lanes register
1525
+ <session id or the lane id doctor names>` on the host, or `lanes_register` on that session in the container: the row
1526
+ comes back with the same id and tmux target (`repaired_from_binding`); it refuses a binding whose recorded id is not
1527
+ the one its name gives (doctor then says to put the row back by hand) and a session that is not running. Until then
1528
+ `lanes cursor-sync --write` refuses that file (its rewrite would drop the binding), and the sidebar's `P` on the
1529
+ session names the repair instead. A folder this account cannot write in is `source_unwritable`. Known exceptions,
1530
+ BEY-7435 follow-ups, still write without the lock: the Rust native `lanes unregister` and `lanes cursor-sync` when
1531
+ routed native (`flags/native.client`, `LANES_RS_*`), `scripts/propose-terminal-annotations.py --write`, and a
1532
+ container on a lane-mcp from before the lock until `lanes install-container` (or the 1.8.1 update) reinstalls it.
1499
1533
 
1500
1534
  ### Troubleshooting lane-mcp
1501
1535
 
@@ -1508,9 +1542,15 @@ lands where, and how to take it back:
1508
1542
  | A write answers `not_in_container` | The lane belongs to another container. Each container's `lane-mcp` sees only its own lanes | Ask a person, or the agent in that container |
1509
1543
  | A write answered success but the boards do not show it after 15 s | `lanes sync` refused the board (`lanes doctor` shows board errors), or the edited file is not one the registry names, which hot sync does not watch | `lanes doctor` on the host; the 2-minute `lanes-sync.timer` retries. `git diff` the terminals.json in the container to see the edit |
1510
1544
  | `lanes_send` answered `tmux_failed` with `changed` | The text was typed but its Enter failed: it waits at the target's prompt | A person presses Enter in that lane, or clears the line |
1511
- | `lanes_message` answers `recipient_busy` | The lane's agent is working, delegating or waiting for an approval, its pane shows output, older messages wait in its inbox (they are typed first), another writer held its dispatch lock for 5 s, or no adapter reaches it from here (a named Claude session from a non-Claude sender, a Codex thread without `codex` on PATH) | Pass `queue: true`: it waits in the lane's inbox and `lanes-statusd` types it when the lane is next idle with no terminal attached ("Messages: inboxes, receipts and the log") |
1545
+ | `lanes_send` answered `not_submitted` (or `lane send` exited 1 saying two Enters did not submit it) | The agent's composer still held the text after the Enter and one more (BEY-8655); nothing more is pressed | A person reads the lane (`lanes_capture`) and presses Enter there, or clears the text |
1546
+ | `lanes_send` answered `agent_pane_not_found` | The lane is observed running an agent (its hook or the host's row), but no pane of its session holds a harness process: nothing was typed, since a shell would run the text | `lanes_status` and `lanes_capture` show the lane; a person starts its agent again |
1547
+ | `lanes_send` answered `agent_pane_ambiguous` | Several panes of the lane's session run an agent, none is the observed one and none is the active pane | A person closes the extra agent, or makes the agent's pane the active one |
1548
+ | `lanes_send` answered `agent_needs_approval` with `force: true` | The lane waits for an approval; since BEY-7538 no tool types into such a lane, `force` included | A person answers the prompt at the lane |
1549
+ | `lanes_message` answers `transport_never_types` | The lane has no way in but its keyboard (no agent, or an agent neither `codex queue` nor the Throttle bus reaches), and a message never types into a terminal (BEY-7538) | Pass `queue: true`: it waits in the lane's inbox until its agent reads it (`lanes_status` `inbox`, `~/.lz/bin/lane inbox`; the boards' `✉`) |
1550
+ | `lanes_message` answers `recipient_busy` | No adapter reaches the lane from here (a named Claude session from a non-Claude sender, a Codex thread without `codex` on PATH) | Pass `queue: true`: it waits in the lane's inbox until its agent reads it ("Messages: inboxes, receipts and the log") |
1512
1551
  | `lanes_message` answers `delivered_by: unknown` | An adapter may have taken it and its answer never came: `codex queue` timed out or exited non-zero, or Throttle's answer was lost after the request went out (`not_confirmed` says which) | Do not send it again. Check the recipient (`lanes_capture`, Codex's thread): if it arrived, the recipient acknowledges it; if it did not, a person runs `~/.lz/bin/lane inbox retry <id> --duplicate-risk --lane <lane id>` — it may then arrive twice |
1513
1552
  | `lanes_message` answers `handle_ambiguous` or `handle_unavailable` for a Codex lane | Its hooks recorded no thread and its app-server names several threads at the lane's folder, or cannot be asked | Pass `queue: true`; on the host, `lanes hooks install --agent codex --container <name> --write` lets the lane's hooks record its thread |
1553
+ | A message to a Codex lane was answered by another lane's agent (before the BEY-8641 repair) | The lane's hook record was written by Codex's shared daemon (`codex app-server`), whose environment holds the lane that started it: `~/.lz/state/hooks/<lane>.json` names the daemon's pid | Install the container tools that hold the repair; then the daemon's hooks write nothing and such a record is passed over. To stop it at its source, start the daemon from an environment without `LANE_ID`, `LANE_WS`, `TMUX` and `TMUX_PANE` |
1514
1554
  | Agents keep being refused | `grep refused= ~/.lz/s/logs/lane-mcp.log` lists every refusal with its code | Each refusal's `human` says what a person does instead |
1515
1555
 
1516
1556
  ### Protocol smoke
@@ -1541,26 +1581,73 @@ order). Everything lives in the recipient's container, under the container user'
1541
1581
  | Path | What | Written by |
1542
1582
  | --- | --- | --- |
1543
1583
  | `<lane id>/<id>.json` (0600; directories 0700) | the message, DM-LANES-MESSAGE `{v, id, from, from_handle, to, at, text, ttl_s}` (+ `origin`, `attempt` `{op, adapter, at, outcome, recipient}` when `codex queue` or the Throttle bus was asked, `retry` after a person's retry) — `text` removed once the recipient acknowledges it (`acked` added) or its ttl passes | `lane_core.message` (`lanes_message`, `lane message`), `lanes message` on the server |
1544
- | `<lane id>/<id>.receipt.json` (0600) | DM-LANES-MESSAGE-RECEIPT `{v, id, to, delivered_by, expected_within_s, at}` (+ `cleared` once the record holds no text): `peer_socket`, `codex_queue`, `throttle_turn`, `typed`, `queued` (waiting), `inbox` (the recipient took it itself), `expired`, `unknown` (held: an adapter may have taken it) | the sender; `lanes-statusd` when it types a waiting message or its ttl passes; the ack; `lane inbox retry` |
1545
- | `../dispatch/<lane id>.lock` (0600; `~/.lz/state/dispatch/` 0700) | DM-LANES-DISPATCH-LOCK: the lane's one native-input authority — an exclusive `flock`, never any content | taken (never written) by every writer of the lane's pane: `lane message`, `lanes_message`, `lane-peerd`, `lanes_send`, `lane send`, and `lanes-statusd` through `/proc/<init>/root` |
1584
+ | `<lane id>/<id>.receipt.json` (0600) | DM-LANES-MESSAGE-RECEIPT `{v, id, to, delivered_by, expected_within_s, at}` (+ `cleared` once the record holds no text): `peer_socket`, `codex_queue`, `throttle_turn`, `queued` (waiting for the lane's agent to read it), `inbox` (the recipient took it itself), `expired`, `unknown` (held: an adapter may have taken it); `typed` only on a message from before BEY-7538 (2026-11-08), when a message could still be typed into a lane | the sender; `lanes-statusd` when a waiting message's ttl passes; the ack; `lane inbox retry` |
1585
+ | `../dispatch/<lane id>.lock` (0600; `~/.lz/state/dispatch/` 0700) | DM-LANES-DISPATCH-LOCK: the lane's one native-input authority — an exclusive `flock`, never any content | taken (never written) by every writer of the lane's pane, each a person's typing: `lanes_send`, `lane send`, a guest's `tmux_write` and the host's automatic `/rename` through `/proc/<init>/root`; never by a message (BEY-7538) |
1546
1586
  | `log` (+ `log.1` past 1 MiB, 0600) | DM-LANES-MESSAGE-LOG, one line per outcome: `<at> <from> <to> <id> <bytes> <outcome>` (`refused:<code>` with id `-` for a refusal) — never a text | everything above |
1547
1587
 
1548
1588
  Reading them, in the container as the lane user: `~/.lz/bin/lane inbox [--json]` (this lane's messages, the text
1549
- until acknowledged: every message not yet settled, and the newest 512 settled ones), `~/.lz/bin/lane inbox ack <id>`,
1550
- `tail ~/.lz/state/inbox/log`. A held message (receipt `unknown`) is never sent again by Lanes: no other adapter, no
1551
- drain, after any restart. A person who checked that it did not arrive hands it back with `~/.lz/bin/lane inbox retry
1552
- <id> --duplicate-risk [--lane <lane id>]` (receipt `queued`, the record's `retry`, log `retried`): it is typed when
1553
- the lane is next idle — and may arrive twice if it had arrived after all. Without `--duplicate-risk` the verb refuses
1589
+ until acknowledged: every message not yet settled, and the newest 512 settled ones; a message an adapter already handed
1590
+ to the agent — `codex_queue`, `peer_socket`, `throttle_turn`, the old `typed` — is a history line without its words,
1591
+ naming the adapter and, for `codex_queue`, the thread, while `--json` keeps every text and adds each row's `state`:
1592
+ `waiting`, `expired`, `held`, `on_its_way`, `delivered` or `settled`, and `thread` for `codex_queue`; BEY-8673),
1593
+ `~/.lz/bin/lane inbox ack <id>` (takes the message: prints its `text` on the one call that removes it; a second ack
1594
+ prints no text and `changed: nothing: acknowledged already`), `tail ~/.lz/state/inbox/log`. A lane's agent finds a waiting message the same way (`lanes_status` `inbox`,
1595
+ `lanes_list` `inbox_pending`): nothing types it into the lane — since BEY-7538 (2026-11-08) a message never types into
1596
+ a terminal, and a lane only its keyboard reaches answers `transport_never_types` unless the sender queues. A held
1597
+ message (receipt `unknown`) is never sent again by Lanes: no other adapter, nothing on the host, after any restart. A
1598
+ person who checked that it did not arrive hands it back with `~/.lz/bin/lane inbox retry
1599
+ <id> --duplicate-risk [--lane <lane id>]` (receipt `queued`, the record's `retry`, log `retried`): it waits in the
1600
+ inbox again for the lane's agent — and may arrive twice if it had arrived after all. Without `--duplicate-risk` the verb refuses
1554
1601
  (`duplicate_risk`); a message that is not held, has lost its text or is past its ttl is `not_held`. Who holds a
1555
- lane's dispatch lock: `fuser -v ~/.lz/state/dispatch/<lane id>.lock` in the container; a writer waits at most 5 s and
1556
- then refuses `recipient_busy` (or queues), so a stuck holder only delays typing into that one lane. From the server: `lanes message
1602
+ lane's dispatch lock: `fuser -v ~/.lz/state/dispatch/<lane id>.lock` in the container; a typing writer waits at most
1603
+ 5 s and then refuses `recipient_busy`, so a stuck holder only delays typing into that one lane. From the server: `lanes message
1557
1604
  <lane-id|@address> "<text>"` sends a person's message (`--from <login>`; `host:<the account>` without it) — written
1558
- through the container's home volume, typed at once when the lane is idle at its prompt, else left waiting; the
1559
- sidebar's `m` runs it. `lanes-statusd` publishes `inbox: {pending}` on each lane row (the sidebar's `✉`), types at
1560
- most two waiting messages per pass between cycles — only on an `ok` host, only into a lane observed quiet and idle with
1561
- no terminal attached (a Claude lane only while its own session file says `idle`; a shell only at its prompt, as a
1562
- `# …` comment line), each message at most once a minute — and takes the text out of messages whose ttl passed. Its
1563
- journal says the lane, the id and the outcome: `journalctl --user -u lanes-statusd | grep ' inbox '`.
1605
+ through the container's home volume into the lane's inbox, where it waits for the lane's agent (`queued — it waits in
1606
+ the lane's inbox until its agent reads it`); the sidebar's `m` runs it. `lanes-statusd` publishes `inbox: {pending}`
1607
+ on each lane row (the sidebar's `✉`), types none of them, and between cycles — only on an `ok` host — takes the text
1608
+ out of messages whose ttl passed. Its journal says the lane, the id and the outcome:
1609
+ `journalctl --user -u lanes-statusd | grep ' inbox '`.
1610
+
1611
+ **A Codex lane is queued a pointer, never the text (BEY-8673 mechanism D, 2026-11-20).** `codex queue` can serve a
1612
+ queued turn again after the lane already took the message from its inbox, and a lane that followed the replayed text
1613
+ did the work twice. So the Codex adapter's `--message` is ENVELOPE_POINTER (`lane_core.envelope_pointer`):
1614
+ `` [lanes message <id> from @<sender> (<handle>) <hh:mm>Z] Take its text with `~/.lz/bin/lane inbox ack <id>` (it
1615
+ answers the text once; lanes_message_ack <id> does too in a current session). If you have taken <id> already, there is
1616
+ nothing to do. `` (a person's and a Claude peer's forms name their sender as ENVELOPE_PERSON and ENVELOPE_PEER do). The
1617
+ record keeps its text until that ack; the receipt is `codex_queue` as before; a held (`unknown`) message and its retry
1618
+ behave as before; every other adapter still carries the whole envelope. A replayed pointer leads to a second ack,
1619
+ which answers no text.
1620
+
1621
+ *Rollout hazard and its guard.* Each session's `lane-mcp` imports `lane_core` once, at its start, so a `lane-mcp`
1622
+ started before the install that carries this change runs the OLD `message_ack`: it removes the text and answers none.
1623
+ A pointer acked through that tool would lose the message. The pointer therefore names the per-call CLI FIRST —
1624
+ `~/.lz/bin/lane inbox ack <id>` runs the installed `lane_core` on every call, so it always answers the text — and
1625
+ `lanes_message_ack` second, for a current session. To see whether a lane's `lane-mcp` predates the install, compare
1626
+ its start (`ps -o lstart= -p <pid>` of `lane-mcp`) with the time the install wrote `~/.lz/bin/lane_core.py`
1627
+ (`stat -c %y ~/.lz/bin/lane_core.py`); restarting the agent's session starts a current one.
1628
+
1629
+ *Known limit.* A lane that reads its inbox file (or `lane inbox --json`) without acking and is then served the pointer
1630
+ gets the text once more: the pointer names the id, so the lane can tell it has seen it, but nothing mechanical stops
1631
+ it. Agents take a message with `~/.lz/bin/lane inbox ack <id>` or `lanes_message_ack <id>` and never read the inbox
1632
+ file.
1633
+
1634
+ **Outboxes (DM-LANES-OUTBOX, Linear FLE-289, BEY-8446).** Exactly two addresses can name a lane of ANOTHER container —
1635
+ `@fleet` when the fleet admin runs elsewhere, `@<board>` whose coordinator does (any other address of another container
1636
+ is still `unknown_address`) — and such a message is not refused `not_in_container` any more: it waits in the
1637
+ SENDER'S outbox, `~/.lz/state/outbox/<sender lane>/<id>.json` (+ `<id>.receipt.json`, receipt `outbox`,
1638
+ `expected_within_s` `bridge`), the same record shape, one log line `outbox`. The routing rule holds (a lane that is no
1639
+ coordinator is refused `use_coordinator` for a remote fleet admin). The site's bridge — a host process that reaches
1640
+ every container of the site (Fleet's; Lanes itself carries none between guests) — runs `~/.lz/bin/lane outbox pending
1641
+ --json` in each container (expired records are settled first: text removed, receipt `expired`), writes each record
1642
+ into the recipient's container with `~/.lz/bin/lane inbox deliver --from-container <sender container> < record.json`
1643
+ there (a new inbox id, the sender's address and handle kept, the ttl left, `origin` `{kind: bridge, container, id,
1644
+ at}`; `to_lane`, the recipient's lane id the sender's container knew, is resolved first, so a coordinator with an
1645
+ address override is reached; a `from` that is a lane of the recipient's own container is refused `from_is_local`;
1646
+ idempotent on that origin; receipt `queued`, log `queued`) and settles the outbox record with `~/.lz/bin/lane
1647
+ outbox settle <lane> <id> --bridged <container>:<id>` (text removed, `bridged` on the record, receipt `bridged` and
1648
+ `cleared`, log `bridged`) or `--failed <why>` (the receipt's `attempt`; it waits for the next pass). `lane outbox
1649
+ [--json]` shows a lane its own. The recipient finds a bridged message as any queued one and replies to the sender's
1650
+ address, which crosses back the same way.
1564
1651
 
1565
1652
  The switch: the Throttle bus adapter is off unless the sending lane's environment has `LANES_BUS=throttle`. It then
1566
1653
  posts `{to, from, text, ttl_s}` (`from` the sender's lane trace) to Throttle's CONTROL listener,
@@ -1572,7 +1659,7 @@ bus ships with the Throttle lane's release: leave it off until then; with it on
1572
1659
  `bus_unavailable` (or waits, with `queue`). A request whose answer was lost after it went out is `unknown`, never
1573
1660
  re-sent.
1574
1661
  Undo: none needed — deleting `~/.lz/state/inbox/` loses the waiting messages and the receipts, nothing else; a
1575
- message already typed or queued with Codex stays where it went.
1662
+ message already queued with Codex or Throttle stays where it went.
1576
1663
 
1577
1664
  ## Claude peers
1578
1665
 
@@ -1589,9 +1676,18 @@ other sender write into a Claude session's own messaging socket. ARCHITECTURE "A
1589
1676
  | `~/.claude/sessions/<pid>.json` | the virtual peer's entry: the keys of a real Claude Code 2.1.310 entry, `pid` the lane's agent process (a shell lane: its pane's process), `name` its address, `messagingSocketPath` its socket | `lane-peerd` (only its own: a file whose socket is elsewhere is never touched) |
1590
1677
 
1591
1678
  **Running.** `lanes-statusd` starts the loop where `~/.lz/bin/lane-peerd` is installed and `peers.json` is older
1592
- than 90 s or absent — `docker exec -d -u 1000 -e HOME=/home/coder <container> tmux -L lanes-peers new -d -s peerd
1593
- ~/.lz/bin/lane-peerd --loop`, at most once per 10 min per container, two containers per pass, never on a critical
1594
- host — and journals it: `journalctl --user -u lanes-statusd | grep 'lane peerd'`. Its own journal (lane ids, message
1679
+ than 90 s or absent — `docker exec -d -u 1000 -e HOME=/home/coder <container> tmux -L lanes-peers -f /dev/null new -d
1680
+ -s peerd-next \; kill-session -a -t =peerd-next \; rename-session -t =peerd-next peerd \; respawn-pane -k -t =peerd:
1681
+ ~/.lz/bin/lane-peerd --loop --lanes agents` (one tmux command sequence, no shell), at most once per 10 min per
1682
+ container, two containers per pass, never on a critical host — and journals it: `journalctl --user -u lanes-statusd |
1683
+ grep 'lane peerd'`. The sequence ends every other session of the `lanes-peers` server before the loop starts in
1684
+ `peerd` (BEY-8660). A rearm runs only while `peers.json` is stale, so no working loop is ended. The home's
1685
+ `~/.tmux.conf` keeps every pane alive (`remain-on-exit on` and a `pane-died` hook that respawns `bash -l`), so a
1686
+ stopped loop left its `peerd` session holding a bash, and the earlier `new -s peerd` was refused as a duplicate session
1687
+ from then on: on coder-dev-work the loop did not run from 10 November until Fleet started one by hand on 19 November
1688
+ (in a second session, `peerd-20261119`, which the next rearm also ends). A server the sequence starts loads no
1689
+ configuration (`-f /dev/null`), so there a stopped loop's session ends with it. If a stuck loop still holds its lock
1690
+ when the new one starts, the new one says "another lane-peerd runs here" and the next pass, 10 min later, starts it. Its own journal (lane ids, message
1595
1691
  ids, codes and adapters; never a text) is its tmux pane: `docker exec -u 1000 <container> tmux -L lanes-peers
1596
1692
  capture-pane -p -t peerd`. A look without serving: `~/.lz/bin/lane-peerd --once` in the container prints the document
1597
1693
  one cycle would stand on and removes what it registered again (it refuses while a loop holds the lock). Turning it
@@ -1606,8 +1702,14 @@ earlier one left.
1606
1702
 
1607
1703
  **The pin.** `lane_core.PEER_PIN` (`{"claude": "2.1.310", "peerProtocol": 1}`, the same as
1608
1704
  `lanes/tests/unit/fixtures/peer/pin.json`) is what Lanes measured on 2026-10-25 (plan "Measured 2026-10-25 — M9 and
1609
- M10"): a line written to a real session whose session file names a newer Claude Code or another `peerProtocol` is
1610
- refused `peer_pin_failed` and the next adapter serves (the inbox, with `queue`). Virtual peers carry the pin's version
1705
+ M10"), re-measured unchanged on Claude Code 2.1.327 on 2026-11-19 (BEY-8660: the session file gained one key,
1706
+ `asksForConvertedSkills`; the frames are `frames-measured-2026-11-19.jsonl`, `inbound-frame-2.1.327.line` and
1707
+ `session-entry-2.1.327.json`). The pin admits the measured minor line, not one patch: a line is written to a real
1708
+ session whose file declares `peerProtocol` 1 and a Claude Code of the 2.1 line (2.1.311 and every later 2.1.x pass);
1709
+ one that declares another `peerProtocol`, or a newer minor or major line (2.2, 3.0), is refused `peer_pin_failed` and
1710
+ the next adapter serves (the inbox, with `queue`). The pin on one patch (2.1.310 and older only) refused every Claude
1711
+ session from the next Claude Code update on, so a Codex lane's message to a Claude lane waited unread in its inbox
1712
+ from then until 19 November. Virtual peers carry the pin's version
1611
1713
  and protocol and claim no `peerFeatures`: `notify_idle` (a sender's idle subscription) is not honoured — its frame is
1612
1714
  unmeasured. Frames that are not protocol-1 `user` lines (another `msgV`, a `control` frame) are ignored and counted
1613
1715
  in `peers.json` `frames.ignored`.
@@ -1623,7 +1725,8 @@ It compares the entry `lane-peerd` writes with the live session files here and t
1623
1725
  the pin. When it fails, repeat M9 and M10 by hand with a disposable peer (a `sleep` pid, a socket under `/tmp`, a
1624
1726
  session entry for it, one `SendMessage` from a Claude session you own, and one line from a plain client to that
1625
1727
  session's socket — the plan's measured section has the steps and what to record), save the frames redacted of socket
1626
- paths under `lanes/tests/unit/fixtures/peer/`, and only then raise `PEER_PIN` and `pin.json` together.
1728
+ paths under `lanes/tests/unit/fixtures/peer/`, and only then move `PEER_PIN` and `pin.json` together. A Claude Code
1729
+ update within the 2.1 line needs no move; the measurement is still the check after one.
1627
1730
 
1628
1731
  ## Economy projection (opt-in)
1629
1732
 
@@ -1700,7 +1803,7 @@ Settings (environment of the installer — `install/services.py` renders them in
1700
1803
 
1701
1804
  | Variable | Default | Meaning |
1702
1805
  |---|---|---|
1703
- | `LANES_THROTTLE_CONTROL` | `http://127.0.0.1:19181` | control base URL, resolved in the poller's network namespace (see above); `none` sends no request at all (the log fold still runs) |
1806
+ | `LANES_THROTTLE_CONTROL` | `http://127.0.0.1:19181` | control base URL, resolved in the poller's network namespace (see above); `none` sends no request at all (the log fold still runs). Declared once as `LANES_THROTTLE_CONTROL=<url>` in the server's `~/.config/lanes/site.conf` (BEY-6845, "Fleet block and Throttle pulse" below): the installer renders that line into this unit when its environment does not set the variable, judged with the pulse's table and written normalised (the trailing `/` dropped), so the unit and the pulse's `--control` carry one string; a refused line refuses the install, update or enable step — `refused, nothing was changed: site.conf LANES_THROTTLE_CONTROL: <why>` — as `lanes sync` refuses it, and a URL with a user part never reaches a unit file. The environment is an override for this unit alone, held to the same table; `lanes update` carries this unit's value forward only while site.conf has no line naming the key, so an edited line reaches the unit at the next install or update |
1704
1807
  | `LANES_THROTTLE_TOKEN_FILE` | unset | file holding the control bearer (the daemon's `remote_key`, or the local client token `lanes throttle adopt-token` copies). `/status` and `/sessions` are guarded control routes: without it they answer `HTTP 401`, loopback or not — the control port has no loopback exemption (DEF-1930). Never written to `economy.json` or the cursor |
1705
1808
  | `LANES_THROTTLE_CONTAINER` | unset | the container whose home volume holds the daemon's log; the log dir becomes its `/home/coder/.local/share/throttle` (via `containers.json`) |
1706
1809
  | `LANES_THROTTLE_LOG_DIR` | `~/.local/share/throttle` | where `proxy.log` and `proxy.log.<day>` are read (read only); wins over `LANES_THROTTLE_CONTAINER` |
@@ -1737,8 +1840,16 @@ reference follows: "Throttle pulse" for the container side, "Fleet facts" for wh
1737
1840
  no longer knows, or that has no home volume, is skipped by every update with a warning (`WARN install-container <c>
1738
1841
  (skipped: docker has no such container)`; the result stays `ok`): correct or remove the line. `stale` (the pulse's
1739
1842
  `at` more than 90 s old, the bound statusd uses too) means the loop stopped: statusd starts it again within 10
1740
- minutes ("The re-arm" below, in its journal), or run `lanes install-container <c>`. `daemon down (connection
1741
- refused)` is the daemon, not the pulse.
1843
+ minutes ("The re-arm" below, in its journal), or run `lanes install-container <c>`. `cannot reach the daemon at
1844
+ <url> (connection refused); set LANES_THROTTLE_CONTROL to a reachable forward` means the pulse's GET never reached
1845
+ a daemon — in a fleet container the control port is not forwarded (only the data planes), so the pulse's loopback
1846
+ default answers nothing; the daemon is NOT known to be down, and the block shows ` ⚙ throttle cannot reach ·
1847
+ <host:port>` with `?` on every provider row (never `down`, never a bar from the kept counts). Put
1848
+ `LANES_THROTTLE_CONTROL=<url>` (a plain `http(s)://host:port` the pulse's container can reach, no user part, no
1849
+ path) into the server's `~/.config/lanes/site.conf`, run `lanes sync` (a refused value — a user part, a path, no
1850
+ port, another scheme — refuses the whole sync naming the key) and restart the pulse (end its session and `lanes
1851
+ install-container <c>`, or wait for statusd's re-arm): every start then carries `--control <url>`, the same at all
1852
+ three sites (DEF-1940). `daemon down (HTTP 503)` is a daemon that answered and refused: the daemon, not the pulse.
1742
1853
  3. **Opt in to money and burn (optional).** `lanes throttle adopt-token <c>` copies the container's own local Throttle
1743
1854
  client token into `~/.lz/throttle-token`; the pulse then reads the guarded `/pools/<pool>/status` ("The token"
1744
1855
  below). Every guarded control route needs that bearer, loopback included (DEF-1930): there is no token-free way to
@@ -1751,6 +1862,17 @@ reference follows: "Throttle pulse" for the container side, "Fleet facts" for wh
1751
1862
  5. **Laptops with a client from before 1.2.0** do not update themselves: their owner runs `npx @vibelord/lanes@1.4.0`
1752
1863
  once. Newer clients ask `lanes hello --client-version` and install 1.4.0 within 6 h of the server running it.
1753
1864
 
1865
+ The site.conf keys the fleet block and the pulse read (all in the server's `~/.config/lanes/site.conf`, plain
1866
+ `KEY=VALUE`, read and never executed — DM-LANES-SITE). The environment never stands in for them, with one declared
1867
+ exception: the economy unit's `LANES_THROTTLE_CONTROL`, which the installer's environment overrides for that unit
1868
+ alone (the economy settings table above); the pulse's `--control` reads site.conf only.
1869
+
1870
+ | Key | Value | Read by |
1871
+ | --- | --- | --- |
1872
+ | `LANES_THROTTLE_CONTAINER` | the container the Throttle daemon runs in (a container name) | `lanes install-container` (starts the pulse there), `lanes doctor`, every update's re-ship, statusd's re-arm |
1873
+ | `LANES_THROTTLE_CONTROL` | the control base URL the pulse polls: `http(s)://host:port`, an optional trailing `/`; no user part, path, query or fragment, no space anywhere (a space around the URL is refused, never dropped: every reader of site.conf drops a line outside the `KEY=VALUE` grammar, so an accepted value is always one they all see); `none`/`off` = no URL declared (BEY-6845) | the pulse's `--control` at all three start sites (bin/lanes `start_pulse`, `statusd.pulse_rearm_argv`, lanes-runtime `PulseRearm`, DEF-1940), each judging the raw last line naming the key; `lanes sync` (refuses a bad value, naming the key); the economy unit's `LANES_THROTTLE_CONTROL` when the installer's environment does not set it (judged and normalised alike; a refused line refuses the install) |
1874
+ | `LANES_FLEET_DASHBOARD_URL` | an https dashboard URL (step 4) | the sidebar's host row link, `lanes doctor` |
1875
+
1754
1876
  The pulse only reads (GET, no redirect) and writes one file; it never changes the daemon. Removing it: stop the loop
1755
1877
  as the user it runs as (`docker exec -u 1000 <c> tmux -L lanes-pulse kill-server`) and delete
1756
1878
  `~/.lz/bin/throttle-pulse`, `~/.lz/state/throttle.json` and `~/.lz/throttle-token` in that container; the block's
@@ -1773,9 +1895,15 @@ install-container <that container>` starts the loop; for any other container it
1773
1895
  **How it runs.** A tmux session `pulse` on the socket `lanes-pulse`, as uid 1000 with `HOME=/home/coder`:
1774
1896
 
1775
1897
  ```sh
1776
- docker exec -d -u 1000 -e HOME=/home/coder <container> tmux -L lanes-pulse new -d -s pulse /home/coder/.lz/bin/throttle-pulse --loop
1898
+ docker exec -d -u 1000 -e HOME=/home/coder <container> tmux -L lanes-pulse new -d -s pulse /home/coder/.lz/bin/throttle-pulse --loop [--control <url>]
1777
1899
  ```
1778
1900
 
1901
+ `--control <url>` is there exactly when the server's site.conf declares `LANES_THROTTLE_CONTROL=<url>` (BEY-6845; the
1902
+ value without its trailing `/`), at every start alike — `lanes install-container`, statusd's re-arm and the
1903
+ lanes-runtime template (DEF-1940). A refused value starts no pulse: `lanes install-container` prints `! throttle pulse:
1904
+ not started in <c> — site.conf LANES_THROTTLE_CONTROL: <why>` (exit 1, after shipping the files) and statusd journals
1905
+ the same key; never the loopback default in its place.
1906
+
1779
1907
  `lanes install-container` asks `tmux -L lanes-pulse has-session -t =pulse` first and starts nothing when the session
1780
1908
  runs (`throttle pulse: already running in …`); a start docker refuses is printed and makes the exit 1, after
1781
1909
  everything else was installed. To restart it after an update, end the session and install again:
@@ -1783,8 +1911,9 @@ everything else was installed. To restart it after an update, end the session an
1783
1911
  <container>`. Its pane holds the journal: `docker exec -u 1000 <container> tmux -L lanes-pulse capture-pane -p -t
1784
1912
  pulse` (one line each time the reason a source failed changes, `ok` when it recovers; never the token).
1785
1913
 
1786
- **What it reads.** Every 10 s, GET only, on `http://127.0.0.1:$LANES_THROTTLE_CONTROL_PORT` (19181 when the
1787
- container's environment does not set it), 3 s timeout, at most 1 MiB per answer, no redirect followed, no proxy:
1914
+ **What it reads.** Every 10 s, GET only, on `--control <url>` (site.conf `LANES_THROTTLE_CONTROL`), else
1915
+ `http://127.0.0.1:$LANES_THROTTLE_CONTROL_PORT` (19181 when the container's environment does not set it), 3 s timeout,
1916
+ at most 1 MiB per answer, no redirect followed, no proxy; the base URL it asked is the document's `control_url`:
1788
1917
 
1789
1918
  | Route | Guarded | Gives |
1790
1919
  |---|---|---|
@@ -1819,11 +1948,15 @@ docker exec -u 1000 -e HOME=/home/coder <container> /home/coder/.lz/bin/throttle
1819
1948
  ```
1820
1949
 
1821
1950
  `{"v": 1, "at", "up", "tokened", "pools": {"claude", "codex", "kimi"}, "overflow": {"claude", "codex", "kimi"},
1822
- "error"}` (the spec §2.1 shape, with W12's kimi pool; DM-LANES-THROTTLE-PULSE). The file is rewritten only when a value changed or 60 s passed, so `at` is a
1951
+ "error", "control_url"}` (the spec §2.1 shape, with W12's kimi pool and BEY-6845's additive `control_url`, the base URL
1952
+ the GETs went to — never a token; DM-LANES-THROTTLE-PULSE). The file is rewritten only when a value changed or 60 s passed, so `at` is a
1823
1953
  heartbeat: an `at` more than 90 s old means the loop stopped (a healthy pulse is read up to about 84 s after its
1824
1954
  `at`: the 60 s heartbeat lands on the next 10 s cycle, DEF-1941). `up: false` with `error` (`connection refused`,
1825
- `timed out`, `HTTP 500`, …) means no open route answered; the pools then keep their last values. Utilizations and
1826
- fractions are 0–1, rounded to three places; resets are epoch seconds.
1955
+ `timed out`, `HTTP 500`, …) means no open route answered; the pools then keep their last values, which every reader
1956
+ shows as unknown (`?`), not as a bar. `connection refused`, `timed out` and `unreachable: …` mean the GET never reached a
1957
+ daemon: the block says ` ⚙ throttle cannot reach · <host:port>` and doctor `cannot reach the daemon at <control_url>
1958
+ (…); set LANES_THROTTLE_CONTROL to a reachable forward` — never `down`, which is kept for a daemon that answered and
1959
+ refused (`HTTP 503`). Utilizations and fractions are 0–1, rounded to three places; resets are epoch seconds.
1827
1960
 
1828
1961
  ## Fleet facts (`fleet` and `throttle` in status.json, W11)
1829
1962
 
@@ -1858,7 +1991,8 @@ shown dim.
1858
1991
 
1859
1992
  **The re-arm (the only spawn this adds).** When the pulse file is older than 90 s (or missing) while the daemon's
1860
1993
  container runs and the host is not `critical`, statusd — between two cycles, never inside one — runs the start command
1861
- of "How it runs" above, byte for byte (DEF-1940), at most once per 10 min and bounded to 10 s, and journals it
1994
+ of "How it runs" above, byte for byte (DEF-1940; `--control <url>` included when site.conf declares it, and nothing at
1995
+ all — journalled with the key — when its value is refused), at most once per 10 min and bounded to 10 s, and journals it
1862
1996
  (`journalctl --user -u lanes-statusd | grep 'throttle pulse'`: the file's age, `re-armed (exit N)` and the argv). It
1863
1997
  starts nothing when `~/.lz/bin/throttle-pulse` is not installed in that container (`lanes install-container <c>` ships
1864
1998
  it), and it never runs on a `critical` host — a pulse that keeps going quiet on a healthy host is a pulse that
@@ -1872,13 +2006,16 @@ shows) and read its stderr.
1872
2006
  same set the sidebar's Needs you section and its OSC 9 use — and one when someone files an enrolment request
1873
2007
  (below). It is the away-from-every-terminal half of the sidebar's OSC 9 ("Title and notifications" above): it reads
1874
2008
  only `~/.local/state/lanes/status.json` (checked every 3 s, re-read when its mtime changes), `registry.json` for
1875
- lane names and `enrol-requests/` — and, when a lane enters needs-you, the presence files below (`clients/`,
1876
- `devices/`, `members/`, `users/`); the one file it writes is `notify.enrol-seen.json` beside them. It never
1877
- touches a lane, a session, a request, a profile or the Throttle daemon.
2009
+ lane names (and, since E4, each lane's workspace title) and `enrol-requests/` — and, when a lane enters needs-you, the
2010
+ presence files below (`clients/`, `devices/`, `members/`, `users/`); the one file it writes is
2011
+ `notify.enrol-seen.json` beside them. It never touches a lane, a session, a request, a profile or the Throttle daemon.
1878
2012
 
1879
2013
  What a push says: `<lane name>: <agent task> — <status>` and, on a second line, `lanes-launch lane <id>` (the
1880
2014
  command that opens that lane from a client). No client registers a URL handler for that command, so a push is
1881
- tappable only when you set `action_url` (below).
2015
+ tappable only when you set `lane_url` or `action_url` (below). With `lane_url` set (E4, BEY-8667), a needs-you push
2016
+ says the first line alone, and its tap and its **Open lane** button open the lane list of that lane's workspace on
2017
+ the phone view `lane_url` names. The topic names no person, so every device subscribed to it, a desk's ntfy client
2018
+ too, gets that same text and tap.
1882
2019
 
1883
2020
  When nothing is sent:
1884
2021
 
@@ -1947,7 +2084,8 @@ that becomes readable switches the pushes on within one tick and a removed one s
1947
2084
  | `topic` | required | `[A-Za-z0-9_-]{1,64}`; on a public server the topic name is the only secret — pick a long random one |
1948
2085
  | `token_file` | unset | a file holding an ntfy access token (sent as a bearer). An unreadable file disables sending rather than sending unauthenticated (or with the token it held before). Keep the token in that file (`chmod 600`), never in `notify.conf` |
1949
2086
  | `quiet_when_device_active_s` | `120` | presence window above; `0` never suppresses — except for the one person present when their profile sets a `notify.quiet_s` of its own |
1950
- | `action_url` | unset | a URL template over `{lane}` (the lane id, URL-quoted), e.g. a page of yours that opens it; becomes the push's tap target and an **Open lane** button. `{doc}` (plan W10 W7) is the docs page of the document a `published` push names, `/lanes-docs/d/<id>` (`https://<server>:8443{doc}` opens it), empty in a needs-you push. The `published` push (plan W10 W4) is sent by the docs service's publish pick-up, not by this unit: same config, same desk-presence rule, `{title: Published, message: <lane name> published a document (<kind>, <size>) + its page, priority 2}`, at most one per lane per minute, never the document's title or name |
2087
+ | `action_url` | unset | a URL template over `{lane}` (the lane id, URL-quoted) and `{doc}`, for documents: set it to `https://<server>:8443{doc}`. It is the tap target of a `published` push, with an **Open document** button, and, while `lane_url` is unset, of a needs-you push, with an **Open lane** button, which then opens the server's root, because `{doc}` is empty there: set `lane_url` for that push. `{doc}` (plan W10 W7) is the docs page of the document a `published` push names, `/lanes-docs/d/<id>` (`https://<server>:8443{doc}` opens it), empty in a needs-you push. The `published` push (plan W10 W4) is sent by the docs service's publish pick-up, not by this unit: same config, same desk-presence rule, `{title: Published, message: <lane name> published a document (<kind>, <size>) + its page, priority 2}`, at most one per lane per minute, never the document's title or name |
2088
+ | `lane_url` | unset | (E4, BEY-8667) the tap target of a needs-you push and its **Open lane** button, in `action_url`'s place: a URL template over `{lane}` and `{ws}`, the title of the lane's workspace in `registry.json`, percent-quoted with nothing kept safe (a space is `%20`); `{ws}` is empty for a lane in no workspace there (an unregistered lane) and for a title that is not a string or holds a lone surrogate. Set it to `https://<server>:8443/<device>-phone?ws={ws}`: the phone page opens that workspace's lane list once and takes the query out of the address ([frontend maintenance](../web/README.md#notification-and-address-links-bey-8667-e4)). Name the view in the path: at `/` the pinned client loses the query. With it set, a needs-you push's text is its first line alone, without `lanes-launch lane <id>`, for every subscriber of the topic. `{ws}` is filled in `action_url` too and is empty in a `published` push, so keep `action_url` for documents. No default: nothing changes until you set it, except where `action_url` already holds `{ws}`, which was sent as written before E4 and now carries the title, or nothing |
1951
2089
 
1952
2090
  Without a valid `url` and `topic` the service only tracks transitions and sends nothing. Turn it on:
1953
2091
 
@@ -1959,7 +2097,8 @@ journalctl --user -u lanes-notify.service # send fail
1959
2097
  ```
1960
2098
 
1961
2099
  **Operator gate.** The unit is installed with the others and enabled by nothing: it sends lane names, agent task
1962
- titles and enrolment requesters' names, logins and device names to the server you configure. Not yet run against any
2100
+ titles and enrolment requesters' names, logins and device names to the server you configure, and, since E4
2101
+ (BEY-8667), workspace titles in the tap address when `lane_url` or `action_url` names `{ws}`. Not yet run against any
1963
2102
  ntfy server or phone (unit-proven only).
1964
2103
 
1965
2104
  **Not part of this:** answering a `PermissionRequest`-held approval from the phone. A push only says the lane needs
@@ -2018,6 +2157,30 @@ and the two things it does to a board's tmux server are recognisable:
2018
2157
  operator picks another lane — or, with the operator's `detach-on-destroy off`, tmux moves the client to another
2019
2158
  session on the same socket and the viewport silently shows a different lane. DEF-965.
2020
2159
 
2160
+ - **The answer rule (BEY-7538, `answer_qualified`).** The Studio Host types a phone's answer into a Claude Code lane
2161
+ only under the six-predicate set in `crates/lanes-core/src/attention/qualified.rs`, evaluated before any key, in the
2162
+ order `kind`, `convention`, `screen`, `no_write_client`, `no_answer_channel`, `owner`; the lanes host's own answer
2163
+ worker (`lanes-runtime` `run_answer`) evaluates the same set. A refusal is `answer_unqualified` with
2164
+ `predicate=<name>` first in its message (409 to the phone, relayed verbatim; zero bytes). `no_write_client` is ONE
2165
+ bounded `tmux list-clients -F '#{client_name}\t#{session_name}\t#{session_group}\t#{client_readonly}\t#{client_flags}\t#{client_control_mode}'`
2166
+ per answer attempt (never per key): any client showing the lane (its session, or a session grouped onto it) with
2167
+ `client_readonly` 0 and no `read-only` flag refuses; `attach -r` clients and control-mode observers do not; a
2168
+ listing that failed, timed out or did not parse refuses (unknown is never "no writer"). A Studio browser view is a
2169
+ plain client to tmux, so it counts as a writer unless the Host's own channel table says that channel does not
2170
+ accept input (the `view-<board>-<n>` sessions of such channels, handed to the answer job by the tunnel). No tmux
2171
+ browser view is read-only today: every grouped attach accepts input, and the one observer channel (zellij `watch`)
2172
+ is no tmux client, so that set is EMPTY and every open Studio view of a tmux lane refuses the Host's answer
2173
+ (close the view, or answer from it); the subtraction is the hook a read-only tmux view mode will fill. The lanes
2174
+ host has no channel table and counts every browser view as a writer. To diagnose a refusal: run that
2175
+ `list-clients` on the lane's socket (`tmux -N -L <socket> list-clients -F ...`), look for a `0` in the fourth column
2176
+ on the lane's session or group, and detach it or re-attach with `-r`. Zellij, zmx and exec lanes, permission
2177
+ prompts, multi-select and free text stay `attention_harness_unavailable` / `attention_harness_unmeasured` as
2178
+ before. Rocket lanes, and every non-Claude harness, are refused at `convention` (their questions carry no measured
2179
+ convention: the runtime's hook opens them observe-only, the Host's `AttentionHarness` has no Rocket variant); the
2180
+ `no_answer_channel` declaration table is the second fence behind it, read with the harness token the hook spelled on
2181
+ the prompt record (the runtime: `AnswerContext.harness`; the Host: the item's harness), so a prompt that did carry
2182
+ the measured convention under a `rocket` or undeclared token is refused there, named `no_answer_channel`.
2183
+
2021
2184
  The Studio's design of record is `docs/design/throttle-studio.md` (§1.1 "The lanes harness", §8.3, §8.5).
2022
2185
 
2023
2186
  ## Uploads (the Cursor `uploads/` folder, without Cursor)
@@ -2094,16 +2257,20 @@ phone opens nothing after a scan, check that the phone is on the tailnet before
2094
2257
  carries the URL.
2095
2258
 
2096
2259
  On the phone, connect Tailscale and open the printed URL. Paste the token into the sign-in screen and choose
2097
- **Share → Add to Home Screen**. Use **Workspaces**, **Lanes** and **Panes** to navigate. The keyboard opens only
2260
+ **Share → Add to Home Screen** while the address is still the plain URL (nothing after `#`). The manifest names no
2261
+ start URL and no identity, so the icon opens the view it was added from and each view is its own app (device check
2262
+ "Home Screen identity" below, NOT YET DONE); an icon that opens the view `phone` was added under the old manifest:
2263
+ remove it and add it again. Use **Workspaces**, **Lanes** and **Panes** to navigate (since E5a, BEY-8667, **Panes**
2264
+ shows only on a tab with two panes or more). The keyboard opens only
2098
2265
  when tapping **Type here** or another text input; swipes, live updates and reconnects leave it closed.
2099
2266
  **More → Text size** remembers your preferred terminal font. The phone has its own view selection of the same agents.
2100
2267
 
2101
2268
  The lane picker shows three rows per lane: the agent glyph and the name (`›` before the lane this phone views), then
2102
2269
  what the agent needs and since when with its harness (`Needs you · 25m · claude`; a shell says `Quiet · 2h`), then the
2103
2270
  agent's task. Its first line counts the lanes that need you (`◆1 need approval · ◇2 need you · ▸6 working`). The same
2104
- counts come from the picker pane's title (see "Title and notifications" above): the header subtitle on the picker,
2105
- the page title, a number on the **Lanes** button for lanes needing approval or input, and `◆ 1 · ◇ 2` on each
2106
- workspace card. Nothing is fetched or polled for them. Not yet confirmed (DEF-1531): until plan Task 26 (2026-10-04)
2271
+ counts come from the picker pane's title (see "Title and notifications" above): the header's lane line on the
2272
+ picker (its subtitle until BEY-8609 slice 2b), the page title, a number on the **Lanes** button for lanes needing
2273
+ approval or input, and on each workspace card, in words since slice 2b (`◆ 1 need approval · ◇ 2 need you`). Nothing is fetched or polled for them. Not yet confirmed (DEF-1531): until plan Task 26 (2026-10-04)
2107
2274
  the phone's picker pane had the fixed layout name `Lanes`, which Zellij reports instead of the sidebar's title, so the
2108
2275
  phone showed no counts. Task 26 removed that name from the generated layout, which reaches a phone only when its
2109
2276
  session is laid out again (`lanes rebuild <device>`; see the device check below); whether the title
@@ -2113,10 +2280,30 @@ show them (DEF-1531).
2113
2280
  The phone's light/dark toggle repaints the whole terminal, not only the shell: the page applies its own sixteen-colour
2114
2281
  palette on attach, on every toggle and after every Zellij config reload (DEF-1413; not yet looked at on a device).
2115
2282
 
2116
- On a lane's own tab a row of quick keys sits above the dock: `⏎ y n Esc ^C ↑ ↓`. A tap sends the key to the lane on
2117
- the terminal WebSocket, as the client's own keys do, without opening the keyboard. `n` and `^C` send only after you
2118
- hold them for 400 ms; a short tap says "Hold to send" in the header for about 1.5 s. With the keyboard open the row
2119
- stays above the keyboard's modifier bar. The filter bar on the picker sends its text as UTF-8, so a filter like `ø`
2283
+ On a lane's own tab a strip of keys sits on the dock: `⏎ ↑ ↓ Esc ^C Keys` (since BEY-8609 slice 2a; it was
2284
+ `⏎ y n Esc ^C ↑ ↓`). A tap sends the key to the lane on
2285
+ the terminal WebSocket, as the client's own keys do, without opening the keyboard. `^C` sends only after you
2286
+ hold it for 400 ms; a short tap says "Hold to send" in the header for about 1.6 s (`n` did too until slice 2a). Since
2287
+ BEY-8609 slice 1 a quick key also answers, once, a click that no
2288
+ pointer made (`detail` 0), which is what a hardware keyboard's Space or Return delivers. A click is ignored when a
2289
+ pointer made it (`detail` of 1 or more) or when it comes within 500 ms of a pointer release on that key; the first
2290
+ guard is why the late click of a tap cannot send a second time, and the 500 ms rule is the second guard. By such an
2291
+ activation `^C` arms first ("Press again to send", 4 s) and sends on a second activation; a
2292
+ repeated Space or Return keydown on a key is cancelled. Not yet checked on a device: all of this, and whether
2293
+ VoiceOver's double-tap delivers such a click, pointer events (then `^C` says "Hold to send"), or a pointer-made
2294
+ click with no pointer events (then the key does nothing). "Press again to send" was not spoken by assistive
2295
+ technology until BEY-8609 slice 2b; it is now on the header's status line, a polite live region (INFERRED, not heard
2296
+ on a device; step 47). **Keys** opens the pinned client's own modifier bar as a panel above the strip, `y TAB CTRL ALT ← →
2297
+ n`: the shell's `y` and `n` at its two ends (one tap each, named "Send y" and "Send n"), the client's cells between
2298
+ them, its `ESC`, `↑`, `↓` and `-` cells hidden. The panel closes when **Keys** is tapped again and at any change of
2299
+ tab, pane or mode, and closing it releases an armed CTRL or ALT. While a phone types in **Type here**, the strip lies on
2300
+ the dock's row (one row of keys on the keyboard) and **Done** takes the place of **More** in the header; while the
2301
+ picker's filter has the keyboard the strip stays above the dock. From slice 2a until E1a a phone's **Paste** stood on
2302
+ the strip and took the place of `⏎` there while typing; since E1a (BEY-8667) a phone keeps **Paste** in the header
2303
+ beside **Copy**, as a tablet does, and `⏎` stays on the strip while typing. A tablet keeps
2304
+ **Paste** in the header, and its dock stands in the top bar before **Done** and **More**, so **Done** takes **More**'s
2305
+ place after the dock. These layout facts come from the CSS and a model of it in the node suite, not from a device
2306
+ ([frontend maintenance](../web/README.md), Keyboard strip and Keys panel). The filter bar on the picker sends its text as UTF-8, so a filter like `ø`
2120
2307
  matches; on a picker tab it takes the place of **Panes** in the dock. Until 2026-10-07 the quick keys and the filter
2121
2308
  were sent as a control-socket `Write` message the server does not have, so none of them reached a lane (DEF-1733).
2122
2309
  Their repair then sent each filter keystroke as one frame, `Esc /` and the whole query, which the server (as read from
@@ -2133,20 +2320,174 @@ picker left filtered gets that one `Esc` the next time it is current, so its lis
2133
2320
  On the picker tab the quick row appears only while the sidebar asks for a key (a close, the Register confirmation, Add
2134
2321
  to workspace), as `⏎ y Esc`; never while a name is being typed (Rename, Register as), where a `y` would land in the
2135
2322
  name (DEF-1819). It follows the picker's pane title (` · › close`), so it shares the title path's open browser check
2136
- (DEF-1531).
2323
+ (DEF-1531). Since E2 (BEY-8667) no phone key opens the Register confirmation or a name field (`P` and `R` type on the
2324
+ picker), so a phone meets only the close and Add to workspace; E11's touch paths will reach the others.
2137
2325
 
2138
2326
  **Type here** is a plain text field (it was a password field: iOS showed the secure-entry keyboard and the
2139
2327
  strong-password bar, DEF-1734). A QuickType word arrives whole (composition input — CJK, GBoard — stays the client's
2140
2328
  own); a paste (long-press the field → **Paste**) arrives as one bracketed paste with its line breaks (it used to
2141
2329
  arrive letter by letter, `ll` as `l`, newlines lost, DEF-1735). A QuickType suggestion that replaces a partial word
2142
2330
  removes the range the browser names for it before the word is sent (DEF-1753), and a paste keeps its escape sequences
2143
- except an end-of-paste marker (DEF-1755). **Copy** and **Paste** in the header put the visible screen on the clipboard
2144
- and send the clipboard to the lane (DEF-1736); the header says `Copied`, `Pasted` or `Clipboard blocked`. On a picker
2331
+ except an end-of-paste marker (DEF-1755). **Copy** in the header and **Paste** (in the header until BEY-8609 slice 2a;
2332
+ on a phone on the key strip while the keyboard was up from slice 2a until E1a; in the header beside **Copy** again
2333
+ since E1a, BEY-8667) put the visible screen on the clipboard
2334
+ and send the clipboard to the lane (DEF-1736); the header says `Copied` or `Clipboard blocked`, and for a paste
2335
+ `Paste sent` (it said `Pasted` until BEY-8609), `Paste unconfirmed` (no terminal socket observed), `Not sent: no
2336
+ connection`, `Not sent: view changed` (another tab, pane or the picker was current when the text arrived; a different
2337
+ lane in the same pane is not noticed) or `No text to paste`; a paste
2338
+ into **Type here** says the same. On a picker
2145
2339
  tab **Paste** is hidden and a paste into **Type here** says `Open a lane to paste`: the picker reads a paste as a file
2146
2340
  drop (DEF-1754). **More** closes the menu it opened (DEF-1738). The mechanism and its limits are in [frontend
2147
2341
  maintenance](../web/README.md) (Input, keys and clipboard); `tests/web/phone.test.mjs` proves the bytes against a fake
2148
2342
  of the pinned client, not a browser.
2149
2343
 
2344
+ What became of input (BEY-8609 slice 1, the owner's review of 17 November 2026). The phone shell observes the
2345
+ terminal WebSocket (its state, its frames, its close) by wrapping `window.WebSocket` before the client makes its
2346
+ sockets (INFERRED from the script order of `index.html` and a reading of `app.js`; no browser has shown it). Input is
2347
+ handed to `sendFn` only while the OBSERVED socket is OPEN; an unobserved socket is handed input whatever its state,
2348
+ and Paste then says `Paste unconfirmed`. A quick key, a filter letter, a QuickType word or a paste that cannot be
2349
+ handed over (the observed socket is still opening, closing or closed, or the client's `sendFn` is missing) is
2350
+ refused at once with `Not sent: no connection` and never sent later; input waiting out the filter's pause is dropped
2351
+ once another tab or pane is current. A socket whose network is gone can read OPEN long after: input in that window
2352
+ is handed over, Paste says `Paste sent`, and only the later close turns the header to `Check last input`. When the
2353
+ terminal socket closes, the header's status line says `Disconnected`, or `Check last input` when the shell handed input
2354
+ over and no frame came from the server after it, or within 5 s before the close: no proof either way that it
2355
+ arrived. Since BEY-8609 slice 2b the workspace and the lane stay in the header's first row meanwhile (until then the
2356
+ word replaced the lane), and a refusal after the close shows for about 1.6 s before the close word is back. The pinned client puts its reconnect notice over the page at the same close, so the word is hidden or dimmed
2357
+ while the notice is up (INFERRED from the CSS, not seen on a device). The client reloads the page only once its
2358
+ connection check passes, and only when its terminal socket opened before and no `pagehide` or `beforeunload` has been
2359
+ seen in this document (`isPageUnloading`, never cleared); after Cancel, after a `pagehide`, and for close code 4001
2360
+ nothing reloads. Only the uncertain word is carried across a reload: the next page shows `Check last input` on the
2361
+ status line until the next input that reaches the shell's `send()` with frames (`sessionStorage` `lanes:unsure`; since
2362
+ BEY-8609 slice 2b, decision O7; until then for about 8 s); `Disconnected` is not carried. Nothing is ever replayed. If the header stays on
2363
+ `Disconnected` or `Check last input` and no notice appears, reload the page: nothing reconnects on its own (the resume
2364
+ repair is the owner's review's slice 3 and needs a separate, qualified update of the pinned client). Not covered:
2365
+ one-character typing, the modifier bar and xterm's own data (they bypass the shell). Details: [frontend
2366
+ maintenance](../web/README.md) (Input, keys and clipboard).
2367
+ (Changed in E3, BEY-8667: the pinned client is unchanged, but after a `pagehide` the shell now checks the server and
2368
+ reloads the page itself once its terminal socket is no longer open; a tap on **Reconnect**, which stands in
2369
+ **Paste**'s place while the socket is gone, does the same; before such a reload the shell writes the reload note when
2370
+ input was uncertain; and nothing reloads by itself after close code 4001. Coming back to a dead page, below.)
2371
+
2372
+ The header and its words (BEY-8609 slice 2b, the owner's review's sections 2A, 2C and 3). The header has no Lanes
2373
+ mark. On screen it shows three lines of text: the workspace name, the lane under it (the lane's title, or the picker's
2374
+ counts), and the status line under the lane. The workspace and the lane are one button, which opens the workspace
2375
+ sheet, with **Copy** and **More** beside it (**Copy**, **Paste** and **More** since E1a, BEY-8667; **Done** in
2376
+ **More**'s place while a phone types); in the CSS this is the
2377
+ header's first row, and the status line, a polite live region where every word appears, is its second. The header is
2378
+ 64 px (58 px before), one 48 px row in landscape with the word after the buttons, and one row on a tablet; in
2379
+ landscape and on a tablet a word takes its width from the names. `Not sent: no connection` (until a close is seen; it becomes `Not sent: try again` when the terminal socket
2380
+ opens), `Not sent: view changed`, `No text to paste`, `Open a lane to paste`, `Paste unconfirmed` and `Clipboard blocked`
2381
+ stand until the next input that reaches the shell's `send()` with frames (a strip key that sends, the panel's `y` or
2382
+ `n`, **Paste**, a QuickType word, a filter letter); a letter typed on the keyboard, a modifier-bar cell, **Keys**, a
2383
+ short tap on `^C` and opening a lane from the sheet do not clear them. `Copied`, `Paste sent` and `Hold to send` pass
2384
+ after about 1.6 s and `Press again to send` after about 4 s, and a standing word comes back after them unless a key
2385
+ was sent meanwhile; such a key leaves the timed word up until its time ends. The close words stand while the terminal
2386
+ socket is closed and outrank a standing word; a refusal then shows for about 1.6 s. The workspace sheet says `13 workspaces` or `3 of 13 workspaces`, holds its rows
2387
+ and its search through updates, and names each row with its counts in words. All of this is read from the code and a
2388
+ model of the CSS, not seen on a device ([frontend maintenance](../web/README.md), Header, words and workspace list).
2389
+
2390
+ Copy and paste (E1a, BEY-8667). The owner wrote on 19 November 2026: "the current legacy mobile experience have no copy
2391
+ paste". The lane lead's ruling R2 of that day reverses decision D3 of BEY-8609 slice 2a. On a phone **Paste** is in
2392
+ the header again, right after **Copy**, as on a tablet. It is drawn with the software keyboard down or up and with a
2393
+ hardware keyboard, and hidden on a picker tab. From slice 2a until E1a a phone had no **Paste** with the keyboard down,
2394
+ and none at all with a hardware keyboard. `⏎` stays on the strip while typing: a lane tab's strip shows
2395
+ `⏎ ↑ ↓ Esc ^C Keys`, a picker prompt `⏎ y Esc`. A phone's header row reads the workspace and the lane, **Copy**,
2396
+ **Paste**, **Done** (only while typing, in **More**'s place), **More**; the status line is the second row. On a phone **Copy** and
2397
+ **Paste** show icons only, as before; their names (`Copy screen`, `Paste`) are in `aria-label` (lead ruling S3; step
2398
+ 67 asks whether a person finds them). The names get W − 198 px in portrait: 122 px at 320, 177 at 375, 192 at 390,
2399
+ 242 at 440 (W − 140 from slice 2b until E1a). In landscape they get W − 208 px, 748 px at 956 (W − 150, 806 px, until
2400
+ E1a). These widths are calculated from the declared CSS, not measured.
2401
+
2402
+ **Copy** still puts the visible screen (or the terminal's selection, when it has one) on the clipboard inside the tap,
2403
+ and says `Copied` or `Clipboard blocked`. In the same tap it opens a second sheet, the Captured screen sheet. Its head
2404
+ repeats that word, because the header's status line lies under the sheet's scrim. Under the head is exactly the text
2405
+ given to the clipboard, in a monospace font, with rows not wrapped: a wide row scrolls sideways, and a long screen
2406
+ scrolls. The sheet opens even when the clipboard is missing or refuses, so the text can still be selected by hand. Its
2407
+ one button is **Close**. **Close**, Escape and a tap on the scrim close it; a tap on the text does not, nor does a
2408
+ selection dragged from the text and let go over the scrim with a mouse or trackpad. A press on the text moves the focus
2409
+ to the sheet itself, so Escape still closes it and Tab stays inside it. Opening it closes an open software keyboard, as
2410
+ the Workspaces sheet does (lead ruling S1), and moves the focus to its **Close**; `#terminal` is inert while it is open.
2411
+ To copy one part, long-press the text, drag the selection handles, then use iOS's own **Copy** (INFERRED, not yet
2412
+ checked on a device). Its limits: it is captured output, a copy of the visible screen only, with no scrollback (scroll
2413
+ older output into view in the lane first); Zellij's frames and bars are in it; and a row the terminal wrapped stays
2414
+ split into two lines. On a tablet it is the same left panel as the Workspaces sheet, at most 400 px wide (85 % of a
2415
+ narrower window), so wide rows scroll sideways (lead ruling S4). The Workspaces sheet's close button is named `Close`
2416
+ since E1a (it was `Close workspaces`, lead ruling S2). All of this is read from the code and a model of the CSS, not
2417
+ seen on a device; the device checks are steps 62 to 68 below.
2418
+
2419
+ Links in a lane (E1b-1, BEY-8667). The owner wrote on 19 November 2026: "links dont open". A tap on a web address
2420
+ printed in a lane (`http://` or `https://` with a host, or a same-origin path that starts with `/lanes-docs/` and,
2421
+ resolved by the URL parser, still does) now shows an **Open** control in the header for about 8 s, in the place of the
2422
+ workspace and lane names (lead ruling B2): `Open` over the host as the URL parser reads it (lowercase, a look-alike in
2423
+ its `xn--` form), or a docs link's resolved path. The label shows the host, or a docs link's path; on a narrow screen
2424
+ its start is cut, never its end (PR 1150's review; INFERRED for Safari, step 80). An address with a user part (`name@`
2425
+ before the host) shows nothing, and neither does a docs path whose `..` leads out of `/lanes-docs/`. Tapping it opens the whole address in a new tab (`target="_blank"`,
2426
+ `rel="noopener noreferrer"`; no `window.open`). An address that reached the right edge and went on in the next row
2427
+ opens whole from either row, and so does one inside a framed pane. The control goes, and the names come back, after
2428
+ about 8 s, at any key typed, at any other press, and when it is tapped. Only a tap counts, by upstream's own rule: one
2429
+ finger, no move of more than 16 px, lifted before 500 ms; a hold, a swipe and two fingers open nothing. The tap still
2430
+ reaches the lane as before: `web/links.js` listens in the capture phase, passive, and cancels and sends nothing. It is
2431
+ loaded on demand, once, by `mobile.js` after the shell attached (lead ruling R8), on a phone and a tablet; `index.html`
2432
+ never lists it. Limits: only the visible rows; an address that ends exactly at the right edge can take the next row's
2433
+ first word along; an address wrapped short of the right edge opens cut; a wide character left of an address moves the
2434
+ tapped spot; OSC 8 label links are later work (ruling B3). All of this is read from the code and the node suite's fake
2435
+ page, not seen on a device; the device checks are steps 74 to 80 below ([frontend maintenance](../web/README.md),
2436
+ Links in a lane).
2437
+
2438
+ Coming back to a dead page (E3, BEY-8667). The owner's review of 17 November 2026 asks that the page come back by
2439
+ itself when its connection drops (its section 2C). After a `pagehide` the pinned client never reconnects or reloads in
2440
+ that document, so the shell does it, with `mobile.js` alone (lead ruling E3-R0): an interim departure from the
2441
+ review's repair, a qualified update of the pinned client, which BEY-8676 tracks; `app.js` is not edited. The shell
2442
+ asks `GET /info/version` (`cache: 'no-store'`, a 5 s deadline where Safari has `AbortSignal.timeout`) and reloads the
2443
+ page when the server answers 2xx; otherwise it says `No connection to Lanes` and reloads nothing. It asks by itself
2444
+ only on an event after a `pagehide` in the same document, with the terminal socket closing or closed: the close on a
2445
+ shown page, a return (`visibilitychange` to visible, or `pageshow`, from the back/forward cache or not), or `online`.
2446
+ One check runs at a time; never at load; nothing polls, and after a failed check after a `pagehide` the next return or
2447
+ `online` checks once more (E3-R7; not after a failed stale check, below). Never by itself after close code 4001.
2448
+ Without a `pagehide` the client's own notice and reload are left alone. The one exception is the stale socket (E3-R3,
2449
+ E3-R5): back after a hide longer than 30 s with the socket still open, the status line says `Reconnecting…` for 25
2450
+ ticks (about 5 s) of the existing interval; a terminal frame, a `MobileState` or the socket's close ends it (a close
2451
+ then takes the path of any close: from the review of E3's commit B), otherwise the page checks, so a healthy but quiet
2452
+ lane is reloaded too, and a Paste in those ticks says `Paste unconfirmed`. A failed stale check leaves the socket
2453
+ reading open, so there is no **Reconnect**, and neither `online` nor a short return checks again: the next check waits
2454
+ for the socket's close or another hide longer than 30 s (a departure from E3-R7's wording, open for the lane lead).
2455
+ While the socket is gone the terminal is dimmed (an inline opacity of `.5`, no CSS) and **Reconnect** stands in
2456
+ **Paste**'s place beside the names, on a phone and a tablet (E3-R1, E3-R2); a tap checks once and reloads, after 4001
2457
+ too. Before its own reload the shell writes the reload note when the close was uncertain or a write is unanswered
2458
+ (E3-R6), so the next page says `Check last input`. All of this is read from the code and the node suite's fake page
2459
+ and client, not seen on a device; the device checks are steps 101 to 110 below ([frontend
2460
+ maintenance](../web/README.md), Coming back to a dead page).
2461
+
2462
+ Notification and address links (E4, BEY-8667). An address with the query `?ws=<workspace title>`, the title
2463
+ percent-encoded (`https://<server>:8443/<device>-phone?ws=BW%20Tools`), opens that workspace's lane list once when
2464
+ the page loads: at most one `FocusPane` (none when that lane list is already shown), as a tap on the workspace's row
2465
+ did until E5a, nothing typed and nothing written on the server. The query wins over the remembered tab (E1c-2), and
2466
+ then leaves the address. A name no tab carries (a hidden board, a workspace renamed or removed) is ignored, and the
2467
+ page loads as it would without it (lead ruling E4-R6 B); an empty `?ws=` stays (E4-R10). A tablet reads it; a
2468
+ desktop page does not.
2469
+ "Open lane" opens the lane list, not the lane: the default, A, of the owner's question Q4 (BEY-8670), still open. A
2470
+ push reaches that address through `notify.conf`'s `lane_url` ("Push notifications (opt-in)" above), which the
2471
+ operator sets. All of this is read from the code, the node suite's fake page and `notify.py`'s unit tests, not seen
2472
+ on a device or against an ntfy server; the device checks are steps 117 to 126 below ([frontend
2473
+ maintenance](../web/README.md#notification-and-address-links-bey-8667-e4)).
2474
+
2475
+ Moving between workspaces (E5a, BEY-8667). **Lanes** goes from a workspace's lane list to its lane tab and back, one
2476
+ `FocusPane` each way and nothing typed; on a tab with no lane list it opens the Workspaces sheet, and on a lane list
2477
+ whose lane tab is gone it does nothing (lead ruling E5-R2), until `lanes ensure`'s one-minute pass adds the tab back
2478
+ (INFERRED). A Workspaces row opens the tab last shown in its
2479
+ workspace, or its lane list when nothing is remembered there, the remembered tab is gone or has no terminal pane
2480
+ (E5-R1); the current workspace's row only closes the sheet (E5-R3). The page remembers each workspace's last tab in
2481
+ E1c-2's value, per address and per browser, `{"tab": …, "ws": {…}}`, with no migration (E5-R4,
2482
+ DM-LANES-PHONE-LAST-TAB): a row whose remembered tab is gone opens its lane list (E5-R1); at a reload a gone tab
2483
+ restores nothing (Q1's default, BEY-8668); and no page follows another
2484
+ (Q2's default, BEY-8669). `?ws=` still opens the lane list (E5-R5). **Panes** shows only on a tab with two terminal
2485
+ panes or more, and on a lane tab with one, **Type here** spans the freed cell (E5-R8, E5-R9); where **Panes** shows
2486
+ it still lists the whole session. The **Workspaces** count of what needs you elsewhere is E5b, later work (BEY-8630
2487
+ holds the badge items it meets). All of this is read from the code and the node suite's fake page and client, not
2488
+ seen on a device; the device checks are steps 127 to 134 below ([frontend
2489
+ maintenance](../web/README.md#moving-between-workspaces-bey-8667-e5a)).
2490
+
2150
2491
  Device check (plan Task 13 step 3 and phone shell input v2, CAP-142; not yet run — no one has run it on an iPhone): on
2151
2492
  a real iPhone in Safari and from the Home Screen —
2152
2493
 
@@ -2154,16 +2495,28 @@ a real iPhone in Safari and from the Home Screen —
2154
2495
  password-autofill bar. Type `hello` letter by letter: `hello` arrives (both `l`s). Tap a QuickType suggestion
2155
2496
  after a partial word and note what arrives (the suggestion alone is right; the partial word before it is the
2156
2497
  documented caveat).
2157
- 2. On a lane tab, tap each quick key with the keyboard closed: the keyboard does NOT open; `⏎`, `y`, `Esc`, `↑`, `↓`
2158
- act in the lane; a short tap on `n`/`^C` sends nothing and shows "Hold to send" for about 1.5 s even while the lane
2159
- is updating; a 400 ms hold sends it; holding about 1 s still sends on release (no iOS callout or cancel).
2498
+ 2. On a lane tab, tap each quick key with the keyboard closed: the keyboard does NOT open; `⏎`, `Esc`, `↑`, `↓`
2499
+ act in the lane; a short tap on `^C` sends nothing and shows "Hold to send" for about 1.6 s even while the lane
2500
+ is updating (since BEY-8609 slice 2b on the status line, the line under the lane, for about 1.6 s); a 400 ms hold
2501
+ sends it; holding about 1 s still sends on release (no iOS callout or cancel). (Since
2502
+ BEY-8609 slice 2a `y` and `n` are in the **Keys** panel, one tap each: step 30.)
2160
2503
  3. Copy `hello`, a newline and `world` (e.g. from Notes), then long-press **Type here** → **Paste** into a shell lane at
2161
- a `cat` prompt: both lines arrive intact (`hello` / `world`), nothing doubled or dropped.
2162
- 4. Tap **Copy**: the header says `Copied`; paste into Notes and find the screen's text.
2163
- 5. Tap **Paste**: iOS shows its own **Paste** confirmation; after you accept, the clipboard arrives in the lane and the
2164
- header says `Pasted`. With the keyboard open, **Copy** and **Paste** leave it open.
2504
+ a `cat` prompt: both lines arrive intact (`hello` / `world`), nothing doubled or dropped. (Since BEY-8609 slice 2a
2505
+ the strip lies over **Type here** on a phone once the keyboard is up, so the long-press is on the field before the
2506
+ keyboard opens; step 43 re-runs this step under the new layout.)
2507
+ 4. Tap **Copy**: the header says `Copied` (on its status line since BEY-8609 slice 2b, for about 1.6 s); paste into
2508
+ Notes and find the screen's text. (Changed in E1a, BEY-8667: the same tap opens the Captured screen sheet over the
2509
+ header, and its head says the same word; tap **Close**. Step 64.)
2510
+ 5. Tap **Paste** (on a phone from BEY-8609 slice 2a until E1a it was on the key strip while the keyboard was up, so
2511
+ **Type here** came first; since E1a, BEY-8667, it is in the header beside **Copy** with the keyboard down or up):
2512
+ iOS shows its own **Paste** confirmation; after you accept, the clipboard arrives in the lane and the
2513
+ header says `Paste sent` (`Pasted` before BEY-8609). With the keyboard open, **Paste** leaves it open. (Changed in
2514
+ E1a, BEY-8667: until E1a **Copy** left it open too; now **Copy** opens the Captured screen sheet, which closes the
2515
+ keyboard by design, lead ruling S1.)
2165
2516
  6. Tap **More**, then **More** again: the menu opens, then closes. On a picker tab the dock shows Workspaces, Lanes,
2166
- the filter and **Type here** on one row, and the header has no **Paste**.
2517
+ the filter and **Type here** on one row, and **Paste** shows nowhere: not in the header (on a phone it left the
2518
+ header in BEY-8609 slice 2a and came back in E1a, BEY-8667, still hidden on a picker tab) and not on the strip
2519
+ with the keyboard up.
2167
2520
  7. On a picker tab, type `ab` in the filter, backspace once, type `c`: the picker's footer shows `/ac` (not `/acac`,
2168
2521
  the doubled query) and the list shows the matching lanes; clear the field: the footer is back to `Swipe to scroll ·
2169
2522
  Tap to open`. Filter again and open a lane from the list: the lane receives nothing (its agent is not
@@ -2171,14 +2524,935 @@ a real iPhone in Safari and from the Home Screen —
2171
2524
  sheet and tap another workspace: its bar is empty and its list unfiltered; go back: the first list is unfiltered too.
2172
2525
  8. (Cockpit v3 S5.) On a picker, tap `×` on an unregistered row: the `⏎ y Esc` row appears, `y` then `⏎` closes the
2173
2526
  session; with the keyboard open, `P` on an unregistered row shows no quick row until ` › register ‘sh’ — y⏎
2174
- confirm`.
2527
+ confirm`. (Changed in E2, BEY-8667: `P` types on the phone's picker, so the second half no longer applies until
2528
+ E11's touch path; step 93 checks the quick row at Add to workspace.)
2175
2529
  9. (Plan Task 26 has landed; DEF-1531 waits on this.) The Workspaces sheet shows each picker's counts. A phone device
2176
2530
  created before Task 26 keeps the old picker pane (`upgrade-session` does not re-lay-out a tab): run
2177
2531
  `lanes rebuild <device>` first (`lanes doctor` must not list it under DEF-1531), or no counts appear and the check
2178
2532
  says nothing about the title path.
2179
2533
 
2180
- Record the device, iOS version and result of each step here. The unit suite covers only the picker's text and the
2181
- shell's bytes against a fake page, not the browser.
2534
+ Device check, trustworthy input (BEY-8609 slice 1; NOT YET DONE — only a person with an iPhone can make these checks,
2535
+ and nothing of this slice has been seen on one; the node suite shows the shell against a fake page only). On a real
2536
+ iPhone in Safari and from the Home Screen, and where marked on an iPad. Each step records what was seen and claims
2537
+ nothing beyond it:
2538
+
2539
+ 10. The observation, with the network up: open a lane, put text on the clipboard and tap **Paste** (from BEY-8609
2540
+ slice 2a until E1a a phone needed **Type here** first, because **Paste** was on the strip while the keyboard was
2541
+ up; since E1a, BEY-8667, it is in the header with the keyboard down or up). `Paste sent`
2542
+ shows the terminal socket is observed; `Paste unconfirmed` shows it is not, and then every closed-socket word of
2543
+ this slice is unproven on the device.
2544
+ 11. Cut the network (Airplane Mode, or Tailscale off) and wait. Note how long it takes until the header or Zellij's
2545
+ notice changes; a socket can read OPEN long after the network went, so a long wait proves nothing either way.
2546
+ 12. While the network is gone but before anything changes, tap **Paste** with text on the clipboard (from slice 2a
2547
+ until E1a a phone needed **Type here** first, because **Paste** was on the strip; since E1a, BEY-8667, it is in
2548
+ the header): note the word
2549
+ (`Paste sent` is expected while the socket reads OPEN) and whether the header later says `Check last input`; lock
2550
+ the phone, unlock it, and note whether the word is still there.
2551
+ 13. When the socket closes: note whether Zellij's reconnect notice covers the header and whether the word can be read
2552
+ through it (the notice's own background is 85 % opaque). After the automatic reload, the header should say
2553
+ `Check last input` when it said so before the reload, and nothing when it said `Disconnected`. (Fitted for
2554
+ BEY-8609 slice 2b: the note is on the status line and stays until the next key that reaches the shell, decision
2555
+ O7; it lasted about 8 s until then. Note how long it stays and what clears it; step 50 has the details.)
2556
+ 14. Tap **Cancel** on the notice: note the standing word under it, and that nothing reconnects until you reload the
2557
+ page. (Since BEY-8609 slice 2b the workspace and the lane should stay readable above the word; step 49.)
2558
+ (Fitted for E3, BEY-8667: after **Cancel** the terminal is dimmed and **Reconnect** stands in **Paste**'s
2559
+ place; nothing reconnects by itself, and a tap on **Reconnect** reloads the page. Step 103 checks it.)
2560
+ 15. With the notice cancelled after a disconnect: tap a quick key, type a QuickType word, and on the picker type a
2561
+ filter letter. Each should say `Not sent: no connection`; a single typed character stays silent (only the standing
2562
+ word tells). (Changed by E7a, BEY-8667: a typed character now says `Not sent: no connection` too; step 140 checks
2563
+ it.) (Fitted for BEY-8609 slice 2b: while the socket is closed the refusal shows for about 1.6 s,
2564
+ then the standing `Disconnected` or `Check last input` is back. Note both.)
2565
+ 16. Lock and unlock the phone, or switch to another app and back; then lose the connection. Note whether the notice
2566
+ appears and whether the page reloads at all (the client's `isPageUnloading` is set by a `pagehide` and never
2567
+ cleared; whether iOS fires `pagehide` there is the open question). Also lock and unlock with no network change
2568
+ (brief 2C) and note what the header says.
2569
+ 17. Tap each quick key with the keyboard closed and open: exactly one key arrives per tap (no second send from the
2570
+ click that follows), the keyboard does not open and the key takes no focus. Then tap keys while the lane prints
2571
+ heavily, and count what arrives for each tap.
2572
+ 18. VoiceOver on: whether a double-tap on `⏎` and the panel's `y` sends at all, and how many times. On `^C` note what
2573
+ happens (`Press again to send` and then a send, `Hold to send`, or nothing), and whether anything is spoken when
2574
+ `^C` arms. (Until slice 2a this step named `n` beside `^C`. Since slice 2b the word is on a polite live region, so
2575
+ it is expected to be spoken; step 47.)
2576
+ 19. A hardware keyboard, and Full Keyboard Access (iPad, or an iPhone with a keyboard): whether Tab reaches a quick
2577
+ key at all; whether Space and Return send once; on `^C` whether the first press says "Press again to
2578
+ send" and the second sends once; hold Return down on `^C` and count what arrives (one at most is right).
2579
+ 20. Press `^C` once by keyboard and wait: `Press again to send` should go after about 4 s, and a press after that
2580
+ should arm again, not send.
2581
+ 21. **Paste** (the header's until slice 2a; on a phone the strip's, with the keyboard up, from slice 2a until E1a; the
2582
+ header's again since E1a, BEY-8667): leave iOS's paste
2583
+ confirmation open, move to another pane or to the picker, then accept: the
2584
+ header says `Not sent: view changed` and nothing arrives. Paste with an empty clipboard and with only an image on
2585
+ it: note the word shown (`No text to paste` is expected for empty text).
2586
+ 22. At the narrowest phone you have, in portrait, read each new word whole in the header (since BEY-8609 slice 2b on
2587
+ the status line, the line under the lane, 12 px and as wide as the header; step 45): `Not sent: no connection`,
2588
+ `Not sent: view changed`, `Paste sent`, `Paste unconfirmed`, `No text to paste`, `Press again to send`,
2589
+ `Check last input`, `Disconnected`. Note each word that is cut.
2590
+ 23. A page restored after backgrounding or from the back/forward cache: note whether the close is reported on return
2591
+ and whether the header is then true.
2592
+ 24. iPad Safari (the tablet mode downloads the same shell): steps 10, 11, 12 and 21.
2593
+
2594
+ Device check, keyboard layout (BEY-8609 slice 2a; NOT YET DONE — no one has run these on an iPhone, and nothing of
2595
+ this slice has been seen in Safari; the node suite shows the shell against a fake page, and its layout figures come
2596
+ from a model of the CSS that renders nothing). Steps 2 and 18 to 20 above name `^C` alone since this slice: decision
2597
+ O1 of the slice 2 plan withdrew `n`'s hold. On a real iPhone in Safari and from the Home Screen, and where marked on
2598
+ an iPad. Each step records what was seen and claims nothing beyond it:
2599
+
2600
+ 25. Tap **Type here** on a lane and let the keyboard open. Count the rows of keys between the terminal and the
2601
+ keyboard: one row is expected (`⏎ ↑ ↓ Esc ^C Keys` since E1a, BEY-8667; `Paste ↑ ↓ Esc ^C Keys` from slice 2a until
2602
+ E1a), with no gap and no jump. Type letters and note that they
2603
+ arrive. If two rows show, note whether Safari moved the whole page up instead of shrinking the visible area (then
2604
+ the shell never sees the keyboard and keeps the reading layout). Record what was seen.
2605
+ 26. With the keyboard open, tap every strip key, **Keys**, each panel key, **Paste** and **Copy**. Note whether the
2606
+ keyboard stays open after each tap. (Changed in E1a, BEY-8667: **Paste** is in the header, and **Copy** opens the
2607
+ Captured screen sheet, which closes the keyboard by design, lead ruling S1; tap **Copy** last and close the sheet.
2608
+ Every other tap is expected to leave the keyboard open.) Record what was seen.
2609
+ 27. With the keyboard open, tap **Done**: note whether the keyboard closes and **More** comes back. Do the same with the
2610
+ picker's lane filter focused. Note whether Safari shows a Done button of its own as well. Record what was seen.
2611
+ 28. With the keyboard open: tap a QuickType word, type repeated letters (`hello`), an emoji, and tap **Paste** (the
2612
+ strip's from slice 2a until E1a; the header's since E1a, BEY-8667) with two lines on the clipboard. Note what
2613
+ arrives in the lane. Record what was seen.
2614
+ 29. Open **Keys**, tap **CTRL** (note whether it lights up), then type `c` on the keyboard: `^C` should arrive. Tap
2615
+ **CTRL** again so it lights up, close **Keys**, then type a letter: a plain letter should arrive. Then open
2616
+ **Keys**, tap **CTRL** and the panel's `y`: note what arrives (Ctrl-Y is what the shell sends as built). Record
2617
+ what was seen.
2618
+ 30. With **Keys** open, note what the panel shows (`y TAB CTRL ALT ← → n` is expected, and no `ESC`, `↑`, `↓` or `-`).
2619
+ `y` and `n` in the panel each send once; TAB, CTRL, ALT and the arrows still act. Count what arrives for one tap
2620
+ of `y` and one of `n`. Record what was seen.
2621
+ 31. Lose the connection and tap **Cancel** on Zellij's notice. Open **Keys** and tap TAB, `←` and `→`: note whether any
2622
+ word appears in the header (none is expected beyond the standing `Disconnected`; these keys bypass the shell).
2623
+ Record what was seen.
2624
+ 32. Open **Keys** on one lane, then move to another pane of the same tab, then to another lane's tab, then to the
2625
+ picker. Note each time whether the panel closed and whether a `y` is still in reach without tapping **Keys**.
2626
+ Record what was seen.
2627
+ 33. With Display Zoom (a 320 px wide layout on some iPhones; a larger one zooms to 375 px, INFERRED, so note the width
2628
+ the page has): note whether every strip key and every panel key fits, whether anything
2629
+ scrolls sideways, whether the word "Keys" fits its key, and whether the workspace and lane names can be read.
2630
+ Record what was seen.
2631
+ 34. Landscape, with the keyboard open and closed: note the rows of keys and how much terminal is left. Record what was
2632
+ seen.
2633
+ 35. A hardware keyboard (iPhone or iPad): note that the strip shows no **Paste** (by design) and whether Cmd-V in
2634
+ **Type here** pastes. (Changed in E1a, BEY-8667: from slice 2a until E1a a phone with a hardware keyboard had no
2635
+ **Paste** at all; since E1a it is in the header, step 63.) With enlarged text (Larger Text), note what is cut in the
2636
+ strip, the panel and the header.
2637
+ Larger Text may change nothing in Safari: the sheet sets its type in pixels and `-webkit-text-size-adjust: 100%`
2638
+ (INFERRED), so "no change" is a valid record. Record what was seen.
2639
+ 36. VoiceOver on: note whether it says "pressed" right after **CTRL** is tapped, what it says once a letter has used
2640
+ **CTRL**, and whether **Keys** says expanded or collapsed. Count the swipes from **Keys** to the panel's first key
2641
+ (the panel comes before the header in the page's order). Note what VoiceOver reads for the panel's `←` and `→`.
2642
+ While typing, note whether a dock button under the strip (**Lanes**, **Panes**) can be reached by swiping, and what
2643
+ a double-tap on it does (it may act on the strip key drawn over it). Note what VoiceOver reads for **Done** and
2644
+ whether a double-tap on it closes the keyboard. Record what was heard.
2645
+ 37. iPad Safari (tablet mode): **Paste** stays in the header and `⏎` stays on the strip, with and without the on-screen
2646
+ keyboard; **Done** shows only while the on-screen keyboard is up. The top bar is expected to read the workspace and
2647
+ lane names, **Copy**, **Paste**, the dock's controls, then **More**, then the status line, and with the on-screen
2648
+ keyboard up **Done** in **More**'s place, after the dock. (Fitted for BEY-8609 slice 2b: the title is now the names,
2649
+ with no Lanes mark, and the status line ends the row; step 52.) Note whether the dock and its **Type here** field move when the keyboard comes up (a **Done**
2650
+ wider than **More**'s 48 px would move them left by the difference, INFERRED). Record what was seen.
2651
+ 38. Only if a phone on an iOS before 15.4 is at hand: while typing, the strip should stay above the dock, because that
2652
+ Safari does not read `:has()` (INFERRED): two rows of keys, the strip and the dock (before this slice there were
2653
+ three: the dock, the modifier bar and the quick row). **Paste** and **Done** should still show, and the modifier
2654
+ bar should show only behind **Keys**. Record what was seen.
2655
+ 39. A picker prompt with the lane filter focused: on a picker, tap `×` on an unregistered row, then tap the lane filter
2656
+ so the keyboard opens. Note whether the filter stays uncovered and whether `⏎ y Esc` is drawn above the dock, not
2657
+ over it. Record what was seen.
2658
+ 40. iPad Safari (tablet mode): open **Keys** with the on-screen keyboard down and up. Note where the panel sits, what it
2659
+ covers, and whether any control of the top bar shifts when the keyboard opens or closes. Record what was seen.
2660
+ 41. Tap **Type here** twice in quick succession on a phone. The strip folds onto the dock under the finger as the
2661
+ keyboard opens (INFERRED from the fold rule), so the second tap may land on `^C` or **Keys**. Note where the second
2662
+ tap landed and what arrived in the lane. Record what was seen.
2663
+ 42. An input method that composes (for example Japanese kana or Chinese pinyin): type a word in **Type here** and
2664
+ confirm it. Note what arrives in the lane and whether the strip stays in its place while the candidate bar shows.
2665
+ Record what was seen.
2666
+ 43. Step 3 under this slice's layout: with two lines on the clipboard and the keyboard down, long-press **Type here**
2667
+ and choose **Paste** if iOS offers it. Note whether iOS's own **Paste** bubble survives the strip folding over the
2668
+ field as the keyboard opens, and what arrives. Then, with the keyboard up, tap **Paste** (the strip's from slice 2a
2669
+ until E1a; the header's since E1a, BEY-8667) and note what arrives. Record what was seen.
2670
+
2671
+ Device check, identity and words (BEY-8609 slice 2b; NOT YET DONE — no one has run these on an iPhone, and nothing of
2672
+ this slice has been seen in Safari; the node suite shows the shell against a fake page, and its layout figures come
2673
+ from a model of the CSS that renders nothing). On a real iPhone in a Safari tab and from the Home Screen app, both
2674
+ where a step applies, and where marked on an iPad. Each step records what was seen and claims nothing beyond it:
2675
+
2676
+ 44. Open a lane. Note the header: the workspace name with the lane under it, **Copy**, **Paste** and **More** beside
2677
+ them (**Copy** and **More** only from slice 2b until E1a, BEY-8667), and no
2678
+ Lanes mark are expected; the status line under the lane should be empty. Tap **Copy**: `Copied` should show on
2679
+ the status line for about 1.6 s and go. (Changed in E1a, BEY-8667: the same tap opens the Captured screen sheet,
2680
+ whose scrim lies over the status line; tap **Close** at once to read the line, and see step 64 for the sheet.)
2681
+ Note whether the names move when the word comes or goes (they should
2682
+ not). Tap the names: the workspace sheet should open. Close it and tap the status line: nothing should happen (it
2683
+ is not a control). Record what was seen.
2684
+ 45. With Display Zoom (a 320 px wide layout; note the width the page has), open a workspace with a long name and a lane
2685
+ with a long title. Note how much of each can be read and where they are cut (since E1a, BEY-8667, the names get
2686
+ 122 px at 320 and 177 px at 375; 180 and 235 px from slice 2b until E1a; calculated from the declared CSS). Tap
2687
+ **Paste** with an empty clipboard (**Type here** first until E1a; since E1a **Paste** is in the header with the
2688
+ keyboard down): `No text to paste` should show whole on the status line and stay there. An iPhone has no
2689
+ plain way to empty the clipboard: copy only an image (step 21), or dismiss iOS's own **Paste** confirmation, and
2690
+ note the word (`No text to paste` or `Clipboard blocked` is expected, INFERRED; both stand). Note whether anything
2691
+ scrolls sideways. Record what was seen.
2692
+ 46. Words that stand, in a shell lane (as in step 3): tap **Type here**, then **Paste** with an empty clipboard, so
2693
+ `No text to paste` shows (or raise a standing word as step 45 says, and note which). Wait at least 10 s, let the
2694
+ lane print, go to the picker and back, and note whether the word is still there. Tap **Copy**: `Copied` should
2695
+ show over it for about 1.6 s, then the standing word should come back. (Changed in E1a, BEY-8667: **Copy** also
2696
+ opens the Captured screen sheet over the header and closes the keyboard; tap **Close** at once to read the status
2697
+ line, then tap **Type here** again.) Type one letter on the keyboard and note
2698
+ that the word stays. Tap **Keys** twice, and make a short tap on `^C` (`Hold to send` shows over the word for about
2699
+ 1.6 s): note that the standing word stays or comes back. Then tap **Done**, tap `⏎` on the strip, and note that
2700
+ the word goes. Raise it again, make a short tap on `^C`, and tap `↑` while `Hold to send` shows:
2701
+ `Hold to send` should stay until its time is up, and then the line should be empty. (Changed in E1a, BEY-8667:
2702
+ until E1a this used **Copy** and `Copied`; since E1a the Captured screen sheet covers the strip after **Copy**.)
2703
+ With a hardware keyboard, raise it
2704
+ again, press `^C` by keyboard (`Press again to send`), then `↑`, then `^C`: the word should stay up until the
2705
+ second `^C`, which sends. `Not sent: no connection` before a close needs a key pressed while the page is still
2706
+ connecting, which a hand can rarely time: if you do see it on a slow network, note whether it changes to
2707
+ `Not sent: try again` when the connection opens, about when the lane's output first appears, and stays until the
2708
+ next strip key (expected, read from the code). Record what was seen.
2709
+ 47. VoiceOver on: move to the header's first control and note what VoiceOver reads (the workspace and the lane are
2710
+ expected, and that it opens a dialog or pop-up). Do the same on a picker tab with counts and on one without: the
2711
+ name is then the workspace and `◆1 ◇2`, or the workspace and `Choose a lane to continue`; note how the glyphs and
2712
+ numbers are read. Make each word show once: `Copied`; `Hold to send` (a short tap on `^C`); `No text to paste`;
2713
+ `Not sent: no connection` and `Disconnected` (step 49); `Press again to send` where a keyboard can press `^C`.
2714
+ Note whether each is spoken, and count how many times. (Changed in E1a, BEY-8667: **Copy** also opens the
2715
+ Captured screen sheet, a modal dialog, moves the focus to its **Close**, and repeats `Copied` in the sheet's head.
2716
+ Note what is read as the sheet opens and how many times `Copied` is spoken; whether it is spoken from the status
2717
+ line under the sheet, from the sheet's head, or both is not known.) Some words are written again and may be spoken again
2718
+ (INFERRED): a standing word when a timed word over it ends, the close word after each refused key, a standing
2719
+ refusal repeated. Make a word show while the workspace sheet is open and note whether it is spoken. Note whether
2720
+ anything is spoken when the lane's title changes or a workspace count changes in the header (nothing is
2721
+ expected). Record what was heard.
2722
+ 48. A busy workspace list: with several workspaces whose agents are working, so their counts change, open the
2723
+ Workspaces sheet, scroll it and type a query. Watch for 30 s. Note whether rows jump or the list scrolls by itself,
2724
+ whether the query stays, and whether a row tapped while the counts change opens that workspace. With VoiceOver on,
2725
+ note whether the count line (`13 workspaces`, `3 of 13 workspaces`) is spoken as the query changes, and what a row
2726
+ is read as (`Sakio, 1 need approval, 2 need you, current workspace` is expected). Close the sheet and open it
2727
+ again: note whether it opens at the top or where it was scrolled. On the narrowest phone, read the count line of a
2728
+ workspace with approvals, questions and working lanes, and note which counts are cut (the working count is likely
2729
+ cut up to 390 px, INFERRED). Open a new workspace or close one while the sheet is open (the rows are drawn again):
2730
+ note whether a row under your finger changes and where the VoiceOver cursor goes. Record what was seen.
2731
+ 49. Disconnect, then Cancel: lose the connection; when Zellij's notice appears, tap **Cancel**. Note whether the
2732
+ workspace name, the lane and `Disconnected` (or `Check last input`) can be read in the header. Tap `⏎`: `Not sent:
2733
+ no connection` should show for about 1.6 s, then the close word again. Record what was seen.
2734
+ 50. The reload note: make an uncertain close (step 12), and let Zellij reload the page. Note whether the new page says
2735
+ `Check last input` on the status line a moment after it appears, whether VoiceOver speaks it once, and whether it
2736
+ stays: wait at least 10 s and type one letter (it should stay), then, in a shell lane with the keyboard down, tap
2737
+ `⏎` on the strip (it should go). Record what was seen.
2738
+ 51. Landscape, with the keyboard closed and open: the header should be one 48 px row with the word after **Copy**,
2739
+ **Paste** and **More** (or **Done**). (Changed in E1a, BEY-8667: until E1a the row held **Copy** and **More** only;
2740
+ the names now get W − 208 px, 748 px at 956, where they got W − 150, 806 px; calculated from the declared CSS.)
2741
+ Make a word show and note where it sits and how much of the names stays readable. Record
2742
+ what was seen.
2743
+ 52. iPad Safari (tablet mode): note the top bar's order (the workspace and the lane, **Copy**, **Paste**, the dock's
2744
+ controls, **More** or **Done**, then the word) and that it is one row with the on-screen keyboard up and down. Make
2745
+ a word show and note whether it squeezes the names or the dock (the word takes its width from the names, so on an
2746
+ iPad mini in portrait the names may be left with little or no room, INFERRED). With a hardware keyboard attached,
2747
+ raise a standing word (step 46) and note how much of the workspace and lane names stays readable while you type
2748
+ (typing does not clear it, INFERRED). In Split View (a narrow tablet layout), note whether the top bar still fits
2749
+ one row or what is cut. Record what was seen.
2750
+
2751
+ Device check, upload outcomes (BEY-8609 slice 3a; NOT YET DONE — no one has run these on an iPhone, and nothing of
2752
+ this slice has been seen in Safari; the node suite runs `upload.js` against a fake page and a fake request, and
2753
+ `test_docsd.py` runs a real docsd on a loopback port). On the Docs page (**More → Docs**, pick a lane) on a real
2754
+ iPhone in a Safari tab, and from the Home Screen app where marked. Each step records what was seen and claims nothing
2755
+ beyond it:
2756
+
2757
+ 53. Choose two photos from the library and tap **Upload**. Both rows should read `<name> · uploaded · <bytes> B ·
2758
+ sha256 … · /home/coder/<repo>/uploads/<name>`, with no summary row, and the file control should be empty with
2759
+ no count on the area. Record what was seen.
2760
+ 54. Choose a large file or several photos (a few MiB in all, so the progress bar moves for a while), tap **Upload**,
2761
+ and turn on Airplane Mode while the bar moves. Expected (read from the code): each file's row ends `not
2762
+ confirmed`, then `0 of N uploaded. The connection ended before we could confirm the upload. The files may still
2763
+ be arriving. Look for them in this lane before you send again: Upload sends them a second time.`, then a row
2764
+ **Open this lane's files**. Note whether the files are still chosen (the area reads `N not uploaded yet`). Turn
2765
+ Airplane Mode off and tap **Open this lane's files**: the lane's list should open in a new tab; note whether any
2766
+ of the files arrived (INFERRED: none, because docsd reads the whole body before it stores a file). Then a second
2767
+ try, for the review's "upload response lost after storage" (section 10): choose one photo, tap **Upload**, and
2768
+ turn on Airplane Mode the moment the bar is full (the body has arrived, and docsd stores the file before it
2769
+ answers; a larger photo leaves more time, INFERRED). The row should again read `not confirmed`. Turn Airplane Mode
2770
+ off, tap **Open this lane's files** and note whether the photo is listed. Then tap **Upload** and note whether a
2771
+ second copy named `<name>-1.<ext>` appears in the list, as the page's words warn. Record what was seen.
2772
+ 55. Step 54 in the Home Screen app: note what **Open this lane's files** does there (a Safari tab, a view inside the
2773
+ app, or nothing), and whether the chosen files and the rows are still there when you come back to the app.
2774
+ Record what was seen.
2775
+ 56. A refusal: open the Docs page in two Safari tabs, choose a large file in each and tap **Upload** in both, the
2776
+ second while the first is still sending (one upload per login at a time, so the second should be answered
2777
+ `busy`, INFERRED). Expected in the second tab: `<name> · <size> B · refused: busy`, `0 of 1 uploaded. Upload sends
2778
+ the rest again.` and `1 not uploaded yet` on the area. When the first tab's upload has ended, tap **Upload** in the
2779
+ second without choosing the file again: note whether it is sent and ends `uploaded`. Record what was seen.
2780
+ 57. A library photo (HEIC on most iPhones; the picker may convert it): note whether it ends `uploaded` and not `not
2781
+ confirmed`, and note the size in its row. A `not confirmed` row after an answer that came would mean the size the
2782
+ page holds differs from the bytes stored (README Code notes, `good()`). Then make a try end unconfirmed (step 54),
2783
+ leave the page open about 5 minutes, and tap **Upload** again: note whether the photos are still sent and end
2784
+ `uploaded`. Record what was seen.
2785
+ 58. Two library photos that the picker gives one name (whether it does is INFERRED; for example two pictures both
2786
+ offered as `image.jpg`): upload them together and note whether their two rows can be told apart by size. Record
2787
+ what was seen.
2788
+ 59. A request that hangs: start an upload of a few MiB, then cut the route without ending the connection at once
2789
+ (for example turn Tailscale off while Wi-Fi stays on; INFERRED that this stalls, where Airplane Mode ends the
2790
+ connection at once). The page's bound is 150 s plus 16 s per MiB (about 230 s for 5 MiB, calculated). Note how
2791
+ long it takes until the rows read `not confirmed` with the connection sentence, and whether **Upload** works
2792
+ again afterwards. Record what was seen.
2793
+ 60. After an end that keeps files (step 54 or 56), note what the file control's own text says (the number or the
2794
+ names of the files) and whether it agrees with the area's label `N not uploaded yet`. Where Safari does not let a
2795
+ script set the control (possible, INFERRED), the control still names every file you chose while **Upload** sends
2796
+ only the rest: note which happened. Record what was seen. The review's "partial multi-file failure" (section 10)
2797
+ has no step here: it needs docsd to fail at a later file after storing an earlier one (`busy` from the store
2798
+ lock, `encrypt-failed`, `uploads-unavailable`), which a person cannot make from a phone. It needs the operator on
2799
+ the server; until then the node suite (tests 8, 14 and 15) and `test_docsd.Upload` (test 18) cover it against a
2800
+ fake page and a loopback docsd.
2801
+ 61. VoiceOver on: do steps 53 and 54 again. Note what VoiceOver says as the rows appear (the list is
2802
+ `aria-live="polite"`, so each new row is expected to be spoken, INFERRED), whether the summary row and **Open this
2803
+ lane's files** are read, and how the `·` separators and the sha256 are read. Record what was seen.
2804
+
2805
+ Device check, upload destination (BEY-8609 slice 3b; numbered from 98, as 83 to 97 are held by PRs 1158 and 1168;
2806
+ NOT YET DONE — no one has run these on an iPhone, and nothing of this slice has been seen in Safari; `test_docsd.py`
2807
+ reads the form's HTML from a real docsd on a loopback port and the Rust routes replay the golden corpus, with no
2808
+ browser). First the server runs the release with this change. On a real iPhone in a Safari tab. Each step records
2809
+ what was seen and claims nothing beyond it:
2810
+
2811
+ 98. Open the Docs page with no lane in its address (**More → Docs**, or `https://<server>:8443/lanes-docs/`). The
2812
+ control under **Upload to** is expected to read `Choose a lane`. Choose a file and tap **Upload** without
2813
+ choosing a lane: Safari is expected to refuse (the select is `required`, INFERRED) and no row to appear. Note what
2814
+ Safari says and where. Record what was seen.
2815
+ 99. Open the lane picker of that control. Workspaces are expected as groups and each row as `<workspace> › <lane>`,
2816
+ for example `BW Tools › docs`. Note whether a row is cut at the phone's width and how. Record what was seen.
2817
+ 100. Open a lane's page (`https://<server>:8443/lanes-docs/?lane=<lane id>`, or **Open this lane's files** after an
2818
+ upload that was not confirmed). The closed control is expected to read that workspace and lane at once
2819
+ (`BW Tools › docs`), with no `Choose a lane` row in its picker. With VoiceOver on, note what it says for the
2820
+ control (expected: `Upload to` and the chosen row, INFERRED). Record what was seen.
2821
+
2822
+ Device check, copy and paste (E1a, BEY-8667; NOT YET DONE — no one has run these on an iPhone, and nothing of this
2823
+ slice has been seen in Safari; the node suite shows the shell's DOM and its clipboard calls against a fake page, and
2824
+ its layout figures come from a model of the CSS that renders nothing). Every step is run on a real iPhone, once in a
2825
+ Safari tab and once in the Home Screen app, and where marked on an iPad in both. Each step records what was seen and
2826
+ claims nothing beyond it:
2827
+
2828
+ 62. **Paste** with the keyboard down. Put two lines on the clipboard (`hello`, a newline and `world`, for example from
2829
+ Notes) and open a shell lane at a `cat` prompt (as in step 3); leave the keyboard down. **Paste** is expected in
2830
+ the header right after **Copy**, before **More**. Tap **Paste** once. iOS may first show its own **Paste** bubble
2831
+ (INFERRED); accept it. Both lines are expected to arrive once and intact (`hello` / `world`, nothing doubled or
2832
+ dropped; the shell sends them as one bracketed paste, which the node suite shows against a fake page), the status
2833
+ line to say `Paste sent`, and the keyboard to stay down. Then open a picker tab: **Paste** is expected nowhere,
2834
+ neither in the header nor on the strip. Record what was seen.
2835
+ 63. **Paste** while typing. On a lane tab, tap **Type here** so the software keyboard opens. **Paste** is expected
2836
+ still in the header right after **Copy**, **Done** in **More**'s place, and the strip `⏎ ↑ ↓ Esc ^C Keys`, with
2837
+ `⏎` first. Tap **Paste** once with two lines on the clipboard: note what arrives and whether the keyboard stays up
2838
+ (it is expected to). Then with a hardware keyboard (no software keyboard shows), tap **Type here**: **Paste** is
2839
+ expected in the header with **More** beside it, and no **Done** (the shell reads 120 px or less hidden at the
2840
+ bottom as no keyboard, so a short bar of iOS's own there is expected to change nothing, INFERRED; note whether
2841
+ **Done** shows). Tap **Paste** once, then press Cmd-V in **Type here**: each is expected to paste the clipboard
2842
+ once. Record what was seen.
2843
+ 64. **Copy**. On a lane tab with output on the screen and the keyboard down, tap **Copy**. The Captured screen sheet
2844
+ is expected to open in the same tap: the title `Captured screen`, under it `Copied` (or `Clipboard blocked`, the
2845
+ same word as the header's status line under the sheet), then the screen's text in a monospace font, one terminal
2846
+ row per line, Zellij's frames and bars included. If `Clipboard blocked` shows, note it: the sheet is expected to
2847
+ hold the text all the same. If `Copied` shows, paste into Notes and compare: the same text is expected. Back in Lanes, tap **Close**.
2848
+ Then tap **Type here** so the software keyboard opens, and tap **Copy** again: the keyboard is expected to close
2849
+ as the sheet opens (lead ruling S1), and to stay closed after **Close** (read from the code). Note whether anything
2850
+ arrived in the lane (nothing is expected). Record what was seen.
2851
+ 65. Copying one part. In the Captured screen sheet, long-press a word: note whether iOS selects it and shows the
2852
+ selection handles and its own menu (INFERRED, not yet checked on a device). Drag the handles over exactly one line,
2853
+ tap iOS's **Copy**, close the sheet, and tap **Paste** in the header at a `cat` prompt: just that line is
2854
+ expected to arrive. Do the same with one address the lane printed (a URL) and with one command. Note whether a long
2855
+ press or a drag in the sheet sends anything to the lane (nothing is expected), and whether the text scrolls up and
2856
+ down when it is longer than the sheet. If a row is wider than the sheet, note whether it scrolls sideways (on a
2857
+ phone such a row is rare, INFERRED: the sheet's type is 13 px and the terminal's is 14 px or more; step 68 checks
2858
+ it on a tablet). A row the terminal wrapped is expected as two lines, and output above the visible screen is not
2859
+ in the sheet (by design). Record what was seen.
2860
+ 66. Closing the sheet. Open the Captured screen sheet with **Copy** and tap **Close**: it is expected to close. Open it
2861
+ again and tap the dimmed area outside the panel: it is expected to close (on a phone the band above the panel
2862
+ shrinks as the text grows; at its smallest it is the top safe area and 20 px below it, calculated from the declared
2863
+ CSS; note how tall it is and whether it can be hit). Open it again and tap the text once, without a long press: it
2864
+ is expected to stay open. With a hardware keyboard that has an Escape key (note which keyboard), open it and press
2865
+ Escape: it is expected to close. Open it again, tap the text once, then press Tab and then Escape: Tab is expected
2866
+ to keep the focus in the sheet, on **Close**, and Escape to close it (read from the code). After each close, note
2867
+ whether the lane got anything (nothing is expected; use a `cat` prompt) and whether the terminal takes taps and keys
2868
+ again. With VoiceOver on, note what is read when the sheet opens (the focus moves to its **Close**) and what the
2869
+ Workspaces sheet's close button is read as (named `Close` since E1a; it was `Close workspaces`). Record what was
2870
+ seen.
2871
+ 67. Finding **Copy** and **Paste** by their icons (lead ruling S3: on a phone both show icons only). Ask a person who
2872
+ has not used Lanes to copy one line of a lane's screen and to paste text into a lane, without naming or pointing
2873
+ at the controls. Note whether they find **Copy** and **Paste** by their icons alone, what they try first, which
2874
+ control each of them uses, and how long it takes. Record what was seen.
2875
+ 68. iPad Safari (tablet mode): tap **Copy**. The Captured screen sheet is expected as the left panel, at most 400 px
2876
+ wide (85 % of a narrower window, calculated from `browser.css`), the panel the Workspaces sheet uses, holding the
2877
+ screen's text. A row wider than the panel is expected to scroll sideways: note whether it does, and whether one row
2878
+ can be selected and copied as in step 65. Tap to the right of the panel, press Escape on a hardware keyboard that
2879
+ has one (note which), and tap **Close**: each is expected to close it. With a trackpad, drag-select a row from the
2880
+ text and let go to the right of the panel: the sheet is expected to stay open, the selection kept. With the
2881
+ on-screen keyboard up, note whether **Copy** closes the keyboard (it is expected to). Record what was seen.
2882
+
2883
+ Device check, Home Screen identity (E1c-1, BEY-8667; NOT YET DONE — no one has run these on an iPhone; the unit suite
2884
+ reads only the manifest's keys, and which address an installed app opens, and what makes two icons two apps, are
2885
+ INFERRED from the W3C manifest defaults, not seen). With two phone views (`<your device>-phone` and a second one from
2886
+ `lanes-launch web <name> --mobile`), on a real iPhone in a Safari tab and from the Home Screen. Each step records what
2887
+ was seen and claims nothing beyond it:
2888
+
2889
+ 69. Before any install, from a client on the tailnet, run
2890
+ `curl -sI https://<server>.<tailnet>.ts.net:8443/lanes-assets/manifest.webmanifest`. Expected: status 200,
2891
+ `Content-Type: application/manifest+json` and `Cache-Control: no-cache`. No Caddyfile rule names the type:
2892
+ Caddy's `file_server` takes it from the host's MIME tables, and a host without a `webmanifest` entry may send
2893
+ another type or none (INFERRED). Record the status line and both headers as printed, or that `Content-Type` is
2894
+ missing. If the type is not `application/manifest+json`, do steps 70 to 73 anyway and say so: they then show what
2895
+ iOS does with that type.
2896
+ 70. Remove every Lanes icon from the Home Screen (an icon added under the old manifest keeps its `/phone`, INFERRED).
2897
+ Open a different lane in each view (lane A in the first, lane B in the second), so that the picker's `›` tells
2898
+ the two apart. In Safari, open the first view's plain URL (nothing after `#`, and no session switch before:
2899
+ choosing a session in **Switch session** loads `/<session>`, upstream app.js:3019, and a switch made inside Zellij
2900
+ rewrites the address to the other session, app.js:3318), sign in, and choose **Share → Add
2901
+ to Home Screen**; name it `Lanes 1` in the sheet. Do the same for the second view as `Lanes 2`. Note the address
2902
+ the sheet shows, if it shows one. Record what was seen.
2903
+ 71. Open `Lanes 1` from its icon. Note whether it asks for the token again, and which workspace and lane it shows
2904
+ (`›` before lane A is expected). Swipe it away in the app switcher, open it again from its icon, and note the
2905
+ same. Expected both times: the first view, never the view `phone` and never a bare `bash` prompt. Record what was
2906
+ seen.
2907
+ 72. Step 71 with `Lanes 2` (lane B is expected). Then, with both open, open the app switcher: two separate apps are
2908
+ expected (INFERRED). Open `Lanes 1` from its card and then from its icon, and note whether it shows the first view
2909
+ each time and whether `Lanes 2` is still there. Record what was seen.
2910
+ 73. In Safari, open the first view's URL with `#lanes` after it (the lane list opens), add it to the Home Screen as
2911
+ `Lanes #`, swipe it away and open it from its icon. Note whether the lane list opens at every launch (expected
2912
+ from mobile.js:18, INFERRED for an installed app). Remove that icon afterwards. Record what was seen.
2913
+
2914
+ Device check, links in a lane (E1b-1, BEY-8667; numbered from 74 to 80, after E1c-1's 69 to 73; NOT YET DONE — no one
2915
+ has run these on an iPhone, and nothing of this slice has been seen in Safari; the node suite shows `links.js` and
2916
+ `mobile.js` against a fake page and a fake of upstream's touch handler only). Every step is run on a real iPhone, once
2917
+ in a Safari tab and once in the Home Screen app, and where marked on an iPad. Each step records what was seen and
2918
+ claims nothing beyond it:
2919
+
2920
+ 74. A wrapped docs address. In a shell lane, print an address long enough to wrap at the phone's width, for example
2921
+ `echo "Published: https://<this host>/lanes-docs/d/<an id>"` with the page's own host and a document's id. Note the
2922
+ terminal's width and whether the address wraps. Tap the address once on its first row. An **Open** control is
2923
+ expected in the header where the workspace and lane names were: `Open`, and under it the host alone, without
2924
+ `https://` or a path. Note how long it stays (about 8 s is expected) and that the names come back. Tap the
2925
+ address again, on its second row: the same control is expected. Tap **Open**: the whole address is expected to open
2926
+ in a new tab. In the Home Screen app, note where it opens (Safari, a view inside the app, or nowhere). Record what
2927
+ was seen.
2928
+
2929
+ Then an address an agent printed. In an agent lane (Claude), ask for a long `/lanes-docs/` address in its answer,
2930
+ long enough to wrap at the phone's width (a published document's full address). Note the last column the
2931
+ address's first row reaches, and how its second row starts (an indent, a frame's `│`). Tap the address once on its
2932
+ second row, then tap **Open**. Record whether the label under **Open** and the new tab hold the whole address, or
2933
+ only the part on one row (an address wrapped short of the last column is expected to open cut; web/README.md,
2934
+ Links in a lane, Limits).
2935
+ 75. A same-origin path. In a shell lane, run `echo see /lanes-docs/` and tap `/lanes-docs/`. The control is expected
2936
+ with `Open /lanes-docs/`; tap it. The Docs page is expected in a new tab, signed in, since it is the same site.
2937
+ Record what was seen.
2938
+ 76. A hold, a swipe and two fingers. Hold a finger on an address for about 1 s, then lift: no control is expected (the
2939
+ lane gets upstream's right click, as before). Start a swipe on an address and move more than a finger's width: no
2940
+ control is expected. Tap an address with two fingers at once: no control is expected. While a control shows, type a
2941
+ key on the keyboard, and in another try tap a key of the strip: each is expected to take it away at once. Record
2942
+ what was seen.
2943
+ 77. Finding the control (lead ruling B2). Ask a person who has not used Lanes to open an address a lane printed,
2944
+ without naming or pointing at the control. Note whether they find **Open** in the place of the names before it goes,
2945
+ what they try first (a long press, **Copy**, the Captured screen sheet), and how long it takes. Record what was
2946
+ seen.
2947
+ 78. The lane still receives the tap. In a lane that answers a click (the lane picker, or a program with mouse support),
2948
+ tap an address and a spot with no address: the lane is expected to answer both taps as it did before E1b-1, and the
2949
+ control to show only for the address. With VoiceOver on, note what is read for the control and whether it can be
2950
+ reached. Record what was seen.
2951
+ 79. A panned view and an iPad. On a phone whose view pans sideways (a wider client on a laptop pins the terminal's
2952
+ size), pan, then tap an address: the control is expected for the address under the finger, not one beside it. On
2953
+ an iPad (tablet mode), tap an address: the control is expected in the top bar, where the names were, and **Open** to
2954
+ open a new tab. With a hardware keyboard, press Tab while the control shows: it is expected to go, since a Tab typed
2955
+ in the lane is a key like any other. Record what was seen.
2956
+ 80. A long host (PR 1150's review). In a shell lane, run
2957
+ `echo https://rd-control.tail70a9fd.ts.net.lanes-docs.d.abcdefgh.evil.example/x` and tap the address, on an iPhone
2958
+ whose Safari window is 440 px wide and on the narrowest one at hand (320 px if one is; note its width). Note the
2959
+ label under **Open** at each width: which end shows the `…` (the start is expected, so that
2960
+ `evil.example` stays in view; INFERRED from the right-to-left span), and whether any of `evil.example` is cut. Then
2961
+ run `echo see /lanes-docs/d/../../x` and tap it: no control is expected. Record what was seen.
2962
+
2963
+ Device check, links on Docs pages (E1b-2, BEY-8667; NOT YET DONE — no one has run these on an iPhone, and nothing of
2964
+ this slice has been seen in Safari; `test_mdlite.py` checks the rendered HTML, and `test_install.DocsRoute` checks the
2965
+ redirect on a model of the Caddyfile in front of a loopback docsd, with no browser and no Caddy). First the server
2966
+ runs the release with this change and `lanes-mobile` has been restarted on its Caddyfile (section "Docs service",
2967
+ "Caddy picks up the route"). On a real iPhone, in a Safari tab and in the Home Screen app where marked. Each step
2968
+ records what was seen and claims nothing beyond it; the numbers start at 81, after E1b-1's 74 to 80:
2969
+
2970
+ 81. From a lane, publish a Markdown file whose text holds a bare address followed by a full stop, for example
2971
+ `See https://example.com/docs.` (`~/.lz/bin/lane publish <file>`), and open it on the Docs page in a Safari tab.
2972
+ The address is expected to show as a link without the full stop. Long-press it and note the address the preview
2973
+ names (expected without the `.`); then tap it and note whether it opens in a new tab. Then do the same in the
2974
+ Home Screen app and note where the link opens (a Safari tab, a view inside the app, or nothing; which one is
2975
+ INFERRED). Record what was seen.
2976
+ 82. In a Safari tab, type `https://<server>:8443/lanes-docs` with no slash into the address bar. The Docs page is
2977
+ expected, not a terminal page. Then type `https://<server>:8443/lanes-docs?ws=<workspace>`: the index narrowed to
2978
+ that workspace is expected, with its `Showing <workspace title>` line (the registry's title, for example
2979
+ `BW Tools` for `bw-tools`) and an **All docs** link. Note whether a terminal page opens at any point (before this
2980
+ change it did). Record what was seen.
2981
+
2982
+ Device check, reopen the last tab (E1c-2, BEY-8667; numbered from 83, after E1b-1's 74 to 80, as 81 and 82 are held
2983
+ for E1b-2 (PR 1156); NOT YET DONE — no one has run these on an iPhone, and nothing of this slice has been seen in
2984
+ Safari; the node suite shows the shell's `FocusPane` and its memory against a fake page and a fake client only). First
2985
+ the server runs the release with this change. The Home Screen steps also need E1c-1's manifest, so that the icon opens
2986
+ the address it was added from; before it, the icon opens `/phone`, which keeps a memory of its own. Every step is run
2987
+ on a real iPhone, in a Safari tab and in the Home Screen app where marked. Each step records what was seen and claims
2988
+ nothing beyond it:
2989
+
2990
+ 83. A reload in a Safari tab. Open `https://<server>:8443/<device>-phone`. With **Workspaces**, open a workspace other
2991
+ than the first (call it B), then a lane in it (call it X). Reload the page. The page is expected to come back on
2992
+ B's lane tab showing X, not on the first workspace's lane list. Note whether the first workspace shows for a
2993
+ moment first, and whether any key or letter arrives in X (none is expected). Then tap **Lanes** to open B's lane
2994
+ list and reload again: B's lane list is expected. Record what was seen.
2995
+ 84. A reconnect. On B's lane tab, turn on Airplane Mode for about 10 s, then turn it off. Note whether the page shows
2996
+ **Disconnected**, and whether it reloads by itself within about 30 s (or after Zellij's **Reconnect Now**). If it
2997
+ reloads, note where it lands: B's lane tab is expected. If it does not, record that (E3), reload by hand, then
2998
+ note where it lands. A page still showing B's tab without a reload is not a restore. Record what was seen.
2999
+ 85. A relaunch from the Home Screen. Remove the old Lanes icon. In Safari, open the plain `/<device>-phone` address,
3000
+ with no `#…`, and add it to the Home Screen. Open the app, go to B's lane tab with X, then swipe the app away in
3001
+ the app switcher and open it again from its icon. The address is expected to be `/<device>-phone`, not `/phone`,
3002
+ and the page to land on B's lane tab showing X. Note whether the app started from the Safari tab's memory (step
3003
+ 83) or from its own (INFERRED: its own). Then lock the phone for a few minutes and open the app once more, without
3004
+ swiping it away. Do not expect a restore here: a page that was only in the background does not load again. Note
3005
+ whether it shows **Disconnected** and whether it reloads by itself within about 30 s. If it does not, record that
3006
+ (E3), reload by hand, then note where it lands. A page still showing B's tab without a reload is not a restore.
3007
+ Record what was seen.
3008
+ 86. A gone workspace. Leave the page on B's lane tab. From another client, remove workspace B, or rename it. Reload
3009
+ the page. It is expected to open where Zellij puts it (expected: the first workspace's lane list) and to work:
3010
+ open a lane and tap `⏎`. Reload once more: the page is expected to stay on the tab it showed last. This stands
3011
+ until the owner answers Q1 (BEY-8668). Record what was seen.
3012
+ 87. Storage blocked. In Settings → Apps → Safari, turn on **Block All Cookies**, then open the page. Note whether it
3013
+ signs in at all (the sign-in cookie is blocked too, INFERRED). If it does, open a lane, tap `⏎` and reload: the
3014
+ page is expected to work, and to open where Zellij puts it. Turn the setting off again. Then do step 83 in a
3015
+ Private tab and note whether the reload comes back. Record what was seen.
3016
+ 88. Two pages. Open the same `/<device>-phone` in two Safari tabs. Put the first on B's lane tab and the second on
3017
+ another workspace's lane tab (C). Note that neither tab moves when the other does (Q2's default, BEY-8669). Reload
3018
+ the first: it is expected to come back on C's lane tab, because the second page wrote last. With two views (two
3019
+ addresses), each reload is expected to come back to its own view's tab. Record what was seen.
3020
+ 89. A switch made inside Zellij. With a hardware keyboard, press `Ctrl-Alt-s` in a lane, and switch to another session
3021
+ in Zellij's session manager. Note the address Safari shows afterwards (`/<that session>` is expected, INFERRED
3022
+ from the client's code). Move to a tab there and reload: the page is expected to come back on that tab of that
3023
+ session. Also: if the other session opens on a tab with the same name as the tab shown before the switch (two
3024
+ views may share workspace names), reload there without moving; that tab is expected, because the shell writes it
3025
+ under the new address too. Then open the first address again: it is expected to come back on the tab it showed
3026
+ before the switch, unless the server sent the new session's first state before the switch message (not known;
3027
+ web/README.md, Reopen the last tab, The address). Record what was seen.
3028
+
3029
+ Device check, typed sentence on the picker (E2, BEY-8667; numbered from 90, after E1c-2's 83 to 89; NOT YET DONE —
3030
+ no one has run these on an iPhone; the unit suite feeds the sidebar the bytes **Type here** sends and runs no
3031
+ browser). First the server runs the release with this change, and the phone's sidebar runs it too (its footer shows
3032
+ no ` server … · view …` note). Make two or three throwaway shells with the picker's **+ New shell** row; they are
3033
+ listed under **Unregistered**. Every step is run on a real iPhone on a lane picker, once in a Safari tab and once in
3034
+ the Home Screen app. Each step records what was seen and claims nothing beyond it:
3035
+
3036
+ 90. A sentence at your normal pace, a suggestion word and dictation. With no update offered and no question open, tap
3037
+ **Type here** on a picker, type `run the tests` and Return. Expected: while you type, the footer says
3038
+ ` Typing? Tap a lane to type in it`; no `▲` appears, no lane leaves the list or moves to **Unregistered**, nothing
3039
+ opens, and no prompt (a message or a rename field) opens. Then type `pun` and Return, and `make it so` and Return;
3040
+ then type `pu`, tap a word on the suggestion bar, and Return; then dictate "pin it" with the keyboard's microphone,
3041
+ and Return: the same is expected each time. That a tapped word reaches the sidebar as one read is INFERRED from
3042
+ the shell's code (`mobile.js`), and what dictation sends is not known. On a desktop of the same owner, check that
3043
+ no lane was pinned or hidden. Record what was seen.
3044
+ 91. Enter after a pause, a blank line, and a Space. Type `ok`, wait about 1 s, then Return: nothing is expected to
3045
+ open. Type `ok` again, wait about 3 s, then Return: the cursor lane is expected to open (2 s of silence ended the
3046
+ typing state). Back on the picker (**Lanes**), type `ok`, Return, and Return again within about 1 s: nothing is
3047
+ expected to open (a blank line). Then type one Space and wait about 3 s: nothing is expected to open (until E2 a
3048
+ Space opened the cursor lane). Record what was seen.
3049
+ 92. A close question. Tap `×` beside a throwaway shell, then `y` and `⏎` on the quick row: the shell is expected to
3050
+ close once. Then type `ok` and, within 2 s, tap `×` beside a second throwaway shell, then `y` and `⏎`: it is
3051
+ expected to close once too (the tap ended the typing state). Record what was seen.
3052
+ 93. Add to workspace. Tap the register mark (`+`) beside a throwaway shell, type `hello` and Return. Expected:
3053
+ nothing is added, and the picker still offers the workspaces (its footer says ` Typing? Tap a lane to type in it`
3054
+ for about 3 s, then ` Choose a workspace · Tap Cancel`). Then tap `y` and `⏎` on the quick row at once: the shell
3055
+ is expected to be added to the workspace the cursor is on, once (the `y` between ends the blank-line rule, so that
3056
+ `⏎` is no blank line). Unregister it afterwards with `u` on a desktop, or `lanes unregister <lane-id>` on the
3057
+ server. Record what was seen.
3058
+ 94. A slash command. Type `/compact` and Return. Expected: the filter opens with `compact` as its text; its Return
3059
+ opens the top match if a lane's name matches, and nothing when none does. Nothing is written or ended. Record what
3060
+ was seen, and which lane opened, if any.
3061
+ 95. The hidden row. Hide a lane of this workspace from the server (`lanes lane hide <lane-id> --login <login>`). The
3062
+ picker's list is expected to end with `hidden (1) · tap shows it` (`hidden (n) · tap shows them` when more are
3063
+ hidden). Tap that row: the hidden lane is expected to show, faint, and the row to say `tap hides it`. Tap the row
3064
+ again: the lane is expected to go, and the row to say `tap shows it` again. No footer word is expected to name
3065
+ `o`. Show the lane again afterwards with `lanes lane show <lane-id> --login <login>`. Record what was seen.
3066
+ 96. An update ready. When an update has stamped this view (`~/.local/state/lanes/clients/<device>.update-ready` exists
3067
+ on the server: the layout changed while the phone was attached), the footer is expected to say ` update ready`,
3068
+ with no `reload (r)`. Type `run tests` and Return: the view is expected not to rebuild, and the footer to keep the
3069
+ offer. Then run `lanes rebuild <device>` on the server, or close the page and let `lanes-ensure.timer` rebuild the
3070
+ view within a minute. Record what was seen, and how the page came back.
3071
+ 97. An iPad laid out as a phone (`lanes-launch web <name> --mobile`) with a hardware keyboard, on its picker.
3072
+ Expected: `j`, `k` and the arrows move the cursor, Return opens the cursor lane, `/` opens the filter, and `x`,
3073
+ `p` and `R` type and act on nothing (no close question, no `▲`, no rename field). Whether a hardware keyboard's
3074
+ letters reach the sidebar the way the software keyboard's do is INFERRED from the code. Record which keyboard, and
3075
+ what was seen.
3076
+
3077
+ Device check, coming back to a dead page (E3, BEY-8667; numbered from 101, after 3b's 98 to 100; NOT YET DONE — no one
3078
+ has run these on an iPhone, and nothing of this slice has been seen in Safari; the node suite shows `mobile.js`
3079
+ against a fake page and a fake client that cannot reload). First the server runs the release with this change. Use a
3080
+ disposable view, with a shell lane in it. Every step is run on a real iPhone in a Safari tab, and in the Home Screen
3081
+ app where marked. Each step records what was seen and how many times the page reloaded (step 101), and claims nothing
3082
+ beyond it:
3083
+
3084
+ 101. Counting reloads. Every step below counts how often the page reloads. With a Mac: connect the iPhone, open the
3085
+ page on it, and in Safari on the Mac open the Develop menu, the iPhone, then the page. In the Web Inspector's
3086
+ Console keep the log across loads (Preserve Log; INFERRED from the tool, not tried here), so each load leaves a
3087
+ line, and watch the Network tab for `/info/version`. Without a Mac: open the Captured screen sheet with **Copy**
3088
+ before each step; a reload closes it, so a sheet still open afterwards means no reload, but two reloads look like
3089
+ one. Then reload once by hand: one load is expected, and no `/info/version` request from the shell (E3-R4: never
3090
+ at load). Record the method and what was seen.
3091
+ 102. **Reconnect** and the dim. On a lane tab in portrait, on the narrowest iPhone at hand (320 px wide if one is; note
3092
+ its width), make the terminal socket close with the page shown: turn on Airplane Mode and wait for Zellij's
3093
+ reconnect notice, then tap its **Cancel** (step 106 checks Cancel itself). If no notice comes within about 30 s,
3094
+ note it (the socket may still read open; step 105). Expected after **Cancel**: the status line says `Disconnected`
3095
+ or `Check last input`; the terminal is dimmed to about half; **Reconnect** stands right after **Copy**, where
3096
+ **Paste** was, with **More** after it, and **Paste** shows nowhere. Note how much of the workspace and lane names
3097
+ stays readable beside **Reconnect** (its width is its word's, which no model measured), whether its word is cut,
3098
+ and what VoiceOver reads for it. Do the same on a picker tab, and on an iPad, where **Reconnect** is expected
3099
+ before the dock. Turn Airplane Mode off and tap **Reconnect**: `Reconnecting…`, then one reload, are expected.
3100
+ Record what was seen.
3101
+ 103. Whether the back/forward cache happens at all. In a Safari tab on a lane tab, open the Captured screen sheet with
3102
+ **Copy**. In the same tab, open another address from the address bar (the Docs page, `/lanes-docs/`), wait about
3103
+ 10 s, then tap Back. A sheet still open and the old screen mean the page came back from the back/forward cache
3104
+ (a `pageshow` with `persisted`); no sheet means a fresh load. With the Web Inspector, run
3105
+ `addEventListener('pageshow', e => console.log('pageshow', e.persisted))` in the Console before leaving, and
3106
+ read the line after Back. If the page came from the cache and its terminal socket was closed meanwhile,
3107
+ `Reconnecting…` and one reload are expected; with the socket still open, nothing (a `pageshow` with the socket
3108
+ open checks nothing, whatever `persisted` says). Repeat with a wait of about 2 min: then, if the socket still
3109
+ reads open, the stale path is expected instead (a return after a hide longer than 30 s): `Reconnecting…`,
3110
+ then one reload on a quiet lane, and nothing on a lane that prints. Record which happened each time.
3111
+ 104. A lock longer than 30 s. On a quiet shell lane (nothing printing), lock the iPhone for about 1 min, then unlock.
3112
+ Expected: `Reconnecting…` on the status line for about 5 s, then one reload that lands on the same tab (a healthy
3113
+ but quiet lane is reloaded too, E3-R5). Then in a lane that prints every second (`while sleep 1; do date; done`)
3114
+ lock for about 1 min again: `Reconnecting…` is expected to go as soon as output comes, with no reload. Then lock
3115
+ for about 10 s: no word and no reload are expected. Each time, note whether the socket was found closed instead
3116
+ (the close word, the dim, **Reconnect**, Zellij's notice) and what reloaded the page, and count the reloads. A
3117
+ close during the 5 s ends the wait, so the shell's check does not come then; two reloads are possible only
3118
+ when the socket closes while that check is on its way (INFERRED). With the Web Inspector, keep step 103's
3119
+ `pageshow` line and add `addEventListener('pagehide', () => console.log('pagehide'))` before the lock: note
3120
+ whether a `pagehide` and a `pageshow` come with it (a `pagehide` with no `pageshow` leaves the close on the
3121
+ shown page unchecked; web/README.md, Limits). After any return from a long hide, note whether the page stands
3122
+ with a dead socket and no **Reconnect**: `No connection to Lanes` standing, no dim, and a Paste that says
3123
+ `Paste sent` while nothing arrives. The code leaves a failed stale check that way (the lane lead's ruling: a
3124
+ live socket must not stand on `Disconnected`); if a device shows it, its fix is its own slice, with words from
3125
+ the design lane. Record what was seen.
3126
+ 105. Airplane Mode and `online`. (a) On a lane tab, turn on Airplane Mode for about 10 s and off again, the page shown
3127
+ throughout: note whether the close word, the dim and **Reconnect** come, whether Zellij's notice comes and
3128
+ reloads by itself, and the count (one reload, the client's, is expected; the shell checks nothing without a
3129
+ `pagehide`). (b) Only if step 103 showed the back/forward cache: leave the page for the Docs page in the same
3130
+ tab, turn on Airplane Mode, then tap Back. Expected: `Reconnecting…`, then within about 5 s `No connection to
3131
+ Lanes` for about 1.6 s and the close word again, with **Reconnect** staying. Wait a minute: nothing more is
3132
+ expected (nothing polls). Turn Airplane Mode off: one check and one reload are expected when the phone goes
3133
+ online (whether iOS fires `online` there is part of this check); if nothing happens within about 30 s, note it
3134
+ and tap **Reconnect**. (c) With the page shown, switch from Wi-Fi to mobile data: note whether the socket closes
3135
+ or still reads open (a Paste then says `Paste sent` while nothing arrives in the lane). With the Web Inspector,
3136
+ note as in step 104 whether a `pagehide` or a `pageshow` came. Record what was seen.
3137
+ 106. **Cancel** on the client's notice. On a lane tab, make the socket close with the page shown (Airplane Mode, as in
3138
+ step 102). When Zellij's reconnect notice comes, tap **Cancel** at once, then turn Airplane Mode off. Expected:
3139
+ the close word, the dim and **Reconnect**, and nothing reloading by itself for at least a minute (the client's
3140
+ loop stops at Cancel, and without a `pagehide` the shell checks nothing by itself). Tap **Reconnect**:
3141
+ `Reconnecting…`, then one reload, are expected. Record what was seen.
3142
+ 107. A 4001 (another client). Make the server end this client with close code 4001 by opening the same view from
3143
+ another client (the lane lead's step; which action makes Zellij send 4001 is INFERRED, so note what you did).
3144
+ Expected: Zellij's own `Disconnected` notice, which offers only Acknowledge; tap it. Then the close word, the dim
3145
+ and **Reconnect**. Nothing is expected to check or reload by itself: lock and unlock, switch apps and back, turn
3146
+ Airplane Mode on and off, and wait a minute. Tap **Reconnect**: one check and one reload are expected (a person's
3147
+ act, not the page's). Note what the other client shows afterwards. If the 4001 can be made to come during
3148
+ step 104's `Reconnecting…` (back from a lock longer than 30 s), nothing is expected to check or reload by
3149
+ itself then either: the close ends the wait. Record what was seen.
3150
+ 108. The Home Screen app. Do steps 102, 104 and 106 in the Home Screen app (with E1c-1's manifest, so that the icon
3151
+ opens its own view). It has no reload button and no address bar (INFERRED), so **Reconnect** is the one way to
3152
+ reload by hand: note whether it is reachable and whether a tap reloads. Go to the Home Screen and back after
3153
+ about 1 min with the socket closed: note whether the page checks at once (a `pagehide` ran) or Zellij's notice
3154
+ reloads it (no `pagehide`). Swipe the app away and open it again: a fresh load, with no check, is expected.
3155
+ Record what was seen.
3156
+ 109. A filter typed before a reload. On a picker tab, type `ab` in the filter bar: the list filters and the footer
3157
+ shows `/ab`. Make the page reload itself (step 104's lock on a quiet lane, or **Reconnect** after step 106's
3158
+ close). Expected after the reload (INFERRED): the page back on that picker tab with its filter bar empty, while
3159
+ the footer still shows `/ab` and the list stays filtered. Type a letter in the bar and clear it: the list is
3160
+ expected whole again. Record what was seen.
3161
+ 110. A Safari without `AbortSignal.timeout` (iOS 14 or 15), if such an iPhone is at hand. Do step 106 with the network
3162
+ on: one check and one reload are expected after the tap on **Reconnect**. Then close the socket and tap
3163
+ **Cancel** again, leave Airplane Mode on, tap **Reconnect**, and note how long `Reconnecting…` lasts and whether
3164
+ `No connection to Lanes` comes at all (the check has no 5 s deadline there; with no network at all it may fail at
3165
+ once, INFERRED, so a network with no route to the server shows more, if one is at hand). Note whether a second
3166
+ tap does anything while the first check hangs (nothing is expected). Record what was seen.
3167
+
3168
+ Device check, a laptop browser goes back (Ed, BEY-8667; numbered from 111, after E3's 101 to 110; NOT YET DONE — no
3169
+ one has run these in a browser; the node suite boots `browser.js` against a fake page and a fake client). First the
3170
+ server runs the release with this change. Use your laptop's browser view (`lanes-launch web laptop`, the view
3171
+ `<your device>-web`) in a desktop browser (Safari, Chrome or Firefox), on a view with at least two workspaces. Each
3172
+ step records what was seen and claims nothing beyond it:
3173
+
3174
+ 111. A reload. Open the view's address, open the **Lanes** chip and pick another workspace, then a lane in it that is
3175
+ not its first pane. Reload the page. Expected: it comes back on that workspace and that lane, and nothing is
3176
+ typed into the lane. Then close the browser tab, open the address again, and note the same. Record what was seen.
3177
+ 112. A move inside Zellij. Without the chip, move to another workspace with `Ctrl-Alt-→` (or a lane with the
3178
+ sidebar), then reload. Expected: the page comes back where you moved. Record what was seen.
3179
+ 113. A gone workspace. Note the workspace shown, hide it on the server (`H` in its sidebar, or `lanes workspaces hide`)
3180
+ and reload. Expected: the page opens where Zellij puts it (INFERRED: the first tab) and works; show the workspace
3181
+ again afterwards. Record what was seen.
3182
+ 114. A changed lane title. If a lane's pane title changes while you work (a program that sets its terminal title),
3183
+ reload. Expected: the page comes back to that workspace (its first pane), or stays when that workspace is the
3184
+ current one. Record the title before and after, and what was seen.
3185
+ 115. Two tabs and a private window. Open the address in two browser tabs, move each to another workspace, and reload
3186
+ the first: it is expected to come back where the second tab was, because it wrote last. Then open the address in
3187
+ a private window: it is expected to open where Zellij puts it, and to work. Record what was seen.
3188
+ 116. No connection status. Stop the network or close the server's connection, and note what the page shows. The bar
3189
+ is expected to show no connection word; what the client itself shows is upstream's. Record what was seen.
3190
+
3191
+ Device check, notification and address links (E4, BEY-8667; numbered from 117, after Ed's 111 to 116; NOT YET DONE —
3192
+ no one has run these on an iPhone or against an ntfy server, and nothing of this slice has been seen in Safari; the
3193
+ node suite shows `mobile.js` against a fake page and a fake client, and `notify.py`'s unit tests show a push's text
3194
+ and tap address). The operator, not this lane, writes `notify.conf`, enables `lanes-notify` and creates the view and
3195
+ its workspaces: enabling the unit is the operator gate of "Push notifications (opt-in)" above (DM-LANES-NOTIFY), and
3196
+ the lane writes nothing to a live server's state. The push steps (118, 119, 122, 123, 124 and 126) wait for that gate,
3197
+ and "Not yet run against any ntfy server or phone" stays true until they run. First the server runs the release with
3198
+ this change. Setup: an ntfy server, and the ntfy app on the iPhone subscribed to the topic; in `notify.conf`,
3199
+ `lane_url=https://<server>:8443/<device>-phone?ws={ws}` and `action_url=https://<server>:8443{doc}`; a disposable view
3200
+ with a workspace whose title has a space (`BW Tools` below) holding an agent lane, and a second workspace (C). Step
3201
+ 121's Home Screen app also needs E1c-1's manifest, so that the icon opens the address it was added from; before it,
3202
+ the icon opens `/phone`, which keeps a memory of its own. Every step is run on a real iPhone (step 125 on an iPad and
3203
+ a desktop browser), in a Safari tab and in the Home Screen app where marked. Each step records what was seen and
3204
+ claims nothing beyond it:
3205
+
3206
+ 117. A typed address. In a Safari tab, leave the page on C's lane tab, so the memory holds C, then open
3207
+ `https://<server>:8443/<device>-phone?ws=BW%20Tools`. Expected: the page loads on BW Tools's lane list (its `☰`
3208
+ tab), nothing is typed into any lane, and the address bar then shows `/<device>-phone` with no `?ws=` left.
3209
+ Reload: the page is expected to stay on that lane list. Record what was seen.
3210
+ 118. A needs-you push, tapped on the lock screen. With the iPhone locked and no desk device attached or used within
3211
+ the presence window, make the agent lane in BW Tools need you (an agent that asks a question). Expected text:
3212
+ one line, `<lane name>: <agent task> — Needs you`, with no `lanes-launch` line. Tap the push, unlock, and note
3213
+ which app opens it: Safari, the Home Screen app, or a view inside the ntfy app (INFERRED: such a view may keep
3214
+ its own storage, so it would ask for the login token and keep no memory). Expected: BW Tools's lane list, with
3215
+ no `?ws=` left in the address where one is shown. Record what was seen.
3216
+ 119. The push's **Open lane** button. On the next such push, open its actions (a long press on the notification) and
3217
+ tap **Open lane**. Expected as in step 118; note any difference from a tap on the push itself. Record what was
3218
+ seen.
3219
+ 120. A Safari that never logged in. In a Private tab (or after removing the server's website data from Safari), open
3220
+ step 117's address. Expected: Zellij's login token prompt; after the token, BW Tools's lane list, and no `?ws=`
3221
+ left in the address. Note whether the address still showed `?ws=` while the prompt was up (expected, read in the
3222
+ pinned client's code). Record what was seen.
3223
+ 121. The Home Screen app beside Safari. Open the Home Screen app on the same view and leave it on C's lane tab. Then
3224
+ open the view in Safari with `?ws=BW%20Tools`: by a push once the gate allows, and before that by step 117's
3225
+ address. Note whether the app's tab moved (INFERRED: it does not; one client's `FocusPane` is expected to leave
3226
+ another client's tab alone). Then swipe the app away, open it again from its icon, and note where it lands
3227
+ (INFERRED: on C, from its own memory, if iOS keeps the app's storage apart from Safari's). Record what was seen.
3228
+ 122. Three pushes in a row. Make three needs-you transitions in BW Tools, one after another, and tap each push as it
3229
+ comes. Afterwards count Safari's tabs, and on the server list the view's clients with
3230
+ `zellij -s <device>-phone action list-clients`. Note whether each tap opened a new tab and a new client or reused
3231
+ one. Record what was seen.
3232
+ 123. A lane in a hidden board, and a lane in no workspace. (a) Hide BW Tools for the view's owner with
3233
+ `lanes workspaces hide <id> --login <login>`. That writes the owner's profile only, and it reaches every device
3234
+ of that login, so prefer a disposable login. The view's tabs follow at the next tab sync: run
3235
+ `lanes upgrade-session <device>-phone` (or wait for the next `lanes ensure` minute) and check that BW Tools's
3236
+ `☰` tab is gone. Leave the page on C's lane tab, then make the agent lane in BW Tools need you and tap the push.
3237
+ Afterwards `show` BW Tools again and run `lanes upgrade-session <device>-phone` once more. (b) With the page on
3238
+ C's lane tab again, make a lane that `registry.json` lists in no workspace (an unregistered lane, which the page
3239
+ may still list under a workspace) need you and tap its push. Expected for both: the page loads as it would
3240
+ without the query, so it goes back to the remembered tab (C), and C stays remembered; in (a) `?ws=BW%20Tools`
3241
+ leaves the address, in (b) the empty `?ws=` stays in it (E4-R10). Record what was seen.
3242
+ 124. A `published` push. In a lane of the view, run `~/.lz/bin/lane publish <a small file>`. Expected: the push says
3243
+ `<lane name> published a document (<kind>, <size>)` and the document's page, and a tap, or its **Open document**
3244
+ button, opens that document on the Docs page, as before E4. Record what was seen.
3245
+ 125. An iPad, and a desktop browser. On an iPad (tablet mode), open step 117's address (the view is laid out with
3246
+ `--mobile`): BW Tools's lane list is expected, and the query gone. Then open the same address in a desktop
3247
+ browser on a laptop, with a mouse or trackpad: nothing is expected to move, and the address keeps `?ws=`.
3248
+ Record what was seen.
3249
+ 126. A push tapped while the page is open. Leave step 117's page open in a Safari tab on C's lane tab, lock the
3250
+ iPhone, make the agent lane in BW Tools need you, and tap the push. Note whether Safari reuses that tab or opens
3251
+ a new one (count the tabs), and where each tab lands. Record what was seen.
3252
+
3253
+ Device check, moving between workspaces (E5a, BEY-8667; numbered from 127, after E4's 117 to 126; NOT YET DONE — no
3254
+ one has run these on an iPhone, and nothing of this slice has been seen in Safari; the node suite shows `mobile.js`
3255
+ against a fake page and a fake client, which never moves on a `FocusPane`). First the server runs the release with
3256
+ this change. Use a disposable view laid out with `--mobile`, with two workspaces that have lane lists (A and B below),
3257
+ a lane in each, and an SSH workspace if one is at hand. The Home Screen steps also need E1c-1's manifest, so that the
3258
+ icon opens the address it was added from; before it, the icon opens `/phone`, which keeps a memory of its own. Every
3259
+ step is run on a real iPhone (and on an iPad where marked), in a Safari tab and in the Home Screen app where marked.
3260
+ Each step records what was seen and claims nothing beyond it:
3261
+
3262
+ 127. **Lanes** both ways (a Safari tab, then the Home Screen app). On A's lane list (its `☰` tab), tap **Lanes**: A's
3263
+ lane tab is expected, showing the lane the server keeps there, with nothing typed into it. Tap **Lanes** again:
3264
+ A's lane list. With VoiceOver on, note whether **Lanes** is read as selected on the lane list and not on the lane
3265
+ tab. On the SSH workspace, if there is one, a tap is expected to open the Workspaces sheet, as before. On an iPad
3266
+ (tablet mode), the same with **Lanes** in the top bar, and once more with the Workspaces panel open: note whether
3267
+ **Lanes** can be tapped then, and whether the panel closes (expected when the tab changes; INFERRED). Record what
3268
+ was seen.
3269
+ 128. A row opens where you were (a Safari tab, then the Home Screen app). With **Workspaces**, open A, then a lane in
3270
+ it (call it X), so that A's lane tab shows X. With **Workspaces**, go to B, then tap A's row: A's lane tab
3271
+ showing X is expected, not A's lane list. Then tap **Lanes** to show A's lane list, go to B, and tap A's row
3272
+ again: A's lane list is expected. Note whether any key or letter arrives in a lane (none is expected). Record
3273
+ what was seen.
3274
+ 129. After a reload. After step 128, show A's lane tab, then go to B. Reload the Safari tab, open **Workspaces** and
3275
+ tap A's row: A's lane tab is expected. In the Home Screen app, the same after swiping the app away and opening it
3276
+ from its icon. Record what was seen.
3277
+ 130. Unknown, renamed, `?ws=` and a gone lane tab. (a) On the first load after the server runs this release, A's and
3278
+ B's rows are expected to open their lane lists until each workspace's tab has been shown once at this address
3279
+ (the earlier release's memory holds no map; lead ruling E5-R4, no migration). (b) Go to A. From another client,
3280
+ rename B, as in step 86, and once the view's tabs follow, tap B's row under the new name, still from A (so that
3281
+ nothing is written under the new name, and the row is not the current one, which only closes the sheet): its
3282
+ lane list is expected (nothing is remembered under the new name; E5-R1, E5-R4). Rename it back. (c) With A's
3283
+ lane tab remembered, open
3284
+ `https://<server>:8443/<device>-phone?ws=A`: A's lane list is expected (E5-R5); then go to B and tap A's row: A's
3285
+ lane list is expected until A's lane tab is shown again. (d) Show B's lane tab, then go to A. In the disposable
3286
+ view, from a laptop browser on the same view, close B's lane tab with Zellij's own close-tab action and note the
3287
+ time. At once, tap B's row: B's lane list is expected (its remembered lane tab is gone, E5-R1). There, tap
3288
+ **Lanes**: nothing is expected to happen (E5-R2). Record the seconds from the close to each tap. Run no command:
3289
+ `lanes ensure`'s one-minute pass (`lanes-ensure.timer`) is expected to add B's lane tab back while a client is
3290
+ attached (INFERRED from bin/lanes `ensure_views` → `cmd_upgrade_session` → `device_sync.reconcile`), so note
3291
+ when it comes back, then tap **Lanes** again: B's lane tab is expected. If it was back before a tap, record that
3292
+ and repeat (d) faster. Record what was seen.
3293
+ 131. The current workspace's row. On A's lane tab, open **Workspaces** and tap A's row, marked current: the sheet is
3294
+ expected to close and nothing else to move (E5-R3). Then give A's lane tab a second pane with **More → Change
3295
+ Pane → + New Pane** (a shell outside Lanes), give that pane the focus (**Panes** now shows), open **Workspaces**
3296
+ and tap A's row: the focus is expected to stay on the second pane. Go to B, then back with A's row: note which
3297
+ pane has the focus (INFERRED: the first, as every move lands on a tab's first terminal pane). On the SSH
3298
+ workspace, its row is expected to only close the sheet too. Type `exit` in the extra pane to close it. Record
3299
+ what was seen.
3300
+ 132. **Panes** and **Type here**. On a lane tab with one pane, **Panes** is expected to be gone and **Type here** to
3301
+ span two cells. Record the phone's width and the width **Type here** takes (calculated, not measured: 175.5 px at
3302
+ 375 px, 148 px at 320 px). Tap it at its left end, middle and right end: the keyboard is expected each time. If
3303
+ **Panes** shows there, the client reports the compact-bar pane as a terminal pane (INFERRED not to): record it.
3304
+ The same in landscape, where the dock is 48 px high and **Type here** 44 px. On a lane list the filter bar and
3305
+ **Type here** are expected as before, one cell each, with no **Panes**. On a tab with two panes (step 131's, or
3306
+ the SSH workspace with two) **Panes** is expected and **Type here** in one cell. On an iPad the dock is a row in
3307
+ the top bar (`browser.css`), so **Type here** is expected to keep its 140 px whether **Panes** shows or not: note
3308
+ it. Record what was seen.
3309
+ 133. **More → Change Pane**. On a lane tab with one pane, open **More → Change Pane**: the client's list of panes is
3310
+ expected, with **+ New Tab** and **+ New Pane**, as before. Close it without choosing. Record what was seen.
3311
+ 134. Two pages, and a switch made inside Zellij. (a) Open the same `/<device>-phone` in two Safari tabs. Show A's
3312
+ lane tab in the first and A's lane list in the second, then reload the first, go to B and tap A's row: A's lane
3313
+ list is expected, because the last write wins for the whole memory (E5-R4) and no page follows another (the
3314
+ default of owner question Q2, BEY-8669). (b) After step 89's switch made inside Zellij, open **Workspaces** in
3315
+ the new session and tap a workspace whose name the old session also had and whose lane tab was shown last there:
3316
+ note which tab opens (INFERRED: that workspace's lane tab in the new view, as the memory goes on whole under the
3317
+ new address, E5-R4). Record what was seen.
3318
+
3319
+ Device check, the header names the lane (E6, BEY-8667; numbered from 135, after E5a's 127 to 134; NOT YET DONE — no
3320
+ one has run these on an iPhone, and nothing of this slice has been seen in Safari. The unit suite shows
3321
+ `view.sh --mobile` writing its OSC 2 titles to a pty, and the layout and doctor text, with no Zellij and no browser).
3322
+ First the server runs the release with this change. A phone view laid out before it keeps the workspace's name on its
3323
+ lane tab pane, which Zellij shows instead of the title. The update's `lanes ensure --if-layout-changed` rebuilds such
3324
+ a view when no client is attached, and an attached one says `update ready` in its lane list's footer (since E2 a phone
3325
+ has no `r` for it; read in `layout_changed`'s source, not run against a live view). `lanes doctor` gives each such phone
3326
+ its own `✗`
3327
+ line ending `run lanes rebuild <device>`, which rebuilds it by hand; the lanes keep running. Use a disposable view
3328
+ laid out with `--mobile`, with a workspace that has two lanes, X and Y. Every step is run on a real iPhone, in a
3329
+ Safari tab and in the Home Screen app, and where marked on an iPad. Each step records what was seen and claims nothing
3330
+ beyond it:
3331
+
3332
+ 135. Before the rebuild. On a phone view laid out before this release (if one is at hand), run `lanes doctor`: one
3333
+ `✗ phone <device> …` line is expected for it, naming its lane tab pane. Open a lane tab there: note the header's
3334
+ two lines (the workspace twice is expected). Then rebuild it, as the line says, or by the update's pass, and open
3335
+ the same lane tab: X's title is expected under the workspace. Run `lanes doctor` again: its line is expected to
3336
+ be gone. Record what was seen.
3337
+ 136. The header names the lane (a Safari tab, then the Home Screen app). Open X's lane tab: the first line is
3338
+ expected to name the workspace and the second X's title. Open Y with **Lanes**: the second line is expected to
3339
+ become Y's title. Note how long the change takes. With VoiceOver on, note what the header's button is read as.
3340
+ On an iPad (`--mobile` view) the same in the top bar. Record what was seen.
3341
+ 137. No lane, and a gone lane. On a workspace with no default lane and nothing chosen, the screen is expected to say
3342
+ `No lane selected.` with no hint under it and no word of a sidebar, and the header's second line the
3343
+ workspace's title. Then show a disposable shell lane, and from another client end it and unregister it: the
3344
+ screen is expected to say `This lane is no longer in the registry.` with no hint under it, and the
3345
+ header's second line to go back to the workspace's title. Record what was seen.
3346
+ 138. A title that is user text. Rename a disposable lane (`lanes rename <lane-id> <name>`, as in the user guide) to a
3347
+ name with a right-to-left override in it (for example `abc` + U+202E + `def`), then to one of 120 characters with
3348
+ accented letters. After each rename, wait for the sync (about 15 s), open another lane and then this one again:
3349
+ the view reads a lane's title when it opens the lane, so a lane already shown keeps its old title until then.
3350
+ The header is expected to show the name without the override, in its own order, cut to its first 100 characters,
3351
+ with no broken character at the cut. Rename it back. Record what was seen.
3352
+ 139. Unchanged elsewhere. On a desktop view of the same workspace (`lanes-window`), note that its pane frames and the
3353
+ `No lane selected` screen still name the sidebar (`Pick one in the sidebar (Ctrl-Alt-/ to find a lane).`), and
3354
+ that the window's title did not change. On the phone, open the Throttle tool tab if the site has one: its second
3355
+ line is expected to stay the tool's name. Record what was seen.
3356
+
3357
+ Device check, typed letters and the no-connection guard (E7a, BEY-8667; numbered from 140, after E6's 135 to 139; NOT
3358
+ YET DONE — no one has run these on an iPhone, and nothing of this slice has been seen in Safari; the node suite calls
3359
+ the keyboard's `sendFn` on a fake page and a fake client). First the server runs the release with this change. Use a
3360
+ disposable view with a shell lane. Every step is run on a real iPhone in a Safari tab, and in the Home Screen app
3361
+ where marked. Each step records what was seen and claims nothing beyond it:
3362
+
3363
+ 140. A lost connection. On the shell lane, turn on Airplane Mode and wait for Zellij's notice; tap its **Cancel**.
3364
+ Tap **Type here** and type `ls`, then Return. Expected: the status line says `Not sent: no connection` for about
3365
+ 1.6 s each time, then the standing `Disconnected` or `Check last input` is back; nothing reaches the lane. Turn
3366
+ Airplane Mode off and tap **Reconnect**: after the reload the lane shows no `ls`. Record what was seen.
3367
+ 141. A letter before a loss. Type `l` (no Return), then at once turn on Airplane Mode and tap **Cancel** on the
3368
+ notice. Expected: the status line says `Check last input`, not `Disconnected`. Look at the lane after the reload:
3369
+ note whether the `l` arrived. Record what was seen.
3370
+ 142. While the connection opens. Reload the page and type a letter at once, before the lane draws. Expected:
3371
+ `Not sent: no connection`, no error, and when the connection opens the line says `Not sent: try again`; type the
3372
+ letter again and it arrives. Record what was seen.
3373
+ 143. A healthy page. On an open connection type a sentence and Return: every letter arrives, in order, and no word
3374
+ appears. Do the same with a suggestion word and with dictation. Record what was seen.
3375
+ 144. An iPad with a hardware keyboard (`lanes-launch web <name> --mobile`). With **Type here** focused, then with the
3376
+ terminal itself tapped, type with the connection lost (as in step 140). Note in each case whether
3377
+ `Not sent: no connection` appears (the capture has the focus) or nothing does (xterm's own handler has it; the
3378
+ slice's limit). Record what was seen.
3379
+
3380
+ Device check, the terminal font (E8, BEY-8667; numbered from 145, after E7a's 140 to 144; NOT YET DONE — no one has
3381
+ seen this face on a device; the unit suite checks only the rendered `web_client.font` and `zellij setup --check`).
3382
+ First the server runs the release with this change, and the web server reloads its configuration (the config-file
3383
+ reload sends the font to open pages in a `SetConfig`; INFERRED). Each step records what was seen and claims nothing
3384
+ beyond it:
3385
+
3386
+ 145. Before and after. Before the release, take a screenshot of a lane that draws boxes and lines (the sidebar of a
3387
+ desktop view opened in Safari, or `lanes doctor` in a shell lane) in a Safari tab on the iPhone. After it, the
3388
+ same: note whether the face changed from a serif-like Courier to SF Mono, and whether box-drawing characters
3389
+ (`│ ─ ┌ ┐`) and the sidebar glyphs (`◆ ◇ ▸ ✓`) still line up in their columns. Record what was seen.
3390
+ 146. The Home Screen app. The same lane in the Home Screen app: the same face and alignment are expected. Record what
3391
+ was seen.
3392
+ 147. Text size. Step **More → Text size** through its sizes: note that every size keeps the columns aligned and that
3393
+ nothing overlaps or leaves gaps between characters. Record what was seen.
3394
+ 148. Elsewhere. On an Android phone or a desktop Chromium, if at hand, open the same view: the terminal is expected
3395
+ to look as before (the browser's default monospace). An older iPhone (iOS 13.0 or earlier), if at hand: note the
3396
+ face. Record what was seen.
3397
+
3398
+ Device check, the picker's swipe (E11a, BEY-8667; numbered from 149, after E8's 145 to 148; NOT YET DONE — no one has
3399
+ swiped this on an iPhone; the unit suite feeds the sidebar the wheel reports a swipe makes). First the server runs the
3400
+ release with this change, and the phone's sidebar runs it too. Use a workspace with at least 20 lanes. Every step is
3401
+ on a lane list, in a Safari tab and in the Home Screen app. Each step records what was seen and claims nothing beyond
3402
+ it:
3403
+
3404
+ 149. A slow swipe up. Drag a finger slowly up the list: note how far the finger moves before the list moves (the
3405
+ client's threshold, about 24 px, INFERRED), then that the list follows one lane at a time, with no jump of three.
3406
+ Record what was seen.
3407
+ 150. A fast swipe. Flick the list up and down: it is expected to move several lanes, one per report, and never to
3408
+ jump past the end or above the first lane. Note whether iOS momentum adds reports after the finger leaves. Record
3409
+ what was seen.
3410
+ 151. The two ends. Swipe to the bottom: the last lane stays on screen and further swipes move nothing; the same at
3411
+ the top. Record what was seen.
3412
+ 152. A tap after a scroll. Scroll a few lanes, then tap a lane: the lane under the finger opens, not one above or
3413
+ below it. Record what was seen.
3414
+
3415
+ Device check, a pinch kept and page zoom (E9, BEY-8667; numbered from 153, after E11a's 149 to 152; NOT YET DONE — no
3416
+ one has pinched this on an iPhone; the node suite sets the terminal's size and dispatches the client's event on a fake
3417
+ page). First the server runs the release with this change. Every step is on a lane tab, in a Safari tab and in the
3418
+ Home Screen app. Each step records what was seen and claims nothing beyond it:
3419
+
3420
+ 153. A pinch in. Pinch the terminal larger, then open **More**: **Text size** is expected to show the pinched size
3421
+ (up to 24 px), and A+ to step on from it. Reload: the page comes back at that size. Record what was seen.
3422
+ 154. Past the range. Keep pinching larger past 24, then smaller past 14: note whether the text snaps back to 24 or 14
3423
+ at each step, whether it flickers or janks (the client sets its own size, the shell sets it back), and where it
3424
+ settles. Record what was seen.
3425
+ 155. Page zoom. Pinch on the header or the dock (not on the terminal) so the page zooms: the lane is expected to keep
3426
+ its columns. Zoom back out: the layout is as before. With **Type here** focused, zoom and un-zoom once and note
3427
+ the keyboard and the dock. Record what was seen.
3428
+ 156. The boot re-wrap (a measurement for the later slice, not a check of this one). Reload the page on a lane with
3429
+ long lines and watch the first second: note whether the lane draws once at a large size and then re-wraps at 16
3430
+ px, and how many re-wraps you see. Record what was seen.
3431
+
3432
+ Device check, Copy on the docs page's code blocks (E10c, BEY-8667; numbered from 157, after E9's 153 to 156; NOT YET
3433
+ DONE — no one has tapped this on an iPhone; the node suite runs `docs.js` against a fake page and a fake clipboard).
3434
+ First the server runs the release with this change. Open a document with a code block and a Mermaid diagram (an
3435
+ agent's `lanes_publish` of a Markdown file with both). Every step is in a Safari tab and in the Home Screen app. Each
3436
+ step records what was seen and claims nothing beyond it:
3437
+
3438
+ 157. The button. Each code block is expected to have a **Copy** button just above it, and a Mermaid diagram none.
3439
+ With VoiceOver on, move to a **Copy** button: note what VoiceOver says after "Copy, button" (the block's code is
3440
+ expected as its description). Record what was seen.
3441
+ 158. A copy. Tap **Copy** on a one-line command: **Copied** is expected under the button for about 1.6 s, then
3442
+ nothing. Paste into Notes, then into a shell lane: the command is expected without a newline after it, so in the
3443
+ lane nothing runs until you press Return. Tap again with VoiceOver on: note whether it speaks **Copied**. Record
3444
+ what was seen.
3445
+ 159. A refusal. If Safari ever refuses the write (for example after a long wait between the tap and the page, or in
3446
+ a setting that blocks the clipboard), **Clipboard blocked** is expected under the button, staying until the next
3447
+ tap. Note whether you found a way to make Safari refuse, and what was seen.
3448
+ 160. The http case. The served Docs page is HTTPS only (Tailscale Serve on 8443; `lanes-docsd` listens on
3449
+ 127.0.0.1:8185), and `http://localhost` is itself a secure context, so this server gives a person no plain-http
3450
+ route to take; the node test "the http case" covers it on a fake page. Only if a deployment serves the Docs page
3451
+ over plain http: tap **Copy** there, and **Clipboard blocked** is expected, staying. Record whether such a route
3452
+ existed and what was seen.
3453
+
3454
+ Record the device, iOS version and result of each step here. For steps 1 to 52, the unit suite covers only the
3455
+ picker's text and the shell's bytes against a fake page, not the browser.
2182
3456
 
2183
3457
  Tailscale Serve forwards HTTPS 8443 to `lanes-mobile.service` on `127.0.0.1:8083`. The separate unprivileged
2184
3458
  Caddy serves `web/` and forwards native authentication/assets/WebSockets to Zellij on `127.0.0.1:8082`.
@@ -2572,7 +3846,7 @@ person cannot see answers `404`, like one that does not exist.
2572
3846
 
2573
3847
  | Route (after Caddy strips `/lanes-docs`) | Answer (wire contract v1, DM-LANES-DOCS-WIRE) |
2574
3848
  |---|---|
2575
- | `GET /` · `GET /?ws=<ws>&lane=<lane>` | the index page: workspace → lane → newest first, counts, the upload form; the filter (either key optional) must name a workspace/lane the person knows, else `404` |
3849
+ | `GET /` · `GET /?ws=<ws>&lane=<lane>` | the index page: workspace → lane → newest first, counts, the upload form; the filter (either key optional) must name a workspace/lane the person knows, else `404`. The form's **Upload to** select preselects only a `lane` it offers; every other page starts on an empty `Choose a lane` option (BEY-8609 slice 3b) |
2576
3850
  | `GET /d/<id>` | the document page: Markdown rendered (mdlite; over 1 MiB not rendered; from the render cache when its sha256 was rendered before; `503 busy` + `Retry-After` when two renders run and none ends within 1 s), an HTML/SVG artifact linked (never embedded), a file's facts and download |
2577
3851
  | `GET /d/<id>/raw` | the bytes, `Content-Disposition: attachment; filename="<name>"`, `X-Lanes-Sha256` |
2578
3852
  | `GET /d/<id>/artifact` | kind html/svg only: the bytes as a top-level document under `Content-Security-Policy: sandbox allow-scripts` |
@@ -2603,14 +3877,28 @@ Every response has `X-Content-Type-Options: nosniff`, `X-Frame-Options: DENY`, `
2603
3877
  CSP: pages `default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'self'; img-src 'self' data:; connect-src
2604
3878
  'self'; form-action 'self'; base-uri 'none'` (`connect-src` for the drop area's own `POST up`), an artifact exactly
2605
3879
  `sandbox allow-scripts`, everything else `default-src 'none'; sandbox`.
2606
- Links and assets in a page are relative (`docs.css`, `d/<id>`), so the pages work under the stripped prefix; open the
2607
- index as `/lanes-docs/` with the slash (`/lanes-docs` alone is the page route a device of that name would have, which
2608
- is why `lanes-docs`, `lanes-assets`, `lanes-hooks` and `enrol` are not device names). An upload goes through `uploads.receive` (W5):
3880
+ Links and assets in a page are relative (`docs.css`, `d/<id>`), so the pages work under the stripped prefix. Caddy
3881
+ answers `/lanes-docs` without the slash with a `308` to `/lanes-docs/?<query>` (`handle @docsbare`, BEY-8667 E1b-2), so
3882
+ it opens the index with its filter, not the page route a view of that name would have (`lanes-docs`, `lanes-assets`,
3883
+ `lanes-hooks` and `enrol` are not device names). Two parts of this are INFERRED from Caddy's documentation and the
3884
+ tests' models, with no Caddy run: that an empty query leaves a bare `?`, and that Caddy's sort puts this route ahead of
3885
+ the page route. Step 4 of "Operator verification" below checks both on the server. A bare `http://` or `https://`
3886
+ address in a Markdown document renders as a link (DM-LANES-DOCS-RENDER). An upload goes through `uploads.receive` (W5):
2609
3887
  it lands in the lane's workspace's `uploads/` (`<folder>/uploads/<name>`, `-1` on a collision, exactly as `lanes
2610
3888
  upload` lands one) and `docs_store.intake` (`source` `web`, kind by extension, `for` and `by` the uploader) takes the
2611
3889
  same bytes into the person's store; the receipt's `landed` is the in-container path to tell the agent. The drop area is
2612
3890
  a plain form that works without a script; `web/upload.js` (loaded by the index only) adds the drop onto the whole area,
2613
- a size check before sending, progress and the receipt list.
3891
+ a check of the count (63 files) and size before sending, progress, a time bound, and since BEY-8609 slice 3a one row
3892
+ per chosen file: `uploaded` (a receipt that checks, at the file's own position), `refused: <docsd's word>`, `not
3893
+ tried` or `not confirmed`. docsd's loop stores the files in form order and stops at the first failure, so a refusal's
3894
+ `receipts` are the files before the refused one; a refusal before the loop carries none, and then every row reads
3895
+ `refused`. `not confirmed` covers a connection that ended, the page's bound (150 s + the set's bytes at 64 KiB/s,
3896
+ from `BODY_GRACE_S`, `docs_store.AGE_S` and `BODY_MIN_RATE`), an answer that is not JSON (a proxy's 502), and docsd's
3897
+ `server-error`, which can come after stored files. Files without a valid receipt stay chosen for the next **Upload**.
3898
+ When a person reports `not confirmed`, the files may have arrived: each stored file is an `intake … ok` line in
3899
+ `docs.log` (with its bytes and sha256), and the index lists it under the lane. Sending it again stores a second copy
3900
+ (`-1` in the name; `test_docsd.Upload`), which is why the page says to look first. Frontend detail: [frontend
3901
+ maintenance](../web/README.md), Docs page and Code notes.
2614
3902
  The multipart body is split by docsd's own bytes scan, each part's headers parsed by `email.parser`: parsing a 32 MiB
2615
3903
  body whole with `email.parser` MEASURED about 430 MB peak RSS and 3.8 s, the scan 0.05 s and no copy.
2616
3904
 
@@ -2705,7 +3993,8 @@ A crash between the claim and the receipt leaves `.<id>.taking` without a receip
2705
3993
 
2706
3994
  **Caddy picks up the route** as for `/enrol/*` (section "Enrolment service"): a server install restarts a running
2707
3995
  `lanes-mobile`; after editing the Caddyfile in place, `systemctl --user restart lanes-mobile.service`. If
2708
- `/lanes-docs/` answers with the Zellij page, `lanes-mobile` runs an older Caddyfile. Settings go in a drop-in:
3996
+ `/lanes-docs/` answers with the Zellij page, `lanes-mobile` runs an older Caddyfile. It does too when `/lanes-docs`
3997
+ without the slash opens a terminal page instead of the Docs page (BEY-8667 E1b-2). Settings go in a drop-in:
2709
3998
 
2710
3999
  ```sh
2711
4000
  systemctl --user edit lanes-docsd.service # [Service] Environment=LANES_DOCS_DOMAINS=beyondwork.ai,example.com
@@ -2781,7 +4070,8 @@ for it — and file reads):
2781
4070
 
2782
4071
  Unit-proven only so far: `tests/unit/test_docsd.py` runs a real docsd on a loopback port, `test_install.DocsRoute`
2783
4072
  models the shipped Caddyfile's routes and headers in front of it, `test_docs_assets.VendorRoute` models Caddy's route
2784
- sort for the Mermaid route, and `tests/web/docs.test.mjs` and `tests/web/upload.test.mjs` drive the page scripts
4073
+ sort for the Mermaid route (and `test_docs_assets.DocsBareRoute` for the slashless `/lanes-docs` redirect), and
4074
+ `tests/web/docs.test.mjs` and `tests/web/upload.test.mjs` drive the page scripts
2785
4075
  against fakes. Nothing below has been run on a server, a phone or a real browser. After the server install of the
2786
4076
  first release with the docs cockpit (1.3.0), run it once, in order, and record the date, the devices and each step's
2787
4077
  result here:
@@ -2798,26 +4088,34 @@ result here:
2798
4088
  http://127.0.0.1:8083/lanes-assets/vendor/mermaid-11.17.2.min.js` answers `200` with `cache-control: public,
2799
4089
  max-age=31536000, immutable`. Seen once on the server, that closes DEF-1871 (the route proven on a running Caddy,
2800
4090
  not only on a model of its sort).
2801
- 4. **Publish.** In a lane of a container from step 1, `~/.lz/bin/lane publish README.md` (a README with a
4091
+ 4. **The Docs redirect (BEY-8667 E1b-2).** On the server, once its release has this redirect,
4092
+ `curl -sI http://127.0.0.1:8083/lanes-docs` answers `308` with `location: /lanes-docs/?`, and
4093
+ `curl -sI "http://127.0.0.1:8083/lanes-docs?ws=x"` answers `location: /lanes-docs/?ws=x`. Seen once on the
4094
+ server, that shows the redirect, its query and its place in Caddy's sort on a running Caddy, not only on the
4095
+ tests' models.
4096
+ 5. **Publish.** In a lane of a container from step 1, `~/.lz/bin/lane publish README.md` (a README with a
2802
4097
  ```` ```mermaid ```` fence; add a small flowchart if it has none). The JSON says `"picked_up_by": "lanes-docsd"`;
2803
4098
  within about 5 s `cat ~/.lz/state/publish/<lane id>/<id>.receipt.json` says `"outcome": "ok"` with a `url`.
2804
- 5. **Sidebar.** Within a few seconds that workspace's upload strip reads ` ↑ uploads · ▤ docs 1 (U)`. With the
4099
+ 6. **Sidebar.** Within a few seconds that workspace's upload strip reads ` ↑ uploads · ▤ docs 1 (U)`. With the
2805
4100
  cursor on the lane, `d` shows `https://<name>:8443/lanes-docs/?ws=<workspace>&lane=<lane id>` in the footer; a
2806
4101
  ⌘-click or Ctrl-click on it (or on the strip) opens the page.
2807
- 6. **Phone.** **More → Docs** opens the index in a new tab, signed in as you; the README opens rendered and its
4102
+ 7. **Phone.** **More → Docs** opens the index in a new tab, signed in as you; the README opens rendered and its
2808
4103
  ```` ```mermaid ```` fence is drawn as a diagram, not shown as source.
2809
- 7. **Artifact sandbox (DEF-1853).** Publish an HTML file whose script tries to reach this site and writes what it
4104
+ 8. **Artifact sandbox (DEF-1853).** Publish an HTML file whose script tries to reach this site and writes what it
2810
4105
  got into its own page: `fetch('/lanes-docs/')`, `fetch('/')`, `document.cookie`, and a WebSocket to the same
2811
4106
  server's `/ws/` path that the terminal page itself opens (the browser's network panel on a view shows it). **Open
2812
4107
  the HTML artifact**: the script runs (the page shows its writing), every one of those attempts fails or comes back
2813
4108
  empty, and no lane receives a keystroke. Record the browser and what each attempt answered: that is DEF-1853's
2814
4109
  measurement.
2815
- 8. **Upload.** On the Docs page pick a lane, drop a file on the dashed area, **Upload**: the receipt lists the name,
2816
- size, sha256 and `/home/coder/<repo>/uploads/<name>`; in that lane's shell, `sha256sum
2817
- /home/coder/<repo>/uploads/<name>` prints the receipt's sha256. The sidebar's count goes up by one.
2818
- 9. **Not a member.** From a tailnet login that owns no member record, `https://<name>:8443/lanes-docs/` answers 403
2819
- `not-a-member`; on the server, `curl -s http://127.0.0.1:8185/` answers `{"error": "not-through-serve"}`.
2820
- 10. **Forged header: the known DEF-1645 case.** A process in the host's network namespace can send Serve's headers
4110
+ 9. **Upload.** On the Docs page with no lane in its address, **Upload to** reads `Choose a lane` (each lane is
4111
+ `<workspace> › <lane>`); pick a lane, drop a file on the dashed area, **Upload**: the file's row reads
4112
+ `<name> · uploaded · <bytes> B · sha256 <hex> · /home/coder/<repo>/uploads/<name>` and the file control is empty
4113
+ again; in that lane's shell, `sha256sum /home/coder/<repo>/uploads/<name>` prints the receipt's sha256. The
4114
+ sidebar's count goes up by one. The other upload outcomes on a phone are steps 53 to 61 of "Web / phone", the
4115
+ destination steps 98 to 100.
4116
+ 10. **Not a member.** From a tailnet login that owns no member record, `https://<name>:8443/lanes-docs/` answers
4117
+ 403 `not-a-member`; on the server, `curl -s http://127.0.0.1:8185/` answers `{"error": "not-through-serve"}`.
4118
+ 11. **Forged header: the known DEF-1645 case.** A process in the host's network namespace can send Serve's headers
2821
4119
  itself: list such containers with `docker ps --filter network=host` and record the answer. From one (or from the
2822
4120
  host as the workspace account), `curl -s -H 'Tailscale-User-Login: <a member login>' -H 'Tailscale-User-Name: x'
2823
4121
  -H 'X-Forwarded-For: 100.64.0.9' -H 'Sec-Fetch-Site: none' http://127.0.0.1:8083/lanes-docs/` is answered as that
@@ -2842,6 +4140,7 @@ Where it is configured (all on the server; unknown keys stay tolerated, site sch
2842
4140
  | `coordinator: "<terminal name>"` — the board's coordinator (`@<board>` reaches it; only it may message the fleet admin) | `workspaces.<board>.json` | `lanes address set-coordinator`, `lanes migrate addresses` |
2843
4141
  | `LANES_FLEET_ADMIN=@<address>` — the fleet admin lane | `~/.config/lanes/site.conf` | `lanes migrate addresses` (only when unset) |
2844
4142
  | `LANES_NAMES_AUTO=0` — statusd stops renaming Claude sessions to their addresses (default on) | `~/.config/lanes/site.conf` | by hand |
4143
+ | `LANES_HOST_TAB=1` — every view ends with a Host tab, a login shell on the server (default off since 1.8.1, BEY-8423; `0` or no line is off; any other value makes `lanes sync` refuse, naming the key). A running view drops its Host tab only when rebuilt: `lanes ensure --if-layout-changed` rebuilds it once no client is attached, else its sidebar offers `update ready · reload (r)`; no sync closes the shell | `~/.config/lanes/site.conf` | by hand |
2845
4144
 
2846
4145
  `lanes sync` checks them: an address outside the grammar, one address given to two terminals of a board, or a
2847
4146
  `coordinator` that names no terminal of its board is a board error (that board keeps its previous lanes, `!` in the
@@ -3127,9 +4426,11 @@ allowlist: `list-sessions`, `list-panes`, `list-windows`, `list-clients`, `has-s
3127
4426
  `capture-pane -p`; no format job `#(`, no `E:`/`T:` format modifier, which expands a value such as a pane title as a
3128
4427
  format again, no `pane_start_command` and no `@` user option inside a format, no word ending in `;`, only a socket a
3129
4428
  registered lane of that container uses; the reply's text is cut to a byte budget that always fits one frame, a
3130
- capture keeping its newest lines), ONE write `tmux_write{lane, text, enter}` (send-keys only, into the active pane of
3131
- a lane registered on that guest, at most 4000 printable characters on one line, under the recipient's dispatch lock
3132
- `~/.lz/state/dispatch/<lane>.lock`, the Enter as a second client 0.5 s later), and `exec{template, args: {container}}`
4429
+ capture keeping its newest lines), ONE write `tmux_write{lane, text, enter}` (send-keys only, into the pane that holds
4430
+ the agent of a lane registered on that guest — a lane without one: its active pane, BEY-8655 —, at most 4000 printable
4431
+ characters on one line, under the recipient's dispatch lock `~/.lz/state/dispatch/<lane>.lock`, the Enter as a second
4432
+ client 0.5 s later, one more only while a Claude Code or Codex composer still holds the text; the reply's `pane` and
4433
+ `submitted` say where and whether, within `TMUX_WRITE_DEADLINE_S`, 47 s), and `exec{template, args: {container}}`
3133
4434
  by template id only: `pulse.rearm` and `peerd.rearm` (plan row H1's two re-arms, 10 s each). The guest decides
3134
4435
  whether a re-arm is due by its own statusd's checks — `busy` while its own health is critical, `skipped` (with the
3135
4436
  reason in `detail`) when the loop is not installed or its state file is fresh, `off` with `LANES_PEERS=0` — so the
@@ -3336,7 +4637,8 @@ rollback). Never stop or start a unit by hand to switch a component: a bare `sys
3336
4637
  `tests/guards.py`, `tests/view.py` (incl. the wide-view key walk: three lefts without wrapping, then
3337
4638
  `Ctrl-Alt-/`, `Ctrl-Alt-u` and `Ctrl-Alt-l` pressed through the client's pty from each viewport — the verb's command
3338
4639
  file, the Run pane's focus hand-back to the sidebar, the first letters typed after it landing in the filter, the
3339
- focus legend — and both chords doing nothing on the Host tab; then `Ctrl-Alt-↓/↑`), `tests/upload_box.py`,
4640
+ focus legend — and both chords doing nothing on the Host tab where site.conf turns it on, else no Host tab at all;
4641
+ then `Ctrl-Alt-↓/↑`), `tests/upload_box.py`,
3340
4642
  `tests/smoke_real.py` (read-only, real lanes), `tests/latency.py` (from a client; `tests/latency.py --switch
3341
4643
  [samples]` ON the server measures `switch` = SIGUSR1 to view.sh → first byte of the new lane, with a throwaway
3342
4644
  view.sh on a temp `LANES_STATE` and two sessions on `-L lanes_test`, run ad hoc). All use disposable lanes except
@@ -3540,3 +4842,22 @@ identical text; each new transition binds the observed workspace revision, while
3540
4842
  key. Draft rows never enqueue a message. Notification routing sends only from a newly committed claim: a replayed or
3541
4843
  uncertain claim stays held as `sending`/unknown and is never permission to send again. This also applies to overlapping
3542
4844
  quiet-hours summaries. These modules remain unwired; the installed Python notification service is unchanged.
4845
+
4846
+ ## Lanes 1.9.1 device trials
4847
+
4848
+ Use `lanes attach DEVICE --sidebar-order coordinator --workspace-keys on` or pass the same flags to `lanes-launch`.
4849
+ The sidebar comma key and the phone picker's Order row cycle Attention first, Coordinator first and Pinned first.
4850
+ The urgency tally and Tab queue cover promoted lanes too. The settings apply to this device at its next redraw.
4851
+
4852
+ From the terminal sidebar use Super+1 through Super+9. Open the same web view with `?keys` appended to its URL
4853
+ for Meta+1 through Meta+9 outside terminal input and forms. The web trial requires the device owner's Docs login.
4854
+ Each slot names one visible workspace in profile order. The phone keeps its touch picker. The existing
4855
+ Ctrl-Alt-Left and Ctrl-Alt-Right bindings work on hosts that reserve Super. Super+0 is free.
4856
+ Use `--workspace-keys off` and select Attention first to return to the defaults.
4857
+
4858
+ For one side-by-side Codex status sample in a guest, run `lane codex-status-shadow --probe /absolute/path/to/lanes-codex-shadow`
4859
+ with a matching managed build of the Rust probe. Without the flag, the command looks beside the guest's lane binary.
4860
+ The output compares the legacy observation with a fresh, read-only app-server sample and includes its evidence source.
4861
+ It leaves the active observer in control. A blocking typed question needs an outstanding request id and a current
4862
+ waiting flag. A trusted hook takes precedence, including Stop and permission requests. A missing, ambiguous or old
4863
+ thread falls back to the legacy observation. The sample expires after 30 seconds.