commit 6ba0e77731fea0f41ee52d285dc0847c85a2dcdb
parent 03bf25b5418b80204261c5f7690128afc35dbd2e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 01:50:06 -0400
plans: umtool redesign — P1, as shipped (commits, gates, the r28 exclusion list, what was left); CHANGELOG
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 53 insertions(+), 2 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,10 @@
# Changelog
## [Unreleased]
+- **umtool has a new look, in dark and light: the desk and the reader.** Tool chrome is a warm-ink desk (warm grey in light) and anything a source said — a quote, a post, a transcript window, the clip and claim benches' transcripts — sits on a pale green-grey reader surface, so a quote is never mistaken for a claim about it. Colours are roles: Signal (teal) only for focus, the lit line and the one primary action; Meter (violet) for counts and spend; the three verdicts always as glyph and word (✓ ? ✕), never on the reader. The faces are vendored (Archivo, IBM Plex Sans and Mono, Source Serif 4 for the reader) and load with no network.
+- **umtool: Auto / Light / Dark at the foot of the rail.** Auto follows the system; a choice is a cookie the server reads, so the page is served in it with no flash.
+- **umtool: every page has the rail.** The mark and the wordmark (home), the places (unchanged: home · browse · decisions · articles · mix · find · song ▸), + Create (a new article or a new project), Pinned, what umtool is running, and the theme. The page's name is its title under the breadcrumb. The clip, claim and takes benches drop the rail and take the full width.
+- **umtool: /browse/decisions is a lit list.** One line per decision, grouped by project; `j` / `k` (or the arrows) move the lit line from anywhere on the page, and focus goes with it. The head glides 120 ms, and jumps under reduced motion.
- **Articles, iterations, report-video projects and takes can be deleted, and every delete shows its plan first.** `archilyzer reports delete <id>` prints what would go — each path with its size, what is kept and why, and anything that stops it — and deletes nothing until `--apply`; `--iteration <n>` deletes one iteration. Deleting an article removes its directory (report, video, history, notes, iterations), each iteration's video project under `settings.generation.projectsRoot` and its staged exports. A published article is refused unless `--force`, which unpublishes it first; an article with a running iteration is always refused. An iteration is refused while it is the current article or video, the one the article's report came from, running, or the parent or original of another iteration, and its number is never given out again. The usage ledger, the shared prepared-media cache and the corpus's git history are kept. The same deletes run over HTTP as `pnpm ops delete-article {id, force?, dryRun?}` and `pnpm ops delete-iteration {id, n, dryRun?}`, which answer a refusal as a 409 with the plan.
- **umtool: Delete article, `Delete i<n>`, Delete project and `Delete take <id>`.** Each button reads the plan, shows it (what goes with sizes, what is kept, what refuses) and deletes only on **Confirm delete**; **Keep it** closes it. **Delete article** is on an article's page (one in the making too) and returns to `/articles`, which says what went; `Delete i<n>` is on each iteration of the Iterations tab. **Delete project** on a report-video project removes its directory, and its `out/` or deliverables on the media drive when they are its own copy; it is refused while a job works in the project, for an article's current video, and — unless you tick **delete anyway** — for a project whose manifest names an article with a video attached. `Delete take <id>` removes `takes/<id>/`; the take whose manifest is the project's own needs **delete anyway**, and its verdict and notes are kept.
- **Reports and their revisions can be generated by the editor: `pnpm ops report-draft`.** `{"task": "sweep", "article", "question", "channels"}` drafts a new report of an article as its next iteration; `{"task": "revise-report" | "revise-video", "article", "iteration", "feedback"}` revises one; `{"task": "narrate", "article", "iteration"}` drafts the narration of an iteration's video cut; `"copyOf": N` runs iteration N again on another `"model"`. Each is a **Report draft** job on /jobs, on the Claude API (`draft:api`) or the local model (`draft:local`) by the model, and `pnpm ops job cancel` stops one. Every quote a model writes must be the transcript's words within 90 seconds of its link, or the finding is dropped; links cite the archive, never the platform. The answer names the job and the iteration; the job's log ends with the outcome. Needs a restart of the editor.
diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md
@@ -345,7 +345,54 @@ P0 design ─► P1 foundation ─┬─► P3 inbox/work/tools/URLs ─┬─
| Phase | Branch | State |
|---|---|---|
-| P0 design | — (`~/reports/umtool-redesign/canvas.html`) | in progress |
+| P0 design | — (`~/reports/umtool-redesign/canvas.html`) | signed off 2026-10-14 (canvas v2) |
| P2a engine | `ux/p2a` | in progress |
-| P1, R1, P3 | — | wait for P0 sign-off |
+| P1 foundation | `ux/p1` | shipped on the branch, gates green; awaiting merge (below) |
+| R1, P3 | — | wait for P1 + P2a |
| P2b, P4a, P5, R3, P4b, P6 | — | wait for r28 on `main` |
+
+### P1, as shipped
+
+**What.** The foundation every later phase builds on, to the signed-off canvas (v2). Nothing moved URL.
+
+- **Tokens** (`umtool/app/globals.css`): the canvas's role tokens exactly — `--ground --panel --panel-2 --seam --seam-2 --text --text-2 --muted --muted-2`, the `--reader*` set, `--signal --signal-text --on-signal --mark --mark-dim --meter`, the verdicts and their `*-text` steps, `--m1..m5` and their inks, `--player-text`. Dark is the base; light under `prefers-color-scheme: light` unless `data-theme="dark"`, and again under `[data-theme="light"]`; `[data-theme="dark"]` states the scheme. `@theme inline` makes them Tailwind colours (`bg-panel`, `text-muted`, `border-seam-2` …). The old palette's names are aliases of the roles they meant (`dim`→muted, `line`→seam, `sel`→signal-text, `good/dirty/bad`→the verdicts' text steps, `ink`→ground; `fg`/`bg`, never defined, now resolve), so every page — r28's included — draws the new desk in both themes. The "colour means something" rule is restated for the roles.
+- **Faces** (`umtool/app/fonts.ts`, `next/font/local`, no network): Archivo, Plex Sans and Plex Mono Regular/Bold are REFERENCED from `report-to-video/fonts/` (one copy, the brand's vendored set; nothing added there, because its `fonts.conf` hands the whole directory to the renderer). Source Serif 4 4.005 (variable, wght+opsz, roman and italic; adobe-fonts/source-serif) and Plex Mono Medium 2.005 (IBM/plex `@ibm/plex-mono@2.5.0`) are new under `umtool/fonts/`, each with its OFL.txt. TTF, unconverted (Plex's Reserved Font Name; transfer size is moot on a local tool).
+- **Theme**: system by default; Auto / Light / Dark at the rail's foot writes the `umtool-theme` cookie (`lib/theme.ts`), the root layout reads it and stamps `data-theme` on `<html>` server-side — no inline script, no flash. Reading the cookie makes every route dynamic; every page already read the disk per request.
+- **Primitives** (`components/ui/`): `button` and `badge` restyled with their exports kept (button gains `go`, the one filled Signal action, and `quiet`; `primary` is a Signal outline, `ghost` an alias of quiet; badge `md` is the canvas filter chip, `sm` a status tag); `Panel`, `Card`, `Tabs` (links, `aria-current`), `Table`/`TH`/`TD`, `Field`/`Input`/`Select`/`Textarea`, `Dialog` (native `<dialog>`), `Stepper`, `Kbd`/`KeyHint`, `EmptyState`, `Toolbar`/`ToolbarGroup`, `Verdict`; the signature **`LitList`** (client: roving tabindex, `j`/`k`/arrows/Home/End, one lit line with the Signal edge and play-head notch, 120 ms glide and 0 ms under reduced motion, nested groups via `LitGroup`, every button in it disabled until hydration by one `<fieldset disabled>`, a `lit` DOM event) with its server half `LitLine`/`LitActions`/`LitOnly`/`LitGroup`; **`ReaderPane`** and **`CiteThread`** (desk and reader forms); `use-palette.ts` (the roles as hex for canvases, repainting on a theme switch); `use-hydrated.ts`.
+- **Shell** (`components/shell/`): `AppRail` (server: the mark and the one-word wordmark, today's places unchanged — home · browse · decisions · articles · mix · find · song ▸ — + Create, the inert ⌘K hint, Pinned (empty), Running (umtool's own in-process job), the theme control), `AppHeader` (one Breadcrumb nav whose last crumb is the `<h1>` in Archivo 125%; the note stays the header's last `.micro`; a compact bench variant), `AppShell`. The rail is `position: fixed` and the body pads for it (`body:has(.app-rail)`), so `BrowseHeader` became a 3-line wrapper with the SAME props and its 22 users changed nothing. `/`, `/mix` and the song deck moved their hand-rolled headers onto it (the deck renders `AppHeader`; its server page renders `AppRail`); the compare page's per-side `<header>` became a panel. The clip, claim and takes benches render the shell with the rail collapsed. Below 760 px the rail is a top strip.
+- **URLs**: `lib/hrefs.ts`, one builder per page address (project ids encoded per segment, `?note=` always last), with `lib/hrefs.test.mjs`; `e2e/urls.ts` re-exports it; `umtool/redirects.mjs` — an empty, documented table (Next's row shape plus `phase`) answered by `next.config.ts`'s `redirects()`.
+- **Restyle pass** (excluding the r28 list below): `/browse/decisions` is the first real lit list (grouped by project, `j`/`k` from anywhere, severity said as glyph + word); `/browse` and `/sites` filters on the Toolbar with an `Input` and outline buttons; the article views are `Tabs`; the dashboard's panels are `Panel`; the clip bench's transcript pane, the claim bench's context and as-recorded quote, and the evidence panel's quote, post and cue list are on the reader; links that wore Signal are ink (`.ink-link`, now in 34 files); hand-rolled controls get the seam-2 edge from one utilities-layer rule; the waveform, mix lanes and pitch rail paint the roles; the face deck's overlays use the dark roles over the photo; the dev indicator moved bottom-right (it covered the theme control; the live umtool runs `next dev`).
+
+**Commits** (`ux/p1`, from `ux/integration` `604d43c1`):
+
+| sha | what |
+|---|---|
+| `c412d77c` | role tokens in light and dark, the vendored faces, the theme cookie |
+| `49361eeb` | `lib/hrefs.ts` + tests, `e2e/urls.ts`, empty `redirects.mjs` in `next.config.ts` |
+| `e9f657ff` | the primitives, LitList, ReaderPane, CiteThread; button/badge restyled |
+| `fb06131e` | AppShell and the rail; BrowseHeader wraps it; `/`, `/mix`, the deck on it |
+| `36f8daea` | decisions as a lit list; benches collapse the rail; bench transcripts on the reader; canvases paint the roles |
+| `dafd0928` | article views as Tabs, evidence on the reader, links in ink; `e2e/shell.spec.ts` |
+| `aa4db9d8` | `/browse` and `/sites` filters on the Toolbar; controls drawn with a visible edge |
+| `46f710bf` | the compare page on AppShell |
+| `ada5fe42` | the lit line's own focus mark |
+| `30dd0ebd` | a menu at the column's left edge stays clickable over the rail (the first run's one red) |
+
+**Gates.**
+- `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit`: clean; `pnpm --filter umtool typecheck`: clean.
+- Unit, `node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`: 718 tests, 716 pass, 2 skipped, 0 fail (hrefs: 6 new). `pnpm run test:scripts` (reads the fresh build's traces): 866, 864 pass, 2 skipped, 0 fail.
+- Capped build with the primary's corpus linked (`systemd-run … MemoryMax=5G`): compiled in 12.4 s, 37.5 s wall, 1.27 GB max RSS; link removed.
+- Full umtool e2e, run 1 (`ada5fe42`): 323 tests — 316 passed, 1 failed (`timeline-edit.spec.ts:70`, the rail over a leftward row menu — fixed in `30dd0ebd`, the spec then 17/17 with `shell.spec` on the fixture dev server), 6 skipped (the five `faces.spec` and one `find.spec` song-data capability skips), 6.4 min. Run 2 (`30dd0ebd`): 323 tests — 316 passed, 1 failed, 6 skipped (the same six), 5.9 min (28 with the heavy-slot wait). The red is `browse.spec.ts:342` ("a new song gets the shape but NO cut files": `/browse/gamma` 404s right after `POST /api/projects/new`), a known intermittent — browse.spec has the same one red in the shared timings on `r24/integration` ×2, `r25/integration`, `r27/integration`, `HEAD` ×2 and `ux/p2a` ×2 — which passed in run 1 and passes alone (23/23) on a fresh fixture; nothing in this phase touches project creation or the index. `timeline-edit.spec` is 5/5 in run 2.
+- `e2e/shell.spec.ts`: 12 tests — the rail on `/`, `/browse`, `/browse/decisions`, `/articles`, `/sites`, `/mix`, `/browse/find` with the right place lit and one `<h1>` in the breadcrumb; the song group on `/sort`; a bench without the rail; the theme cookie both ways (served stamped after a reload, dark pinned over a light system, Auto clears it); `j`/`k` with focus and the head following; the glide's 0.12 s and 0 s under reduced motion.
+- The FOUC/de-flake theme specs are the export's and the homepage's (`data-theme-ready`); this phase changes no file in either. umtool's theme is server-stamped, so it has no flash to guard; `shell.spec` checks the served HTML.
+- Screenshots at 1366×768 and 1440×900, both themes, of `/`, `/browse`, a project, `/articles`, the clip bench, `/mix` and `/browse/decisions` on the e2e fixture (28, job scratch `p1-shots/final/`), and a keyboard-only pass: every rail stop and page control shows the 2 px Signal ring; the lit line is its own focus mark (edge, notch, raised ground, a dashed outline); the head glides 0.12 s, 0 s under reduced motion.
+
+**The r28 exclusion list** (computed: the union of `git diff --name-only main...r28/<b>` over the eight `r28/*` branches, plus the named nine). Not edited; they inherit the tokens through `globals.css` and read in both themes: `app/articles/page.tsx`, `components/articles/{ChainPanel,IterationsTab,NewArticleForm,ResearchSlot}.tsx`, `components/projects/{NarrationPage,NarrationReview,OnscreenSection,ProjectView,ReportProject,StructureEditors}.tsx` (r28-new and absent here: `app/bench/page.tsx`, `components/articles/ExtractorSelect.tsx`, `components/bench/BarForm.tsx`, `components/projects/{DraftPanel,DraftsReview,drafts,ReviewPage,YoutubeSection}.tsx`); r28's specs and fixtures and the `lib/`, `report-to-video/` and `bin/` files on the list were not touched either. Hard-coded colour left in them: `OnscreenSection.tsx:282` `bg-[#0d0f14]` (the neutral video frame) and `:1731` `#000` (a preview's default background) — both frame stand-ins, legible in either theme; and `text-[var(--color-sel)]` as a link and state colour (ReportProject 14, OnscreenSection 6, others 1–3), now Signal's text step, so Signal shows more often on a project page than the canvas allows — for P4a.
+
+**Found and left.**
+- The rail keeps today's places, lowercase (specs name them); no counts beside them. Running is umtool's own job only, no spend (P2b). Pinned has no store (P4a). ⌘K is an inert hint (P3). `c` for Create is not bound — it would collide with the benches' keys; + Create opens two links (a new article, a new project) until `/create` (P5).
+- Header padding is 16 px, not the canvas's 28 px, to line up with every page's existing `p-4` column; existing pages keep their 11–12 px densities outside the restyled surfaces.
+- Article bodies stay on the desk: they carry claim verdicts and note marks, which the reader must never carry. Quotes, posts, cue windows and the benches' transcripts are on the reader. The clip bench's and claim context's reader text is 15 px serif, not 16, for the panes' density.
+- Tab order is the rail (12 stops with the theme control) before the page; no skip link yet.
+- 40-odd project chips on `/browse/decisions` are still a wall; the Inbox (P3) replaces the page.
+