commit ca6abc9971ce682f9c0ffcf0c2b28eee42bba5ec
parent 4b03991fd2d15d9f22d51e87c85d0d62a4c1e064
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 03:59:27 -0400
plans: umtool redesign — P3, as shipped (commits, gates, the numbers, r28 files touched, what was left)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 147 insertions(+), 1 deletion(-)
diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md
@@ -349,7 +349,7 @@ P0 design ─► P1 foundation ─┬─► P3 inbox/work/tools/URLs ─┬─
| P2a engine | `ux/p2a` → `main` `fe1cb2d3` | LIVE 2026-10-14 (umtool BUILD_ID 4aRwqu6sh…) |
| P1 foundation | `ux/p1` → `main` `37354f70` | LIVE 2026-10-14 (umtool BUILD_ID LQxTh16Pe…) |
| R1 research | `ux/r1` | in progress |
-| P3 inbox/work/tools/URLs | `ux/p3` | in progress |
+| P3 inbox/work/tools/URLs | `ux/p3` (release 28 merged in) | gates green; awaiting merge |
| P2b, P4a, P5, R3, P4b, P6 | — | wait for r28 on `main` |
### P2a, as shipped
@@ -544,3 +544,149 @@ capped) and restarted (`~/reports/umtool-redesign/scripts/p1-umtool.sh`). Live s
`/browse/decisions`, `/articles`, `/sites`, `/mix` 200; no cookie leaves `<html>` unstamped, `umtool-theme=light`
serves `data-theme="light"`; the rail renders; the decisions API unchanged (825 rows). Ruling on the lane's question:
the Signal-as-link uses in r28's files are swept in P4a, after r28 lands, not now.
+
+### P3, as shipped
+
+**What.** The Inbox at `/`, Work, Tools and Settings · system, every page at its new address with the old ones
+redirected, the five-place rail and the ⌘K palette. Built on P2a's engine; no lib behaviour of P2a's changed.
+
+- **Inbox** (`app/page.tsx`, `components/dashboard/InboxList.tsx`): one big count — the cards in Your call, Review,
+ Blocking, Notes and Open on active pieces, plus the machine's own calls — and the line under it (rows, pieces ready
+ to finish, quiet, hidden; `lib/inbox/headline.mjs`, unit-tested). Then `readInbox().groups` as ONE lit list: a
+ card is piece · what, its `why`, the count in Meter, ONE action (outline at rest, filled Signal on the lit line
+ only, `.lit-go`), Park and Mute. Quiet is one folded line. **Park** and **Mark done** POST `/api/pieces/lifecycle`
+ with an **Undo** bar (`components/dashboard/Lifecycle.tsx`); **Show hidden** (`/?hidden=1`) lists the calls on
+ parked and done pieces as a Hidden group, each with **Reactivate**. **Mute** is this browser's
+ (`umtool:inbox-muted`, piece and kind; **Muted N** shows them) — a way to stop looking, not a ruling; nothing in the
+ API or the counts changes. The machine's calls (`lib/machine.ts`): a required tool absent at the last doctor check,
+ or under 5 GB free under REPORTS_ROOT, are Blocking cards that link `/settings/system`. `/?from=<slug>/<id>`
+ keeps the dashboard's behaviour: the new-project form, prefilled, at the top of the Inbox (P5's `has` redirect moves
+ it to `/create`).
+- **Settings · system** (`/settings/system`): the dashboard's panels — tools and disk (with the index), recent jobs,
+ project states, sources, deliverables — and a link to the generation policy's current home (`/articles/new`).
+ `/settings` lists the two. `DecisionsPanel` is deleted (the Inbox replaced it).
+- **Work** (`/work`, `lib/work.ts`, `lib/work/facets.mjs` unit-tested): every piece as a lit line — title and id,
+ the stage on a four-step bar (an article's research → article → video → deliver; a project's own state word, on
+ video, or deliver when it looks done), kind (`article + report video` …), lifecycle (`· looks done` when it does),
+ open calls in Meter — with Park / Mark done / Reactivate on the lit line. Facets as links (stage, kind, lifecycle
+ default active, site, By site, By name) with counts of what each would show; a GET search (`/` focuses it). It reads
+ the old lists' keys: `/browse`'s `kind` (a project kind finds the article whose video it is), `template`, `state`,
+ `open`, `sort`, `deleted`; `/articles`' `status`, `notes`, `audience`, `deleted`, `freed`; `/sites`' `site`. A key
+ with no chip group shows as an **Also** chip that takes itself off. A site facet links `/sites/<site>` (not the
+ store's, which has no page).
+- **Tools**: `/tools` and `/tools/song` index pages (ToolList, a lit list); `/tools/find`, `/tools/mix`,
+ `/tools/song/<mode>`, `/tools/faces`, `/tools/trim/<set>`, `/tools/sources`, and **`/tools/bench`** — release 28's
+ verdict bench, moved (self-contained; three edits: its own two hrefs, `active`, its crumb). `app/[mode]` is gone.
+- **Projects**: `app/browse/[...path]` and `at` moved to `app/projects/`; the old `/browse` page is the `/projects`
+ index (the folder grid with its filters and **+ new project**, `?new=1` opens the form). `/browse/at` stays as
+ `/projects/at`: a name `isSegment()` refuses (a space) still has no URL of its own, and that page is its only
+ address. `RESERVED_BROWSE` is `["at"]` — `find`, `faces`, `sources`, `trim` and `decisions` are ordinary project
+ names again (the fixture's `find` is no longer shadowed; no `shadowed-name` row exists).
+- **Redirects** (`umtool/redirects.mjs`, 13 rows, all 307): `/browse` → `/work`; `/browse/decisions` → `/`;
+ `/browse/{find,faces,sources}` and `/browse/trim/:set` → `/tools/…`; `/browse/at` → `/projects/at`;
+ `/browse/:path*` → `/projects/:path*` (after the reserved rows); `/articles` → `/work?kind=article`; `/sites` →
+ `/work?by=site`; `/mix` → `/tools/mix`; `/:mode(sort|salvage|verify|keeps)` → `/tools/song/:mode`; `/bench` →
+ `/tools/bench`. Next puts the request's query FIRST, then the destination's (`/articles?status=draft` →
+ `/work?status=draft&kind=article`). Every `lib/hrefs.ts` builder emits the new address (new: `workHref`,
+ `projectsHref`, `toolsHref`, `songToolsHref`, `benchHref`, `systemHref`, `researchHref`, `generationPolicyHref`);
+ `decisionsHref` is `/`, `browseHref` is Work. Hrefs written as data (decision rows, activity, pieces, scaffold,
+ spec operations, mix-preset) and the non-r28 pages' literals now say `/projects` and `/tools`.
+- **Rail** (`components/AppNav.tsx`, `components/shell/`): Inbox (count) · Research · Work (count) · Tools ·
+ Settings, + Create (a new article; a new project → `/projects?new=1`), Jump to… ⌘K. `aria-current="page"` on a
+ place's own page, `"true"` under it; old `active` keys map to the new places, so r28's pages light Work. Tools opens
+ into its tools (find · mix · `song ▸` — the `[data-nav-group=song]` group — · faces · sources · bench) while you are
+ in one. The counts come from `GET /api/rail` after load (memoised 10 s on globalThis, cleared by a lifecycle POST),
+ so no page waits on the inbox. Research links `/research` (R1's).
+- **⌘K** (`components/shell/JumpPalette.tsx`, mounted once in the root layout, so a bench has it too): ⌘K / Ctrl+K
+ from anywhere, or the rail's Jump; places, tools and create actions are fixed, every piece comes from
+ `GET /api/jump` the first time it opens. Type to narrow (every word must match; a label that starts with the first
+ word ranks first), ↑/↓ or Ctrl+N/P, Enter, Escape. A native `<dialog>` at 12vh, its list scrolling inside 70vh.
+- **ResumeChip** offers `res.url`, the address after the redirect; `DEFAULT_PAGE` is `/work`.
+- **Fixes found on the way.** (1) The links cache (`links.mjs`) and the pieces memo were module-level, one copy per
+ Next bundle, so a delete cleared them in its route only and Work listed the deleted piece for 15 s — both live on
+ globalThis now (P2a's project-cache lesson). (2) Every page is dynamic, so a `<Link>` prefetch is a full render:
+ the rail set off five per page view (the Inbox's inbox read among them), Work dozens; the server stayed busy long
+ enough that `timeline-edit.spec`'s `networkidle` timed out (5 reds in run 1). The rail's, the Inbox's, Work's and
+ the tool list's links no longer prefetch. (3) The global focus ring is unlayered, so it beat the lit line's dashed
+ outline (R1's catch): it now skips `.lit-line`, stays unlayered (two dozen inputs carry `outline-none` and keep
+ the ring that way), and the reader's ring colour is a variable `.reader` sets.
+
+**Commits** (`ux/p3`, from `7291a325`; `ux/integration` `b464f0d4` — release 28 — merged at `a7915af4`):
+
+| sha | what |
+|---|---|
+| `9488cb2e` | the moves (`app/browse` → `app/projects` + `app/tools`, `app/[mode]` → `/tools/song/[mode]`, `/mix` → `/tools/mix`), the redirect table, the builders, `RESERVED_BROWSE`, the Inbox, the rail's places and counts, ⌘K |
+| `a7915af4` | merge `ux/integration` (release 28) |
+| `cc3c140f` | `/bench` → `/tools/bench`; two r28 specs' URL regexes |
+| `f7f69626` | Work, the Tools indexes, Settings · system, Park / Mark done / Reactivate with Undo |
+| `440a959f` | deletes land on Work; the links cache and the pieces memo on globalThis |
+| `5a29fa1f` `5940cb90` `72251e51` `2512b89b` | the specs that read `/browse`, `/articles`, `/sites` and the decision list, on Work, `/projects`, the Inbox and `/tools` |
+| `1117f094` | `inbox.spec` (from `dashboard.spec`) and `redirects.spec` |
+| `05ba6559` | `work.spec`; `shell.spec` for the new rail and ⌘K; `last-page.spec` follows the redirects |
+| `4c32b4a4` | the palette's `data-ready`; the lit fill polled |
+| `fbdf31f7` | `hrefs.test.mjs` for the new addresses; `test:scripts` runs `lib/work` |
+| `6b86e2b8` | `[Unreleased]` bullets |
+| `98a6fa90` | no prefetch on the rail and the lists; the focus ring skips a lit line; two r28 specs, three assertions |
+
+**Gates.**
+
+- Repo-wide `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit`: clean at every commit and at the tip;
+ `pnpm --filter umtool typecheck` clean.
+- Unit, `node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`: 781 tests,
+ 779 pass, 2 skipped, 0 fail (new: headline 3, work facets 6; hrefs 6 → 8).
+- `pnpm run test:scripts` (reads the tip's capped build): 932 tests, 930 pass, 2 skipped, 0 fail.
+- Capped build with the primary's corpus linked (`systemd-run … MemoryMax=5G`): exit 0, compiled 9.7 s, 32 s wall,
+ 1.40 GB max RSS (first build 20 s / 57 s / 1.32 GB); link removed.
+- Full umtool e2e (`pnpm --filter umtool run e2e`, queued behind R1):
+ - run 1 (`6b86e2b8`): 375 tests — 358 passed, 11 failed, 6 skipped, 13.0 min. The reds: `timeline-edit` ×5
+ (`networkidle` never came: the prefetch storm, fixed in `98a6fa90`), three assertions still naming `/browse`
+ (`clip-bench:1262`, `deliver:76`, `article-iterations:33`), `hrefs.test.mjs` carrying a kind id
+ (`projects.spec:225`), and two r28 specs that opened `/articles` (`verdict-bench`, `article-new`).
+ - the eight specs again (`98a6fa90`): 113 passed, 0 failed, 3.9 min.
+ - run 2 (`98a6fa90`): 375 tests — **369 passed, 0 failed, 6 skipped** (the five `faces.spec` and one `find.spec`
+ song-data capability skips), 8.1 min (16 with the queue wait).
+- New specs: `inbox.spec` (12: 6 on the Inbox, the 6 dashboard tests on `/settings/system`), `work.spec` (4),
+ `redirects.spec` (20: the order, one per row with and without a query, release 28's hand-written links, pages that
+ did not move), `shell.spec` (18: nine pages and the place each lights, the rail's order, the song group, ⌘K on a
+ bench, a piece, a create action, 1366×768, the lit line's dashed outline vs the 2 px ring).
+- Screenshots (job scratch `p3-shots/final/`, 24): `/`, `/work`, `/tools`, `/settings/system`, the ⌘K palette and
+ `/projects/reports/report-fixture`, at 1366×768 and 1440×900, dark and light, on the e2e fixture. Against the
+ canvas: the Inbox's big count, group heads with Meter counts and notes, lit card with the filled action and
+ Park / Mute, Quiet folded; Work's facet bar, column heads, stage bars and Meter counts. Differences: the header's
+ "updated" stamp and "Muted N" (above the list here), Work's header has + New article / + New project instead of
+ one + Create.
+- Keyboard-only pass (production build): the rail's 11 stops then the page's; every control shows the 2 px Signal
+ ring, a focused lit line its 1 px dashed outline; ⌘K focuses its input, ↑/↓ and Enter work, Escape closes; the head
+ glides 0.12 s and 0 s under reduced motion.
+- **The real REPORTS_ROOT** (offline tsx over the primary's corpus, a scratch copy of the umtool cache; no
+ `lifecycle.json` exists or was written): 826 rows (518 blocking, 181 open, 127 info). **The Inbox's big count is
+ 51 calls** (Review 1, Blocking 33, Notes 1, Open 16; no machine call) — against today's 518 "blocking" — with
+ 673 rows behind them, 26 pieces ready to finish and 127 quiet. The Blocking cards: 483 `claim-unadjudicated` on
+ `p:quartering-diet` as ONE card, 28 single `manifest-invalid` cards on the published polemics and `qwen-bakeoff`,
+ 4 `spec-problem` songs, `destinys-child`'s 4 unfetchable clips. Marking `quartering-diet` and the 26 looks-done
+ pieces done would leave the counts P2a simulated (Blocking 11 / 8 cards). Work: 58 pieces, all active — by stage
+ video 28, deliver 25, article 4, research 1. `readInbox` 8.5 s cold, 1.9 s warm under the gate's memory pressure
+ (P2a measured 138–578 ms warm on a quiet machine).
+
+**Release 28's files touched** (minimal, each because of the move): `app/bench/page.tsx` → `app/tools/bench/page.tsx`
+(its two `/bench?` hrefs, `active`, its crumb); `e2e/draft-review.spec.ts:69` and `e2e/narration-review.spec.ts:40`
+(the URL a `/browse/…` link lands on is `/projects/…`); `e2e/verdict-bench.spec.ts:36` (opens the bench from `/tools`:
+`/articles` is Work, which has no bench link); `e2e/article-new.spec.ts:113-114` (the new article's row is a Work
+line, `data-status="in the making"`; the iteration's `done` is asserted above it on the article page). Not touched
+and riding the redirects: `ReportProject`, `NarrationPage`, `DraftPanel`, `DraftsReview`, `ReviewPage` hrefs
+(`/browse/${id}/review` and the rest — `redirects.spec` requests them), `app/articles/page.tsx` (unreachable behind
+`/articles` → Work), `bin/umtool.mjs`'s "see /browse/decisions", the docs.
+
+**Found and left.**
+- `/articles` → `/work?kind=article` (the canvas row) lists every site's articles, not only the store's; the store is
+ `site=articles`. The store list's per-row detail (audience chip, linked-project links, workspace source, newest
+ iteration) and `/sites`' posters are not on Work rows; `/sites/<site>` and the article pages keep theirs.
+- Work's stage for a project is a bucket (video, or deliver when it looks done); the song stepper (Spec → Cuts →
+ Done) is the piece page's (P4a).
+- Mute lives in the browser only; the canvas's header "Muted N" sits above the list, and the "updated 14:02" stamp
+ is not built.
+- The global `j`/`k` list on `/projects` is still P1's grid; Work is the list.
+- In a lit list every line's buttons stay in the Tab order (P1's LitList); roving covers the lines only.
+- P1's `[Unreleased]` bullet still names the old places; the P3 bullets supersede it.
+- Machine under load during the gates (swap 16 GB used, an ollama server holding ~4 GB): some single-spec runs on
+ the dev server crashed Chrome; the harness runs below are the record.