@vibelord/lanes 1.7.3 → 1.7.5

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 (57) hide show
  1. package/README.md +9 -0
  2. package/package.json +1 -1
  3. package/payload/lanes/VERSION +1 -1
  4. package/payload/lanes/bin/lanes +128 -24
  5. package/payload/lanes/bin/lanes-site-serve +15 -0
  6. package/payload/lanes/bin-rs/BINARIES.json +5 -0
  7. package/payload/lanes/container/lane-mcp +108 -5
  8. package/payload/lanes/container/lane_core.py +116 -0
  9. package/payload/lanes/container/throttle-pulse +159 -14
  10. package/payload/lanes/docs/ARCHITECTURE.md +132 -13
  11. package/payload/lanes/docs/DESIGN.md +10 -8
  12. package/payload/lanes/docs/INSTALL.md +1 -1
  13. package/payload/lanes/docs/RUNBOOK.md +436 -8
  14. package/payload/lanes/docs/USERGUIDE.md +82 -9
  15. package/payload/lanes/install/host-install.sh +35 -4
  16. package/payload/lanes/libexec/adopt.py +364 -0
  17. package/payload/lanes/libexec/attach.py +35 -5
  18. package/payload/lanes/libexec/cutover.py +656 -0
  19. package/payload/lanes/libexec/docsd.py +12 -8
  20. package/payload/lanes/libexec/doctor_lanes2.py +284 -0
  21. package/payload/lanes/libexec/economy_poll.py +87 -2
  22. package/payload/lanes/libexec/gc_unregistered.py +407 -0
  23. package/payload/lanes/libexec/lanes_lib.py +474 -2
  24. package/payload/lanes/libexec/native.sh +38 -0
  25. package/payload/lanes/libexec/native_bin.py +670 -0
  26. package/payload/lanes/libexec/session_actions.py +85 -7
  27. package/payload/lanes/libexec/shadow.py +1311 -0
  28. package/payload/lanes/libexec/sidebar.py +252 -30
  29. package/payload/lanes/libexec/sidebar_status.py +373 -25
  30. package/payload/lanes/libexec/statusd.py +67 -3
  31. package/payload/lanes/libexec/tokens.py +99 -131
  32. package/payload/lanes/libexec/tokens.sh +1 -1
  33. package/payload/lanes/libexec/update.py +78 -8
  34. package/payload/lanes/libexec/users.py +282 -0
  35. package/payload/lanes/site/README.md +9 -0
  36. package/payload/lanes/site/conformance.py +280 -0
  37. package/payload/lanes/site/protocol.py +368 -0
  38. package/payload/lanes/site/server.py +314 -0
  39. package/payload/lanes/systemd/lanes-gc.service +1 -1
  40. package/payload/lanes/systemd/lanes-gc.timer +14 -3
  41. package/payload/lanes/tokens/README.md +156 -0
  42. package/payload/lanes/tokens/generate.py +930 -0
  43. package/payload/lanes/tokens/generated/parity.v1.tsv +489 -0
  44. package/payload/lanes/tokens/generated/tokens.resolved.json +835 -0
  45. package/payload/lanes/tokens/tokens.v1.json +763 -0
  46. package/payload/lanes/tokens/tokens.v1.schema.json +143 -0
  47. package/payload/lanes/web/Caddyfile +11 -0
  48. package/payload/lanes/web/README.md +253 -4
  49. package/payload/lanes/web/directory.css +95 -0
  50. package/payload/lanes/web/directory.js +951 -0
  51. package/payload/lanes/web/generated/README.md +107 -0
  52. package/payload/lanes/web/generated/lanes2_protocol.d.mts +1162 -0
  53. package/payload/lanes/web/generated/lanes2_protocol.mjs +2333 -0
  54. package/payload/lanes/web/inbox.js +1140 -0
  55. package/payload/lanes/web/mobile.js +35 -45
  56. package/payload/lanes/web/tokens.css +137 -0
  57. package/payload/manifest.json +7 -4
@@ -0,0 +1,143 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "lanes/tokens/tokens.v1.schema.json",
4
+ "title": "Lanes semantic design tokens (lanes.tokens/1)",
5
+ "description": "One versioned semantic token source for every Lanes client (IC section 5.1, A26): roles, the theme id/revision shared across clients (each revision bound to a digest of its styling content), the five colour tiers (truecolor, 256, 16, palette16, none), glyph twins, labels, the text hierarchy, the semantic states with their no-colour cues, the contrast rules and the platform projections (CSS aliases, Zellij theme slots, docs roles, shell names). lanes/tokens/generate.py derives every client projection from it.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schema", "source", "description", "theme", "roles", "painted_roles", "backgrounds", "vivid_tiers", "tiers", "glyph_modes", "glyphs", "labels", "text", "semantics", "contrast", "projections"],
9
+ "properties": {
10
+ "schema": {"const": "lanes.tokens/1"},
11
+ "source": {"type": "string", "minLength": 1},
12
+ "description": {"type": "string", "minLength": 1},
13
+ "theme": {
14
+ "type": "object",
15
+ "additionalProperties": false,
16
+ "required": ["id", "revision", "revisions", "palette", "revision_note", "variants", "auto", "platform_names", "shared", "device_local"],
17
+ "properties": {
18
+ "id": {"type": "string", "pattern": "^[a-z][a-z0-9-]*$"},
19
+ "revision": {"type": "integer", "minimum": 1},
20
+ "revisions": {
21
+ "description": "Revision -> sha256 (hex) of that revision's styling content: this document without schema, source, description and theme, and without each tier's description, serialised as JSON with sorted keys, separators (',', ':') and UTF-8 text. The current revision's digest must match the content, so a styling change without a new revision fails, and two clients at one id/revision paint alike.",
22
+ "type": "object", "minProperties": 1,
23
+ "propertyNames": {"pattern": "^[1-9][0-9]*$"},
24
+ "additionalProperties": {"type": "string", "pattern": "^[0-9a-f]{64}$"}
25
+ },
26
+ "palette": {"type": "string", "minLength": 1},
27
+ "revision_note": {"type": "string", "minLength": 1},
28
+ "variants": {"const": ["dark", "light"]},
29
+ "auto": {"type": "string", "minLength": 1},
30
+ "platform_names": {"type": "object", "additionalProperties": {"type": "object", "required": ["dark", "light"], "additionalProperties": {"type": "string"}}},
31
+ "shared": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
32
+ "device_local": {"type": "array", "items": {"type": "string"}, "uniqueItems": true}
33
+ }
34
+ },
35
+ "roles": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/role"}},
36
+ "painted_roles": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/role"}},
37
+ "backgrounds": {"type": "object", "additionalProperties": {"$ref": "#/$defs/role"}},
38
+ "vivid_tiers": {"type": "array", "uniqueItems": true, "items": {"enum": ["truecolor", "256"]}},
39
+ "tiers": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "required": ["truecolor", "256", "16", "palette16", "none"],
43
+ "properties": {
44
+ "truecolor": {
45
+ "type": "object", "additionalProperties": false, "required": ["kind", "description", "dark", "light"],
46
+ "properties": {"kind": {"const": "rgb-hex"}, "description": {"type": "string"},
47
+ "dark": {"$ref": "#/$defs/role_values"}, "light": {"$ref": "#/$defs/role_values"}}
48
+ },
49
+ "256": {
50
+ "type": "object", "additionalProperties": false, "required": ["kind", "description", "dark", "light"],
51
+ "properties": {"kind": {"const": "xterm-index"}, "description": {"type": "string"},
52
+ "dark": {"$ref": "#/$defs/xterm_indexes"}, "light": {"$ref": "#/$defs/xterm_indexes"}}
53
+ },
54
+ "16": {
55
+ "type": "object", "additionalProperties": false, "required": ["kind", "description", "sgr", "dim_roles", "dim_sgr"],
56
+ "properties": {"kind": {"const": "ansi-sgr"}, "description": {"type": "string"},
57
+ "sgr": {"type": "object", "additionalProperties": {"type": "string", "pattern": "^[0-9]+(;[0-9]+)*$"}},
58
+ "dim_roles": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/role"}},
59
+ "dim_sgr": {"type": "object", "required": ["default"], "additionalProperties": {"type": "string", "pattern": "^[0-9]+$"}}}
60
+ },
61
+ "palette16": {
62
+ "type": "object", "additionalProperties": false, "required": ["kind", "description", "dark", "light", "slot_roles"],
63
+ "properties": {"kind": {"const": "defined-16-slot"}, "description": {"type": "string"},
64
+ "dark": {"$ref": "#/$defs/slots"}, "light": {"$ref": "#/$defs/slots"},
65
+ "slot_roles": {"type": "object", "propertyNames": {"pattern": "^([0-9]|1[0-5])$"}, "additionalProperties": {"$ref": "#/$defs/role"}}}
66
+ },
67
+ "none": {
68
+ "type": "object", "additionalProperties": false, "required": ["kind", "description", "bold"],
69
+ "properties": {"kind": {"const": "attributes-only"}, "description": {"type": "string"},
70
+ "bold": {"type": "array", "uniqueItems": true, "items": {"$ref": "#/$defs/role"}}}
71
+ }
72
+ }
73
+ },
74
+ "glyph_modes": {"const": ["unicode", "ascii", "emoji"]},
75
+ "glyphs": {
76
+ "type": "object",
77
+ "additionalProperties": false,
78
+ "required": ["agent", "stream", "marks", "economy"],
79
+ "properties": {"agent": {"$ref": "#/$defs/glyph_table"}, "stream": {"$ref": "#/$defs/glyph_table"},
80
+ "marks": {"$ref": "#/$defs/glyph_table"}, "economy": {"$ref": "#/$defs/glyph_table"}}
81
+ },
82
+ "labels": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "string", "minLength": 1}}},
83
+ "text": {
84
+ "description": "The text hierarchy: the role each level of text paints (integrated cockpit section 5.1, text hierarchy).",
85
+ "type": "object", "additionalProperties": false, "required": ["primary", "secondary", "tertiary"],
86
+ "properties": {"primary": {"$ref": "#/$defs/role"}, "secondary": {"$ref": "#/$defs/role"}, "tertiary": {"$ref": "#/$defs/role"}}
87
+ },
88
+ "semantics": {
89
+ "description": "The semantic states every client shares (integrated cockpit section 5.1; terminal UX: selection, stale data, errors and disabled actions need text or shape as well as colour): each names the painted role it takes and the cues that carry it with colour removed (the none tier, NO_COLOR, a colour-blind reader): a glyph (its ASCII twin keeps it in ASCII mode), a label, or text (the lane name, the unavailable reason, the focus legend).",
90
+ "type": "object", "minProperties": 1,
91
+ "propertyNames": {"pattern": "^[a-z][a-z-]*$"},
92
+ "additionalProperties": {"$ref": "#/$defs/semantic"}
93
+ },
94
+ "contrast": {
95
+ "description": "Contrast rules, per variant: every foreground reference on every background reference of a rule keeps at least `min`:1 (WCAG relative luminance). A reference is `truecolor:<role>`, `256:<painted role>` (the fixed RGB of its xterm index) or `palette16:<slot>`.",
96
+ "type": "array", "minItems": 1, "items": {"$ref": "#/$defs/contrast_rule"}
97
+ },
98
+ "projections": {
99
+ "description": "The mappings tokens.py's renderers use beyond the role tables, so the CSS, Zellij KDL, docs CSS and shell projections can be rebuilt from this file alone.",
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": ["css_aliases", "zellij_slots", "docs_roles", "sh_names"],
103
+ "properties": {
104
+ "css_aliases": {"type": "object", "minProperties": 1, "additionalProperties": {"$ref": "#/$defs/role"}, "description": "legacy --lanes-<alias> CSS names -> role"},
105
+ "zellij_slots": {"type": "object", "minProperties": 1, "additionalProperties": {"$ref": "#/$defs/role"}, "description": "Zellij --zj-<slot> theme slots -> role"},
106
+ "docs_roles": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/role"}, "description": "the roles the docs page CSS carries"},
107
+ "sh_names": {"type": "object", "minProperties": 1, "propertyNames": {"$ref": "#/$defs/role"}, "additionalProperties": {"type": "string", "pattern": "^LZ_[A-Z]+$"}, "description": "painted role -> the viewer's shell variable"}
108
+ }
109
+ }
110
+ },
111
+ "$defs": {
112
+ "role": {"type": "string", "pattern": "^[a-z][a-z0-9-]*$"},
113
+ "role_values": {"type": "object", "minProperties": 1, "propertyNames": {"$ref": "#/$defs/role"}, "additionalProperties": {"type": "string", "minLength": 1}},
114
+ "xterm_indexes": {"type": "object", "minProperties": 1, "propertyNames": {"$ref": "#/$defs/role"}, "additionalProperties": {"type": "integer", "minimum": 16, "maximum": 255}},
115
+ "slots": {"type": "array", "minItems": 16, "maxItems": 16, "items": {"type": "string", "pattern": "^#[0-9a-f]{6}$"}},
116
+ "glyph_table": {
117
+ "type": "object",
118
+ "minProperties": 1,
119
+ "additionalProperties": {
120
+ "type": "object", "additionalProperties": false, "required": ["unicode", "ascii", "tone"],
121
+ "properties": {"unicode": {"type": "string", "minLength": 1}, "ascii": {"type": "string", "minLength": 1, "pattern": "^[\\x20-\\x7e]+$"},
122
+ "tone": {"$ref": "#/$defs/role"}}
123
+ }
124
+ },
125
+ "semantic": {
126
+ "type": "object", "additionalProperties": false, "required": ["role", "cues"],
127
+ "properties": {"role": {"$ref": "#/$defs/role"}, "cues": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/cue"}}}
128
+ },
129
+ "cue": {
130
+ "type": "object", "minProperties": 1, "maxProperties": 1, "additionalProperties": false,
131
+ "properties": {"glyph": {"type": "string", "pattern": "^(agent|stream|marks|economy)\\.[a-z0-9_-]+$"},
132
+ "label": {"type": "string", "pattern": "^[a-z][a-z0-9_]*\\.[a-z0-9_-]+$"},
133
+ "text": {"enum": ["name", "reason", "legend"]}}
134
+ },
135
+ "colour_ref": {"type": "string", "pattern": "^((truecolor|256):[a-z][a-z0-9-]*|palette16:([0-9]|1[0-5]))$"},
136
+ "contrast_rule": {
137
+ "type": "object", "additionalProperties": false, "required": ["fg", "bg", "min"],
138
+ "properties": {"fg": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/colour_ref"}},
139
+ "bg": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"$ref": "#/$defs/colour_ref"}},
140
+ "min": {"type": "number", "minimum": 1, "maximum": 21}}
141
+ }
142
+ }
143
+ }
@@ -51,6 +51,17 @@ http://:8083 {
51
51
  trusted_proxies 127.0.0.0/8
52
52
  }
53
53
  }
54
+ # lanes2 S11 (W29-C): the GitHub and Linear connector webhooks, /lanes-hooks/github and /lanes-hooks/linear
55
+ # (crates/lanes-runtime/src/ingress/connectors.rs verifies each signature and records the delivery; nothing acts
56
+ # inline). The Rust host binds this unix socket from integration gate I1; until then nothing listens and Caddy
57
+ # answers 502. Public delivery needs Funnel on the owner host (operator gate I-W). bin/lanes reserves the root.
58
+ # A body above the ingress bound (1 MiB, MAX_BODY_BYTES) is refused here, before it is buffered.
59
+ handle_path /lanes-hooks/* {
60
+ request_body {
61
+ max_size 1MiB
62
+ }
63
+ reverse_proxy unix/{$LANES_STATE}/run/lanes-connectors.sock
64
+ }
54
65
  @backend path /assets/* /ws/* /command/* /info/* /session /session-list
55
66
  handle @backend {
56
67
  reverse_proxy 127.0.0.1:8082
@@ -251,14 +251,254 @@ inside its own bytes — its line-1 pointer comment moved to Code notes below an
251
251
  `onkeydown` property — 3 334 -> 3 318 B MEASURED, so the laptop/tablet download is 24 747 + 3 318 = 28 065 B and the
252
252
  DEF-1569 ratchet rose by the 135 `mobile.js` bytes net of those 16, to that measured size.
253
253
 
254
- | File | Cap | MEASURED 2026-10-08 (`wc -c`) | Bound by |
254
+ The Lanes 2.0 lane directory (fan-out F3, 2026-10-30; [Lane directory](#lane-directory-lanes-20-fan-out-f3) below) put
255
+ its on-demand loader into `mobile.js` without moving any budget: the 218 B loader was paid inside the file with
256
+ equivalent code — `make()` as one expression that also types every button it makes (`type="button"`, which four call
257
+ sites had set by hand and three buttons outside any form had left at the default), one `finder()` for the two search
258
+ fields, three listener bodies without braces — so `mobile.js` MEASURED 24 728 B with `wc -c` (dev-container profile),
259
+ 19 B under its unchanged 24 747 B cap. The review round then made the loader exact (`#lanes`, or `#lane=` and nothing
260
+ else that starts `#lane`) and gave it a flag of its own, so a second navigation before `directory.js` ran appends
261
+ nothing: 4 B less, 24 724 B MEASURED, and the laptop/tablet download 24 724 + 3 318 = 28 042 B, under its unchanged
262
+ ratchet. No cap in `test_web_view` changed. The directory's own files are fetched only when it opens and are bound by
263
+ caps of their own in `tests/unit/test_web_directory.py`.
264
+
265
+ The phone's inbox, schedule and result views (lanes2 Round 2 W30-B, 2026-11-01; [Phone inbox](#phone-inbox-schedule-and-results-lanes2-round-2-w30-b)
266
+ below) put a second on-demand loader into `mobile.js`, again without moving any budget. It needed 216 B (`ops()`, its own
267
+ once flag `o`, its `hashchange` listener) against 23 B of headroom, and paid for them inside the file with equivalent code:
268
+ one `js(src)` for the three script loads (`browser.js`, `directory.js`, `inbox.js`) and the extras branch as one
269
+ statement, one `keep` listener for the three controls that cancel `mousedown`, one `paneAt(position)` for the two pane
270
+ lookups, the two text-size buttons from one `step()`, `currentTab` as an arrow, the login box looked up once and the
271
+ typing capture's style as one string. `mobile.js` MEASURED 24 709 B with `wc -c` (dev-container profile), 38 B under its
272
+ unchanged 24 747 B cap; the laptop/tablet download 24 709 + 3 318 = 28 027 B, under its unchanged ratchet. No cap in
273
+ `test_web_view` changed; `inbox.js` has a row of its own, bound by `tests/unit/test_web_inbox.py` and
274
+ `tests/web/inbox.test.mjs` (`INBOX_JS_CAP` in both, required to agree).
275
+
276
+ | File | Cap | MEASURED (`wc -c`) | Bound by |
255
277
  | --- | --- | --- | --- |
256
- | `mobile.js` | 24 747 B (exact) | 24 747 B | spec §8 phone row, `test_web.test_bundle_growth`, `test_web_view` `JS_DOCS` |
278
+ | `mobile.js` | 24 747 B | 24 709 B (2026-11-01, W30-B) | spec §8 phone row, `test_web.test_bundle_growth`, `test_web_view` `JS_DOCS` |
257
279
  | `mobile.css` | 18 982 B | 18 945 B | spec §8 phone row |
258
280
  | `browser.js` | 4 096 B | 3 318 B | `test_web_view.BROWSER_JS_CAP` |
259
281
  | `browser.css` | 2 048 B | 1 947 B | `test_web_view.BROWSER_CSS_CAP` |
260
- | `mobile.js` + `browser.js` | 28 065 B (exact) | 28 065 B | DEF-1569, `LAPTOP_TABLET_JS_RATCHET` |
282
+ | `mobile.js` + `browser.js` | 28 065 B | 28 027 B (2026-11-01, W30-B) | DEF-1569, `LAPTOP_TABLET_JS_RATCHET` |
261
283
  | `mobile.css` + `browser.css` | 20 993 B | 20 892 B | DEF-1569's CSS twin, `LAPTOP_TABLET_CSS_CAP` |
284
+ | `directory.js` (on demand) | 60 239 B (exact) | 60 239 B (2026-10-30) | `test_web_directory.DIRECTORY_JS_CAP` |
285
+ | `directory.css` (on demand) | 7 394 B (exact) | 7 394 B (2026-10-30) | `test_web_directory.DIRECTORY_CSS_CAP` |
286
+ | `inbox.js` (on demand) | 72 626 B (exact) | 72 626 B (2026-11-02, review repair after BEY-7130, dev-container) | `test_web_inbox.INBOX_JS_CAP`, `tests/web/inbox.test.mjs` `INBOX_JS_CAP` |
287
+
288
+ ## Lane directory (Lanes 2.0, fan-out F3)
289
+
290
+ `directory.js` and `directory.css` are the browser's view of the one lane directory every Lanes client shows
291
+ ([integrated cockpit §5.1](../../docs/superpowers/specs/2026-10-25-lanes-2.0.0-integrated-cockpit.md#51-one-lane-directory-and-one-client-experience);
292
+ witnesses A24-A27). Status: the directory surface is built and tested against fixtures, the Day-0 goldens and the frozen
293
+ schemas; **not connected** and **no entry point yet**. No host serves a directory source (the principal-scoped directory
294
+ operation is fan-out lane E7's, the projector B9's), so on every host today it opens and says "Not connected"; and
295
+ nothing on the page links to it yet (the phone picker, the tablet workspace panel and the desktop Lanes chip still lead
296
+ to their own surfaces), so it opens only from a typed `#lanes` or a resume link. E32/E33 (continuous workspace §21) are
297
+ therefore not yet "migrated with parity": the entry points, and the parity manifest rows naming this suite, are open
298
+ items (below).
299
+
300
+ - **Loaded on demand.** `index.html` never lists it. `mobile.js` appends `/lanes-assets/directory.js` once (a flag of
301
+ the loader's own) only when the page's fragment is exactly `#lanes` or starts `#lane=` (a resume link), at load or on
302
+ `hashchange`, in all three modes (the loader runs before the desktop shell returns); the script then appends
303
+ `directory.css` itself. A phone that never opens it downloads exactly what it did before.
304
+ - **Two halves, one renderer.** `laneDirectory(input)` is the conformance kit's evaluation (`lanes/tests/conformance`):
305
+ rows keyed by the authority-qualified identity, relayed and direct copies collapsed to the newest source revision,
306
+ two different documents at one revision refused, the highest preference revision applied, an unrecorded theme
307
+ refused; sections, order, labels, counts and action reasons as `libexec/sidebar.py` draws them. The node suite replays
308
+ every kit fixture through it, in every arrival order. The **page** draws the owner's `LaneDirectoryProjection`
309
+ (`crates/lanes-protocol` `contracts/directory.rs`; `docs/contracts/lanes2/schema`) as delivered: the owner's rows in
310
+ the owner's order and sections, its labels, and its action availability and reason words, never re-derived here.
311
+ The suite feeds the page what the owner would send for each kit fixture (the kit's evaluation as Day-0 rows) and
312
+ requires the kit's rows, sections and reasons on screen in all three modes, and decodes and draws the Day-0 goldens.
313
+ - **Three geometries.** The phone picker fills the screen, the tablet panel is a left column, the desktop overlay hangs
314
+ below the Lanes chip; `<html data-lanes-shell>` picks the class and nothing else. Every row names its lane, state word
315
+ and workspace (`aria-label`) and shows the state glyph in its token tone, so state is never colour alone. The state
316
+ is the row's `style_token` when it names a token state, otherwise its attention (approval, actionable error, input)
317
+ or activity (working, delegating, waiting for a build or capacity: Working; finished: Done). The terminal's tab state
318
+ is never read (A25).
319
+ - **Keyboard.** The directory is a modal dialog (`role="dialog"`, `aria-modal`). Opened on a tablet or a desktop, where
320
+ the Zellij terminal had the keyboard, it takes it (the selected row, else the first, else Close); a redraw keeps it
321
+ on the same control (`data-focus`), or on Close if that control went away; Escape closes; closing on a desktop gives
322
+ the terminal its keys back. A phone's picker opens no keyboard.
323
+ - **Visible filter, counts, empty states.** The workspace filter offers the boards of the delivered rows (the lane's
324
+ authority with its workspace and memberships); a filtered view is titled and chipped with the board's name and clears
325
+ back to All lanes. The page subscribes to All lanes and filters locally, because the Day-0 `DirectoryFilter` names
326
+ workspaces without their authority. The header counts the drawn lanes, Needs you, Working and hidden lanes. Not
327
+ connected, loading, refused (the host's words), no lanes and an emptied filter are separate, worded states.
328
+ - **Stale, incomplete, read horizon (A27).** A row whose source is `stale` or `unknown` is kept, marked stale, and the
329
+ directory says it is incomplete: unavailability is not removal. Past a known read horizon those rows go, and the page
330
+ says why; one directory-wide timer redraws at that horizon (never one per lane). A delivery that cannot be read, or a
331
+ resync, replaces nothing: the rows already read stay, all marked stale, still bound by the same horizon, and no
332
+ action is taken on them. Day-0 has no read-horizon field, so the horizon arrives in a provisional frame (below).
333
+ - **Tokens.** `directory.css` opens with the current theme's roles from `lanes/tokens/tokens.v1.json` (truecolor,
334
+ dark and light under `data-zj-theme`; theme lanes/3 since the group F fan-in), re-rendered and compared by the node
335
+ suite, whose block header names the source's current revision; outside that block it paints by role only.
336
+ `LANES_DIRECTORY_TOKENS` in `directory.js` carries the theme, the agent glyphs, ASCII twins, tones and the phone's
337
+ labels, also compared with the JSON. Neither loads F1's generated `web/tokens.css` yet: F1's generator taking both
338
+ projections over is open.
339
+ - **Device-local and shared.** Density and glyph mode (device appearance overrides), and this device's filter,
340
+ selection and scroll, live in `localStorage` under `lanes:directory:` (the place keys per principal); Show hidden is
341
+ for this page only. Pins and hidden lanes are never stored here: Pin, Hide and Unhide send the frozen
342
+ `PreferencesUpdate` (`v`, `expected_revision` and the whole current content with one list changed; hiding a pinned
343
+ lane unpins it, since a lane is never both) to the preference owner (fan-out F5), and only its answer and the next
344
+ document change the rows. An answer carrying another device's change says so.
345
+ - **Hidden lanes.** The header counts them and **Show hidden (n)** draws them faint: in their places when the owner
346
+ sends their rows, otherwise by identity under Hidden, but only on a board the directory shows and never one whose
347
+ access was revoked. A hidden lane offers Open and **Unhide**. As in the sidebar, hiding the selected lane takes it
348
+ out of the list, with a word on how to bring it back.
349
+ - **Native actions.** Open and Close send the frozen `Command` envelope to the lane's owner: a fresh operation id and
350
+ request id, the transport's protocol and retry epochs, the target identity, the owner epoch, the native generation and
351
+ the row revision the person saw (D06). A close asks first, and the armed confirmation holds only for the generation
352
+ it was armed for: a new generation, selecting another lane or any other action voids it. A receipt's refusal shows the
353
+ owner's words. Both stay unavailable ("Waiting for this lane's owner") until a `directory_row` event has carried the
354
+ lane's owner epoch, because the row has none.
355
+ - **Resume links.** `#lane=<encoded identity>`, in lanes-core's identity grammar (authority a token of at most 64 B,
356
+ workspace and lane identifiers of at most 128 B, upper case and a leading underscore included), opens the directory on
357
+ that lane. It moves no other device's focus, sends no input or resize and attaches nothing. While the directory is
358
+ incomplete a link waits for its lane; once complete, a lane that is not there is said once and forgotten, and no
359
+ saved selection survives it. Back, or closing and reopening, restores this device's filter, selection and scroll.
360
+ - **Revocation and account change (A27, QI-13).** Subscription callbacks are bound to their subscription, action
361
+ answers to the authority (principal, authorization epoch, runtime, schema) and to their one request. A new
362
+ authorization epoch is compared with what the old one could read: a lane or board it no longer carries is revoked,
363
+ not lost, so no tombstone names it and no filter, selection, saved place or answer of it survives.
364
+ `resync{authorization_changed}` takes every row off the screen and subscribes again; `directory_row_removed` with
365
+ `access_revoked` purges that lane the same way. A principal change purges the old principal's saved place and
366
+ subscribes again, and the first principal of a page load purges every other principal's saved place. An older
367
+ authorization epoch is dropped. A source that delivers inside `subscribe()` leaves exactly one live subscription.
368
+ - **Source port** (`window.lanesDirectorySource`, or `lanesDirectory.connect(source)`; wired by the E7 gateway):
369
+ `subscribe(onFrame) -> cancel`, delivering the Day-0 frames `{frame: 'snapshot'|'event'|'resync'|'refused', body}`
370
+ (paged snapshots reassembled as `crates/lanes-protocol` `snapshot.rs` describes: same request, stream, epoch and
371
+ cursor, contiguous delivery sequence, counts equal to the rows; an event's sequence continues the snapshot's, a gap
372
+ subscribes again) plus two provisional frames, `{frame: 'preferences', body: PrincipalPresentationPreferences}` and
373
+ `{frame: 'read_horizon', body: {authorization_epoch, read_until_unix_ms}}`; `updatePreferences(PreferencesUpdate)`
374
+ and `command(Command)`, each answering a frame (`receipt`, `refused` or `preferences`); and the transport's
375
+ negotiated `protocol_epoch` and `retry_epoch`. The page makes no request of its own.
376
+ - **Day-0 gaps (integrator requests, recorded in the PR).** No frame kind carries the preference document or its update
377
+ (Z3, F5); `CommandPayload` has no `attach` or `close` kind although rows name both actions (Z3; the page sends
378
+ `{kind: <the row's action name>, args: {}}`); neither the row nor `NativeBindingRef` carries the owner epoch a Command
379
+ must name (Z3); `ProjectionScope` and `SourceCursorEntry` carry no read horizon (Z3); `DirectoryFilter` names workspaces
380
+ without their authority (Z3, B9); whether the projection carries hidden rows is unspecified, and a board whose lanes
381
+ are all hidden cannot be unhidden here until it does (B9); no frame says the principal is denied the directory (Z3);
382
+ `style_token`'s vocabulary is not frozen (Z3, F1); the kit's identity pattern is lower case only, narrower than
383
+ lanes-core (F2); the parity manifest's E32/E33 rows name no owner module or test (G1).
384
+ - **Brand scan.** `lanes/web` carries no occurrence of the retired brand term before or after this change (`grep -ci`
385
+ is 0 for every file) and the brand baseline records none there, so the rebuilt `mobile.js` needs no policy wave.
386
+ - Tests: `tests/web/directory.test.mjs` (the kit, tokens, the owner's projection in three modes, the Day-0 goldens and
387
+ schemas, filter, states, stale and read horizon, malformed deliveries, device-local and the shared documents, hidden
388
+ lanes, links, revocation, resync, account change, subscriptions, actions, close, keyboard, the loader; every test has
389
+ at least one sabotage leg, LEGS, a broken copy its detector must catch), `tests/unit/test_web_directory.py` (budget
390
+ rows, the single load point, no request and one timer, the suite's test names and leg count),
391
+ `tests/web/prove_directory.sh` (budget, timer and loading legs on edited copies, and the suite failing on the tree
392
+ before F3; run in the lane's managed job).
393
+
394
+ ## Phone inbox, schedule and results (lanes2 Round 2 W30-B)
395
+
396
+ `inbox.js` shows a phone (and a tablet or desktop page) the same inbox thread, schedule and result records the terminal's
397
+ Operations view lists ([continuous workspace §14](../../docs/superpowers/specs/2026-10-25-lanes-2.0-continuous-workspace.md),
398
+ terminal UX §3; P09-P12). Status: built and tested against the terminal's own fixtures; **not connected** and **no entry
399
+ point yet**. No host serves the inbox or the builds panel to a browser (the gateway delivery is fan-out lane E7's, and the
400
+ S3 inbox and S5 builds documents reach no client before gates I1/I3), so on every host today each view opens and says
401
+ "Not connected"; nothing on the page links to it, so it opens only from a typed fragment or a record link.
402
+
403
+ - **Loaded on demand.** `index.html` never lists it. `mobile.js` appends `/lanes-assets/inbox.js` once (its own flag `o`)
404
+ only when the fragment is exactly `#inbox`, `#schedule` or `#results`, or one of them followed by `=<record id>`, at
405
+ load or on `hashchange`, in all three modes. The script appends `directory.css` and paints with its classes and token
406
+ roles (no colour literal of its own; one small style block of role variables). Everything inside it is one function,
407
+ so a page that opened `#lanes` and then `#inbox` holds both modules without a shared global name.
408
+ - **The same records.** The inbox rules are the terminal's, ported from `crates/lanes-protocol` `inbox.rs` (with S3's
409
+ review fixes, #727) and `crates/lanes-terminal/src/ops/inbox`. There are five views: Needs you, Unread, Waiting,
410
+ Scheduled and History. Membership is decided at the projection's `as_of_unix_ms`: archived threads are History only,
411
+ and snoozed ones are Scheduled only until their time. A lane's needs-input signal with no message is a row of its own
412
+ that reads "no messages yet". The workspace and peer-traffic filters narrow a list and its count together. A view tab
413
+ adds `(+n not shown)` from the page's `omitted_by_view`. The delivery word is the newest entry's `DeliveryState::of`
414
+ (uncertainty first; a socket write is `submitted`, never an acknowledgement), shown with the terminal's no-colour label.
415
+ The strict decode refuses a friendlier word, peer traffic asking for attention, a thread listed twice, a row without
416
+ entries that is not a signal, activity older than the newest entry, and a page or view that leaves out more than it
417
+ says. Text fields follow `lanes-protocol` `Text` (`Label`, `LongText`): non-empty, bounded, and no control character
418
+ but a newline or a tab, so an empty reason or an escape sequence in a subject is refused as the terminal refuses it. A
419
+ thread's page shows each entry with the owner's witness and the Lanes attempt on lines of their own, and it refuses a
420
+ witness on a message the host still holds. The node suite replays S3's shared fixture
421
+ (`crates/lanes-terminal/src/ops/inbox/fixtures/inbox-views.json`, which the terminal's Rust panel tests read). It
422
+ requires every view's thread ids, order and count under every filter, on screen in phone, tablet and desktop. Results are `crates/lanes-terminal/src/ops/builds/records.rs`'s records of the S5 `lanes2.builds-panel/1`
423
+ document: active jobs as builds, then recent jobs as results, the job id as the record id, the owner's state word beside
424
+ the label (`Staged (ready)`, `Timed out (timeout)`), one consequence and the full detail with every action's
425
+ availability, read-only; selection follows the id across a reorder. Under the header come `records.rs`'s lane-wait
426
+ lines (each opens to its detail: the job, the reason, the provenance, the attempt) and the read-only resource lines.
427
+ The panel is decoded field for field as `decode.rs` decodes it (lane waits, resources, an integer exit code, a present
428
+ artifact digest), and a panel observed earlier than the one shown never replaces it.
429
+ - **Pages (P10).** `Next page` sends the terminal's `n` (an `InboxPageRequest` after the owner's `next_page` token, or
430
+ the first page once the last one is shown while threads are left out) and `Load earlier entries` its `e` (an
431
+ `InboxThreadRequest` before the thread's `earlier_page` token). Each answer replaces the page shown; a selection the new
432
+ page does not list goes without a "no longer listed" notice. A source without `readPage`/`readThread` shows both
433
+ unavailable (`page_read_absent`).
434
+ - **Schedule.** Schedules and occurrences have no client read yet (S4: `lanes.api/1` carries no schedule read or command).
435
+ The Schedule view says so — `unavailable (schedule_read_absent)` with its reason — and invents no row; it lists the
436
+ inbox's Scheduled threads (messages held for a trigger, and snoozed threads) under the same filters, the terminal's ids.
437
+ - **Input ownership (E33).** The page never types into the terminal and never focuses the reply field. A reply's field
438
+ opens read-only; only **Type** makes it take text (the person then taps it: the phone's focus guard would refuse a
439
+ programmatic focus anyway), and **Done typing**, Escape, Review, selecting another record or closing gives the input
440
+ back. While the person types, an owner's snapshot or a command's answer is not drawn: redrawing would move the focused
441
+ field out of the page, which blurs it and closes a phone's keyboard. One line, appended outside the field, says that
442
+ updates wait; the next action of the person's draws them. On a tablet or a desktop, opening takes the keyboard into the
443
+ dialog (the selected row, else Close), a redraw keeps it on the same control, Escape closes the dialog (Escape in the
444
+ reply field only ends typing), and closing gives a desktop terminal its keys back, as `directory.js` does. A phone gets
445
+ no programmatic focus.
446
+ - **Composer and thread actions (P11).** Reply, Type, Review, then **Send now** sends the S3 `InboxComposeCommand`:
447
+ `v`, an `operation_id` retained until its outcome is definitive (the only duplicate guard), the exact recipient `to`, the text with its line breaks,
448
+ `reply_to` (the thread, which the host keeps Lanes-local) and `timing: now`. The host lists `send_now` as
449
+ `unqualified` (`human_principal_unavailable`) until the lane bus serves the human principal, and the page shows the
450
+ owner's reason. "After turn" is always shown unavailable, with its M8 reason. Peer traffic is read-only. Mark read and
451
+ unread, Snooze 1 h, Unsnooze, Archive and Unarchive send the S3 `InboxThreadCommand` under an operation id of their
452
+ own. A snooze names its end in `snooze_until_unix_ms`. A read or an archive names the activity the person saw in
453
+ `seen_through_unix_ms` (the row's `activity_unix_ms`), so newer activity stays unread. The rows change only with the
454
+ owner's next snapshot. Only a current snapshot of a connected source authorizes a write; otherwise every write is
455
+ unavailable with a code: `not_connected`, `stale_snapshot`, `peer_traffic_read_only`, or the owner's own availability
456
+ and reason.
457
+ - **Uncertain commands (BEY-7114).** Before dispatch, one exact command is retained in the principal's
458
+ device-local outgoing slot. A transport error or malformed answer is an unknown outcome. Retrying the same intent,
459
+ even after reload or a newer snapshot, sends that retained operation, text, snooze end and seen-through activity;
460
+ a different intent waits for a definitive receipt or refusal. An origin-scoped Web Lock serializes that slot across
461
+ tabs and the holder rereads it before dispatch. Browsers without Web Locks or writable storage refuse to send;
462
+ corrupt retained data holds writes until it is discarded. A receipt means custody, not delivery. The owner must explicitly offer Send now.
463
+ The retained command is shown with what it is and its operation id: **Retry unchanged** resends it whether or not its
464
+ thread is still listed; **Look up outcome** is unavailable (`outcome_lookup_absent`) until the E7 gateway serves an
465
+ operation lookup to the browser; **Discard…** asks for a confirmation, because discarding forgets the owner's only
466
+ duplicate guard, and an unreadable slot can only be discarded. The confirmation binds the exact retained bytes and rechecks them under the Web Lock; a replacement or unreadable storage preserves custody and requires fresh review (BEY-7130). A send still waiting on a replaced source ends as an
467
+ unknown outcome and lets go of the lock. An account change keeps every principal's `outgoing` (below).
468
+ Contract tests use an exclusive-lock stand-in; real browser/gateway acceptance remains owed because the port is unwired.
469
+ - **States.** Not connected, loading, refused, malformed, stale and denied are separate words. A malformed update or a
470
+ refused refresh keeps the last good rows marked stale; a denial removes them; an older revision never refills.
471
+ - **Device-local (F5).** The view, the filter, the selection, the scroll and the reply drafts (at most 32) live in
472
+ `localStorage` under `lanes:inbox:<principal>:<field>`; `outgoing` retains the one unresolved exact command (principal URI-encoded); no write the page sends carries a key of
473
+ F5's `DEVICE_LOCAL_KEYS`. The first principal of a page load purges every other principal's keys; an account change purges
474
+ the previous principal's and clears the screen, including all build/result documents and derived records. Both purges
475
+ keep every principal's `outgoing`: the one unresolved command (its message text included) stays on the device until its
476
+ own principal gets a receipt or a refusal for it or discards it, so an account change never turns its retry into a
477
+ duplicate; another principal is shown none of it.
478
+ - **Record links.** `#inbox=<URI-encoded thread>`, `#schedule=<thread>` and `#results=<job id>` (the record id grammar: 1
479
+ to 128 visible ASCII bytes) open the same record. A link waits while the inbox is incomplete; once complete, a record that
480
+ is not there is said once and forgotten. A link that resolves switches to the inbox view that holds the thread, clears
481
+ (and says so) a filter that hid it, selects it and asks for its entries; `#schedule=` names a scheduled thread only.
482
+ A selection restored on this device also asks for its entries.
483
+ - **Source port** (`window.lanesInboxSource`, or `lanesInbox.connect(source)`; PROVISIONAL, for the E7 gateway):
484
+ `subscribe(onFrame) -> cancel` delivering `{frame: 'inbox', body: InboxProjection}`, `{frame: 'thread', body:
485
+ InboxThread}`, `{frame: 'builds', body: lanes2.builds-panel/1}` and `{frame: 'refused', section: 'inbox'|'builds', body:
486
+ {code, reason}}` (`denied` or `unauthorized` remove the rows); optional `readPage(InboxPageRequest)` and
487
+ `readThread(InboxThreadRequest)` (`{v: 1, thread}` for the newest page, with `before` for an earlier one); `send({kind:
488
+ 'inbox_compose'|'inbox_thread', body})` answering a Promise of `{frame: 'receipt'|'refused', body}`. The page makes no
489
+ request of its own and keeps no timer.
490
+ - **Gaps (integrator requests, recorded in the PR).** The S3 inbox documents are not registered in
491
+ `lanes_protocol::schema::documents`, so no generated decoder or schema file exists for them (the page decodes by hand,
492
+ as the terminal does); no Day-0 frame carries the inbox, a thread, the builds panel or a denial; no client read of
493
+ schedules or occurrences exists; no gateway serves the page reads (`readPage`, `readThread`) or an operation-outcome
494
+ lookup to the browser (E7); the parity manifest's E33 row names no new-path test; nothing links to the views yet.
495
+ - Tests: `tests/web/inbox.test.mjs` (the fixture identity, the terminal's ids per view and filter, the page in three
496
+ modes, labels, refusals, results, schedule, input ownership, composer, thread actions, device-local, states, links, the
497
+ loader, the budgets, isolation; every detector has at least one sabotage leg, `LEGS`, a broken copy it must catch) and
498
+ `tests/web/prove_inbox.sh` (budget, loading, registration and fixture legs on edited copies, including the plan's
499
+ sabotage of `inbox.js` inlined into `mobile.js`, and the suite failing on the tree before W30-B; run in the lane's
500
+ managed job). A leg whose edit no longer applies is reported vacuous, never as caught. `tests/unit/test_web_inbox.py`
501
+ holds the `inbox.js` budget row, names the suite's tests and counts its legs against node's TAP totals.
262
502
 
263
503
  ## Docs page (plan W10 W6, LNS-107)
264
504
 
@@ -316,12 +556,21 @@ order.
316
556
  - The file: the Lanes browser shell (phone, tablet, desktop) over the pinned Zellij 0.45.1 client's window hooks. Its
317
557
  explanations are these notes (the file's line-1 pointer to them moved here too, W9 V3).
318
558
  - `root.dataset.lanesShell = mode`: read by `browser.js` for the desktop bar and the tablet's full rendering.
319
- - `if (mode !== 'phone')`: appends the laptop/tablet extras (`browser.css`, `browser.js`); a phone never fetches them.
559
+ - `add()` / `if (mode !== 'phone')`: appends the laptop/tablet extras (`browser.css`, `browser.js`); a phone never
560
+ fetches them. `add` serves every mode since F3.
561
+ - `dir()`: the lane directory's on-demand loader (see Lane directory): `directory.js` once, when the fragment is
562
+ exactly `#lanes` or starts `#lane=` (`/^#lane(s$|=)/`, so `#laneboard` or `#lane` load nothing), at load and on
563
+ `hashchange`, before the desktop shell returns. `d` is the loader's own once flag, set as `add()`'s ignored third
564
+ argument, so a second navigation before `directory.js` has run appends no second script. `globalThis` and `?.` keep
565
+ it silent on a page without `location` or `addEventListener` (the node suites' bare pages).
320
566
  - `if (mode === 'tablet')`: iPad Safari's user agent is a desktop one, so the shell asks for the client's mobile UI
321
567
  (`zellij:mobile-ui` set to `on`); a stored `off` stays.
322
568
  - The `HTMLElement.prototype.focus` guard: only a native tap on an input may open the keyboard; it is installed before
323
569
  upstream's first terminal or modal.
570
+ - `make()`: one element; a button is always `type="button"` (F3 paid for the directory loader with this and
571
+ `finder()`).
324
572
  - `kbd()` / `aria()`: `window.__zjSoftKbdCapture` and an `aria-label` setter, shared to keep the phone budget.
573
+ - `finder()`: a search field (no autocomplete or spellcheck) with its label — the workspace search and the lane filter.
325
574
  - `viewport()`: browser toolbars alone must not mean keyboard mode (`occluded` needs more than 120 px hidden). Zellij's
326
575
  input is in a closed shadow root, so `document.activeElement` is its host; `__zjSoftKbdCapture.isFocused` is read
327
576
  first.
@@ -0,0 +1,95 @@
1
+ /* BEGIN lanes tokens (theme lanes/3 from lanes/tokens/tokens.v1.json; tests/web/directory.test.mjs re-renders it) */
2
+ .lanes-directory {
3
+ color-scheme: dark;
4
+ --lanes-surface: #101318;
5
+ --lanes-surface-raised: #191e25;
6
+ --lanes-line: #2c333d;
7
+ --lanes-accent-wash: #1c3326;
8
+ --lanes-accent-line: #4b6955;
9
+ --lanes-press: #26332c;
10
+ --lanes-chip: #ffffff0f;
11
+ --lanes-ink: #f2f5f8;
12
+ --lanes-ink-dim: #a6b1be;
13
+ --lanes-ink-faint: #6f7a87;
14
+ --lanes-accent: #8fe3a6;
15
+ --lanes-on-accent: #101318;
16
+ --lanes-on-accent-urgent: #7a1a12;
17
+ --lanes-tone-urgent: #ff7b6e;
18
+ --lanes-tone-attention: #ffc233;
19
+ --lanes-tone-working: #6fb6ff;
20
+ --lanes-tone-done: #5fdc8a;
21
+ --lanes-scrim: #000000a6;
22
+ --lanes-shadow: 0 -16px 80px #0007;
23
+ }
24
+ :root[data-zj-theme="light"] .lanes-directory {
25
+ color-scheme: light;
26
+ --lanes-surface: #f3f5f2;
27
+ --lanes-surface-raised: #ffffff;
28
+ --lanes-line: #d5ded6;
29
+ --lanes-accent-wash: #e5f0e6;
30
+ --lanes-accent-line: #acc9b4;
31
+ --lanes-press: #d8e9db;
32
+ --lanes-chip: #edf3ec;
33
+ --lanes-ink: #111a14;
34
+ --lanes-ink-dim: #4a5661;
35
+ --lanes-ink-faint: #6f7b87;
36
+ --lanes-accent: #1f6f3f;
37
+ --lanes-on-accent: #ffffff;
38
+ --lanes-on-accent-urgent: #ffd3cc;
39
+ --lanes-tone-urgent: #c41c1c;
40
+ --lanes-tone-attention: #a04d00;
41
+ --lanes-tone-working: #1a56c4;
42
+ --lanes-tone-done: #0d7338;
43
+ --lanes-scrim: #1a222b80;
44
+ --lanes-shadow: 0 -16px 80px #0003;
45
+ }
46
+ /* END lanes tokens */
47
+ /* Lanes 2.0 lane directory (fan-out F3; integrated cockpit §5.1). Loaded with directory.js, on demand; never by
48
+ index.html. One renderer, three geometries: the phone picker fills the screen, the tablet panel is a left column,
49
+ the desktop overlay hangs below the Lanes chip. Colour by token role only; state is never colour alone. */
50
+ .lanes-directory { position: fixed; z-index: 900; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; overflow: hidden; padding: 12px 14px; background: var(--lanes-surface-raised); color: var(--lanes-ink); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; }
51
+ .lanes-directory[hidden] { display: none; }
52
+ .lanes-directory-phone { inset: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(14px + env(safe-area-inset-left, 0px)); }
53
+ .lanes-directory-tablet { top: 0; bottom: 0; left: 0; width: min(420px, 85vw); border-right: 1px solid var(--lanes-line); padding-left: calc(14px + env(safe-area-inset-left, 0px)); }
54
+ .lanes-directory-desktop { top: 34px; right: 8px; width: min(420px, calc(100vw - 16px)); max-height: calc(100vh - 48px); border: 1px solid var(--lanes-line); border-radius: 10px; font-size: 13px; }
55
+ .lanes-directory button, .lanes-directory select { font: inherit; color: inherit; }
56
+ .lanes-directory :focus-visible { outline: 2px solid var(--lanes-accent); outline-offset: 2px; }
57
+ .lanes-directory-head { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
58
+ .lanes-directory-head h2 { margin: 0; font-size: 1.15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
59
+ .lanes-directory-count { grid-column: 1; margin: 0; color: var(--lanes-ink-dim); font-size: .87em; }
60
+ .lanes-directory-close { grid-row: 1 / span 2; grid-column: 2; min-width: 44px; min-height: 44px; border: 0; border-radius: 22px; background: var(--lanes-chip); font-size: 1.4em; cursor: pointer; }
61
+ .lanes-directory-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
62
+ .lanes-directory-pick { min-height: 36px; max-width: 100%; border: 1px solid var(--lanes-line); border-radius: 8px; background: var(--lanes-surface); padding: 0 8px; }
63
+ .lanes-directory-chip { padding: 2px 8px; border: 1px solid var(--lanes-accent-line); border-radius: 12px; background: var(--lanes-accent-wash); }
64
+ .lanes-directory-clear, .lanes-directory-dismiss, .lanes-directory-toggle, .lanes-directory-act { min-height: 36px; padding: 0 10px; border: 1px solid var(--lanes-line); border-radius: 8px; background: var(--lanes-surface); cursor: pointer; }
65
+ .lanes-directory-notice, .lanes-directory-empty { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--lanes-surface); color: var(--lanes-ink-dim); }
66
+ .lanes-directory-notice.is-stale { color: var(--lanes-tone-attention); }
67
+ .lanes-directory-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
68
+ .lanes-directory-section { margin: 12px 0 4px; color: var(--lanes-ink-dim); font-size: .8em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
69
+ .lanes-directory-section.is-needs { color: var(--lanes-tone-attention); }
70
+ .lanes-directory-section.is-working { color: var(--lanes-tone-working); }
71
+ .lanes-directory-section.is-done { color: var(--lanes-tone-done); }
72
+ .lanes-directory-row { border-radius: 8px; }
73
+ .lanes-directory-pick-row { display: grid; grid-template-columns: 1.4em 1fr auto auto; grid-template-areas: "glyph name state mark" "glyph where where where"; align-items: baseline; gap: 0 8px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; background: none; text-align: left; cursor: pointer; }
74
+ .lanes-directory[data-density="compact"] .lanes-directory-pick-row { min-height: 32px; padding: 2px 8px; }
75
+ .lanes-directory-row.is-selected { background: var(--lanes-accent-wash); }
76
+ .lanes-directory-row.is-selected .lanes-directory-pick-row { border-left: 3px solid var(--lanes-accent); padding-left: 5px; }
77
+ .lanes-directory-glyph { grid-area: glyph; font-weight: 700; }
78
+ .lanes-directory-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
79
+ .lanes-directory-where { grid-area: where; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lanes-ink-faint); font-size: .85em; }
80
+ .lanes-directory-state { grid-area: state; color: var(--lanes-ink-dim); font-size: .85em; }
81
+ .lanes-directory-mark { grid-area: mark; color: var(--lanes-accent); }
82
+ .lanes-directory-mark.is-stale, .lanes-directory-row.is-stale .lanes-directory-name { color: var(--lanes-ink-faint); }
83
+ .lanes-directory-row.is-hidden .lanes-directory-name, .lanes-directory-row.is-hidden .lanes-directory-state { color: var(--lanes-ink-faint); font-style: italic; }
84
+ .lanes-directory-row[data-tone="tone-urgent"] .lanes-directory-glyph { color: var(--lanes-tone-urgent); }
85
+ .lanes-directory-row[data-tone="tone-attention"] .lanes-directory-glyph { color: var(--lanes-tone-attention); }
86
+ .lanes-directory-row[data-tone="tone-working"] .lanes-directory-glyph { color: var(--lanes-tone-working); }
87
+ .lanes-directory-row[data-tone="tone-done"] .lanes-directory-glyph { color: var(--lanes-tone-done); }
88
+ .lanes-directory-row[data-tone="ink-dim"] .lanes-directory-glyph { color: var(--lanes-ink-dim); }
89
+ .lanes-directory-detail { display: grid; gap: 6px; padding: 4px 8px 10px 30px; }
90
+ .lanes-directory-facts { margin: 0; color: var(--lanes-ink-faint); font-size: .8em; overflow-wrap: anywhere; }
91
+ .lanes-directory-link { color: var(--lanes-accent); }
92
+ .lanes-directory-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
93
+ .lanes-directory-act:disabled { color: var(--lanes-ink-faint); cursor: not-allowed; }
94
+ .lanes-directory-reason { color: var(--lanes-ink-dim); font-size: .8em; }
95
+ .lanes-directory-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--lanes-ink-faint); font-size: .8em; }