# Loom for macOS: unified UI/UX mockups

Static mockups of the whole Mac frontend implied by [`docs/design.md`](../../design.md).
Open [`index.html`](index.html) in a browser. There is no build step and no network
access; everything loads from `file://`.

This set merges two independent takes, Fable and Neon, following two cross-reviews
that largely agreed. Fable's set is the base (structure, components, state coverage,
Font Awesome fonts). Neon contributed specific screens and the theme mechanism. Where
neither set covered something design.md implies, this set adds it. Nothing here
changes app code.

## Files

| File | Covers |
|---|---|
| `index.html` | Links every screen and state, a cross-cutting state index, and a table mapping design.md sections to screens. |
| `onboarding.html` | Welcome, Pocket ID sign-in and its failures, the three-step connect, enrolling this Mac (one click, terminal fallback), first run, no agents. |
| `machines.html` | Overview and relay order, empty fleet, machine detail with judge and retention, add over SSH or with a code, the approval card, isolated machine, revoke, wake, inspecting a kept worktree, and setting up or updating any machine from this Mac. |
| `inbox.html` | Main window, inbox zero, loading, hub unreachable, off the tailnet, row actions and snooze, Active, Queued, All Threads and search, shared-with-me, narrow windows. |
| `thread.html` | Thread anatomy and every state: running, code-mode, confirmation requests, several requests at once, after deciding, no judge, done, failed, offline, waiting, queued, borrowed child, loading and failover, and a thread with its task. |
| `thread-tools.html` | Changes tab and Info inspector (a git summary per checkout), attachments, move sheet, move states, switching preset, model or agent, workflow, share, stop, thread-to-thread chains. |
| `new-thread.html` | New thread sheet, more options, blocked starts, jump bar. |
| `projects.html` | Project page, the Threads and Tasks switch, the task queue settings and full auto, repos, brief, tools, the Boundary tab with the task key, new, empty and isolated projects. |
| `library.html` | Schedules and the grooming schedule, workflows, tool instances (a failed reload, adding one on any machine), agents and presets, installing agents on machines, the action-to-tier table and code-mode limits. |
| `voice.html` | Hands-free strip, voice states, the floating panel, voice enrolment, the concierge thread. |
| `settings.html` | Settings window: General (with Appearance), Account, Notifications, Voice & Concierge, This Mac. |
| `system.html` | Menu bar extra, Dock badge, notifications, macOS permission prompts, main menu and keyboard map. |
| `tasks.html` | The task tracker, 19 sections: board and list for all projects and for one, task detail, card and row states, the filter bar, new task, the jump bar, moving cards, auto-queue, empty, loading, hub unreachable, narrow windows; then shared with you, editing while a thread is live, across projects, a task the queue skips because it cannot be placed, and reopening. |
| `assets/loom.css` | All styling, in three layers: palettes, role tokens, components. |
| `assets/loom.js` | Preview-theme switch, and templates for the repeated sidebar, inbox list, thread header, composer, and the task card, board, list, filter bar and auto-queue strip, all drawn from one table of tasks, which also supplies the counts in the filter menus. The two task rules the owner decided are noted at its top. Mockup scaffolding only. |
| `assets/fa-*.woff2` | Font Awesome 7 Pro Solid and Regular, subset to the 109 glyphs used, cut from the OTFs in `apps/LoomMac/Resources/Fonts/`. |

Icons follow `.font-awesome.md`: Font Awesome only, from the bundled subset. There are no
emoji, Unicode glyphs or SF Symbols used as icons; arrows and chevrons are Font Awesome
glyphs too. Key legends such as ⌘ and ↩ are text.

## Design rationale

1. **The inbox is the product.** The window opens on it, the Dock badge and menu bar
   count mean "needs you", and it can be cleared from the keyboard. Everything else is
   a place you visit.
2. **Group the inbox by what it asks of you:** Needs you, Failed, Finished. Offline
   threads are never inbox rows; a strip above the list names the machines holding work
   back, with Wake where a machine can be woken.
3. **One fixed place to answer: the request dock.** Whatever the agent needs sits
   directly above the composer and never scrolls. Answers are first-wins per request,
   so there is exactly one live copy of each request on screen.
4. **Confirmation is never a default.** The buttons are "Allow Once" and "Refuse…".
   Neither is filled, Return approves nothing, and there is no key equivalent. There is
   no per-thread grant; to stop being asked, the owner changes which tiers ask on the
   project. Tiers are named in design.md's words: Read, Reversible write, Outward or
   irreversible. Request ids are not shown. The same card can be answered from the menu
   bar extra, but only when its whole payload is visible there; otherwise the row says
   "Open to Decide". Notification banners never allow an outward request.
5. **Say how content is arriving.** Each thread has a path chip (Local socket, Live via
   a relay, Messages only, Summary only, Hub unreachable). When something is missing
   the pane says which plane failed and what would fix it.
6. **Degrade in place.** With the hub down, the same window stays, write controls are
   disabled where they are, rows are marked live or cached, and drafts are kept but not
   auto-sent.
7. **Put each setting where its subject lives.** Machine settings are on the machine,
   project settings on the project, tools and workflows in Library. The Settings window
   holds only this app on this Mac and the signed-in person.
8. **Make the trust boundary legible everywhere.** Every project section is labelled
   "Agents may edit" or "Owner only", and the owner-only settings also sit together in
   a Boundary tab.
9. **Show Loom's own mechanics.** A `run` script is expanded while it runs or waits for
   a confirmation and collapses to one line afterwards; mid-turn context is a visible
   row; a workflow gets its own band with round n of cap and each step's preset.
10. **Voice is a mode with a visible meter.** While hands-free is on, a strip is docked
    at the bottom of the window. With the window closed it is the menu bar popover, and
    a small floating panel appears when voice needs the owner's eyes.
11. **Set up anything, on any machine, from this Mac.** Installing or updating the
    daemon, installing agents, adding tool instances and editing machine settings are
    all done from the local app, with progress and failure shown per machine. Two rules
    from design.md bound it: a credential lives on the machine that uses it (so it is
    signed in there, or sent straight there, never through the hub), and the hub cannot
    widen what an isolated machine will run (so that goes over the owner's SSH).
12. **Tasks are a place to look, not a second inbox.** A task says what should happen
    and a thread is the doing of it, so a card shows its thread's state and the board
    judges nothing. Tasks never notify, never badge the Dock and never hold a request;
    the inbox still owns everything that needs the owner. "Queued" keeps meaning
    threads in `queued`, and a Ready task is never called that.
13. **Say why work is not moving.** The auto-queue strip gives slots in use and the
    one reason the next Ready task has not started. A blocked card is marked wherever
    it sits, and so is one the queue skipped because no machine can claim it, with the
    reason and the fix. A move that has a consequence says so before the drop. Only a move that
    stops a thread asks, and starting a blocked task warns first, naming its blockers.
14. **Native conventions over invention.** Three-pane split view, sheets for creation,
    alerts only for destructive acts (their default button is Cancel), grouped forms, a
    standard settings window, a real main menu.

## Information architecture

```
Sidebar
├─ Inbox            needs you · failed · finished      (quick filter, offline strip)
├─ Active           running · waiting · offline        (children under their parent)
├─ Queued           queued, with the reason it has not started
├─ All Threads      everything incl. archived, search
├─ Tasks            board | list over one text field and one filter set; all projects (auto-queue strip)
├─ Concierge        pinned; one thread, no list column
├─ Projects
│   └─ <project>    Threads | Tasks. Threads: same thread list scoped. Tasks: the same board
│                   and list scoped. Settings tabs: Overview (defaults, task queue) · Repos ·
│                   Tools · Brief · Boundary (with the task key)
├─ Machines
│   ├─ overview     cards + relay order · Software (daemon and agents on every machine)
│   └─ <machine>    Settings (identity, role, tags, judge, privacy) · Threads · Kept worktrees
├─ Library
│   ├─ Schedules     (the grooming schedule is one of these)
│   ├─ Workflows
│   └─ Tools        Instances (add on any machine) · Agents & Presets (install where) · Endpoint & Tiers
└─ footer           account · voice toggle · settings

Thread
  toolbar        state pill · title, with project · machine · preset as the subtitle · verbs
  tabs + path    Transcript | Changes | Files ................ task chip · path chip
  workflow band  (only with a workflow) name · round n of cap · steps with presets
  body           the selected tab; only this scrolls
  dock           request card(s) · queued message · composer
  inspector      (optional, Info only) a git summary per checkout (branch · push or publish ·
                 changes vs main), sessions, linked threads, schedules, tools

Task
  board card     priority · id · corner: slot, position, grip · title · project (all-projects
                 board) · thread state and machine · blocked or skipped · tags · labels ·
                 why · moved by · follow-up of · made by · the fix for a skipped task
  list row       the same facts in the list column, grouped by status
  detail         description · project and who owns it · status · priority · labels ·
                 follow-up of · created by · dependencies, each with its status ·
                 how its thread starts · threads over time, the live one marked
  board pane     the same detail in the inspector slot

Outside the window
  menu bar extra · voice popover / floating panel · notifications · Dock badge ·
  Settings (General, Account, Notifications, Voice & Concierge, This Mac) · jump bar ⌘K
```

Thread states map to places as follows. `offline` is never in the inbox.

| State | Inbox | Active | Queued | What the detail pane leads with |
|---|---|---|---|---|
| `queued` | | | yes | Placement card: what it requires and why nothing has claimed it |
| `running` | | yes | | Live stream, Stop turn, composer in Queue mode |
| `waiting` | | yes | | What it is waiting on, with a link, and what else would wake it |
| `exigent` | yes | | | Request dock: confirmation, question, verdict, long chain, or "no judge" |
| `done` | yes | | | Summary, then a review dock or a quiet footer (per project) |
| `failed` | yes | | | Reason and a resume action |
| `offline` | | yes | | What is still readable, and the cost of moving |

A task's status follows its thread, so the board never disagrees with the lists above.

| Task status | Its thread | Shown on the card |
|---|---|---|
| Backlog, Ready | none yet | Blocked, Next, or Skipped: no machine can claim it now, with the reason and the fix. It holds no slot. |
| In progress | `queued`, `running`, `waiting`, `exigent`, `offline` | That state's pill and the machine, and its slot on a project board. `exigent` holds no slot. A thread whose machine fell asleep after it started stays `queued` and keeps its slot. |
| In progress | `failed` | Failed, with Retry. Not retried by itself. Holds no slot. |
| Review | `done`, in a project that marks work for review | For review. Accepting in the thread moves it to Done. Never a manual target. |
| Done | `done`, or accepted | Dimmed |
| Cancelled | stopped, or none | Hidden unless the Status filter asks; then struck through, with Restore |

Narrow windows shed columns in a fixed order (see `inbox.html#narrow`): the inspector
becomes a sheet, then the sidebar collapses, then the list. Opening the inspector below
1280 pt collapses the sidebar so the thread body keeps about 560 pt.

## Key flows

- **First run.** Sign in with Pocket ID, then enrol this Mac in one click (the app
  approves the local daemon's code with the session it just got). If no daemon is
  found, the terminal steps appear and the app watches for the code. The real window
  then opens with a composer in the detail pane.
- **Add a machine.** Over SSH (`loom add`) or with a code (`loom enrol`). Both end at
  one approval card showing the detected host, a version check and the key fingerprint,
  confirmed with the passkey. Turning on Isolated lists the six accepted exposures.
- **Clear the inbox.** Select a row, read the last message, answer in the dock, and
  the next row is selected. Archive `E`, snooze `H` (a time, in a named time zone),
  undo `⌘Z`.
- **Decide an outward action.** The card shows the exact payload, where it runs, the
  instance, why it was classified so and which policy asks. `⌘D` swaps the body for the
  diff while the card stays put. Allow Once or Refuse… (the reason is typed inline).
- **Push from the inspector.** Each checkout card has Push n Commits, Publish Branch or
  Publish Repository…. The click raises an ordinary outward request in the dock, and the
  push runs on the thread's machine with the credentials that machine holds. "Changes
  vs main" opens the Changes tab for that repo.
- **Set up a remote machine.** Machines, Software: update the daemon or install an
  agent on any machine; each row shows its own progress. Library, Tools: add an
  instance, pick the machine that will hold the secret, then sign in (the machine
  starts it, this Mac's browser finishes it) or paste a key (sent straight to that
  machine). A sleeping machine is queued; an isolated one is done over SSH.
- **Several requests.** Oldest first, one open, the rest as one-line rows. Each is
  decided separately.
- **Talk to a working agent.** `⌘↩` queues for the next turn, `⌥⌘↩` interrupts, `⌘.`
  stops the turn.
- **Move or switch.** One pre-flight sheet: targets with reasons, preset on arrival,
  what travels, and what the hub cannot carry (the agent's own connectors). A model
  switch is tried in place and falls back to a handoff; the app reports which happened.
- **Lose a connection.** Hub down: read-only in place, Retry Now. Tailnet off: hub
  messages and summaries. Relay down: failover with a notice. Key mismatch: refusal.
- **Note work for later.** `⇧⌘N`, or Save as Task on the New Thread sheet. Title,
  Markdown description, then tokens with defaults. It lands in Backlog, or in Ready
  from an entry point that means "run this", and runs when the owner starts it or
  auto-queue reaches it.
- **Let a project run itself.** Turn on auto-queue on the project, on the strip, from
  the jump bar or by voice, and set the limit. The strip then shows slots in use and
  why the next Ready task is waiting. A Ready task no machine can claim is skipped and
  says so; the queue goes on to the next. With agent-made tasks landing in Ready,
  agents feed their own queue.
- **Move a card.** Drag, the Move to menu, or `⌥⌘←` `⌥⌘→`. Reordering Ready changes
  what runs next, inside the card's priority only. Dropping on In progress starts a
  thread now, past the limit if need be; a blocked task warns first. A move that would
  stop a live thread is confirmed; its default is Cancel.
- **Work on someone else's project.** A person a project is shared with gets the same
  task board and the same controls as its owner, under one line saying whose it is.
- **Reopen finished work.** Reopen on a Done task, or Restore on a Cancelled one. It
  returns to Backlog and keeps its earlier threads.
- **Hands-free.** `⌃⌘V`. Reversible writes are done and announced. Outward actions
  wait for a spoken yes that matches the owner's voice; an uncertain yes asks for a tap.

## What came from which set

| From Fable (base) | From Neon | New in this set |
|---|---|---|
| Sidebar skeleton and Library | Pinned Concierge entry and concierge thread view | Two or more requests in the dock |
| Fixed thread layout and the request dock | Request card contents: instance, asking policy, inline refusal reason | A machine with no judge |
| All seven thread states, five failure kinds | Workflow band with round n of cap and step presets | Model switch falling back to a handoff |
| Changes as a body tab | `run` script card and the mid-turn context row | Connector warning in move and switch pre-flight |
| Move sheet, move states, blockers | Checkout cards in the Info inspector | Inspecting a kept worktree before deleting it |
| Goal-first New Thread sheet | Offline-machine strip with Wake, quick filter | A tool instance that fails to reload |
| Machine detail, add over SSH or code | Approval card (host, version, fingerprint), empty fleet | Shared-with-me view and who may allow |
| Project tabs and Boundary tab | "Agents may edit" / "Owner only" labels | Parent waiting on a borrowed child |
| Schedule, workflow, instance, preset editors | Time zone in snooze, preset switch in the move sheet | Action-to-tier table |
| Voice strip, nine voice states, enrolment | Local-live vs cached marks, Retry Now | Narrow-window behaviour |
| Settings scope, menu bar, notifications, prompts, menus | Untrusted banner: own connectors stay active | Six themes and the Appearance setting |
| Font Awesome subset | `[data-theme]` theme mechanism | Three-step connect, terminal fallback for this Mac |

Added at the owner's request while this set was built: allowing an outward request from
the menu bar when its whole payload shows; the git summary in each checkout card; and
setting up, updating and configuring any machine from this Mac (`machines.html#remote`,
`library.html#add-instance`, `library.html#install`).

Added after the merge, when design.md gained its "Tasks" section: `tasks.html`, the
Tasks sidebar item, the project's Threads and Tasks switch and queue settings, a thread
showing its task, and the task references in the inbox, menus and jump bar. Those
screens were themselves built twice and merged; what came from which take, the
decisions and the open questions are under "Tasks: what the mockups decide beyond
design.md".

Dropped on purpose: "Queue Work…" and "Queue for Later" (now tasks); "Allow for This Thread"; "Tier 3" numbering and visible request ids;
the `⌥⌘A` binding and the jump bar's "⌘↩ approve"; `⌘,` for More Options (now `⌘E`);
the "when a machine is back" snooze; Neon's Settings tabs for relays, agents, tools and
workflows; vendor names and dollar estimates in voice; emoji and Unicode icons.

## Theme system

Six themes ship: macOS Light, macOS Dark, Catppuccin Latte, Frappé, Macchiato, Mocha.

**In the app, theme is a setting.** It appears only in Settings, General, Appearance
(`settings.html#general`): "Match System" with one light and one dark theme, or "Always
Use One". **In these pages**, a preview switch sits in the dashed bar above the mocked
window. It offers Auto plus the six themes, is remembered in `localStorage`, and can be
set with `?theme=` (`light`, `dark`, `latte`, `frappe`, `macchiato`, `mocha`, or the
full ids below) without being remembered.

`assets/loom.css` has three layers:

1. **Palettes.** One block per theme, selected by `:root[data-theme="macos-light"]`,
   `macos-dark`, `catppuccin-latte`, `catppuccin-frappe`, `catppuccin-macchiato`,
   `catppuccin-mocha`. Each sets `color-scheme`. Slots use Catppuccin's names (`--p-base`,
   `--p-mantle`, `--p-crust`, `--p-text`, `--p-subtext1`, `--p-peach` …) so every theme
   fills the same shape; the macOS themes put system-like values in them. The Catppuccin
   blocks hold the official hex values, all 26 colours each. Colour literals appear
   nowhere else: not in components, pages or the script. The same blocks also match
   `.theme-scope[data-theme]`, which is how the Appearance swatches preview a theme
   inside another.
2. **Roles.** Theme-independent tokens derived from the palette: surface, fill, border,
   text, accent, selection, one colour per `ThreadState`, tier, trust, path, diff,
   syntax, plus radius (`--r-*`), spacing (`--sp-*`) and type (`--fs-*`, `--fw-*`,
   `--font-*`) tokens.
3. **Components.** They read role tokens only.

Derivations, so a theme supplies few values:

- **Tints** are `color-mix()` of a role colour with transparent (14% for chips and
  pills, 7 to 10% for cards and banners).
- **Fill and border** are the text colour at 6, 12, 11 and 22% alpha, so they pick up
  each theme's tint (on Catppuccin they land close to `surface0`–`surface2`).
- **Inks.** Every hue has a solid (dots, borders, tints) and an ink (text and glyphs).
  The ink is the same hue with its OKLCH lightness clamped into a per-theme window
  (`--ink-lo`, `--ink-hi`), written with relative colour syntax. That is what lets
  Latte's bright peach and Frappé's soft red both read as text. Browsers without
  relative colour syntax fall back to the solid.
- **Text on fills.** `--text-on-accent` is set per theme (white on the macOS themes and
  Latte, `crust` on the dark Catppuccin themes, whose accents are pastel).
  `--text-on-state` is the window colour, used on ink-coloured fills such as the
  needs-you badge.

Each palette block also carries four calibration scalars (`--ink-lo`, `--ink-hi`,
`--k-t2`, `--k-t3`) and two strengths (`--k-sel`, `--k-shadow`). To add a theme, copy a
block, fill the slots, and adjust those until text passes.

### Role tokens and their SwiftUI names

One `LoomTheme` value in the environment (`@Environment(\.loomTheme)`) carries these.
`ThreadState.color` in `apps/LoomMac/Models.swift` and the colour uses in `Views.swift`
would read from it.

| CSS role token | SwiftUI `LoomTheme` | macOS Light / Dark | Catppuccin |
|---|---|---|---|
| `--surface-window` | `surface.window` | `windowBackgroundColor` | `base` |
| `--surface-list` | `surface.list` | `controlBackgroundColor` | `mantle` |
| `--surface-sidebar` | `surface.sidebar` | sidebar material | `crust` |
| `--surface-raised` | `surface.raised` | `controlColor` | `base` (Latte), `surface0` (dark) |
| `--surface-code` | `surface.code` | `textBackgroundColor`, tinted | text 6% over `base` |
| `--scrim` | `surface.scrim` | system sheet dimming | shadow colour 34% |
| `--fill`, `--fill-strong` | `fill.normal`, `fill.strong` | `quaternaryLabelColor`, `tertiaryLabelColor` fills | text at 6% and 12% |
| `--border`, `--border-strong` | `border.normal`, `border.strong` | `separatorColor` | text at 11% and 22% |
| `--text-1` | `text.primary` | `labelColor` | `text` |
| `--text-2` | `text.secondary` | `secondaryLabelColor` | `subtext1`, pulled toward `text` |
| `--text-3` | `text.tertiary` | `tertiaryLabelColor`, raised to pass contrast | `subtext0`, pulled toward `text` |
| `--text-on-accent` | `text.onAccent` | white | white (Latte), `crust` (dark) |
| `--text-on-state` | `text.onState` | window colour | `base` |
| `--accent`, `--accent-fill` | `accent.ink`, `accent.fill` | `controlAccentColor` | `blue` |
| `--selection`, `--focus-ring` | `selection`, `focusRing` | `selectedContentBackgroundColor`, `keyboardFocusIndicatorColor` | `blue` at 15 to 22%, 42% |
| `--state-exigent` (+`-ink`) | `state[.exigent]` | orange | `peach` |
| `--state-running` (+`-ink`) | `state[.running]` | blue | `blue` |
| `--state-waiting` (+`-ink`) | `state[.waiting]` | purple | `mauve` |
| `--state-done` (+`-ink`) | `state[.done]` | green | `green` |
| `--state-failed` (+`-ink`) | `state[.failed]` | red | `red` |
| `--state-offline`, `--state-queued` (+`-ink`) | `state[.offline]`, `state[.queued]` | grey | `overlay1` (ink: secondary text) |
| `--tier-read`, `--tier-reversible`, `--tier-outward`, `--tier-unsure` (+`-ink`) | `tier.read`, `.reversible`, `.outward`, `.unsure` | grey, blue, red, orange | `overlay1`, `blue`, `red`, `peach` |
| `--trust-isolated`, `--trust-untrusted` (+`-ink`) | `trust.isolated`, `.untrusted` | indigo, amber | `lavender`, `yellow` |
| `--path-live`, `--path-degraded`, `--path-none` (+`-ink`) | `path.live`, `.degraded`, `.none` | green, orange, red | `green`, `peach`, `red` |
| `--task-blocked` (+`-ink`) | `task.blocked` | amber | `yellow` |
| `--task-skipped` (+`-ink`) | `task.skipped` | teal | `teal` |
| `--prio-critical` (+`-ink`), `--prio-high-ink`, `--prio-medium-ink`, `--prio-low-ink` | `priority[.critical]` … `[.low]` | red, then primary, secondary and tertiary text | `red`, then the three text tones |
| `--diff-added`, `--diff-removed` (+`-ink`) | `diff.added`, `.removed` | green, red | `green`, `red` |
| `--syntax-keyword`, `-string`, `-number`, `-function`, `-comment`, `-punct` | `syntax.keyword` … | purple, green, orange, blue, tertiary, secondary | `mauve`, `green`, `peach`, `blue`, tertiary, secondary |
| `--brand-a` … `--brand-d` | `brand.gradient`, `brand.gradientAlt` | purple to blue; orange to red | `mauve` to `blue`; `peach` to `red` |
| `--shadow-control`, `--shadow-knob`, `--shadow-window` | `shadow.control`, `.knob`, `.window` | system shadows | shadow colour per theme |
| `--r-xs` … `--r-xl`, `--r-pill` | `radius.xs` … `.pill` | 4, 6, 9, 12, 16 pt | same |
| `--sp-1` … `--sp-6` | `spacing.s1` … `.s6` | 4, 8, 12, 16, 20, 24 pt | same |
| `--fs-caption` … `--fs-large`, `--fw-*`, `--font-ui`, `--font-mono` | `type.caption` … `.large`, weights, `.ui`, `.mono` | 11, 12, 13, 14, 17, 24 pt | same |

Notes for the Swift side:

- Build the two macOS themes from `NSColor` semantic colours so the system accent
  colour and Increase Contrast keep working. The hex values in the macOS palette blocks
  stand in for those here.
- The four Catppuccin themes are fixed palettes and force their colour scheme on the
  window (`.preferredColorScheme`).
- Each state, tier, trust, path and diff role is a pair: `solid` and `ink`. The ink
  rule is "clamp OKLCH lightness to the theme's window, keep chroma and hue"; compute
  it once when the theme is built.
- Font Awesome glyphs take their colour from these tokens with no extra work.
- Not themed: the window traffic lights, system sheets and prompts, notification
  chrome. The mockup wallpaper (`--p-desk`) is not part of the app.

### Contrast

Every page was rendered in all six themes and every text node's contrast was measured
against its composited background. Body text, button labels, chips and inks meet
4.5:1 in all six themes; nothing measured below that except disabled controls and the
drag placeholders listed under "How this was checked", which are dimmed on purpose and
exempt. What had to change to get there: tertiary text was
darkened (it was 2.2 to 3.3:1 in both source sets), state colours got ink variants,
the primary button uses a per-theme text colour, destructive actions became red text
on a plain button, and chips on a selected row sit on the window colour.

## Decided by the owner

- **Menu bar approval.** An outward or irreversible request can be allowed from the menu
  bar extra when its whole payload is visible in the popover: at most four lines, with
  nothing truncated, elided or scrolled, alongside the machine it runs on. The buttons
  are plain, neither is a default, and Return approves nothing. When the payload does
  not fit, the row says "Open to Decide". Notification banners stay open-only for
  outward requests. The voice panel follows the same rule.
- **Git summary.** Every checkout card in the Info inspector has three rows: branch with
  a switcher, push or publish, and "Changes vs main" with added and removed counts.
- **Remote setup.** The owner can install, update and configure almost anything on any
  enrolled machine from the local app.
- **The queue skips a Ready task no machine can claim.** design.md now says so. Such a
  task (its pinned machine asleep or revoked, or its tags or preset on no machine now
  reporting in the project) keeps its place in Ready, holds no slot, is marked Skipped
  in its own colour with the reason and the fix (Wake, Place Elsewhere…, Change
  Preset…), and starts once a machine can take it. A thread that had already started
  when its machine fell asleep still waits in `queued` and holds its slot, and so does
  one the owner starts by hand after a warning (`tasks.html#no-machine`, `#cant-start`,
  `#start-unplaceable`).
- **A person a project is shared with has the owner's rights over its tasks.** The
  owner's words: permissions should not be overbearing; this is for two trusted
  people. They add, edit, reorder, start, retry, move and cancel tasks and change the
  queue settings, including moving a task whose thread is live, which stops the thread.
  Only the boundary, which holds the task key, stays the owner's (`tasks.html#shared`).
- **A person a thread is shared with can stop it, move it and switch its preset.** This
  closes the gap the task decision left, where they could stop a thread by moving its
  task but not from the thread. Only sharing it further, or ending the share, stays the
  owner's (`inbox.html#shared-with-me`).
- **A blocker the reader cannot see is a placeholder.** Blockers may cross projects,
  isolated ones included. Whoever cannot see the blocker's project is shown that a
  blocker exists and nothing else: a person it is not shared with, and an agent whose
  project's cross-project messaging does not reach it (`tasks.html#cross-project`).
  Applying the placeholder to agents is the mockups' reading of the owner's answer.
- **Change Preset on a thread that has not had a turn also rewrites the task's preset**
  (`tasks.html#start-unplaceable`).
- **Reopening.** The owner asked what makes sense; this is the answer given, now in
  design.md. A Done or Cancelled task reopens into Backlog, Ready or In progress, and
  In progress starts a thread, as any move there does. Whatever it blocks is blocked
  again, which stops nothing: blocked only holds back a start, so a blocked task's
  running thread carries on and a failed one's Retry warns first (`tasks.html#reopen`).

## Decisions made where design.md is silent, and open questions

Each of these is a decision the mockups take so that the screens are complete. They are
listed so the owner can overrule them.

1. **Who may allow on a shared thread.** Decided: anyone a thread is shared with may
   read, reply, answer questions and allow or refuse any request, outward ones
   included. The first answer wins. Since then the owner has decided they may also
   stop, move and switch preset (see "Decided by the owner"); only sharing stays the
   owner's.
2. **The action-to-tier table** (`library.html#tiers`) is a working assumption. It
   treats an edit outside the project's checkouts and an undeclared action as needing
   confirmation, and message, schedule, checkout and reload as reversible writes.
3. **Several pending requests** are ordered by arrival, decided one at a time, with no
   "allow all". A typed reply answers the open question if there is one and never
   counts as an approval.
4. **No judge.** The dock offers "Continue to <next step>", "Finish Without <step>" or
   "Mark Done". That needs an owner-driven advance in the hub, which design.md does not
   describe.
5. **Model switch.** The sheet promises "in place, else handoff" and reports which
   happened, because switching models over ACP is not yet verified.
6. **Agent's own connectors.** The warning names connectors from the one-line tool-call
   records ("called `linear` 3 times"). If the daemon cannot tell an agent-own tool
   from the records, the warning becomes generic.
7. **Kept worktrees.** Deleting needs a direct path and a loaded diff. There is no
   "save as patch"; reopening the thread is the way to rescue work.
8. **Failed reload.** There is no rollback to the last working version; the instance
   is down until a reload succeeds, and threads learn of it on their next endpoint
   response.
9. **Borrowed children** report to their parent, not to the inbox, unless they fail
   or ask the owner something; they are archived after replying.
10. **Narrow windows.** Breakpoints at 1280, 1000 and 700 pt and a 400 pt minimum are
    proposals; they were drawn, not tested in SwiftUI.
11. **Snooze by event** ("when a machine is back") was dropped because snooze is a time
    kept by the scheduler. Bringing it back needs an event-driven schedule.
12. **Project defaults.** Decided: all of them are "Agents may edit", including the
    default preset, so an agent can change the permission mode new threads start in.
13. **Theme details.** The Catppuccin accent is fixed to `blue`; making it pickable is
    easy. White as text on Latte's accent is not a Latte palette colour. The ink rule
    needs an OKLCH conversion in Swift.
14. **Active / Queued / All.** Decided: all three are in the first build.
15. **Judge reasoning.** Decided: cards show the judge's one-line reason and which
    judge it was, with no number.
16. **Uncertain spoken yes** asks for a tap, as design.md says. Asking for a longer
    phrase instead was Neon's idea and is not mocked.

Tensions between "configure anything from this Mac" and design.md. In each case the
mockup keeps design.md's rule and shows the shortest remote-initiated path that
respects it.

17. **A secret typed in the app.** Decided: allowed. The owner pastes a key on this Mac
    and it goes over the direct path, encrypted to the target machine's pinned key,
    never to the hub and not kept here (`library.html#add-instance`). Without a direct
    path the key cannot be sent, because nothing is staged in the hub.
18. **Remote install.** Decided: on machines that are not isolated the hub may ask a
    daemon to update itself or install an agent, with pinned and checksum-verified
    versions, a wait for running turns unless the owner confirms a restart, and
    rollback if the new daemon does not report in.
19. **Isolated machines.** Decided: changes to an isolated machine's list of projects
    and agents, and its daemon updates, run over the owner's SSH from this Mac with the
    command shown first, never on the hub's request. This Mac is therefore a path onto
    an isolated machine, which is accepted.
20. **Signing an agent in remotely** depends on each agent offering a sign-in that can
    be finished from another device. Where one does not, the fallback is a terminal on
    that machine.
21. **Owner-initiated git actions.** Decided: the inspector's push and publish rows
    raise the same confirmation on the owner's own click and run on the thread's
    machine. The branch switcher is a reversible write, refused while a turn is running
    or when uncommitted work would be overwritten.
22. **"Whole payload visible"** is set at four popover lines. The number is a guess.

## Tasks: what the mockups decide beyond design.md

design.md's "Tasks" section is the source of truth. Two independent takes of the task
screens were built on the set above and cross-reviewed by two reviewers, who agreed on
nearly everything. This is the merged result: the Fable take is the base (its
components, role tokens, single table of tasks and state coverage), specific pieces
came over from the Neon take, and nine gaps neither take drew were added. Each item
below is a place where the mockups chose something design.md does not decide. The
owner can overrule any of them.

| From the Fable take (base) | From the Neon take, redrawn with the base's components | New in the merge |
|---|---|---|
| Board, list, task pane and detail from one table of tasks | A Project row showing ownership; the Dependencies block with each blocker's status | The shared-with-you view of a project's tasks |
| Card anatomy; the `--task-blocked` role; outlined label pills | "live" on the current thread, Open Live Thread, the boxed description | Editing a task while its thread is live |
| The auto-queue strip, slot dots and Slots popover | Slot marks on project cards; `#1 #2 #3` while Ready is reordered | A blocker in another project |
| New Task replacing "Queue Work…", Save as Task, the Task menu | "Needs a preset no machine offers", with Change Preset… | An agent's task for another project, refused |
| Ready split by project; grey "n ready" in the sidebar | "Filter title or ID"; acquirable and fixed tags; people in the Creator menu | Tasks with no tasks in any project |
| Moves, their confirmations, the Cancelled drop target | Filters folding into "Filters · n"; a compact auto-queue count | A project with no Review column |
| Hub-unreachable board, read-only in place | The corner "cached" mark; a cue for columns that are off screen | The grooming schedule's detail |
| Task actions in the tier table; full auto on the project | Cancelled rows struck through with Restore; Show Cancelled | A task pinned to a revoked machine, or with a preset nothing offers |
| The clock icon for Queued; "Groom LuckyDo backlog" | Project and isolated-project chips on the all-projects board | Reopening a Done task and its earlier threads |
| | The sixth isolated-machine exposure; tasks in the keyboard table and Boundary | Start Anyway; priority bands that refuse a drop |

Not taken from the Neon take: its CSS that read palette slots directly, its coloured
labels, its font files (OTF bytes named `.woff2`), `⇧⌘T` for New Task, and its 75%
opacity for the off-screen column cue.

### Open questions

Items 26, 29, 30 and 66 were open and are now under "Decided by the owner". One
thing decided with 29 and not open: revoking a machine does not rewrite the tasks
pinned to it; they keep the pin, say it is broken, are skipped, and the revoke alert
counts them (`tasks.html#cant-start`). What is left open is item 67, below, and what
is not drawn.

Chosen where design.md is silent, for the gaps neither take drew. These are proposals.

25. **Editing a task while its thread is live** (`tasks.html#live-edit`). Every field
    stays editable. A change to the title or description is saved on the task and
    offered to the thread as a message; it is sent only if the owner says so. Placement,
    preset and workflow apply to the next thread, and the running one is moved or
    switched from the thread. Adding a blocker marks the card and stops nothing.
27. **An agent's task for another project that the messaging setting forbids** is
    refused, not asked about: the policy already answered. The thread is told why, gets
    a row in its transcript, and does not become `exigent`. An allowed one lands where
    the receiving project's setting says.
28. **A project that does not mark finished work for review has no Review column** on
    its own board (`tasks.html#no-review`). The column stays while tasks from before
    the setting changed still sit in it, and the all-projects board always has it. The
    alternative is an always-empty column.
31. **No tasks in any project** shows one empty state with no filter bar and no strip.
32. **The grooming schedule** (`library.html#grooming`) is an ordinary schedule whose
    thread reads Backlog and moves tasks to Ready. The cap ("at most three a day") is a
    sentence in its goal, not a setting. It never starts what it promotes, and it does
    not change the queue settings. A task it promoted says so on its card, with Undo.
33. **Show Task has no shortcut.** `⌥⌘T` is the system's Show or Hide Toolbar, and the
    task chip on a thread is one click. A key can be added if the owner misses one.
67. **How a skipped task is drawn.** design.md says it "shows why it was passed over";
    the rest is chosen here. The mark is a teal Skipped chip and card edge, a role of
    its own (`--task-skipped`), so it is not read as blocked (yellow), needs you
    (orange) or failed (red). The card and the list row give the reason in full and the
    fix as buttons. The strip names a skipped task only when that explains what the
    queue did. Start by hand warns first, in a popover with no default button that
    offers the fix and says the thread would hold a slot.

Still open and not drawn: the iPhone's list; the board's sixth column when Cancelled is
ticked (described, not drawn); a card that is both blocked and skipped (blocked is
checked first, so it would show Blocked).

Decided by the owner since the merge, and no longer open:

23. **A Ready task no machine can claim is skipped.** See "Decided by the owner". The
    set had drawn the other option, in which the queue started the task and its queued
    thread held a slot; every screen built on that was redrawn.
24. **A person a project is shared with has the owner's rights over its tasks.** See
    "Decided by the owner". The set had drawn read and add-to-Backlog only.

### Decided

Where things live

34. **Task detail has no window of its own.** In List it is the detail pane of the
    ordinary three panes. On the Board a selected card opens in a trailing pane, in the
    slot the thread's Info inspector uses.
35. **A project switches between Threads and Tasks** with one control above its list.
    The queue settings sit in the project's Overview with the other defaults, labelled
    "Agents may edit" (`projects.html#queue`).
36. **The project's task key is editable, by the owner only.** It is chosen with the
    project's name and changed in the Boundary tab (`projects.html#task-key`), not with
    the queue settings. Existing tasks keep the id they have.
37. **The sidebar count on Tasks is Ready tasks, in grey.** It is never orange and never
    on the Dock, because work arrives only in the inbox. For the same reason a task
    never raises a notification; its thread does. The menu bar popover has New Task…
    and no auto-queue row.
38. **"Queue Work…" and "Queue for Later" are gone.** Deferred work is a task: `⇧⌘N` is
    New Task, and the New Thread sheet's second button is Save as Task. A thread can
    still end up `queued`, but no verb exists to queue one.

Creating and editing

39. **A task the owner creates lands in Backlog.** It lands in Ready only from an entry
    point that means "run this": the plus on the Ready column, Save as Task on the New
    Thread sheet, or `⌥↩` in the jump bar. design.md decides this only for agents.
40. **Add & Start** is the same act as moving the task to In progress. The expanded
    sheet keeps the description field and Add & Start.
41. **Blockers cannot form a cycle.** "Blocking" is the inverse of "Blocked by", shown
    and never edited. The Dependencies block gives each blocker's status; one that is
    Done or Cancelled reads "cleared" and stays listed until removed.
42. **A thread started by hand cannot be given a task afterwards.** Not drawn. "Add
    Follow-up…" on a task makes a new task with the source filled in.
43. **Threads on a task are numbered,** archived ones stay listed, and the one running
    now is marked "live".

The board and the list

44. **Order.** Ready is in queue order. Backlog is priority then age. In progress puts
    needs-you first, then failed, running, waiting, queued, offline. Done shows seven
    days. The list groups by status with In progress first.
45. **The all-projects board splits Ready by project,** because position only has
    meaning inside one project, and every card there names its project, in the chip
    row, where it wraps and is never cut short. A project on an isolated machine gets
    the isolated colour and the word.
46. **A drag in Ready reorders inside the card's priority only.** While dragging, Ready
    shows its priority bands and each card's place; the card's own band stays lit, the
    others recede, and a drop outside the band is refused with one line. Priority
    changes from the menu or the detail, never by a drag.
47. **Moves.** A task with a live thread moved anywhere else stops that thread after a
    confirmation: Done and Cancelled as design.md says, and Backlog and Ready the same.
    Review is never a manual target. Review to Done by hand accepts the work, as the
    thread's review action does. Review to In progress is not a target; Ask for Changes
    in the thread does it.
48. **"Live" means** `queued`, `running`, `waiting`, `exigent` or `offline`. A failed
    thread is not live and holds no slot. Retry ignores the limit and counts towards it.
49. **A blocked task can be started by hand.** Only the queue skips it. Start is never
    disabled; it first shows the Start Anyway warning, a popover naming each blocker
    and its status (`tasks.html#start-anyway`).
50. **Starting past the limit is not confirmed.** The strip then reads "5 of 4".
51. **Cancelled** has no column. A drop target appears while a card is dragged. Ticking
    Cancelled in the Status filter shows such tasks struck through with Restore, and
    the no-matches state offers Show Cancelled.
52. **Filters.** One text field for title or ID, then eight filters. Machine is one
    filter that matches "pinned to" or "running on". The Required tag menu says whether
    a tag is acquirable or fixed. Creator lists people, including someone the project is
    shared with, and threads. The counts in the menus are counted from the same table
    of tasks as the cards. Unticking a status hides its column. Filters are
    remembered per scope until cleared, which is not the "saved filters" design.md
    leaves out.
53. **Blocked gets its own colour** (yellow, the `--task-blocked` role) and a card edge.
    Skipped gets another (teal, `--task-skipped`).
    Priority is a glyph; only Critical is coloured. Labels are plain outlined pills and
    tags always carry the tag glyph, so the two never look alike.
54. **The corner of a card** holds the slot its thread holds on a project board ("slot
    1", "slot freed", "no slot"), the position while Ready is reordered, the hub mark,
    and the grip.
55. **Widths.** Below 700 pt there is no Board, only the List, which is what the iPhone
    has. From 700 to 999 pt, and beside the open task pane, the board shows three whole
    columns with a pager for the rest and never cuts one off; the filters fold into
    "Filters · n" with the applied ones still shown, and the strip shrinks to its count.
    The pager counts the columns that are off screen under the filters in force.

Auto-queue

56. **The strip** shows slots as dots: filled for running or waiting, grey for a slot
    held by a thread that is not moving, orange past the limit. It gives the one reason
    the next Ready task has not started, and says when threads are parked on the owner,
    which is the cost design.md names. It names a skipped task where that explains
    what the queue did. LuckyDo's limit is 4 on every screen and its agent-made tasks
    land in Backlog; the full-auto example is Home, at limit 1.
57. **Full auto is not confirmed.** Both switches are reversible writes inside the
    boundary, so the project shows a banner saying what the combination means and
    lists who changed it.
58. **Retry and Resume both exist** on a failed task thread: Resume continues that
    thread (as the review cap allows), Retry starts a new one with the summaries.

Agents, voice and the rest

59. **Task actions and their tier** (`library.html#tiers`). `loom.task.*` names are
    illustrative. Creating, editing, reordering and moving are reversible
    writes. An agent moving a task whose thread is live out of In progress needs
    confirmation, because it stops a thread. Changing the task key is the owner's.
60. **An untrusted preset cannot make tasks,** since it has no `loom` actions.
61. **Voice** changes to the queue are ordinary "Doing · reversible write" panels. Voice
    never starts past the limit unasked. It narrates an isolated project's tasks as it
    does that project's thread summaries; there is no new toggle, and the existing
    "Narrate isolated machines" setting covers both.
62. **Isolated machines now list six exposures.** The new one is that their projects'
    tasks sit in the hub, titles and descriptions included (`machines.html#add-progress`,
    `#isolated`, `projects.html#new-project`).
63. **Hub unreachable.** Tasks live in the hub, so every task screen is read-only:
    nothing can be added, moved, reordered or started, and no move is kept to send
    later, because the queue acts on Ready's order. The column pluses, the drag grips,
    the queue-settings gear and each card's buttons stay where they are, disabled. A
    card with a thread says "live · local" or "cached" in its corner; the mark is
    never a chip and no card is dimmed.
64. **Shortcuts.** `⌘5` Tasks, `⇧⌘N` New Task, `⌥⌘1` and `⌥⌘2` Board and List, `⌥⌘←`
    `⌥⌘→` move one status, `⌥⌘↑` `⌥⌘↓` reorder in Ready inside a priority. `J` `K`,
    `⌘K`, `⌘E` and `⌘Z` cover tasks as they cover threads.
65. **The grooming thread** replaces the old "Refill LuckyDo queue" example in the
    schedules, Active and concierge screens.

## Accuracy notes

Names and numbers are illustrative: machines (`forge`, `tower`, `quartz`, `basalt`),
the second person ("Morgan"), versions, model names, addresses, key fingerprints, the
connector `linear`, the code-mode limits, the task ids and project keys (`LD`, `LOOM`,
`TRIP`, `QTZ`), the revoked machine `studio`,
the `loom.task.*` action names, and the command `loom instance auth`, which does not
exist. `loom enrol`, `loom add`, the socket path, the relay port and the
state, checkout and move enums come from the repo.

## How this was checked

- Every page was rendered headlessly in Chrome at 1440 px in all six themes, one
  screenshot per screen, with an automated audit of each: horizontal and vertical
  clipping, content spilling out of its window or sheet, text contrast, missing icon
  glyphs, script errors and page-level horizontal scroll.
- Every link in `index.html` and between pages, and every `#hash`, was resolved
  against the files.
- The stylesheet, pages and script were scanned for colour literals outside the
  palette blocks, and the Catppuccin blocks were compared with the published palette.
- **The merged task screens.** All 13 pages were rendered in headless Chrome at 1440 px
  in all six themes and audited: text contrast against the composited background with
  a 4.5:1 floor, content spilling out of its window, sheet, menu or card, one-line
  controls cut off, a board column cut off, a lifted card clipped by its board or
  window, missing icon glyphs, script errors and page-level horizontal scroll. No
  findings. Exempt from the contrast floor, as before: disabled controls, the outline
  left where a dragged card was, the Review column while it refuses a drop, and
  skeletons. Two earlier misses are fixed: the count in a highlighted drop column
  (4.36:1 in Frappé) and the sidebar's hub-unreachable note (4.41:1 in Latte).
  Every link and `#hash` was resolved again, the pages, script and README were scanned
  for the words the vocabulary rules out, the stylesheet for colour literals outside
  the palette blocks, and both font files were checked to be real WOFF2 holding all
  109 glyphs the stylesheet names. No glyph was added, so the fonts were not re-cut.
- **Looked at, not only audited.** Every section of `tasks.html` in macOS Light. The
  board, task detail, moving and auto-queue sections in macOS Dark, Latte and Mocha
  (the first screen-height of the two long ones). In Light, each edited section of the
  other pages: the project page, Boundary and new project; the approval card, isolated
  machine; Queued and the row menu; the menu bar and keyboard table; the jump bar; the
  notification and voice settings; the tier table; and the grooming schedule. Not
  looked at: Frappé and Macchiato, `index.html`, the revoke alert, and the parts of
  long sections below the first screen in the non-Light themes. Drag states are drawn
  as stills, and no drag was exercised.
- **After the two task decisions.** All 13 pages were rendered again in headless Chrome
  at 1440 px in all six themes with the same audit and the same exemptions, to which
  the disabled column pluses and grips of the hub-unreachable board now belong. Links
  and `#hash`es, the vocabulary scan and the colour-literal scan were run again. A new
  check compares every count printed in a page (column and group headings, "n open",
  "n of m", the pager, the sidebar's "n ready", the filter menus, the slots in the
  strip) with what the table of tasks gives; the filter results named in `data-ids`
  were recomputed from the table for the filters that can be computed from it.
  Looked at, not only audited, in macOS Light: in `tasks.html` the two boards, card
  and row states, filters, moving, auto-queue, hub unreachable, narrow windows, shared
  with you and cannot-be-placed sections in full, and the changed parts of new task
  and empty; in the other pages the project page and full-auto card, the inbox, Active
  and Queued, the offline, waiting and queued thread headers, hands-free, the move
  sheet, the schedules list and the revoke alert. In macOS Dark: card states,
  cannot-be-placed and the strip states. In Mocha: card states, cannot-be-placed and
  shared with you. In Latte: cannot-be-placed and card states. Audited only: the other
  sections and themes, among them the one-word or one-line changes in task detail, the
  repos and new-project screens, the tier table, the grooming detail, the concierge
  transcript, the menu bar and the machine overview, and `index.html`.
- Not checked: Safari and Firefox; real window resizing (narrow-window screens are
  drawn at fixed sizes); accessibility of the mockup pages themselves, which are
  pictures of an app and use non-semantic markup; the macOS themes against real
  `NSColor` values.
