# umtool redesign — research, decisions, pieces (epic, phase by phase) ## Context umtool grew one feature at a time: the song deck, then report videos, benches, articles and sites, then in-app generation (r27/r28). Surveyed 2026-10-13 against the live :3050 and the code: - **Too many places, no single model.** - Nav: home · browse · decisions · articles · mix · find · song▸. - Articles live in two lists (`/articles`, `/sites`). Projects live in `/browse`, and an article's video is a separate project page. - Two creation entries share nothing: `NewProjectMenu` and `/articles/new`. - Song-only tools (mix, find) are top-level. Faces and trims are reachable only through deep links. `/drafts` is dead. - There are five header implementations. - **The decision list is noise and misses the decisions that matter.** Live: 797 decisions, 518 "blocking", and **483 of them are `claim-unadjudicated` in `quartering-diet`, a finished video.** The generation-era decisions sit outside `openDecisions()`: - research proposals; - a finished iteration that has not been made current; - failed iterations; - r28's drafted fields. - **Running work is half-visible.** Editor-side generation jobs never reach the front door. - **Research has no home.** The interactive loop (`/ask`, `/sweep`) runs only inside Claude Code. Agent sweeps run unattended: - their `turns.jsonl` trace is written, but nothing shows it; - coverage (matched / read / partial) exists only as prose; - collected quotes exist only for songs (`lib/shortlist.ts`). - **The design system is thin.** - The palette is GitHub-dark (`#0b0e12`, `#58a6ff`, `#3fb950`) and disconnected from the Archilyzer brand (warm ink `#0c0a08`, the Found-line mark, Signal teal, Plex/Archivo). - There are two primitives; 49 files hand-roll controls. **Goal:** a simpler UI where any function is two clicks away, the decisions the operator has to make come first, and **research is first-class**: transparent, operator-driven, useful with or without media generation. **Rulings (operator, 2026-10-13):** - **The unit is the *piece*.** An article plus the video project(s) made from it is one item with one page; standalone projects are pieces too. - **Interleave with release 28.** Phases off r28's surfaces go now; the piece page and Create/Settings wait for r28 on `main`. - **Song tooling moves into Tools.** - **Full visual refresh**, designed with the frontend-design skill and signed off on a canvas before code. - **Research tools are first-class**, beside media generation. ## Design direction (frontend-design brief; the P0 canvas tests and may revise it) **Subject.** umtool is the Archilyzer operator's studio: research a transcript archive of streamers, rule on evidence, turn findings into articles and videos. One user, keyboard-first, long sittings. **The app's single job:** put the next call in front of the operator with its evidence within reach. **Concept: the desk and the reader.** The tool chrome is a warm-ink desk. Anything a *source* said (transcripts, quotes, posts, article bodies under review) is shown on a **reader surface**: a pale, slightly green-grey screen, like an archive's microfilm reader rather than cream paper. - **Encoded truth:** paper is the record, ink is our work. A quote can never be mistaken for our claim about it. - **This is the one aesthetic risk.** It is justified by long reading sessions, and it is the clearest line between evidence and editorialising. **Palette.** Named roles; the hexes are starting points, to be checked with the dataviz skill's validator for contrast and colour-blindness on both surfaces: | Role | Start | Rule | |---|---|---| | Ink | `#0c0a08` | Desk background (the brand's dark base) | | Desk | `#17140f` | Rail, panels | | Seam | `#2b251d` | Hairlines | | Bone | `#ece4d6` | Text on ink | | Reader | `#dfe5e1` | Source surface (text `#141210`) | | Signal | `#3fc1b0` | The ONE interaction colour (brand teal): focus, the lit line, primary action | | Meter | `#a59bd8` | Measurement only (counts, coverage, loudness) | | Verdicts | moss / ochre / brick | Judgements only. Keep the `globals.css` "colour means something" rule | **Type.** Fonts are vendored OFL with `next/font/local` (no network; the brand slice hit `fonts.gstatic` failures). | Role | Face | Where | |---|---|---| | Display | **Archivo**, expanded width (the brand wordmark face) | Place and piece titles and the Inbox's one big count only | | UI | **IBM Plex Sans** | 13–14px, dense | | Reader | **Source Serif 4** (opsz) vs **IBM Plex Serif** | Transcripts, quotes, article bodies; the canvas decides | | Data | **IBM Plex Mono**, tabular | Timecodes, ids, counts | **Layout.** A left rail holds the places, pinned pieces, and a **Running** list at its foot with live spend. The centre is the work column. On the right, a **reader pane** opens wherever anything cited is focused: the same component in Inbox, Research, an article, or the claim bench. Benches go full-screen and collapse the rail. ``` ┌rail──────┬ centre ─────────────────────────┬ reader (pale) ──────────┐ │ Inbox 7 │ RESEARCH "ferret sanctuary" │ Ferret Rescue · 2025-03 │ │ Research │ 412 matches · 97 recordings │ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ │ Work │ read 37 of 97 · full coverage │ …the county said no to │ │ Tools ▸ │ ▌▸ 1:02:14 the county wants… │ ▌▸ the permit until the │ │ Settings │ 1:07:40 we're five months… │ groundbreaking which… │ │──────────│ 0:12:03 sanctuary fund is… │ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ │ RUNNING │ │ [pin to board] [copy ⧉] │ │ sweep i2 │ │ ░░░░░░▮░░░░ 1:02:14/4:10│ │ $0.41 ▪▪ │ │ │ └──────────┴──────────────────────────────────┴─────────────────────────┘ ``` **Signature: the lit line.** The brand's Found-line mark becomes the interaction model. - Every list is a stack of lines: inbox cards, research hits, transcript cues, clips. - The focused line is *lit*: a Signal edge, Bone text, and the play-head notch. The others sit dim. - `j`/`k` glide the head (about 120 ms). This is the app's only motion; with reduced motion it is instant. - In a transcript, the cited cue is literally the lit line among dim ones: the logo, enacted by the data. **Quiet supporting device: the cite thread.** A hairline bar showing where a cited second sits in its source (a quote at 1:02:14 of a 4-hour VOD). It is information, not decoration. **Copy.** Sentence case, literal, active. Buttons name the result ("Approve draft", "Mark done", "Pin to board"). No lead paragraphs. Errors say what to fix. ## Target information architecture **Rail, every page (one `AppShell`):** Inbox · **Research** · Work · Tools · Settings · **[+ Create]**, plus the **⌘K jump** to any piece, case, place or create action. | Place | URL | What it is | |---|---|---| | **Inbox** | `/` | The decisions, grouped and ranked: **Your call** (research proposals and failed runs → review gates: drafts, iteration ready → blocking on active pieces → notes) → **Ready to finish** → quiet info, collapsed. Each card: piece · what · count · ONE primary action · park/mute. Running jobs live in the rail. `/?from=` → `/create?from=` (a redirect `has` rule). | | **Research** | `/research`, `/research/`, `/research/archive`, `/research/runs/
/` | See below. | | **Work** | `/work` | Every piece in one list. Facets: stage, kind, site, lifecycle, search. Accepts the old `/browse`, `/articles` and `/sites` query keys. | | **Site** | `/sites/` | Kept as a page: its workspace files (`?ws=&rel=`), report-video grid, takes. Linked from Work's site facet. | | **Piece** | `/articles/`, `/sites//` (article-rooted; the MCP/notes addresses); `/projects/` (project-rooted) | Header: title · site · **stage stepper** (Research → Article → Video → Deliver; song: Spec → Cuts → Done) · lifecycle · ⋯. A **Next** card. Tabs: Overview · Article · Iterations · Cut · Media · Build · Deliver · Sources · History (song: Overview · Cuts · Spec · Cover · Notes). | | **Benches** | `/projects//{clip,claim}/`, `…/narration`, `…/takes`, `…/review` | One bench shell: ← piece · N of M · prev/next · key legend · verdict bar · reader pane. Fits 1366×768. | | **Create** | `/create` | "What are you making?": research a question (opens a case) · an article from a question or a board · a video from an article, board, recording or sweep report · a song. Policy shown as a chip. | | **Tools** | `/tools`, `/tools/{find,mix,song/,faces,trim/,sources,bench}` | Song piles, find, mix, faces, trims, sources, r28's verdict bench. | | **Settings** | `/settings/generation`, `/settings/system` | Generation policy, routes, models, caps and key. System: doctor, index rebuild/prune, storage move-out/tiers (CLI-only today). | ### Research, first-class 1. **Ask bar + scope.** - A query with phrase/regex/near hints. Scope chips: channels/groups, dates, state, media type, posts. - Source: the local corpus, a published site, or the hub. - **Before running**, show what the scope holds: "3 channels · 2,140 videos · 2019–2026 · transcripts 81% · captions 19%". 2. **Results as lit lines.** - Grouped by recording, with a timecode and cite thread per hit. - Facets: channel, year histogram, track (transcript vs captions), state. - An honest header: "412 matches · 97 recordings · full coverage". When a cap is hit: "Partial — not reached: X, Y". 3. **Reader pane.** - The transcript window with the hit lit, ±expand. - Play local media, or fetch the clip through the editor (`fetch_clip`'s route). - Copy citation in the house format; date, state and track shown. 4. **Reading log.** Each hit is read, skipped or unread; the header reads "read 37 of 97". This is the sweep discipline's coverage rule, made visible for the human too. 5. **Board (a case).** - Pin a hit as a **snapshot quote**: verbatim text, cite, note, claim line (the shape of `lib/shortlist.ts` `Pick`). Sections and order. - Export as cited markdown in the house format. - Hand off: **Draft an article from this board**, **Start a video from this board**. - Stored umtool-side under `REPORTS_ROOT/.umtool/research//`, never in the corpus. A case becomes the Research stage of a piece. 6. **Archive inventory** (`/research/archive`): what the archive can and can't answer. A channels × years heatmap with gaps (`channel_coverage`), transcript/captions/none, video states. Built with the dataviz skill. 7. **Transparent agent runs.** - Run a sweep from the same scope and watch it step by step: scope → enumerated N (the ids) → batches k/n with each extractor's lines → findings → quote checks (kept / dropped, with the reason) → cost per step. - Past runs replay from the trace. - Agent findings land in the same board shape, so human and agent research meet in one place. **Mechanism:** - Add `"yt-dlp-transcript-mcp": "workspace:*"` to `umtool/package.json`, and use `createCorpusTools` (`mcp/src/callTool.ts`) in-process and server-side. It is the same read-only tools Claude Code uses (`search_transcripts`, `enumerate_matches`, `get_transcripts`, `get_post`, `get_thread`, `channel_coverage`, `list_channels`, `list_tags`) with the same caps (`MCP_POLICY`), already used by `editor/app/api/ops/report-draft/route.ts`. - `channel_coverage` needs the editor (it proxies `GET /api/ops/coverage`). Alternatively call `common/controller/channelCoverage.ts` directly when umtool has the corpus on disk. ## Data and engine rules (from the code review) - **Piece ids are namespaced:** `a:/` (site may be `articles`) and `p:`. `resolveTarget` is ambiguous on two-segment ids (`lib/annotations/targets.mjs:139`). Research cases are `c:`. - **Linking a project to an article, in order:** 1. each iteration's `projectDir` (`iteration.json`), with `current.video` choosing the Cut tab's project; 2. the manifest's `article` key; 3. a slug match (`lib/articles/links.mjs`). Only (3) can raise `link-ambiguous`. Today every generated article shows its own `…/i1` as "possible" (`links.mjs:84-99`). A `projectDir` outside `REPORTS_ROOT` is shown as "not reachable here". - **Lifecycle:** - Values are `active | parked | done`; `shipped` is already a derived song state (`lib/project-types.ts:35`). - Stored in `REPORTS_ROOT/.umtool/lifecycle.json`, keyed by piece id. The walk skips dot-dirs (`walk.mjs:105`). It is state, not cache. - "Looks done" signals, which only ever suggest: - a song's derived `shipped`; - a final mp4 (`buildStateOf`, `report.mjs:437`) plus a `share-*` batch (`deliver.mjs listBatches`); - a published article with `report.video.src` or `current.video`. - **Decisions API stays one row per decision.** - `GET /api/browse/decisions` keeps `items[]` ungrouped and never drops rows. New fields are additive: `piece`, `category`, `group`, `action`, `lifecycle`, `hidden`. Grouping and hiding happen in the UI. - Reason: the MCP reads `items[]`, filters `open-note`/`unreadable-notes`, uses `project` as the notes target, and needs `href` to end in `note=` (`mcp/src/archivalTools.ts:306-321,393-410`). `lib/hrefs.ts` must keep `?note=` last. - **Decision sources from disk, without the editor:** - **Iterations** come from `readArticleIterations` (`lib/articles/generation.ts:338`). `iteration-ready` means done, not current, and newer than current; `iteration-failed` is a failed run. Spend comes from iteration `usage` joined on `jobId`. - **Research proposals** come from common's `readResearchState` (`common/lib/report/draft/research/state.ts:93`); a waiting one has status `proposed`. Not `readResearch()`: that POSTs to the editor, which can rewrite `proposals.json`. - **There is no "waiting on a cap" state.** The daily cap refuses at start and per-job caps end the run. The "spend" category is research proposals plus failed runs. - **Drafts** come from r28 `draftsView()` (`umtool/lib/report/drafts.mjs`). Add `drafts.review.json`, `narration.review.json` and `*-draft.json` to `reportSignature` (`lib/projects/report.mjs:493-510`), or the decision cache never refreshes after an approve. - `verdict-proposed` (r28 M8) is deferred until M8 is built. - **Running list:** - Source: the editor's `GET /api/ops/jobs?active=1`. Call it without `kind` (research acquisitions use other kinds) and filter in umtool. - Give `askEditor` a timeout and a ~2 s memo (`generation.ts:76` has none). - Distinguish "editor unreachable" from "WORKER_TOKEN not set" (the editor returns 503). - `ActivityItem` gains `queued`. - Add `/api/ops/jobs` to `e2e/fixtures/editor-stub.mjs`. - **Pieces list cost:** the article side re-reads every `report.json` per request (`sites.ts:127-158`). Use a 10–30 s memo, cleared on writes like `clearLinksCache`. Live, warm: `/` 0.89 s, `/api/browse/decisions` 0.27 s. - **Redirects:** - Use `redirects()` in `next.config.ts` (`node_modules/next/dist/docs/01-app/03-api-reference/05-config/01-next-config-js/redirects.md`). It runs before the filesystem and passes the query through. - One table in `umtool/redirects.mjs`, imported by both the config and `e2e/redirects.spec.ts` (`maxRedirects: 0`). - Reserved `/browse/` rules go before `/browse/:path*`. `/:mode(sort|salvage|verify|keeps)` → `/tools/song/:mode`. `/bench` → `/tools/bench`. - **307 (`permanent: false`) until P6**, because browsers cache 308s forever. - **LastPage/ResumeChip:** - `DEFAULT_PAGE` → `/work` (`lib/last-page.ts:21`). - The chip shows `res.url`, the address after the redirect. - `/projects` and `/tools/song` get index pages, so the parent walk lands somewhere real. ## Phases Each phase: its own branch from `main` (or the current integration branch), gates green, merged, and rolled out live (umtool rebuild + restart). At most three parallel Opus lanes. Every shared hotspot has ONE owning lane per phase: `globals.css`, `AppShell`, `app/page.tsx`, `lib/activity.ts`, `editor-stub.mjs`, `redirects.mjs`. ``` NOW (beside r28) AFTER r28 IS ON main P0 design ─► P1 foundation ─┬─► P3 inbox/work/tools/URLs ─┬─► P2b jobs+drafts ─► P4a-1 ─► P4a-2 ─► P4a-3 ─► P4b ─┐ P2a engine ────┘ ├─► P5 create+settings (after P3) ├─► P6 └─► R1 research: search+reader+inventory ─► R2 boards ─► R3 transparent runs ─► R4 refresh ─► R5 recurring ─► R6 triage ─┘ ``` R4, R5 and R6 were added 2026-10-14 at the operator's request (see their sections), and the operator approved building all three and the co-host pilot. R4 runs beside P4a-3/P4b; its Iterations-tab entry waits for P4b. R5 builds on R4 and on P5's Create; R6 on R4 and R5. The pilot runs after R6. ### P0 — Design (no app code; operator sign-off gates P1) - Use the frontend-design skill: 1. brainstorm against the direction above; 2. critique each part against generic defaults and record what changed and why; 3. build the canvas; 4. screenshot it at 1366×768 and 1440×900; 5. critique again and take one thing away. - Choose the hexes with the dataviz validator, on both surfaces. - Screens, with real data: Inbox · Research (results + reader + reading log) · Research board · Archive inventory · a transparent run · Work · Piece Overview · Piece Media (drafts review) · Clip bench · Create. - Include the lit line's motion study and the reader-serif decision. - Also produce the URL map and the redirect table. - Deliverable: `~/reports/umtool-redesign/canvas.html`, published as a private Artifact for review. ### P1 — Foundation (avoids every r28-touched file) - Tokens and the vendored fonts in `umtool/app/globals.css` (Tailwind v4 `@theme`; keep `source(none)` and the `@source` list). - Primitives in `components/ui/`, server-safe cva like `button.tsx`/`badge.tsx`: - Panel, Card, Tabs (link-driven), Table, Field/Input/Select, Dialog (native ``), Stepper, Kbd, EmptyState, Toolbar; - **LitList** (the signature: roving focus, `j`/`k`, the play-head notch); - **ReaderPane**, **CiteThread**. - `AppShell` with the rail. - `BrowseHeader` becomes a thin wrapper over it, same props, until P6: it has 22 users, including r28's `ReportProject`, `NarrationPage` and `app/bench/page.tsx`. - The hand-rolled headers in `app/page.tsx`, `app/mix/page.tsx`, `components/Deck.tsx` and `app/articles/[report]/compare/page.tsx` move onto it. - Keep `
`, `.micro`, `[data-nav-group=song]` and `aria-current`, so about 0 specs break. The rail keeps today's entries until P3. - `lib/hrefs.ts` (one builder per URL shape, `?note=` last), `e2e/urls.ts`, and an empty `umtool/redirects.mjs` wired into `next.config.ts`. - A restyle pass onto the primitives, **excluding** r28-touched files: `IterationsTab`, `NewArticleForm`, `ResearchSlot`, `NarrationReview`, `OnscreenSection`, `ReportProject`, `StructureEditors`, `ChainPanel`, `app/articles/page.tsx`, plus everything new on `r28/integration` and `r28/surfaces`. ### P2a — Engine: pieces, lifecycle, grouping (lib + API; parallel to P1) - `lib/pieces.ts`: namespaced ids, the three-step linking, and a memo. - `lib/lifecycle.ts`, plus `POST /api/pieces/lifecycle` and `GET /api/pieces`. - Decision fields: `category`, `group`, `action`, `lifecycle`, `hidden`. Grouping and ranking are pure functions with unit tests. - Disk sources: `iteration-ready`, `iteration-failed`, `research-proposal`, `link-ambiguous`, `looks-done`. - The CLI `umtool inbox` prints the grouped list. - Must not edit `generation.ts`'s `askEditor` or `editor-stub.mjs`; those belong to P2b. ### R1 — Research: search, reader, inventory (after P1; parallel to P3) - Add the `yt-dlp-transcript-mcp` dependency. - `lib/research/corpus.ts` over `createCorpusTools`, with the source picker. Routes: - `/api/research/{scope,search,window,coverage}`; - search runs `enumerate_matches` once; it never pages (the coverage rule). - `/research`: ask bar, scope preview, LitList results with facets, ReaderPane, copy citation, play/fetch (the editor's fetch-window route, as `fetch_clip` does). - `/research/archive` inventory. - The reading log, stored per case or per scratch session. ### P3 — Inbox, Work, Tools, URLs (after P1 + P2a) - `/` becomes the Inbox. - The dashboard panels become Inbox cards when actionable; otherwise their content goes to `/settings/system`. - `dashboard.spec` is rewritten. - `/work` replaces the `/browse`, `/articles` and `/sites` lists. `/sites/` stays a page. - Tool pages move to `/tools/*`. `app/[mode]` goes. - **`/browse/[/…]` → `/projects/[/…]` moves here** (r28 never touches `app/browse/[...path]`, and its hard-coded `/browse/${id}/review` keeps working through the redirect). - The rail becomes Inbox · Research · Work · Tools · Settings · +Create. Create and Settings link to their current homes until P5. ⌘K palette. - Blast radius: about 12 specs (about 17 `toHaveURL` checks, 9 href assertions, `projects.spec.ts:264`'s RESERVED_BROWSE list). Old `goto()`s ride the redirects. ### P2b — Jobs and drafts (after r28 on `main`) - The editor jobs list goes into `lib/activity.ts` (timeout, memo, 503 vs unreachable), the Running list and the stub route. - `drafts-unreviewed` decisions plus the `reportSignature` addition. ### P4a — The piece page (after r28 on `main`), three slices - **P4a-1:** - the `PieceView` frame: header, stepper, Next card, tabs; - `ReportProject`'s 14 sections moved unchanged into tabs; - `OnscreenSection` (2144 lines) parked whole in the Build tab until P4b; - an `e2e/urls.ts` `section(project, name)` helper. About 15 specs and 80 tests open a project page and expect every section on it. - **P4a-2:** the article-rooted merge. - The iteration's `projectDir` feeds the Cut tab, and the `ArticlePage` tabs become Article/Iterations. - The `PolicyPanel` becomes a chip linking to Settings. - A project linked to an article renders as that article's piece. - **P4a-3:** song pieces (`SongProject`, `CutPage`). ### P5 — Create and Settings (after P3 and r28; parallel to P4a) - `/create`: one shell over the existing writers. - `POST /api/articles/generate`, for an article from a question. - `POST /api/projects/new` → `scaffoldReportVideo` (`lib/projects/scaffold.mjs`), for a video from a recording or a report. - The chain, `/api/articles/chain`, for a video from an article. - "Research a question" opens a case. - `/settings/generation`: `PolicyPanel`, caps, models, the extractor (r28 `ExtractorSelect`). - `/settings/system`: thin APIs over `lib/doctor.ts`, `umtool index --rebuild|--prune` and `umtool storage move-out|move-back|deliverables`, with plan-then-confirm on anything destructive (the `DeletePlan` pattern). - Specs: `projects.spec.ts:551` (`[data-new-project]`), `article-new.spec`. ### R2 — Research boards (after R1; the hand-offs land with P5) - `/research/`: - pin from results or the reader as a snapshot quote; - sections, order, notes, claim lines; - export as cited markdown; - re-verify quotes against the current transcript, and flag drift (the en/en-orig hazard in memory). - Hand-offs: - an article from a board: a `report-draft` sweep seeded with the board's cites, or the exported markdown as the first iteration's input (verify which the editor accepts); - a video from a board: scaffold a timeline from the cites. ### R3 — Transparent agent runs (after r28; it touches common's report-draft tasks) - In common, `sweep-agent.ts` and `sweep-pipeline.ts` write a structured `trace.jsonl` beside `turns.jsonl`. Events: - `scope`; - `enumerate {n, ids, partial, unreached}`; - `batch {k, ids, lines}`; - `finding`; - `check {quote, ok, reason}`, which includes the dropped quotes that are invisible today; - `cost {usd, step}`. - `iteration.json` gains `coverage {matched, read, partial, unreached}`. - `/research/runs/
/` shows the live step view while running (polls the trace) and replays when done. Old runs fall back to a `turns.jsonl` projection. - Agent findings appear as a board, and a run can be started from a case's scope. ### P4b — Benches and Media (after P4a) - The bench shell for clip, claim, narration, takes and review, with the ReaderPane. `ClipBench` (3059 lines) keeps its internals. - The **Media** tab: - every drafted field with provenance and approve/reject; - absorbs r28's `DraftsReview`/`ReviewPage`/`DraftPanel`/`YoutubeSection`; - on-screen (moved out of Build), narration, and "Draft with " / "Draft everything" per section. - One `JobProgress` for chain and editor jobs. ### R4 — Refresh: re-fetch, see what changed, update (operator, 2026-10-14) A report iteration that is "fetch what's new, check it, update" — cheap and deterministic until something changed. - **Where:** a **Refresh** action on the article piece (head ⋯ menu; the Next card when a refresh is suggested; the Iterations tab once P4b lands), and `umtool refresh
` / `pnpm ops report-draft {"task":"refresh"}`. - **Stage 1 — fetch (Archilyzer, no model).** Scope: the current report's iteration scope (channels, from/to) plus every channel its citations touch. Plan, then the editor's own paced actions: `sync` per video channel, `fetch-posts` per posts channel, `transcribe-bucket` for what lands — refused for a platform held or cooling down (polite scraping); then a **local build** of the site whose build holds those channels (build only, never a deploy — through the publish lock; Candace and other local-only channels stay local), because `report-draft` reads a composed build (`corpusSource.ts`) and fresh videos are invisible to it until a build includes them (the research run's `autoContinue: held` already waits on the same thing). The jobs show in the Running list. - **Stage 2 — what changed (deterministic, no model).** Re-run the original enumerate with the iteration's recorded terms and scope (R3's trace `scope`/`terms`/`enumerate.ids`; a pre-R3 iteration: its question + channels, with the citations as the old set) → **new** recordings (ids not matched before, including old videos that only now have a transcript) and **changed** ones; re-verify every cited quote against today's transcript (R2's verify: changed words, `en` vs `en-orig`, deleted sources). Written as the new iteration's `refresh.json`; shown as "4 new recordings match · 2 quotes changed · 1 source deleted". **Nothing changed → the iteration ends "no change", $0.** - **Stage 3 — update (model) runs on its own** (operator ruling 2026-10-14) when stage 2 found anything, within the policy's caps (per-job cap, daily cap; a cap refusal becomes a **Your call** card with the delta and the estimate). Engine: `report-draft {"task":"refresh","article","iteration"}` = a sweep restricted to the new ids (a new `ids` restriction on the sweep — channels and dates alone would miss late transcripts) over the parent's question, then a revision of the parent report with those findings and the drift fixes, keeping everything still verified. The result is a new iteration and an **iteration-ready** Review card — making it current stays the operator's call. - **Optional suggestion (operator: include it):** a cheap daily check per active or published article (stage 2's enumerate only — no fetch, no model) → a `refresh-available` Inbox card "3 new recordings mention this since " whose action is **Refresh**. Muted/parked/done pieces are skipped. - Gates: common + editor tests and builds (the engine change), the full editor e2e at merge, an editor restart at ship. ### R5 — Recurring reports (operator, 2026-10-14) The same topic, updated at an interval — e.g. a daily or weekly report of co-host updates. - **Create → "A recurring report"**: topic/question, scope (channels or a board's scope), cadence (daily · weekly on · every N days, at a time), and one of two shapes, each one sentence on the form: - **Living report** — one article kept current: each tick runs R4's Refresh (stages 1–3) and lands an iteration-ready card. Optionally "make current automatically" per series (default off). - **Series** — a new dated **edition** each tick covering only the window since the previous edition ("Co-host updates · week of 2026-10-13"): a sweep with `from` = the last edition's window end, after R4's stage 1 fetch + build. An empty window is recorded as a quiet edition (no article, $0). Editions belong to a series piece `s:` with its own page (editions newest first, the next tick, pause/resume, cadence) and one Work row. - **Scheduler: the editor**, the always-on process with the heartbeat, the caps, the pause gate and `ARCHILYZER_IDLE_BOOT` — a `report-schedule` runner lane; the schedule is stored beside the article/series in the article store, written only through an ops action (`pnpm ops report-schedule`). umtool shows and edits it; it never runs a timer itself. - Surfaces: a cadence chip in the piece head ("weekly · next Mon 06:00", pause/resume); Work's "recurring" facet; each finished edition or refresh → a Review card; a failed tick → Your call; spend per tick in the Running list. - The existing hand-kept co-host timeline (`quartering-leads`, `cohosts/UPDATE.md`) is the first candidate series — a pilot after R5 ships, with the operator's go. ### R6 — Triage first: a cheap pass that flags what is worth researching (operator, 2026-10-14) A consistent fetch, a cheap or local model that flags what is worth a look, and the better model with tools only on what it flags. Facts it builds on (surveyed 2026-10-14): per-video **digests** already exist (chapters + topic tags, local `qwen2.5:7b`, the `digest` lane yielding the GPU to transcription; `ai-digest.json`); the **local sweep pipeline** (`sweep-pipeline.ts`) is code around a small local model that already judges each window `relevant`/`on_topic`; the API sweep already splits a cheap extractor (`models.extractor`, Haiku) under the main model; there is no watch/saved-search concept and no standing relevance filter yet. - **Tier 0 — code, $0:** after R4's fetch + local build, the candidates are the recordings new since the last tick in scope that match the watch's terms/aliases (enumerate) OR whose digest topic tags match the watch's topics. - **Tier 1 — the local model, $0 marginal:** the sweep pipeline's window judge, run over the candidates' matching windows only (`draft:local`, through the GPU arbiter, yielding to transcription; ticks default to overnight). Each flag: recording, window, a verbatim line (code-checked), a score and one-line reason. Dismissals are kept too. - **Escalation rule:** any flag at or above the watch's threshold (default: one strong flag, or N weak ones) → **Tier 2: the better model with tools** — an API sweep restricted to the flagged ids (R4's `ids` restriction), within the caps, running on its own (the operator's R4 ruling). Below threshold → the tick ends with its triage log, $0 API spend. - **Where the result goes**, per shape: a **living report** → R4's update (an iteration-ready card); a **series** → the edition; a **watch** (R5's third shape: no article until something is found) → an Inbox **"Worth researching"** card with the flags and the escalated findings, plus a board (R2 case) with the flags pinned `by: "triage"`, whose hand-offs make an article or a video. - **Transparent and tunable:** the run page (R3) shows the tiers — candidates, each flag and dismissal with its reason, what escalated and why, the spend per tier. The operator can mark a flag right or wrong; the watch keeps its precision and suggests a threshold. Settings: the triage model (local by default; `models.extractor` allowed), the threshold, the daily escalation cap. - **Engine:** a `report-draft` step `triage` (the window judge as a standalone pass over given ids, structured flags), reused by R5's scheduler; `trace.jsonl` gains `triage {candidates, flagged, dismissed}`. **Pilot (operator-approved 2026-10-14), after R6:** the hand-kept co-host timeline (`quartering-leads`, `cohosts/UPDATE.md`; the co-host attribution hazard applies — a triage flag on a co-host line is a speaker check, not a finding) becomes a weekly **series** with triage first: one tick run end to end on the live corpus, its triage log and edition reviewed with the operator before the schedule is left on. ### R6.3 — Learned spellings: the watch sees how the AI mishears, and adds its own terms (operator, 2026-10-14) Transcripts are AI-made and mishear names ("Melanie Mack" for Melonie Mac, "Warsi" for Warski, "Sticks" for Styx). A watch that only searches the spellings it was given misses those lines. The operator asked that the AI see the mis-transcriptions and adapt by adding its own terms. - **Two ways a spelling is found.** (1) *Proposed*: when a watch is made or its terms change (and weekly after), the triage model lists likely mis-hearings of each name in the terms (sound-alikes, split or joined words, dropped letters). (2) *Heard*: while tier 1 reads a window, it also reports any span it takes for a mis-hearing of a watched name, verbatim. - **Nothing is learned on the model's word.** Code checks a heard span is verbatim in the cues; a proposed spelling must occur in scope (an uncapped count); then the judge reads up to a few windows where it occurs and must confirm it means the watched name, with the line quoted. Kept: the spelling, what it means, the line that proved it, its hits. Dropped proposals are logged with the reason. - **Used at once, on this watch only.** Learned spellings join the watch's candidate query (as literal text, never a regex); the tick log says "terms + N learned". Capped per watch; a spelling whose candidates are dismissed tick after tick is suggested for removal. - **Seen and controlled.** The series/watch page lists the learned spellings with the proving line on the reader: **Remove** (and never relearn it), **Promote to search alias** — through the editor's alias writer (`aliasesStore`, global or per-site), plan-then-confirm, so the corpus-wide aliases stay the operator's. Never promoted on its own. - The co-host pilot is the first user: its watch is reset (R6.2) and seeded by a proposal pass before it resumes. ### P6 — Cleanup, docs, audit - Redirects become 308. - Delete `/drafts`, `BrowseHeader`, the dashboard panels and dead components. - Rewrite `umtool/docs/`: dashboard, browse, decisions, sites, projects and README become inbox, research, work, piece, tools and settings. - Update the umtool URLs and button names in `AGENTS.md` and `plans/FACTS.md`, and the notes addressing. - A screenshot audit of every page against the canvas. ## Constraints on every phase - **External contracts:** - `/?from=/` (editor `VideoPanel.tsx`/`VideoNavStrip.tsx`); - `/api/browse/decisions`, `/api/notes`, `/api/notes/context` (MCP); - note targets `sites//` and the bare project id; - every old page URL is in `redirects.mjs`. - **House rules:** - no `loading.tsx`, no `not-found.tsx`, no `useSearchParams()`; - static segments win over catch-alls; - buttons disabled until hydrated; - delete is plan-then-confirm; - no lead paragraphs, terse literal copy; - kind-id literals only in `lib/projects/` and `components/projects/`; - every human-piloted audit is app-like (fits 1366×768, one question per item, keys). - **Research rules:** - read-only on the corpus; - every fetch goes through the editor (never `yt-dlp` by hand); - citations in the house format (`mcp/src/instructions.ts`, `authoringRules.ts`); - Candace channels stay local-only and never appear in anything published; - the X archive is never put on a site. - **e2e:** keep `data-testid` names when components move. Each phase fixes the specs it breaks and adds its own: `inbox`, `work`, `research`, `board`, `run-trace`, `piece`, `create`, `redirects`. The research specs run on the fixture corpus (`LocalSource` over the e2e public dir). - **Memory gate:** `free -m` ≥ 6 GB before a build or e2e, one `next build` at a time. Scratch goes in the job dir, not `/tmp`. - **Records:** `plans/umtool-redesign.md` in the repo (this plan, plus a Record per phase). No session links anywhere; commits end with `Co-Authored-By` only. ## Verification (every phase) - `pnpm --filter umtool typecheck`, then the unit tests (`node --test` over `umtool/lib/**/*.test.mjs`, `umtool/report-to-video/*.test.mjs`; common's tests for R3). - A capped umtool build (`systemd-run -p MemoryMax=5G`), then the full `pnpm --filter umtool run e2e`, detached with `setsid nohup` and a log monitor. - Screenshots of the phase's pages at 1366×768 and 1440×900 on live data, compared with the P0 canvas, plus a keyboard-only pass (lit line, focus visible, reduced motion). - After rollout (rebuild + restart :3050): - curl every row of `redirects.mjs`; - `/?from=` lands in Create; - the MCP `notes` tool still lists and replies; - from P2a on, report the Inbox's actionable count against today's 518 "blocking"; - from R1 on, run a research query against the local corpus and check the counts against the MCP `enumerate_matches` for the same scope. ## Record ### Status | Phase | Branch | State | |---|---|---| | P0 design | — (`~/reports/umtool-redesign/canvas.html`, version 2) | signed off 2026-10-14 | | 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` → `main` `01120bfe` | LIVE 2026-10-14 | | P3 inbox/work/tools/URLs | `ux/p3` → `main` `01120bfe` | LIVE 2026-10-14 (umtool BUILD_ID q7e29Em…) | | P2b jobs + drafts | `ux/p2b` → `main` `44c7b758` | LIVE 2026-10-14 (umtool BUILD_ID J2YDbFuc…) | | R2 research boards | `ux/r2` → `main` `b8561669` | LIVE 2026-10-14 (editor N0OAYPyM…, umtool 9lPefuiS…) | | P4a-1 piece frame | `ux/p4a` → `main` `a92251aa` | LIVE 2026-10-14 (umtool ErWqdPdg…) | | P5 create + settings | `ux/p5` → `main` `20ee628a` | LIVE 2026-10-14 (umtool ZfQXZuNF…) | | P4a-2 article-rooted merge | `ux/p4a2` → `main` `d84cf4d7` | LIVE 2026-10-14 (umtool UFg8z3yd…) | | P4a-3 song pieces | `ux/p4a3` → `main` `3d69d6c6` | LIVE 2026-10-14 (umtool oN73I6F3…) | | R3 transparent runs | `ux/r3` → `main` `6362cf40` | LIVE 2026-10-14 (editor HqcZW4aJ…, umtool 85Ultdj2…) | | P4b benches + Media | `ux/p4b` → `main` `e66dd702` | LIVE 2026-10-14 (umtool ktVxkFBl…) | | R4 refresh | `ux/r4` → `main` `08fee8e1` | LIVE 2026-10-14 (editor nFiNyOdI…, umtool -HUqAEPA…) | | R5 recurring reports | `ux/r5` → `main` `0bf4aacd` | LIVE 2026-10-14 (editor 379S-Sk9…, umtool vWDhtigj…) | | R6 triage first | `ux/r6` → `main` `326beacf` | LIVE 2026-10-14 (editor i-wNjJfg…) | | Board races fix | `ux/board-race` → `main` `d9c119e2`; race 3 `ux/board-race-2` → `main` `10542ff7` | LIVE 2026-10-14 | | P6a cleanup, docs, audit | `ux/p6a` → `main` `7fb90e6e` | LIVE 2026-10-14 (umtool VUNZhrt6…) | | P6b 308s, screenshot audit | `ux/p6b` → `main` `850e0989` | LIVE 2026-10-14 (umtool Te2jR-P8…) | | R6.1 honest tier 0 + R4.1 | `ux/r61` | shipped on the branch | | R6.2 seen = transcribed | `ux/r62` → `main` `3d8af5b8` | LIVE 2026-10-14 (editor p2L5XyqT…) | | R6.3 learned spellings | `ux/r63` → `main` `df9a23a9` | LIVE 2026-10-15 (editor IyUgmEdc…) | | Co-host pilot | — | LIVE: weekly Mon 06:00 ET (first automatic tick 2026-10-19); learned spellings Stix, Stixy (→ Styx) | ### P2a, as shipped **What.** The engine behind the Inbox and Work, with no UI change: pieces, a lifecycle, the generation era's decisions, and the grouping, all as data. - **Piece ids** (`umtool/lib/pieces/ids.mjs`): `a:/` (site may be `articles`), `p:`, and `c:` reserved. A bare `x/y` never parses, so a two-segment id is never ambiguous. - **Linking** (`umtool/lib/articles/links.mjs`), in the plan's order: 1. An iteration's `projectDir` links its project, and CLAIMS it: no other article can match it by slug. `current.video` picks the cut. A `projectDir` outside `REPORTS_ROOT` is listed in `unreachable`. 2. The manifest's `article` key. 3. A unique slug in the article's workspace. Only this step yields `possible`. The iterations are read as plain JSON (`projectDir`, `current.json`'s `video`), so `umtool notes` links the same way. `/articles` and `/sites` rows carry `via`, `cut`, `how` and `unreachable` (additive). `clearLinksCache` bumps an epoch. - **Pieces** (`umtool/lib/pieces.ts`): - Every article: the sites', the store's, and those in the making. - Every project no article claims. - For each: stage, linked projects, `possible`, `unreachable`, and why it looks done. - A project is owned by the strongest link, then by list order. - The graph is memoised 15 s and dropped when the links-cache epoch moves. The lifecycle is read fresh. - **Lifecycle** (`umtool/lib/lifecycle.mjs` + `.ts`): - `active | parked | done`, stored in `REPORTS_ROOT/.umtool/lifecycle.json` as `{state, at, by?}`. - Every write goes to a temp file and is renamed into place, serialised. An unreadable file is never overwritten (409). - `POST /api/pieces/lifecycle`: 400 for a bad id or state; 404 for an unknown piece, a `c:`, or a project an article owns, naming the owner. `GET /api/pieces` gives each piece with its decision counts by group. - **Decisions** (`umtool/lib/inbox.ts`, `umtool/lib/inbox/groups.mjs`): - `GET /api/browse/decisions` keeps `items[]` one row per decision. `project`, `href` (a note's still ends in `note=`) and `counts` are unchanged. - Each row gains `piece`, `category`, `group`, `action {label, href}`, `lifecycle` and `hidden`. - Two new keys: `groups` (cards, one per piece and kind) and `hidden`. - New disk sources: - `iteration-ready`: done, could be current, newer than current. - `iteration-failed`: not superseded by a later live iteration. Spend is the iteration's `usage`, else the ledger joined on `jobId`. - `research-proposal`: `readResearchState`, status `proposed`. - `link-ambiguous` and `looks-done`. - Groups: Your call → Review → Blocking → Notes → **Open** → Ready to finish → Quiet. **Open** was added for the open decisions the plan did not place (a variant with no verdict, a link to choose). - `openDecisions()` and the pages that call it are unchanged. - **CLI:** `umtool inbox [--all] [--json]` runs `bin/inbox.ts` through tsx. | Commit | What | |---|---| | `2abb6ee9` | links: iterations, then manifest, then slug; claimed projects never a slug match; unreachable listed | | `6498c072` | piece ids, the lifecycle store, the inbox's grouping and ranking (pure, unit-tested) | | `d78b7e15` | pieces, `lib/inbox.ts` (disk sources, annotation), the decisions route, `/api/pieces`, `/api/pieces/lifecycle`, `umtool inbox` | | `a7bda172` | `e2e/inbox-engine.spec.ts`; `test:scripts` runs `lib/pieces` and `lib/inbox` | | `64c3ac84` | an unreadable site, store or disk source never takes the decisions down | | `d51b85ea` | `docs/cli.md` lists `umtool inbox` | | `f36632a0` | (orchestrator, review) one project cache for every bundle, cleared by a scaffold — fixes the `browse.spec:342` flake | **Gates.** | Gate | Result | |---|---| | `pnpm --filter umtool typecheck` | clean | | repo-wide `tsc --noEmit` | clean | | umtool unit tests (`node --test` over `umtool/lib/**/*.test.mjs` and `report-to-video/*.test.mjs`) | 734 tests: 732 pass, 2 skip. 22 are new: ids 5, lifecycle 6, groups 5, links 6 | | `pnpm run test:scripts` | 882 tests: 880 pass, 2 skip | | `next-build-trace.test.mjs` | 10/10, against the capped build | | mcp | 343/343 | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, ~18 s compile. The `/api/pieces` and decisions route traces hold 792 files, none from the corpus or a dot-dir | | full umtool e2e | 308 passed, 1 failed, 6 skipped, 5.5 min. The four new `inbox-engine` specs passed | | `browse.spec.ts` alone | on `ux/p2a`: 22/23. On the base `604d43c1`, in a temporary worktree: one run 23/23, one run 22/23. Both reds are the same test | The one red is `browse.spec:342` ("a new song gets the shape…"). `/browse/gamma` 404s right after `/api/projects/new` scaffolds it, red and green on the base alike. Release 24 recorded it as a flake. No P2a module is on its path: the page and the scaffold route import none of `lib/pieces`, `lib/inbox`, `lib/lifecycle` or `links.mjs`. The suspected cause is the 1 s project-walk memo, held per module instance, outliving `invalidateProjects()`. That is not verified. **Review fix (orchestrator).** Verified and fixed in `f36632a0`: `/api/projects/new` never called `invalidateProjects()`, and the caches were module-level, one copy per Next bundle, so an API route's invalidation never reached the page rendered next. The caches now live on `globalThis` and the scaffold route clears them. `browse.spec.ts` after the fix: 3 runs, 23/23 each. **The real `REPORTS_ROOT`, read-only.** - Run offline with tsx on 2026-10-13/14, over the primary's corpus and a scratch copy of the umtool cache. - No `lifecycle.json` was written; `~/reports/.umtool` does not exist. | Measure | Value | |---|---| | Total rows | 825 = today's 797 + 28 new (1 `iteration-ready`, `api-shondo-recent` i1, $1.14; 1 `link-ambiguous`, `polemic-flips` and two `takes/*` projects; 26 `looks-done`: 25 published store articles with their video + the `pokemon` song). No `iteration-failed` and no `research-proposal` exist on disk | | Severity | 518 blocking, 181 open, 126 info. Blocking is still 518: nothing is parked yet | | Pieces | 57: 30 article, 27 project. 25 linked projects; none unreachable; no project linked to two articles | | Timing | warm `readInbox` 138–578 ms. Disk sources add ~6 ms over `openDecisions()` | Actionable decisions per group (decisions / cards): | Group | Today, no lifecycle | `p:quartering-diet` done | Plus the 26 looks-done pieces done | |---|---|---|---| | Your call | 0 / 0 | 0 / 0 | 0 / 0 | | Review | 1 / 1 | 1 / 1 | 1 / 1 | | Blocking | **518 / 33** | **35 / 32** (483 hidden) | **11 / 8** (507 hidden) | | Notes | 14 / 1 | 14 / 1 | 14 / 1 | | Open | 140 / 16 | 104 / 14 | 102 / 12 | | Ready to finish | 26 / 26 | 26 / 26 | 0 / 0 | | Quiet (collapsed) | 126 / 84 | 104 / 82 | 34 / 27 | **Found and left.** - `quartering-diet` does NOT look done by the plan's signals. It has its final mp4 but no `share-*` batch, so the 483 stay blocking until the operator marks it done. One POST does it. - 24 of the 26 looks-done articles carry one blocking `manifest-invalid` on their linked project (no `channelSlug` or a dead origin, in `hasan-leads/*` and `piratesoftware-polemics/*`). Accepting the suggestions hides them. - With no `current.json`, every done iteration is `iteration-ready`. The fixture's zeta shows i1, i2 and i3 as one card of 3. - `looks-done` and the other new kinds are severity `open`, so `counts.open` rises by 28. `counts.blocking` is unchanged. - Not built here: drafts (r28 `draftsView`), running jobs and `askEditor`'s timeout and memo (P2b). No UI: the dashboard and `/browse/decisions` still read `openDecisions()`. **Rollout (orchestrator, 2026-10-14).** Gates on the integration tip `f36632a0`: full umtool e2e 309 passed, 0 failed, 6 skipped (8.5 min); `scripts/queue-lock.test.mjs` 37/37 with the queue idle (2 timing reds earlier came from runs holding the live queue). `main` fast-forwarded to `fe1cb2d3`; umtool built (79 s, capped) and restarted (`~/reports/umtool-redesign/scripts/p2a-umtool.sh`), `/` 200. Live smoke: `/api/browse/decisions` 825 rows, 518 / 181 / 126, the groups as above, every `open-note` href ending `note=`, 0.48 s; `/api/pieces` 57; a junk lifecycle POST 400; no `lifecycle.json` written; the MCP `notes` tool lists the 14 open notes. ### P0, as delivered The canvas `~/reports/umtool-redesign/canvas.html` (published as a private Artifact; its link is kept out of the repo) is P1's visual spec. Version 1, 2026-10-13: ten screens on real data, the validated dark palette, the lit-line motion study, the reader serif (Source Serif 4), the URL map and redirect table. Version 2, 2026-10-14, at the operator's request: light and dark both first-class, and the wordmark one word ("umtool", bold lead "um"). Signed off the same day ("everything else looks great"). Rulings recorded in the canvas's critique section and binding on P1 onward: - Tokens are named by role (`--ground --panel --text --muted …`); dark is the base, light under `prefers-color-scheme` and `data-theme`. - Dark roles: Signal `#3fc1b0` (the brand's `#5fa8a0` stays on the mark), Meter `#b9a2ec`, kept `#c6e283`, doubt `#ef9a2a`, reject `#de4c3c`. Light: ground `#f1efec`, Signal `#107c8b`, Meter `#5d33bd`, kept `#566609`, doubt `#b0730f`, reject `#6e1b08`. Each set passes the dataviz validator's CVD, normal-vision and contrast checks. - In light, no green/ochre/red set clears 4.5:1 words and CVD separation together (52,272 searched): a verdict's colour is its glyph, the word takes a `*-text` step. Verdict colours never land on the reader surface. - Signal only on the lit line and one primary action per screen; counts and spend are Meter; the cite thread only on the lit line and the reader header. ### 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 `` 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 ``), `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 `
`, 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 `

` 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 `
` 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 on the e2e dev server; the live umtool runs `next start`, which has none). **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 `

` 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/` 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. **P1 rollout (orchestrator, 2026-10-14).** `main` (with P2a) merged into `ux/p1` at `7d9e57cd` (plan and CHANGELOG: both sides kept). Gates on that tip: repo-wide tsc clean; full umtool e2e 321 passed, 0 failed, 6 skipped (5.6 min — the `browse.spec:342` red gone with `f36632a0`); `test:scripts` 888, 885 pass, 0 fail, 3 skipped. `37354f70` corrects `next.config.ts`'s comment (the live umtool runs `next start`). `main` fast-forwarded to `37354f70`; umtool built (32 s, capped) and restarted (`~/reports/umtool-redesign/scripts/p1-umtool.sh`). Live smoke: `/`, `/browse`, `/browse/decisions`, `/articles`, `/sites`, `/mix` 200; no cookie leaves `` 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. ### R1, as shipped **What.** Research, first-class: `/research` (ask, scope, results, facets, reader, reading log) and `/research/archive` (the inventory), over the MCP's own engine, read-only on the corpus. - **The engine, shared as data** (`mcp/`, additive): - `src/enumerate.ts`: `enumerate(source, args, opts)` is `enumerate_matches`' scan, and the tool now renders its result. `parseSearchArgs` and `strArray` moved there from `server.ts` unchanged. Options a structured caller adds: `includeSnippets` and `snippetsPerVideo` (which recordings match does not change), and `onRecord`. - `searchTranscripts` gains `onRecord`: every record the video pass reads, before any filter or match. - `src/clipTarget.ts`: `fetch_clip`'s cite-to-directory mapping (record channel, `extractVideoId` of its URL for Rumble), factored out of `handleFetchClip`. `fetchClip` takes `requestedBy` (default `mcp`). - `yt-dlp-transcript-mcp/research` (`src/research.ts`): the export umtool imports. No MCP SDK in it. - **`umtool/lib/research/`** (server unless noted): - `sources.ts`: the picker. Local = `TRANSCRIPT_LOCAL_DIR`, else `EXPORT_PUBLIC_DIR`, else `/export/public` (the MCP's default); every `sites/*/site.json` with a `siteUrl` as `remote:`; the hub from `TRANSCRIPT_HUB_URL` or `settings.json` `homepageUrl`. Only an offered handle opens. Sources are the MCP's `SourceRegistry`, cached on `globalThis`; a local one reopens when its `corpus.json` changes. - `corpus.ts`: `scopeOf` (channels, videos and the upload span from the summaries index, filters applied by the engine's own `passesFilters`), `runSearch` (one `enumerate`, snippets on, never paged; hits with timecodes, marks, track, state, duration, mirrors; facets; the session's log; memo 10 min × 8), `windowOf` (cues ±span around the cite, the nearest cue lit, the citation, local media). - **The track census.** Shard records carry `transcriptFormat` (`vtt` = captions, `*-json` = our transcription, absent = unknown). Nothing published counts it per scope, so a search counts it through `onRecord`, per channel, only when it read the channel whole (records seen = the manifest's `slugToPage`). The scope line says "counted by the first full search" until then, and "N of M channels counted" when partial. - `coverage.ts`: published (summaries, by upload year and state) and held (the editor's `GET /api/ops/coverage?slug=&gapDays=60`, as `channel_coverage` asks it). No `WORKER_TOKEN`, an unreachable editor, a 503 (its ops surface off), a 401 or a route it does not have each say which; for the local corpus the held counts are then `common/controller/channelCoverage.ts` on `CHANNELS_DIR`, read only. A 404 `Channel "x" not found` is that channel's answer. - `fetch.ts`: Fetch clip = `validateFetchClipArgs` → `resolveClipTarget` → `fetchClip(…, {requestedBy: "umtool"})`, `wait_seconds: 0`, polled by `{job}`. `media.ts`: what plays from this machine (clip windows, `source-media.*`, `audio.*` under the editor's directory id), served by name from the server's own scan, with ranges. - Pure (browser-safe, `node --test`): `query.mjs` (phrase, `/regex/`, `a near:N b` → a regex within one caption line; `markRanges` mirrors `buildMatcher`: substring or regex plus the fired aliases), `facets.mjs` (`trackOf`, facets with zero years kept, the house citation: `"quote" [title @ m:ss](url)`, `[post by a, d](url)`), `rules.mjs` (`candace-owens`, `realcandaceo` local-only, marked on every hit and chip), `log.mjs` (the reading log), `session.mjs` (the session key, node:crypto). `hrefs.ts`: the URL builders (lib/hrefs.ts is P3's). - **Routes** `app/api/research/{sources,scope,search,window,coverage,log,media,fetch}`: JSON, `no-store`, errors in words (400 bad input, 404 nothing there, 502 a source that cannot be read). - **The reading log**: `REPORTS_ROOT/.umtool/research/sessions/<16 hex>.json`, keyed by query + scope until R2's cases; `{format: "umtool-research-log", session, query, scope, updatedAt, marks}`; the lifecycle store's discipline (serialised, temp + rename, an unreadable file never overwritten, 409). - **`/research`** (`components/research/`): the ask bar (`/` focuses it; the hint says phrase, regex or near), scope chips as native `
` (source, channels, dates, platform state, videos/streams, + Posts) and the **holds** line before anything runs; the honest header (**N recordings · full coverage** or **Partial — not reached:**, lines, pages, mirrors folded, aliases, "showing n of N", **read x of N**); results as ONE global LitList grouped by recording (timecode, the match marked, read state; the CiteThread on the lit line only); the facets column (year histogram with zeros, channel, text, state, reading; each narrows what is drawn, never re-runs); the ReaderPane (the window with its cue lit and centred, −/+ span, **Copy citation** the one go, **Play from**, **Fetch clip**, the citation as fine print). Keys `j`/`k`, `r` read, `s` skip (both move to the next recording), `u` unread, `c` copy, `/` ask. The query and scope are in the URL (`replaceState`); a `?q=` link runs on arrival. 200 recordings are drawn at a time ("Show 200 more"). - **`/research/archive`**: channels × years, numbered cells on `--m1..m5` with their inks, the canvas's bins (50/200/600/1,200), the doubt line under a gap year (over 60 days), — for none; Videos held / Videos published; hover or focus for the tooltip (held, published, missing states, transcripts vs captions); arrow keys walk it; Table. - `components/ui/cite-thread.tsx` (`ReaderThread`): the 0:00 and end labels give way when the cite's label would sit on them (seen on a cite at 98% of a recording). - e2e: `e2e/fixtures/research-fixture.mjs` writes `research-public/` (4 channels, 12 recordings 2019–2026, captions and transcriptions, one deleted, one unlisted, a Rumble mirror cluster, a local-only slug) and two held channels in `CHANNELS_DIR`; `playwright.config.ts` sets `TRANSCRIPT_LOCAL_DIR` to it; `research-enumerate.ts` runs `enumerate_matches` through `createCorpusTools` for the spec. | Commit | What | |---|---| | `90d78927` | mcp: `enumerate.ts` (the scan as data, the tool renders it), `clipTarget.ts`, `requestedBy`, `onRecord`, the `./research` export; umtool depends on the mcp package | | `915b8e60` | merge `ux/integration` (release 28 on `main`) | | `3616a180` | `lib/research` (sources, corpus, coverage, fetch, media, log, query, facets, rules, hrefs, types), the eight routes, the research fixture, `parity.test.ts` | | `33ed3d22` | `/research`, `/research/archive`, `e2e/research.spec.ts`, the fixture wired into make-fixture and the config | | `210c1548` | the session key moves to `session.mjs`: `facets.mjs` stays browser-safe | | `aad7e2d9` | the reader centres the cited cue; ReaderThread labels give way; sites by `siteTitle`; copy only the lit hit's citation | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean (after the merge and at the tip) | | `pnpm --filter umtool typecheck` | clean | | umtool unit, `node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs` | 783 tests, 781 pass, 2 skipped, 0 fail (13 new: query 4, facets 6, log 3) | | `pnpm --filter umtool test` (new: `tsx --test lib/research/*.test.ts`) | 9/9: parity with `enumerate_matches` through `createCorpusTools` on 5 asks (phrase, regex, one channel, a date window, deleted only), the search's facets, the scope preview and census, the window and citation, the inventory's disk fallback | | `pnpm run test:scripts` (now with `umtool/lib/research/*.test.mjs`; reads the capped build's traces) | 934 tests, 932 pass, 2 skipped, 0 fail | | mcp `pnpm --filter yt-dlp-transcript-mcp test` | 363/363 after the merge (11 new in `enumerate.test.ts`) | | editor unit `pnpm --filter editor test` (imports `createCorpusTools`) | 295/295 | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, through the heavy slot) | exit 0; compiled 14.8 s, 45 s wall, 1.31 GB max RSS. The ten research routes' traces: 821–842 files each, none from `transcripts/`, `export/public`, `.e2e-song`, `.next-e2e` or `.env*` | | full umtool e2e (`pnpm --filter umtool run e2e`, detached, queued) | 348 tests: 342 passed, 0 failed, 6 skipped (the song-data capability skips), 8.8 min. `research.spec.ts` 9/9, 18 s | **Live check (read-only, offline tsx, 2026-10-14).** The primary's `export/public` (composed for Rekietalyzer: `rekietalaw`, `rekietalaw-rumble`, 2,950 videos), REPORTS_DIR in scratch: | Query | `enumerate_matches` (createCorpusTools) | Research `runSearch` | Same ids, same order | |---|---|---|---| | `lawsuit` | 1,654, complete, 9.6 s | 1,654, complete, 209 mirrors folded, 90 pages, 10.0 s | yes | | `contempt of court` | 70, complete, 10.4 s | 70, complete, 6 mirrors folded, 90 pages, 9.9 s | yes | After those scans the scope line read 2 channels · 2,950 videos · 2017–2026 · transcripts 9% · captions 74% · unknown 17% (506 records carry no `transcriptFormat`) · 3 aliases. **Screenshots and keys.** `/research` (a search, the reader on a lit hit) and `/research/archive` at 1366×768 and 1440×900, both themes, on the real local corpus with held counts from the live editor's coverage route (read only), in the job's scratch `r1-shots/`. Compared with the canvas: same columns (results, 176 px facets, the reader at `minmax(360px, 34%)`), the lit line, the meter histogram, the reader with the cue lit. Keyboard-only: every control of both pages takes Tab with the 2 px ring (rail 12 stops, then the ask bar, Search, the source, five chips, the list's one stop, the facets, the reader's cues); `/`, `j`/`k`, `r`/`s`/`u`, `c` and the inventory's arrows work from the keyboard alone; reduced motion is the LitList's. **Found and left.** - No `near` operator exists in the engine; `a near:N b` compiles to a regex and matches inside one caption line, and the ask bar says so. - Transcripts vs captions is known only for what a search has read whole (in memory, per source); a published site has no per-scope count. A census survives until umtool restarts or the local corpus is recomposed. - The reading log is per query + scope; R2's cases carry their own. A Candace hit is marked local only; R1 exports nothing, and R2's board export must refuse `isLocalOnly` (rules.mjs). The X archive is never put on a site; R1 puts nothing on one. - On a hub, two member sites with the same channel slug share a facet row and a log key. - Not touched (P3's): the rail (no Research place yet: `/research` lights none), `lib/hrefs.ts`, `globals.css`, `AppShell`, `redirects.mjs`. The only shared primitive touched is `ReaderThread`'s labels. **Follow-up (after review, `885d82ae`).** - **Held counts are kept.** Each channel's held count (the editor's answer, the disk's, or "not known" with the reason) is memoised five minutes per source and channel, on `globalThis` (`lib/research/coverage.ts`, `HELD_TTL_MS`). The editor is still asked four at a time, and only for the channels past the memo. `/research/archive` says "Held counts from 3 min ago (kept 5 min)", and **Refresh** asks again (`/api/research/coverage?fresh=1`). The live editor has stalled on the external drive before, and a page load no longer costs a disk walk per channel. - **The track census is persisted** (`lib/research/census.mjs`): - Location: `REPORTS_ROOT/.umtool/research/census/.json`. - Key: the source handle plus its build identity (`sources.ts` `buildIdentity`): - a published site or the hub: its `corpus.json` `generatedAt`; - the local dir: that, plus `corpus.json`'s mtime and size. - Writes are atomic and serialised, like `lib/lifecycle.mjs`. - A file from another build is not used, and the scope line says "transcripts vs captions: counted on an earlier build (date); the next full search counts again". - A source whose identity cannot be read (no `corpus.json`, or one that is unreachable) is still counted, but not kept. - **The solid Signal box on the lit row comes from P1, not R1. Not changed.** The global `:focus-visible { outline: 2px solid var(--signal) }` in `app/globals.css` sits outside any `@layer`. `.lit-line:focus-visible` (the dashed seam-2 outline) is inside `@layer components`, and unlayered styles beat layered ones whatever the specificity. So every focused lit line draws the 2 px Signal ring: measured on `/research`'s lit row as `solid 2px rgb(63,193,176)`. P1's keyboard pass recorded the same 2 px ring on every control. R1's row markup adds no outline class. The fix belongs in `globals.css` (P3's this phase), for example by scoping the global ring with `:where()` or moving it into `@layer base`. - **Gates:** - repo-wide tsc and umtool typecheck: clean. - umtool unit: 785 tests, 783 pass, 2 skipped (census 2 new). - `pnpm --filter umtool test`: 11/11 (memo and census 2 new). - `research.spec.ts` through `pnpm --filter umtool run e2e research.spec.ts`: 12 passed, 0 failed, 52.8 s. The filter also matched `article-research.spec.ts`; research.spec itself was 9/9, and now checks the age line and Refresh. - Fresh dark screenshots of `/research` and `/research/archive` at 1366×768 (job scratch `r1-shots/followup-*`). ### 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=/` 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/` (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/`, `/tools/faces`, `/tools/trim/`, `/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&site=articles` (follow-up; the store only, as the old page was); `/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 `` 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 `` 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/` 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. **Follow-up (review rulings, 2026-10-14).** - `/articles` keeps parity: it redirects to `/work?kind=article&site=articles`, the store's articles as the old page listed them; `articlesHref` builds the same. The "Found and left" line on `/articles` and the store's mute question are settled by this paragraph. - **Mute is the server's**, beside the lifecycle: `REPORTS_ROOT/.umtool/mutes.json` (`lib/mutes.mjs` + `.ts`), `{ format: "umtool-mutes", version: 1, mutes: { : { : { at } } } }`, every write a whole file to a temp name and a rename, serialised, never over an unreadable file (409); `POST /api/pieces/mute {piece, kind, muted}` (400 on junk, 404 for no such piece; it clears the rail's count). `annotate` (lib/inbox/groups.mjs) takes `isMuted`: a muted kind's rows are `hidden` with `hiddenBy: "muted"` and `muted: true` (a parked or done piece's reason, `hiddenBy: "parked" | "done"`, wins); never dropped. `readInbox` and `GET /api/browse/decisions` carry `muted` (how many rows a mute hides) and `mutesError`. The Inbox header has **Muted N** (`/?muted=1`, a Muted group, each card with **Unmute**) beside **Show hidden N** (parked and done only); the Undo bar takes a mute back too. The localStorage mute is gone. Unit: `lib/mutes.test.mjs` 6, `groups.test.mjs` +1. - `ux/integration` merged twice: `4ce2fc2c` (R1: `/research`, `/research/archive`, its API, lib and the mcp export; two conflicts — `test:scripts` takes both `lib/research` and `lib/work`, the plan keeps both records) at `47e986da`, then `b1e6e701` (r28 smoke fixes, clean) at `6143585a`. R1's pages pass `active="research"`, so the rail lights Research on both; `shell.spec` asserts it. No integration fix was needed. - `[Unreleased]`: P1's rail bullet names the new places, P1's "decisions is a lit list" bullet says "a list is a lit list", and the P3 bullets carry the server mute and `/articles`'s parity. - Found in the gate run: the pieces memo missed an article the editor's generation starts (no route of umtool's clears it), so Work could miss it for 15 s (`article-new.spec`, once in three runs). The memo now also drops when the article store's directory list changes (one readdir per read). | sha | what | |---|---| | `47e986da` | merge `ux/integration` `4ce2fc2c` (R1) | | `f4642bdd` | the mutes store, its route, the Inbox's Muted view; `/articles` parity; Research in `shell.spec`; CHANGELOG | | `6143585a` | merge `ux/integration` `b1e6e701` (r28 smoke fixes) | | `b7c49fb5` | `muted` on the decisions API; the pieces memo follows the article store's list | Gates at `b7c49fb5`: repo-wide tsc clean; umtool unit 804 tests, 802 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 11/11; `test:scripts` 955, 953 pass, 2 skipped, 0 fail; capped build exit 0 (9.5 s compile, 32 s wall, 1.34 GB); full umtool e2e at `6143585a`: 379 passed, 2 failed (the decisions API lacked `muted`; the article-new memo miss — both fixed in `b7c49fb5`), 6 skipped; **at `b7c49fb5`: 381 passed, 0 failed, 6 skipped, 7.0 min**, `research.spec` 9/9. Fresh dark 1366×768 screenshots of `/` and `/research` (job scratch `p3-shots/followup/`). ### R1 + P3 rollout (orchestrator, 2026-10-14) - **Review rulings:** - R1's follow-ups: coverage memoised 5 min with Refresh, census persisted per build. - P3's: `/articles` keeps parity (the store only); Mute is a server store (`.umtool/mutes.json`); the global focus ring no longer overrides the lit line's dashed outline. - **Merges:** R1 merged into `ux/integration` first (`4ce2fc2c`), then the r28 smoke fixes from `main` (`b1e6e701`); P3 merged that tip. - **Gates on R1's tip:** repo-wide tsc clean; mcp 363/363; editor unit 295/295; capped editor build ok (R1 refactors `mcp/src`, which the editor imports); full umtool e2e 342/0/6; test:scripts 933 pass, 0 fail. - **Gates on P3's merged tip** (`b7c49fb5`, containing both): full umtool e2e 381 passed, 0 failed, 6 skipped; test:scripts 953 pass, 0 fail; capped build ok. - **Ship:** `main` (with r28's records `5847a78c`, docs only) merged at `01120bfe`, then fast-forwarded. umtool built (35 s) and restarted after a ping to the r28 session (`scripts/r1p3-umtool.sh`). - **Live smoke:** - All 13 `redirects.mjs` rows answer 307 to the right address, query kept (`?note=` included). - `/`, `/work`, `/projects`, a project, `/tools`, `/tools/song`, `/tools/find`, `/tools/mix`, `/tools/bench`, `/research`, `/research/archive`, `/settings/system` and `/?from=…` answer 200. - Decisions API: 828 rows, notes' hrefs intact; `/api/pieces` 60. - A live Research query ("how many employees", Jeralyzer) gives 27 recordings, 11 mirrors folded, 208 pages, 31 channels — equal to the MCP `enumerate_matches` for the same scope. - The MCP `notes` tool lists the 14 open notes. - No `.umtool/` state written yet. - **Inbox on the real reports:** 51 calls waiting, against the old 518 "blocking". ### P2b, as shipped **What.** What is running, in the rail, with spend; drafts nobody has reviewed, in the Inbox. Built on P3's rail and P2a's inbox engine; no P3 behaviour changed. - **`askEditor`** (`lib/articles/generation.ts`): a GET is given 5 s and its answer kept 2 s per URL, on globalThis (the promise is kept, so callers asking at once share one request; a refusal is kept as long as an answer). A POST is given 30 s (it may have written by the time it is late), never kept, and drops every kept GET. `fresh` asks again. `EditorError` gains a `reason`: `no-token` (umtool has none, 400), `unreachable` (refused, reset, or no answer in time: 502 / 504), `editor-token` (the editor answered 503: its own WORKER_TOKEN is unset), `denied` (401: the tokens differ), `refused` (its words). - **The Running list** (`lib/activity.ts` `readRunning`, `GET /api/running`, `components/shell/RunningList.tsx`): - Source: umtool's own running jobs (a chain and a render may run at once) and the editor's `GET /api/ops/jobs?active=1&limit=200` — no `kind`; the choosing is umtool's. - `lib/running.mjs` (pure, `node --test`): rank 0 generation (`report-draft`, `bench-verdicts`, `tts-file`), rank 1 a research run's acquisition (its job id is a proposal's) or a clip window umtool asked for, rank 2 the rest. Rows: every running job (umtool's own first, then by rank, oldest first), then the queued rank-0/1 jobs, at most 5. The rest folds into one foot line, "+ 2 running · 140 queued · 3 lanes". The lane runners (`auto-download`, `auto-transcribe`, `auto-digest`, `auto-backfill`, `auto-publish`) are never rows: they run as long as the editor does. - A row: the kind in words (common's `jobKindLabel`; umtool's chain is "Make the video", draft-all "Draft everything"), the target (an article's iteration, a channel, a project), queued or running ("queued · 1 ahead"), progress (the editor's snapshot: the runner's `current`, else `initial`, over `target`), and a generation job's spend in Meter. One `JobProgress` presentation (`components/shell/JobProgress.tsx`): the words and a 2 px bar, no bar when a job reports no fraction. - Placing a report draft: the iteration whose `jobId` (or a step's) is the job's, from the article store, kept 10 s and read only when an editor job that is not a lane is live; else the log's first line (`sweep of
i on `). Such a row links the article's iterations; any other links the editor's `/jobs`. - Spend: a running draft's log (`~$0.41`, the agent tasks' per-turn line; `GET /api/ops/job/?tail=200`), else the ledger by job id; a chain sums the ledger's rows for its iteration since it started. The label row says the day's total from the ledger ("$0.42 today"). - Three sentences, never one: **Editor unreachable**, **Editor's WORKER_TOKEN not set** (503), **Nothing running** (plus **WORKER_TOKEN not set here** and **WORKER_TOKEN does not match the editor's**). The editor's words are the line's tooltip. - Polling: on mount, then every 8 s while the tab is visible, none while hidden, one request at a time. The server renders the last view if it is under 15 s old, else umtool's own jobs and "Asking the editor…" — a page never waits on the editor. - **Drafts as decisions** (`lib/inbox.ts`, `lib/inbox/drafts.mjs`): `drafts-unreviewed`, one row per drafted field a final build would refuse for want of an approval (`unreviewed`, or `edited`: changed since approved), from r28's `draftsView()`, for every project with a manifest. Kept per project against `reportSignature`. Group **Review** (ranked after `iteration-ready`), one card per piece ("Narration draft · 5 fields · by qwen3:8b"), action **Review drafts** → `/projects/

/review`. `reportSignature` (`lib/projects/report.mjs`) now signs `drafts.review.json`, `narration.review.json` and every `-draft.json` (mtime and size), so an approve — which writes only the review file — refreshes it and the project caches keyed on it. - `verdict-proposed` (r28 M8) is not built: M8 waits for the operator's bench bar (`plans/archive/releases.md` (entry `release-28.md`)). - **The editor stub**: `GET /api/ops/jobs` (the active filter, `limit`) answers the jobs a spec sets through `POST /__stub/ops-jobs {mode, jobs, live}` (no token, the stub's own door) plus its own live drafts unless `live: false`; mode `editor-token` answers 503, `unreachable` drops the socket. A set job's `log` is its `GET /api/ops/job/?tail=N`. The poll is not recorded in the stub's request log. | Commit | What | | --- | --- | | `892ae991` | `askEditor` timeout, memo and reasons; `readRunning`, `lib/running.mjs` + tests, `/api/running`, `RunningList`, `JobProgress`; the stub's jobs route | | `6ff36c1f` | `drafts-unreviewed` (`lib/inbox/drafts.mjs` + tests, the inbox source, the group rules); `reportSignature` signs the review and draft files; `e2e/running.spec.ts` | | `46bc0c84` | a row's percent on the right, its progress words under it | | `4c3ddd9b` | running.spec leaves the stub's own drafts out (`live: false`) | | `3a33905b` | a drafts card names up to three kinds of field | **Gates.** | Gate | Result | | --- | --- | | repo-wide `tsc --noEmit` | clean at every commit | | `pnpm --filter umtool typecheck` | clean | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 814 tests, 812 pass, 2 skipped, 0 fail (10 new: `running.test.mjs` 6, `inbox/drafts.test.mjs` 4, the second a `reportSignature` test on a temp dir) | | `pnpm --filter umtool test` | 11/11 | | `pnpm run test:scripts` (reads the capped build) | 965 tests, 962–963 pass, 2–3 skipped, 0 fail | | mcp | 363/363 (not touched) | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, compiled 9.6 s, 31.4 s wall, 1.38 GB max RSS; the link removed | | full umtool e2e, run 1 (`46bc0c84`) | 390 tests: 382 passed, 2 failed, 6 skipped, 7.6 min. Both reds were `running.spec`: a report draft another spec had left running in the stub was counted (`Running 3`, not 2) — fixed in `4c3ddd9b` (`live: false`); then `running.spec` + `article-iterations.spec` 7/7 | | full umtool e2e, run 2 (`3a33905b`) | **390 tests: 384 passed, 0 failed, 6 skipped** (the song-data capability skips), 9.6 min | `e2e/running.spec.ts` (3): the rail with stub jobs — two lanes, a running draft (its kind, `zeta i7 · 3/12 turns` placed by its log, `$0.31` from it, a 25% bar, linking `/articles/zeta?tab=iterations`), a running sync (its channel, `2/8 downloads`, 25%, linking the editor's `/jobs`), a queued draft (`queued · 1 ahead`, no bar), three queued syncs folded (`+ 3 queued · 2 lanes`), `Running 2`, `$0.42 today`, the API's counts and no token in it; "Nothing running" with "1 lane", then the 503 (**Editor's WORKER_TOKEN not set**, the editor's words as the tooltip), then a dropped socket (**Editor unreachable**, the day's spend still said); a project with three drafted fields written in the spec — three `drafts-unreviewed` rows in Review on the API, one card of 3 on the Inbox, **Review drafts** to `/projects/reports/p2b-drafts/review`, three approves there, and the card gone from the Inbox and the API on the next read. **Screenshots** (job scratch `p2b-shots/`): the Inbox and `/tools` at 1366×768, dark and light, on the e2e fixture with stub jobs set (a running draft with spend, a sync at 62%, a post walk, a queued draft, three queued jobs and three lanes folded) and a five-narration drafts project. Against the canvas's rail foot: the label row with the count and "$0.42 today" in Meter, rows of kind and target with the Meter bar, the folded line. The Inbox's Review group shows the drafts cards beside the iteration cards. **The real reports and editor, read-only (offline tsx, a scratch copy of the umtool cache, 2026-10-14).** - **Drafts cards today: 0.** The walk finds two projects with draft files: `articles/r28-smoke/i1` has 18 drafted fields, all 18 approved in its `drafts.review.json` (release 28's live smoke); `articles/piratesoftware-ai-friends/i1` has a release-25 `narration-draft.json` and no drafted mark in its manifest. The Review group is the three `iteration-ready` cards it had. `draftsDecisionsAll` 4.2 s cold (every project's signature and manifest), 85 ms warm. - **The live editor's `GET /api/ops/jobs?active=1`** (one read-only GET, WORKER_TOKEN from `editor/.env`): 3 jobs, all lane runners (`auto-publish`, `auto-download`, `auto-transcribe`), 624 bytes in 9 ms. The rail would say **Running 0 · $5.73 today** (15 jobs in the ledger today), **Nothing running**, and "3 lanes". `readRunning` 63 ms. **Found and left.** - A running job's spend is known only where the job says it: the agent tasks (sweep, research, the revisions) log `~$x` per turn; a media draft or a narration logs none until it ends, so its row shows no spend while it runs and the ledger has it after. The day's total is the ledger's (finished jobs), so it does not count a running job's. - A `report-draft` step queued behind another (a narration, a media draft) is not placed on its article until it starts: no iteration names its job id before then, and a queued job has no log. It links the editor's `/jobs`. - The editor's `GET /api/ops/jobs` carries no spec, so a research acquisition is found only by the `jobId` its proposal records in `proposals.json`; a job the editor enqueued for it any other way ranks with the rest. - A stub draft another spec leaves running (`article-iterations`' cancel aside, a media draft whose article is deleted mid-run) stays `running` in the stub; specs that count the editor's jobs pass `live: false`. - Not touched: `JobProgress` on the project page's chain panel and the Iterations tab's job view (P4b unifies them), `verdict-proposed` (M8 not built). - **Follow-up (review, 2026-10-14):** rulings: lanes stay out of the Running count, queued syncs only ever fold, a drafts card counts unreviewed and edited fields. A drafts card is titled by what was drafted ("… · Narration draft · 5 fields", the model under it): a decision may carry its card's `what` (`summarizeGroups` keeps it), else the kind's `WHAT` label (`drafts-unreviewed`: "drafts to review"). Gates: tsc and typecheck clean; unit 814, 0 fail; `running.spec` + `inbox.spec` + `inbox-engine.spec` 20/20 through the umtool e2e entry. ### P2b rollout (orchestrator, 2026-10-14) Rulings: lane runners stay out of "Running N"; queued syncs only in the "+ N queued" line; a drafts card counts unreviewed and changed-since-approved fields, not rejected ones; the card is titled by what was drafted (follow-up `bec88600`). Gates on `44c7b758`: repo-wide tsc clean; full umtool e2e 384 passed, 0 failed, 6 skipped (7.2 min); test:scripts 965, 962 pass, 0 fail. `main` fast-forwarded to `44c7b758`; umtool built (41 s) and restarted (`scripts/p2b-umtool.sh`). Live: `/`, `/work`, `/research`, `/tools` 200; `/api/rail` inbox 53, work 60; decisions API 828 rows, 0 `drafts-unreviewed` (as predicted), notes' hrefs intact; `/api/running` against the live editor: nothing running, "+ 3 lanes", $5.73 today over 15 jobs, editor reachable. ### R2, as shipped **What.** Research boards: a case is a question being researched — its scope, the quotes pinned from Research as snapshots, their sections and order, our claim line and note on each — at `/research/`, with re-verify, a cited-markdown export, and two hand-offs behind plans. Umtool-side state; read-only on the corpus. - **The store** (`umtool/lib/research/cases.mjs`, plain ESM, unit-tested): `REPORTS_ROOT/.umtool/research//case.json`, `{format: "umtool-research-case", version: 1, id, title, scope, search, sessions, sections, quotes, notes, handoffs, counters, createdAt, updatedAt}`. The lifecycle store's discipline (one writer, serialised, temp + rename, an unreadable file never overwritten — 409, listed with its error). A case id is a piece segment; `sessions`, `census`, `archive`, `runs`, `cases`, `new` are reserved (the reading logs and the census live beside the cases; the pages under `/research`). The piece id is `c:`; a created case takes the title's slug, `-2`, `-3` … when taken. - **A quote is a snapshot** (`lib/shortlist.ts` `Pick`'s reasoning): the words at the cite, read by the SERVER at pin time through the MCP engine (`findVideo`/`findPost`, the cue nearest the cited second, `until` for several cues), and the cite — source handle, channel slug and key, recording id (and the editor's directory id when a Rumble URL slug differs), title, date, first cue start and last cue end, clock, track (and the alternate track id), the moment link, the house-format citation, local-only. The same cite twice answers the quote already there (`duplicate`). A pin carrying its search (`session`, counts) makes that search the case's: `search` and `sessions` — "searched N", and "read N of M" from that session's reading log, which R1's page keeps writing (the log becomes the case's by reference, not by copy). - **Re-verify** (`lib/research/boards.ts` `verifyQuote`): R1's `windowOf` (±30 s) on the quote's own track; the words found (case, punctuation, spacing aside; whole words) → `ok` (with where they start now when they moved ≥ 1 s); else `drifted` with the words over the quote's seconds now; a recording gone → `missing`; a source not offered → `unreadable`. Where the record has both `en` and an `en-orig` and their words differ over the cite, `enOrig {text, quoted, other}`. Nothing changes a quote's words but the operator's `useCurrentWords` (a drifted quote only; the old words kept in `history`). - **The export** (`lib/research/board.mjs` `exportMarkdown`): `# title`, the notes as the summary and a line saying what the board is, a `##` per section (`Unsorted` when there are sections, `Findings` when there are none) with one finding per quote — `- : "" — [ @ m:ss](<link>)` (a post `[post by <author>, <date>](<link>)`), our note, speaker-not-checked, drifted and en-orig as a `Note:` line under it — and `## Coverage` (scope, searched, read, pinned, drifted, unchecked). It converts as a /sweep report (`boards.test.ts` runs common's `sweepToReport` on it: one citation per quote, verbatim, no problems). - **Hand-offs, plan then confirm** (`lib/research/handoff.ts`): - **Article.** Neither form the plan named existed: report-draft's sweep took a question and channels, nothing seeded, and no task took a markdown input. The smallest additive change in common: report-draft's **`seed`** (a new sweep's, ≤ 200,000 characters, on a Claude model) is kept as the iteration's `seed.md` (`ITERATION_FILES` + `seed.md`); the sweep agent's report file starts as the seed and its first message says to verify every quote, heed and drop the `Note:` lines, and extend it (`SEED_NOTE`). A local model is refused: the pipeline writes its report from scratch. So the hand-off is "a report-draft sweep seeded with the board", whose seed is "the exported markdown" — both readings in one. umtool asks the editor (`askEditor` → `POST /api/ops/report-draft`; it writes nothing of the article store) with `task: "sweep"`, the case id as the article, the scope's query (else the title) as the question, the scope's channels (else the quoted ones), dates, the source handle, the policy's API model (a seeded sweep runs the API agent whatever the sweep route; the plan says so) and the seed. The plan shows the article (new or a new iteration), question, channels, seed size, model and the cap it may spend; the confirm answers `{href, jobId, iteration}`. - **Video.** `scaffoldReportVideo` (`lib/projects/scaffold.mjs`) takes a board's `timeline` (additive; refused with `--from`/`--seed`, every entry checked): one clip per video quote in board order, its window the quote's cue span (start, end, cite, quote, date, the claim as `note`, the alternate track; `siteVideo`/`siteChannel` when the editor's directory id differs), `provenance.siteOrigin` when every link shares one viewer origin, and a README listing the windows to review. No title or chapter cards (the operator's evidence-first rule). The plan shows the folder, title, clips, origin and what it writes; a taken folder is refused. - **Research rules.** A board with a local-only quote (`rules.mjs`, Candace's channels) is refused an article (the article store publishes); its video plan warns it must stay local. The export itself is local and allowed. The X archive is on no site, so no R1 source can reach it and a board cannot hold it. - **The API** (documented in `app/api/research/cases/route.ts`; shapes in `lib/research/case-types.ts`, for P5): `GET/POST /api/research/cases`; `GET/PATCH …/<id>` (title, notes, scope; `sections` as the whole ordered list, `order` as every quote with its section); `POST …/<id>/quotes` (pin); `PATCH/DELETE …/quotes/<qid>`; `POST …/<id>/verify`; `GET …/<id>/export.md[?download=1]`; `POST …/<id>/handoff {to, confirm?}` → `{plan}` / `{href}`. JSON, `no-store`, errors in words (400, 404, 409, 502). Mutations answer the `CaseView`. - **`/research/<case>`** (`components/research/BoardView.tsx`, `QuoteSlip.tsx`, `HandoffDialog.tsx`; canvas "Research board"): the header (Research · case, the title, quotes · sections · from "query" · source, Re-verify quotes, Copy as cited markdown, Download .md); ONE lit list of section heads and quotes — each quote a slip on the reader surface (the words in the reader serif, the cite in mono, linked), the claim line and the note edited in place on the desk, the flags (**Speaker not checked** until checked, **Drifted** with the words there now and **Use the current words**, **Missing**, **en-orig differs** with en-orig's words); the lit quote's section menu, speaker toggle, Remove; the side panel (Hand off, Scope, Searched, Read N of M, Stored, Piece, Search and pin more, + Section, Notes, what was made from it). Keys: `j`/`k`, `alt+j`/`alt+k` (a quote, across sections; or a section), `e` claim, `n` note, `s` speaker, `m` section, `a` add section, `r` rename (the lit section, else the case), `x` remove (confirm), `v` re-verify, `c` copy, `/` search more; a quote drags by its grip onto a quote or a section head. - **`/research`**: a **Board** chooser beside Search (in the URL as `case=`, remembered in this browser); `p` or the reader's **Pin to board** (now the reader's one filled action; Copy citation an outline) pins the lit hit's cited cue — to the chosen case, or the dialog asks (an open case, or a new one named for the query). The reader says "Pinned to … · N quotes · Open board" or "Already on … (q2)". A hit in a description or tags (no moment) is refused. Before a search the page lists the **Cases** (a lit list: title, quotes · sections · drifted, updated). - **⌘K** lists every case as `c:<case>` (its board), through `/api/jump` (the palette is P2b's; not touched). **Commits** (`ux/r2`, from `main` `8f08fc0b`): | sha | what | |---|---| | `77b03246` | common: report-draft's `seed` (a new sweep's starting report, kept as `seed.md`; the agent starts from it; refused on a local model), its tests, the ops help and COMMANDS.md | | `2582dbe7` | the case store, pin as a snapshot, re-verify, the export, the hand-offs, the API (seven routes), scaffold's `timeline`, the fixture's `en` track and board, unit tests | | `c9d716b3` | `/research/<case>` (the board), pinning from Research's results and reader, the Board chooser and the Cases list | | `7c3f5c3d` | `e2e/board.spec.ts`; the claim and note save once | | `3400db75` | `[Unreleased]` bullets | | `99430f38` | ⌘K lists the cases (`/api/jump`) | | `2a51bbb5` | a quote's claim and note are in the Tab order on the lit quote only | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean (umtool's at every commit; repo-wide at `77b03246`, `3400db75` and the tip `2a51bbb5`) | | `pnpm --filter umtool typecheck` | clean | | umtool unit, `node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs` | 817 tests, 815 pass, 2 skipped, 0 fail (new: cases 7, board 6) | | `pnpm --filter umtool test` | 16/16 (new: `boards.test.ts` 5 — the pin, re-verify on the fixture's drifted and `en` quotes, the export through common's `sweepToReport`, both hand-offs planned and confirmed against a stand-in editor) | | `pnpm run test:scripts` (reads the capped build's traces) | 968 tests, 966 pass, 2 skipped, 0 fail | | common `pnpm --filter yt-dlp-transcript-common test` | 4096 tests, 4094 pass, 2 fail — both `controller/autoRunner.test.ts` (`computeLeafPending…`, `a channel with a move marker…`), which read the repo's `settings.json`: a worktree has none. With `SETTINGS_FILE` at the primary's (read only) the file passes 24/24; on `main` in the primary it passes 24/24. Not this lane's | | editor unit `pnpm --filter editor test` | 297/297 (2 new in `_reportDraft.test.ts`: the seed's body rules; a seeded sweep refused on a local model, and on the API kept as `seed.md` with the agent told to start from it) | | mcp `pnpm --filter yt-dlp-transcript-mcp test` | 363/363 | | `pnpm archilyzer docs cli --check` | clean (COMMANDS.md regenerated for the `seed` sentence) | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0; compiled 11.2 s, 34 s wall, 1.40 GB max RSS. The new routes' traces: 873–952 files, none from `transcripts/`, `export/public`, `.e2e-song`, `.next-e2e` or `.env*` | | full umtool e2e (`pnpm --filter umtool run e2e`, detached, queued) at `7c3f5c3d` | 394 tests: **388 passed, 0 failed, 6 skipped** (the song-data skips), 7.9 min. `board.spec` 7/7 | | `board.spec` + `research.spec` + `shell.spec` at the tip `2a51bbb5` (after ⌘K and the Tab change) | 39 passed, 0 failed | **Screenshots and keys.** Job scratch `r2-shots/`: `/research/<case>` and `/research` with cases at 1366×768 and 1440×900, dark and light, on the REAL local corpus (the primary's `export/public`, Rekietalyzer, read only; every write — the case, the reading log — in a scratch REPORTS_DIR): a "Contempt of court" board of five pins from the 70-recording search, two sections, a claim and note, re-verified; plus Research after a pin ("Already on …"), and both hand-off plans. Against the canvas: the same columns (the board, the 300 px side panel), the slip on the reader surface with the cite in mono, Claim / note / flags on the desk, the section heads in small caps with Meter counts, the lit quote's Signal edge, the side panel's Hand off (the filled one is Draft an article), Scope / Searched / Read (Meter) / Stored. Differences: an **Unsorted** group above the sections (where a new pin lands), the lit quote's action row (section, speaker, Remove), the key legend at the foot, Notes and Piece in the side panel. Keyboard only (reduced motion): the rail's 11 stops, the header's three, the board ONE stop (the lit line, dashed 1 px), the section heads' actions, the side panel's; a quote's claim and note only on the lit quote (`e`/`n` reach them, Escape returns to the line); `j`/`k`, `alt+j`/`alt+k`, `a` (the dialog focuses its field) all work; the head moves in 0 s under reduced motion. **Found and left.** - **A seeded sweep needs an API model.** A policy that routes sweeps to Claude Code or the local model still gets the API agent for a board (the plan says so); the local pipeline would need a seed step of its own. - **The seed's links stay on the board's origin;** the agent is told to cite on its own. A case on a hub keeps `<site>:<slug>` keys in its scope; the sweep gets the slugs. - **A pin is one cue** from the UI (the cited cue); the API takes `until` for several, and the reader has no range-select yet. Cue ends are where a caption wrapped, so a video clip's window can stop mid-thought (the README says so; the bench is where it is cut). - **The case's reading log is the search's session, by reference.** A second search pinned into the same case becomes `search`; earlier sessions stay listed in `sessions`, and "read N of M" is the latest's. - **No case delete yet** (not asked for); a case is a directory under `.umtool/research/`. P5/P6 can add it, plan then confirm. - **Not on Work or the Inbox.** `c:<case>` is in ⌘K only; P5 (Create's "Research a question" opens a case) and P4a (a case as a piece's Research stage) consume the API. - **The header buttons' focus ring** (`buttonVariants`) computes to the text colour rather than Signal on this page as elsewhere — P1/P3's global ring, not changed here. - Not touched (P2b's): `lib/activity.ts`, `components/shell/**` (the board renders `AppRail` and `AppHeader` as they are), `e2e/fixtures/editor-stub.mjs`, `lib/articles/generation.ts` (its `askEditor` and `readPolicy` are called, not edited), `lib/inbox*`, `lib/projects/report.mjs`. **Follow-up (after review, 2026-10-14).** - **Merged `ux/integration` `1462f63a` (P2b)** at `91b40a81`. One conflict, in this plan: the status table takes P2b's LIVE row and R2's own; the P2b record and its rollout stay where they are, and R2's record follows them. No conflict in code: none of P2b's files had been touched here. - **One door to the editor's drafts.** P2b's `enqueueDraft` (`lib/articles/generation.ts`) now lists `source` and `seed` among the report-draft keys, and the board's article hand-off goes through it instead of calling `askEditor` itself. `POST /api/articles/generate` accepts the two keys as well; the editor judges them as before. - **Focus rings no longer fade in.** The "Found and left" line on the header buttons' ring was wrong about the cause: it was not the wrong colour but a 150 ms fade — Tailwind v4's `transition-colors` includes `outline-color`, so the Signal ring eased in from `currentColor`. Button, Badge, the reader's buttons (`paperButtonVariants`), the project grid's cards and `VerdictRow` (bare `transition`) now ease `color, background-color, border-color, text-decoration-color, fill, stroke` (VerdictRow also `opacity`) and leave the outline out. `shell.spec` reads the focused Search button's outline the moment Tab lands: `solid 2px` in Signal, and no `outline`/`all` in its transition properties. - **Gates** at `b282e83d`: repo-wide tsc clean; umtool unit 827 tests, 825 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 16/16; test:scripts 978, 976 pass, 2 skipped, 0 fail; common with `SETTINGS_FILE` at the primary's (read only) **4096/4096**; capped build exit 0 (11.6 s compile, 39 s wall, 1.45 GB); full umtool e2e **398 tests: 392 passed, 0 failed, 6 skipped**, 7.8 min. | sha | what | |---|---| | `91b40a81` | merge `ux/integration` `1462f63a` (P2b) | | `b282e83d` | the hand-off through `enqueueDraft` (`seed`, `source` on its key list); no control's focus ring fades in; the shell.spec assertion | **R2 editor gate (orchestrator, 2026-10-14).** R2 changes common's `report-draft` (the `seed`), so the editor was gated too, on `ab2e6830`: editor unit 297/297; capped editor build ok; full editor e2e 693 passed, 1 failed, 12 skipped (22.3 min; the worktree needed `export/public` linked from the primary first). The red, `channel-build-toggle.spec:85`, was a real editor bug also seen on r24/r25: the build and cleanup toggles' forms take a client-closure `action`, so a click before hydration submitted natively and was dropped. Fixed in `ff3baf6b` (both disabled until `useHydrated()`); `channel-build-toggle.spec` + `cleanup-page.spec` then 3 runs, 2/2 each. ### P4a-1, as shipped **What.** A report video's project page (`/projects/<path>`) is a piece page: a frame around one tab of the sections `ReportProject` drew top to bottom, moved unchanged. Song projects (`SongProject`, `CutPage`) and sweep reports keep their pages (P4a-3); the article-rooted merge is P4a-2. - **The frame** (`components/piece/PieceFrame.tsx`, kind-blind): the head through `AppShell` — the trail (`projects / <project id>`), the piece's title as the `<h1>`, the lifecycle chip, **⋯**, the page's status line (`4 clips · 2 other · 0:12 · not built`, still the head's last `.micro`) — and under it, in a new `below` row of `AppHeader`/`AppShell`, the stage **Stepper** (P1's) and, for an article's video, "a video of <article>". Then P1's link **Tabs**, then the tab's body, then the Inbox's `UndoBar`. - **Which piece** (`lib/pieces/frame.ts`): the project's piece from P2a's graph (`pieceOfProject`) — `p:<id>`, or the article's `a:<site>/<report>` when an article claims it — so the stepper, the lifecycle and the Next call are the article's for an article's video. The stepper's bucket is Work's (`stageOf`: an article's own stage; a project's `deliver` when it looks done, else `video`); lit by `stepsOf` (`lib/pieces/tabs.mjs`, pure): before the bucket done, it current, after it to do, all done once the piece is marked done. - **The lifecycle chip** (`components/piece/LifecycleChip.tsx`): **Active ▾** / **Parked ▾** / **Done ▾** opening Park and Mark done (active), Reactivate and Mark done (parked), Reactivate (done) — P3's `LifecycleButton`, the same POST and Undo bar. **⋯** holds the project id and **Delete project** (the delete plan, unchanged). Both are one small menu (`components/piece/Menu.tsx`): trigger disabled until hydrated; Escape, a click away or a lifecycle change closes it. - **The Next card** (`components/piece/NextCard.tsx`, on the Overview): `readNextCall` narrows `readInbox()` to the piece, groups and ranks it the Inbox's way (`summarizeGroups`), skips Quiet, and takes the top card: its `what` (the Inbox's words, now `lib/inbox/what.mjs`, which `app/page.tsx` imports instead of its own table), its `why`, the count in Meter, "then N more calls", and its ONE action, filled Signal — a link, or Mark done for `looks-done`. A parked or done piece's Next is **Reactivate** ("2 calls hidden while it is parked"). Nothing waiting says so, with no button. It streams in under a `<Suspense>` (the Inbox is read whole), so the page never waits on it; the fallback is `data-next-pending`. - **Tabs, `?tab=`** (`lib/pieces/tabs.mjs`, unit-tested): Overview · Cut · Media · Build · Deliver · Sources · History, counts in Meter (Cut: clips; Media: drafted fields; Sources: recordings). `?tab=` and not a segment: it is the canvas's address (`…?tab=media`) and the article page's own key (`?tab=iterations`), so P4a-2's merged piece keeps one spelling — and a project id is a path resolved longest-prefix, with the leftover segments a VIEW the kind declares (`clip/<id>`, `takes`, `review` …), so `/projects/a/b/build` could be a project called `build`. **Old addresses land:** no `tab` is the Overview; `?all=1` (the cut's "show every quote") opens the Cut; `?note=<id>` opens the tab its anchor is drawn on (a row's `entry`/`edit` note → Cut, a timed `moment` → Build, read from the project's `notes.json`); `/browse/<project>` rides P3's redirect. A bad `tab` is the Overview. `projectHref(id, { tab })` builds them (the Overview never written). Only the tab on show is read: the Sources tab's cue reads, History's snapshot diffs and Deliver's exports cost nothing on the Overview. The Tabs primitive no longer prefetches (P3's finding: every page is dynamic, a prefetch is a full render — seven per piece page). - **Keys** (`components/piece/PieceKeys.tsx`): `1`–`7` open the tabs, `n` runs the Next card's visible action (while React reveals a streamed boundary a hidden copy waits in a `<div hidden>`; the key and the spec skip it). Bound after hydration (`data-piece-keys="ready"`); never while typing, on a focused `<video>` (`n` there is a timed note), inside an open menu or dialog, with a modifier, or after another handler took the key. - **A project-wide decision links its tab** (`lib/projects/report.mjs` `decisionTab`): `stale-build`/`unbuilt` → Build, the deliverables' storage → Deliver (`out`'s → Build), `no-punctuation` → Sources; a clip's or a claim's still links its bench. The clip, claim and takes pages' way back is the Cut (`projectHref(id, { tab: "cut" })`). **Section → tab** (the 14 sections `ReportProject` drew, plus its title bar's pieces; `SECTION_TAB` names each for `e2e/urls.ts` `section(project, name)`): | Section (its attribute) | Tab | |---|---| | Title bar: title, subtitle, channel / generated / cited / enumerated | head (title) + Overview (**This video** stats) | | Title bar: **Walk the cut** (`data-walk-cut`, `data-walk-start`, `data-ready-count`) | Cut | | Title bar: **Narration — N** (`data-narration-link`), **Review drafts — N** (`data-review-link`) | Media | | Title bar: **Takes — N** (`data-takes-link`) | Cut | | Title bar: the final mp4, **open in mix** (`data-mix-deliverable`) | Build | | Title bar: **Delete project** | ⋯ menu (every tab) | | `GeneratedBanner` (`generated-banner`) | every tab, above the body | | 1. README (`data-readme`) | Overview | | 2. Decisions (`data-project`, `data-decision`) | Overview | | 3. Sources + availability + **Tag cited** (`data-sources`, `data-tag-cited`) | Sources | | 4. `ReportBuildChain` | Build | | 5. `DraftPanel` (release 28) | Media | | 6. `OnscreenSection` (2152 lines, parked whole until P4b) | Build | | 7. `DeliverSection` (`data-deliver`) | Deliver | | 8. The cut: `FetchUnfetchedButton`, `TimelineList` rows (`data-entry`), show every quote | Cut | | 9. Corrections for the next pass (`data-corrections`) | Cut | | 10. Revisions (`data-revisions`, `data-snapshot`) | History | | 11. `YoutubeSection` (release 28, `data-youtube`) | Media | | 12. Export + podcast (`data-exports`, `data-export-variant`) | Deliver | | 13. Provenance (`data-provenance`) | History | | 14. Notes: prose and sibling `.md` files (`data-notes`) | History | | new: the Next card, the article and its newest five iterations (article store) | Overview | The sections live in `components/projects/report/{Overview,Cut,Media,Build,Deliver,Sources,History}Tab.tsx`, moved verbatim in `f0f53642` (each tab does its own reads); `ReportProject.tsx` reads the manifest's detail once, picks the tab and renders the frame. **The Signal-as-link sweep** (P1's ruling, done in `52c72351`): on the piece page and r28's files beside it, a link that wore `text-[var(--color-sel)]` is `.ink-link` (the tabs' clip, bench, mix, quote, cite, takes, provenance URL links; `DraftPanel`, `DraftsReview`, `NarrationPage`, `IterationsTab`'s Compare, `ResearchSlot`, `StructureEditors`' "+ add a post", `OnscreenSection`'s post link and "at m:ss" jump), and a state that wore it is ink: a timeline row's id, `DeliverSection`'s section letter, `OnscreenSection`'s current row (semibold) and current-entry readout, the build chain's `cutting` chip, `ChainPanel`'s start step, `IterationsTab`'s current card edge (`--muted`), `NewArticleForm`'s picked channels (the `on` chip: `--muted` edge, `--panel-2`). **Walk the cut** is the Cut tab's one filled action (`go`). Left as Signal, by rule: `focus:border-[var(--color-sel)]` on inputs (focus), and `OnscreenSection`'s current-segment fill in the strip and the posts window (`:1814`, `:1852` — the play-head). Left as noted: `OnscreenSection.tsx:283` `bg-[#0d0f14]` (the neutral video frame) and `:1739` `#000` (a preview's default background), frame stand-ins. r28's literal `/browse/…` hrefs on these pages now go through `lib/hrefs` (`clipBenchHref`, `takesHref`, `narrationHref`, `reviewHref`, `projectHref`, `projectsHref`, `mixHref`). | sha | what | |---|---| | `f0f53642` | the frame (head, stepper, lifecycle chip, ⋯, Next card, tabs, keys), the seven tab components moved verbatim, `lib/pieces/{frame.ts,tabs.mjs}`, `lib/inbox/what.mjs`, `projectHref`'s `tab`, `e2e/urls.ts` `section()`, AppHeader/AppShell `below`, Tabs without prefetch | | `52c72351` | the Signal sweep, r28's hrefs through `lib/hrefs`, benches back to the Cut, `decisionTab` | | `2953c0d9` | 19 specs open their section's tab through `urls.section` (46 gotos); Delete project via **More** | | `18d667f0` | `e2e/piece.spec.ts` (8); `stepsOf` pure and unit-tested | | `ceb02eff` | the streamed twin: `n` takes the visible action, the fallback is `data-next-pending`; `onscreen.spec` reads the teaser's timeline row on the Cut | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `f0f53642`, `52c72351` and the tip (umtool typecheck clean at every commit) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 819 tests, 817 pass, 2 skipped, 0 fail (new: `lib/pieces/tabs.test.mjs` 5; `hrefs.test.mjs` +3 assertions) | | `pnpm --filter umtool test` | 11/11 | | `pnpm run test:scripts` (reads the capped build) | 970 tests, 968 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, compiled 10.4 s, 33 s wall, 1.45 GB max RSS; the link removed | | full umtool e2e, run 1 (`18d667f0`) | 398 tests: 390 passed, 2 failed, 6 skipped, 8.2 min. Reds: `onscreen.spec:253` (asserted a timeline row on the Build tab), `piece.spec:52` (strict mode met the streamed twin) — both fixed in `ceb02eff`; then `piece.spec` + `onscreen.spec` 16/16 | | full umtool e2e, run 2 (`ceb02eff`) | **398 tests: 392 passed, 0 failed, 6 skipped** (the song-data capability skips), 8.0 min; `piece.spec` 8/8 | **Spec churn:** 19 specs changed (46 `goto`s now `urls.section(project, name)`; 4 tests also hop to a second tab — `report-longform` sources→decisions, `draft-review` review→onscreen, `onscreen` onscreen→timeline, `timeline-edit`'s `open(page, "onscreen")` for the structure editors; `clip-bench`'s two walk-start hrefs are `urls.clipBenchHref`; `article-delete` opens **More** before **Delete project**). No `data-testid` renamed. New: `e2e/piece.spec.ts` (8): the frame (title, trail, status line, stepper at Video, seven tabs, the Overview alone), the Next card = the Inbox's top card for the piece and its action, the tab as the URL (`?tab=`, `?all=1`, a bad tab, `/browse/…`, a click), a note's link opening the Cut, the lifecycle chip Park → Parked + Undo + Reactivate in the Next card → Reactivate (through `/api/pieces`), the keys (`2`, `7`, a digit typed in a field left alone, `1`, `n`), an article's video (`a:articles/zeta`, its link, its iterations), 1366×768 with no horizontal scroll. **Screenshots** (job scratch `p4a-shots/final/`, 17): an article's report video (`gen-projects/msurf/i1`) on Overview, Build and Media, and `reports/report-fixture`'s Overview, at 1366×768 and 1440×900, dark and light, on the e2e build. Against the canvas's Piece · Overview: the head (title in Archivo, the chip and ⋯ on the right), the stepper with the current stage Signal-ringed, the tabs with Meter counts and the Signal underline, the Next card with its Signal edge and one filled action, the two-column Overview (decisions and iterations | stats and the article). Differences: the trail sits above the title where the canvas has a kind · site micro line; the status line is on the head's right; Media is release 28's panels as they were (the canvas's per-field review list is P4b's). **Keyboard-only** (production build, both themes): the rail's 11 stops, the trail, **Lifecycle: Active**, **More**, the seven tabs, the Next card's action — each with the 2 px Signal ring (`transition-colors` delays the colour ~150 ms on the chip, ⋯ and the filled action); Enter opens the chip's menu, Tab reaches Park, Escape closes; `4`, `1`, `n` from the body. The frame has no motion of its own. **Found and left.** - A project an article claims is still drawn as a project page (the article's stepper, lifecycle and Next call, and "a video of <article>" in the head); P4a-2 renders it as the article's piece with Article/Iterations tabs. - A standalone report video's stepper shows Research and Article done (Work's bucket rule: a project is at Video until it looks done). An article in the making that already has a video project is at Research (P2a's rule). - The Next card reads the whole Inbox and narrows it; on the live reports that is P3's measured 0.1–2 s warm, streamed so the page does not wait. A per-piece reader would be cheaper; not needed yet. - `DraftPanel`'s and `OnscreenSection`'s many **Draft with** / save buttons are P1's `primary` (a Signal outline, "an action that is interaction-led but not THE action") — left; P4b's Media tab decides them. - Activity rows (a build job's link) still open the Overview; only decisions carry a tab. **Follow-up (review, 2026-10-14).** - **Rulings:** `?tab=` and the note landing stand; the three other open points (the `primary` buttons, activity rows on the Overview, the Next card reading the whole Inbox) are accepted as they are. - **The stepper says what does not apply** (`lib/pieces/tabs.mjs` `pieceSteps`, unit-tested): - an article walks all four stages from its own stage; one in the making with a video project is at Research (P2a's rule); - a report video no article claims has no Article stage (`na`, title "no article") and no Research stage ("no research board"); - a video scaffolded from a research board has Research done and Article `na`; - a piece marked done has every stage it has done; the `na` ones stay `na`. The Stepper primitive gains the `na` state: dimmed, a dashed ring with no fill, the reason as the `title` and as screen-reader text; the rule before it stays a seam. - **`ux/integration` `b8561669` merged** at `c4300598`: R2's research boards (cases, `c:` ids, the article and video hand-offs), the colour-transition fix in `components/ui`, the editor toggles' hydration fix. One conflict, this plan (both records kept; R2's status row with P4a-1's). - **A video's board is linked.** R2's video hand-off records itself on the CASE (`handoffs: [{ to: "video", href: /projects/<slug>, at, what }]`), not in the project (its README names the case in prose). `lib/pieces/board.mjs` `boardOfProject` (pure, unit-tested) finds the case whose video hand-off names the project, the newest if two; `readPieceFrame` reads the cases (`lib/research/cases.mjs`, a case that does not read is skipped). The Overview shows **Research board** with the case's title linking `/research/<case>`, and the head says "from the board <title>". Owed to P4a-2: an article seeded from a board (`enqueueDraft`'s `seed`) — whether the article piece should show its board too (the case records that hand-off the same way, `to: "article"`). | sha | what | |---|---| | `c4300598` | merge `ux/integration` `b8561669` (R2, the transition and toggle fixes) | | `a494495e` | `pieceSteps` and the Stepper's `na`; `boardOfProject` + the board on the Overview and in the head; `piece.spec` asserts the standalone stepper and a board's video (9) | Gates at `a494495e`: repo-wide tsc clean; umtool unit 834 tests, 832 pass, 2 skipped, 0 fail (new: `board.test.mjs` 1, `tabs.test.mjs` +1); `pnpm --filter umtool test` 16/16; `test:scripts` 985, 983 pass, 2 skipped, 0 fail; capped build exit 0 (10.0 s compile, 33 s wall, 1.39 GB); `piece.spec` 9/9 through the e2e entry; full umtool e2e at `a494495e` **407 tests: 401 passed, 0 failed, 6 skipped** (the song-data skips), 7.5 min. Screenshot: `reports/report-fixture`'s Overview, dark, 1366×768 (job scratch `p4a-shots/followup/`). ### R2 rollout (orchestrator, 2026-10-14) `main` fast-forwarded to `b8561669`; common 4096/4096 in the primary (the real `settings.json`). After a ping to the r28 session (nothing of its in flight), the editor was built (50 s, capped) and restarted (`scripts/r2-editor-{build,restart}.sh`: 200, `PATH` with `~/.local/bin`, `UV_THREADPOOL_SIZE=16`, no ZodError, 0 queued before and after; only the auto-* lane runners were active), then umtool (44 s, `scripts/r2-umtool.sh`). Live: `/`, `/research`, `/work` 200; `/api/research/cases` answers (0 cases); the editor's `report-draft` route lists `seed` among its keys and judges a seeded body on its other fields. ### P4a-1 rollout (orchestrator, 2026-10-14) Review rulings: a standalone report video's stepper shows Research and Article as not applicable (the lane's reason text "no research board" on Research accepted); a video from a board shows Research done, Article not applicable. Gates on `a494495e` (with R2 merged): full umtool e2e 401 passed, 0 failed, 6 skipped; test:scripts 983 pass, 0 fail; capped build ok. `main` (R2's records, a plan-only conflict resolved keeping both) fast-forwarded to `a92251aa`; umtool built (40 s) and restarted (`scripts/p4a-umtool.sh`). A first rollout attempt launched after the ff had aborted rebuilt the then-live code into `.next` and was stopped before its restart; the build was let finish (identical code) and the real rollout followed. Live: `/projects/quartering-diet` and its `?tab=cut|build|media` 200, an article's video project 200, `/browse/<p>` 307, the Overview tab `aria-current`, decisions API 828 rows with notes' hrefs intact. ### P5, as shipped **What.** Create and Settings: one door to everything that can be made, and the settings a terminal held. Built on P3's shell, R2's case API and r28's forms; no writer is new — every form is a shell over one that existed. - **`/create`, "What are you making?"** (`app/create/page.tsx`, `components/create/CreateView.tsx`, `forms.tsx`, `lib/create.ts`; canvas "Create"): ONE lit list in two columns — Research · Article | Video · Song — eight lines, each with its button (filled Signal on the lit line, an outline once its form is open: the form's own button is then the one primary action). The form opens inline under its line; the result navigates to what was made. - **Research a question** → `POST /api/research/cases {query, title?, scope: {source}}` (R2) → `/research/<case>`. The corpus is a select of R1's sources. - **Article from a question** → r28's `NewArticleForm`, reused with three props: `showPolicy` (false here: the policy is the chip), `framed`, `history` + `onCancel`. It now says the **estimate** before Start (`lib/create/estimate.mjs`, unit-tested): what earlier runs of the same task on the chosen model spent — the editor's usage ledger summed per job, typical (median) and most, the latest 20 — and the cap it stops at; a local model "Runs on the local model: no API spend"; the day's spend against the daily cap beside it. There is no price model of a sweep (what it reads depends on what the question matches), so the estimate is the record, said as such. - **Article / Video from a board** → a board select (`GET /api/research/cases`, `?case=` preselects), then R2's `HandoffDialog` unchanged: the plan from `POST …/handoff {to}`, nothing written until its confirm. - **Video from an article** → a store article and a done iteration with a report (newest first, `?article=` preselects), the chain's steps from `GET /api/articles/chain` ("5 of 10 steps to run, from …"), then **Make the video** (`POST /api/articles/chain`) → the article's Iterations tab, where the chain runs as a umtool job. - **Video from a recording / from a sweep report / A song** → `NewProjectMenu` (restyled onto Field/Input/Select; new props `kind` (fixed, no kind select), `inline`, `reports`, `fromLabel`/`fromHint`, `submitLabel`, `onCancel`) → `POST /api/projects/new` (`scaffoldReportVideo`, the song scaffold). The report line offers every project of the sweep-report kind on disk (`lib/projects/create.mjs`, which holds the make → kind mapping, so no page names a kind), then "A path typed by hand…". - **Keys:** `j`/`k` (and the arrows) glide the lit line down the left column and into the right — `LitList` gains an opt-in `columns` prop so the head follows the line's left edge too (off everywhere else); Enter on a line opens its form on its first field (`data-autofocus`, focused once the list's fieldset is live — a server-rendered form's `autoFocus` never runs); Escape closes it and puts the focus back on the line's button. Inside a form `j`/`k` type. The open form is the address (`history.replaceState` to `?make=`), so a reload or a link lands on it. - **The policy chip** (`lib/create/policy.mjs`, unit-tested): the Meter dot and "Generation: balanced · Claude Code: sweeps · API: report revisions, research · local: video revisions, drafts" — routes grouped by where they run, the seven draft tasks as "drafts" when they agree, the two revisions as "revisions" when they agree — linking `/settings/generation`. A red dot and "the editor did not answer" when it did not. - **Addresses** (`redirects.mjs`, two P5 rows, 307): `/` **with a `from` query** → `/create` (a `has` row; the query passes through, so the editor's `/?from=<slug>/<id>` lands on `/create?from=…`, which opens "Video from a recording" prefilled — the Inbox no longer carries the form, and `/` without `from` is untouched); `/articles/new` → `/create?make=article` (its page is deleted; `/drafts` redirects to Create itself until P6). `lib/hrefs.ts`: `createHref({make, from, case, article})`, `MAKES`/`isMake`, `settingsHref`; `newArticleHref` is Create's article line, `generationPolicyHref` is `/settings/generation`; `homeHref` lost `from`. - **The rail and ⌘K:** **+ Create** is a link to `/create` (Signal edge and `aria-current` on it; no place is lit there — `create` maps to no place in `AppNav`); the palette's create actions are the eight lines (`new-article` kept its id; `new-project` became `new-video-recording` and five more), plus Create among the places. Work's two header links are one **+ Create**. - **`/settings/generation`** (`app/settings/generation/page.tsx`): r28's `PolicyPanel`, moved unchanged — routes, presets, models (the policy's **extractor** is its own select there: Claude or local, as `settings.generation` allows; `ExtractorSelect` stays the per-sweep override on the article form), caps, the key FILE's path and whether it is there — and **Spend today**: the ledger's rows for the UTC day, job by job (time, task, article and iteration linking its Iterations tab, the models it called, USD), against the daily cap, and the last seven days on a Meter bar (`lib/settings/spend.mjs`, unit-tested). The head says the policy in one line. - **`/settings/system`** gains the maintenance a terminal did (`components/system/Maintenance.tsx`, `lib/system/actions.ts`, `lib/system/storage-rows.ts`, `lib/system/roots.mjs`): - **Roots** — `umtool doctor`'s, now one module the CLI imports too: reports, the media root (or "= reports") and the drive's problem, the cache and whether an index exists, a leftover old cache. `GET`/`POST /api/doctor` carry `roots` (POST also sizes the old cache). - **Index** — records, how many are for projects that are gone, when rebuilt, the store's path. **Rebuild…** runs `umtool index --rebuild` as a umtool job ("Index rebuild" in the Running list); **Prune…** drops the stale records in process (`pruneIndex`; the plan is the new read-only `indexPrunePlan` in `lib/projects.ts`). - **Storage** — every project's `out/` (here, on media, DRIVE MISSING, none) and, for one with a manifest, its deliverables switch and directories; **Move out…** (only when a media root is set), **Move back…**, **Deliverables to media… / home…**, and every `out/` at once. A move runs `umtool storage …` as a umtool job ("Move out <project>"), the same CLI a terminal runs; deliverables reuse `moveDeliverablesSteps`. - **Plan, then confirm** (`components/system/ActionPlan.tsx`, the DeletePlan pattern): the trigger asks for the plan (`POST /api/system/{index,storage} {…, dryRun: true}` — a dry run of the movers: what it touches with sizes, what refuses, what is worth knowing), the plan takes the focus, and only its confirm (words naming the result: "Drop 2 records", "Move out") acts; **Keep it** (or Escape) closes it, nothing written, focus back on the trigger. The confirm re-reads the plan and refuses (409, with the plan) if it now refuses; a project is named by id, never a path; a busy project (a pipeline process in it) is refused alone, skipped in an "all". **Commits** (`ux/p5`, from `main` `794a112b`): | sha | what | |---|---| | `63cc7294` | `/create` and its forms, the two P5 redirect rows, the hrefs, + Create as a link, ⌘K's create lines, Work's + Create, `/settings/generation`, the system actions behind plans, `LitList`'s `columns`, `NewProjectMenu` restyled with Create's props, `NewArticleForm`'s estimate and props, `rootsReport` shared with the CLI, unit tests (create 5, settings 2, hrefs +1) | | `3411c0f2` | `create.spec` (10) and `settings.spec` (7); `article-new`, `inbox`, `shell`, `redirects`, `projects` follow Create; `test:scripts` runs `lib/create` and `lib/settings`; the system jobs named for the Running list | | `a942547c` | a plan takes the focus (its confirm, else Keep it), Escape keeps it, closing returns to its button | | (this commit) | this record, `[Unreleased]` bullets | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `63cc7294` and at the tip; `pnpm --filter umtool typecheck` clean at every commit | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 835 tests, 833 pass, 2 skipped, 0 fail (new: `create.test.mjs` 5, `settings.test.mjs` 2, `hrefs` +1) | | `pnpm --filter umtool test` | 16/16 | | `pnpm run test:scripts` (reads the capped build) | 986 tests, 984 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot `--build --estimate 5120`) | exit 0; compiled 24.6 s, 81 s wall, 1.39 GB max RSS; the link removed | | full umtool e2e (`pnpm --filter umtool run e2e`, detached, queued ~8 min behind `ux-p4a2`) at `a942547c` | **417 tests: 411 passed, 0 failed, 6 skipped** (the song-data skips), 7.5 min; `create.spec` 10/10, `settings.spec` 7/7 | Before it, dev-mode runs (`E2E_MODE=dev` through the queue, no prebuild) while two other lanes' servers held ~5 GB: `create` + `settings` 13/17 then 17/17 (the four reds were `toHaveURL`'s 5 s against a dynamic page's first dev compile — the navigations after an action now `waitForURL` 20 s — and a stub log not written yet); the touched specs 54/57 with `last-page:55`, `shell`'s theme reload ("Page crashed") and `work:42` red under memory pressure in dev mode — all three green in the start-mode suite above. **Screenshots and keys.** Job scratch `p5-shots/` (20): `/create`, `/create?make=article`, `/create?from=testchan%2Fvid1` (the editor's hand-off, the recording's form open), `/settings/generation`, `/settings/system` with the index rebuild's plan open — each at 1366×768 and 1440×900, dark and light, on the e2e fixture under the start-mode build. Against the canvas's Create: the same two columns of grouped lines (Research · Article | Video · Song), the lit line's Signal edge and notch with its filled button, the outline buttons at rest, the policy chip at the head's right with the Meter dot; differences: the line subtitles carry live counts ("Fixture board · 3 quotes", "1 found"), the rail's + Create has no `c` key (below), and an open form sits under its line. Every form fits 1366×768 with its line; the article form at 1366 is the tallest (it fits; with "research" chosen its autonomy row adds a line and the column scrolls). Keyboard only (production build, reduced motion): the rail's 11 stops, the chip, then the list as ONE stop (the lit line, dashed 1 px), then its line buttons (P1's lit-list Tab order); every control the 2 px Signal ring; `j`/`k`, Enter, Escape as above; on Settings · system the plan opens on its confirm (or Keep it) and Escape returns to its trigger. **Found and left.** - **No `c` key for + Create.** The canvas's rail shows `+ Create c`. A bare `c` is the board's copy key (R2) and other pages' own; a global one would race them. ⌘K "create" reaches every line. - **"Pick from the archive" for a recording** is the editor's hand-off (`/?from=`) or a pasted `<channel>/<id>` / share URL; there is no recording search on the form (Research is where recordings are found). - **The sweep-report line lists what the walk calls a sweep report**, an article's sweep iteration in the store among them (the fixture's `articles/p5-board/iterations/1` after the board hand-off) — the walk's existing behaviour. - **Settings · system's "tools & disk" says `index off`** when every summary was served from memory (P3's `indexHealth()` counts only index reads), while the new Index panel says the store's records. Not changed: P3's panel. - **A storage move's plan is a dry run of the movers, per project**: `move-out --all` measures every project's `out/` (a tree walk each) before it says anything; on the real reports root with a media root set that can take seconds. Not run against the real REPORTS_ROOT here (the e2e fixture has no media root: the moves are proved refused, and the CLI's own `storage.spec` proves the movers). - **`/articles/new`'s page is deleted**; common still reserves the article id `new` (`registry.ts:353`) — still right: the redirect shadows `/articles/new`. OPERATING.md, `umtool/docs/*` and FACTS still name `/articles/new` and the policy's old home; they ride the redirect until P6 rewrites the docs. - Not touched (other lanes'): `app/projects/**` (its `+ new project` form is `NewProjectMenu`, restyled here, same contracts), `components/projects/**`, `lib/pieces/tabs.mjs`, `lib/inbox/what.mjs`, `e2e/urls.ts`. **Follow-up (review rulings, 2026-10-14).** - Rulings: the policy's extractor stays PolicyPanel's own select on `/settings/generation` (the policy default; `ExtractorSelect` is the per-run choice on the article form); no bare `c` for + Create (⌘K covers it); the edits outside the lane's ownership are accepted. - **Video from an article defaults to the newest done iteration with a report of its OWN** (a chain cuts from a report): `lib/create/iterations.mjs` (`chainable`, `defaultChainIteration`; unit-tested on zeta's shape). A video revision carrying an earlier iteration's report is offered but never the default. The plan line names the chosen iteration and its kind ("i2 · revise-report:", "i3 · revise-video (the report of i1):"); `create.spec` asserts zeta defaults to i2 and the line for i3 and i1. - **Merged `ux/integration` `3c119873` (P4a-1, LIVE)** at `982d9a9d`. Two conflicts: `app/page.tsx` takes P4a-1's `whatOf` (`lib/inbox/what.mjs`) and keeps P5's removal of the `?from` form; this plan keeps both records (P4a-1's rollout, then P5's) and one status row per phase. `pnpm install`: up to date. No code fix was needed. - **Gates** at `982d9a9d`: repo-wide tsc clean; umtool unit 843 tests, 841 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 16/16; test:scripts 994, 992 pass, 2 skipped, 0 fail; capped build exit 0 (12.9 s compile, 45 s wall, 1.42 GB); full umtool e2e (queued behind `ux-r3`) **426 tests: 420 passed, 0 failed, 6 skipped**, 7.9 min; `create.spec` 10/10. | sha | what | |---|---| | `050bddd8` | the chain's default iteration (own report), the plan line names it; unit test and `create.spec` | | `982d9a9d` | merge `ux/integration` `3c119873` (P4a-1) | ### P5 rollout (orchestrator, 2026-10-14) Rulings: PolicyPanel's own extractor select is the policy default (r28's `ExtractorSelect` stays the per-run choice); "Video from an article" defaults to the newest iteration with its own report (follow-up `050bddd8`); no bare `c` shortcut (the board's copy key) — ⌘K reaches every create line. Gates on `982d9a9d` (P4a-1 merged): full umtool e2e 420 passed, 0 failed, 6 skipped; test:scripts 992 pass, 0 fail; capped build ok. `main` fast-forwarded to `20ee628a`; umtool built (40 s) and restarted (`scripts/p5-umtool.sh`). Live: `/?from=the-quartering/abc123` → 307 `/create?from=the-quartering%2Fabc123`, the recording prefilled; `/articles/new` → 307 `/create?make=article`; `/create`, `/settings/generation`, `/settings/system`, `/work`, `/research` 200; decisions API 828 rows, notes' hrefs intact. For P6's audit: `/settings/system`'s index and storage panels carry explanatory sentences the copy rule would cut. ### R3, as shipped **What.** Transparent agent runs: a sweep records what it did as it does it, and umtool shows it step by step — live while it runs, a replay when it is done — with the quote checks that used to be invisible (kept, refused, dropped, and why). Old runs, which have only `turns.jsonl`, are projected the same way. A run's kept findings open as a research board, and a board's scope can start a run. Read-only on the corpus and the article store from umtool; the editor writes the trace. - **`trace.jsonl`** (`common/lib/report/draft/tasks/trace.ts`; `ITERATION_FILES` + `trace.jsonl`): one JSON object a line, `{t, at, run, …}`, appended as the run goes (a queue of `appendFile`s, no lock: one writer per run; a failed write is logged once and never fails the run). `run` is 1 for the file's first run, 2 for a resumed job's, …. Events: `run {phase: start, task, model, extractor}`, `scope {source, channels, from, to, question, model, extractor, origin, maxUsd, batchSize, seed: {chars}}`, `terms` (the pipeline's), `enumerate {query, n, ids, partial, unreached, total, posts}` (read off `enumerate_matches`' own answer: its rows, COVERAGE PARTIAL, NEVER REACHED), `read {tool, ids}`, `batch {k, of, ids, lines, model, usd, cut}` (the extractor's returned LINES), `cost {step, usd, model, total, turn, calls, text}`, `check {quote, cite, ok, reason, stage, dropped, claim, round}` (stages: `extract` — the pipeline's window check, every quote kept or dropped; `check`/`strict` — a strict round's refusals; `drop` — a finding dropped, with the problem that took it; `final` — every quote kept), `finding {section, claim, cites}`, `note`, `run {phase: end, status, summary, usd, minutes, coverage}`. An agent's events carry `turn` and `phase` (`agent` | `repair`), so a step is put on the turn that made it. Caps: 2,000 ids, 300 lines of 600 characters, quotes 1,200. - **Where it is written.** `runOnIteration` takes `trace: {task, model?, extractor?}`: it opens the trace once the iteration is running, writes the start, hands the task `h.trace(e)` and `h.setCoverage(read)`, and writes the end — and flushes — BEFORE the final status update, so a page that reads the iteration ended finds the trace's end already there. `sweep-agent.ts` wraps the corpus tools (an enumeration's ids and coverage, a read's ids), the extractor (`batch` with its lines and its cost), the agent's turn events (`cost` per turn, the repair round's as `repair turn N`), each strict round's refusals, the drops (`dropFailedFindings` now also answers `items`: the claim and the problem), and the kept report (`traceReport`). `sweep-pipeline.ts` the same over its own steps. - **`iteration.json` gains `coverage {matched, read, partial, unreached}`** (`iterationCoverageSchema`, optional; readers ignore it if absent): distinct ids enumerated, distinct ids read (a batch, `get_transcripts`, `get_transcript`, `get_post`), any capped scan, the channels never reached. Set on every ending, done or not. - **`/research/runs/<article>/<n>`** (`components/research/RunView.tsx`, `SpendChart.tsx`; canvas "Transparent run"): the head — `<article> i<n>` as the title, `Run · replay`/`Run · live`, the question under it, then sweep · model · extractor · channels · dates · corpus · when · minutes · spend this run (and on the iteration when they differ) · kept / dropped · the iteration's checks · status, and the notes; actions: the run picker (`Run 1 2 3`, `?run=k`), **Replay** (`r`), **Open as a board** (`b`, the one filled action). Then ONE lit list, **Steps**: scope, each turn (`t0`…, a repair's `r0`…) or a pipeline's enumerations and batches (`e1`, `b1`), findings, quote checks, the end — each with its sub-line and the running spend in Meter. Beside it: three lanes (Batches, Findings, Coverage), the lit step's detail (facts; the model's words; the calls; each enumeration with its ids and partial / never reached; each batch with its ids and the extractor's lines on the READER surface; the findings with their quotes; the checks grouped Dropped / Refused by a strict check / Kept, each quote on the reader with its cite and **why**), and **Spend by step, cumulative**: a step line in Meter, an 8 px marker per step, the lit step's in Signal, the endpoint labelled, three recessive gridlines; a crosshair snapping to the nearest step with a tooltip (total strong, step secondary); a click on a column lights that step (the list is its table view). **Live**: `GET /api/research/runs/<a>/<n>` every 2.5 s while the iteration is queued or running and the tab is visible, one request at a time; the newest step is lit as it lands until the operator moves the light. **Replay**: the steps lit one after another (650 ms) from the first; any key or click stops it. - **The turns.jsonl projection** (`lib/research/runs-view.ts`, pure, unit-tested): each response is a turn step with its calls (inputs in a line; results were cut to nothing on an import), enumerations parsed where a result survives, `extract_batch` calls as batches whose lines are null ("not kept"), and a **gap** step for the quote checks ("kept / dropped not recorded", the iteration's own checks listed). A pipeline's `dropped` turns are real checks. **Several run starts**: a "run started" note opens a run (an import's); a file without them splits where a response's turn goes back to 0, unless a "repair round" note says it is the repair. Each run is shown alone, its spend its own: an imported stopgap run logged its RUNNING total on each turn (the importer kept it), so its step cost is the difference; the agent's own transcript logs each turn's. The iteration's report is the last run's: findings and "Open as a board" are offered on the last run only. - **`/research/runs`**: every sweep iteration of the article store, newest first (model, status, `turns` when it predates the trace, spend), each linking its run; **Agent runs** in Research's head reaches it. - **Open as a board** (`lib/research/runs-board.ts`, `POST /api/research/runs/<a>/<n>/board`): the case `<article>-run<n>` (piece `c:<article>-run<n>`; `runBoardId` cuts the article so it stays a piece segment) is made — titled with the report's title, its scope the iteration's channels and dates, its query the question — or brought up to date. Its quotes are every quoted citation of the iteration's report, in the report's sections, the finding as the claim line, through R2's `addQuote` (the same snapshot shape as a pin), each `by: "agent"` (kept by `cleanQuote`; the slip says **by agent**); the case carries `run {article, n, at}` and its side panel links **From run**. The cite's link is a moment link on the run's origin (its trace's scope, else its sweep.md's links); its source is the run's corpus when offered, else the one serving that origin, else the local corpus — so the board's Re-verify reads it like any pin. A second open adds what is new (`sameCite`) and never touches the operator's claims, notes, sections or order. A run with no report is a 409. - **Run a sweep on this scope** (a board's side panel; `POST /api/research/cases/<id>/handoff {to: "sweep"}`): R2's article hand-off without the seed (`planArticle(…, {seeded: false})` → `planScopeSweep` / `confirmScopeSweep`): the case's query (else its title), its channels (else the quoted ones), dates and source; the policy's sweep route — the API agent with the policy's extractor and cap, or the local model (no cap); a route to Claude Code (a session's, not a job's) runs the API agent, and the plan says so. Local-only channels are refused (a sweep makes an article). The dialog shows the corpus, the model and extractor and the cap; confirmed, it answers the run's page, and the case records it (`what: "a sweep on the scope: <a> i<n>, job …"`). - **Hrefs** (`lib/research/runs-hrefs.ts`, pure): `runHref(article, n, {run?})`, `runsHref()`, `runApi`, `runBoardApi`, `runBoardId`, `hasRunPage(kind)` (sweeps). **Not wired here, left to the owners** (their files): the Iterations tab's iteration row (`components/articles/ IterationsTab.tsx`, P4a-2) and the Running list's report-draft row (`lib/activity.ts` `editorItem`'s `href`, P2b's) should link `runHref(article, n)` when `hasRunPage(kind)` — `lib/activity.ts` already has the place (`{article, n, task}`), and a sweep row's href becomes `runHref(place.article, place.n)`. | sha | what | |---|---| | `767f2681` | common: `trace.jsonl` (`tasks/trace.ts`), `runOnIteration`'s `trace` and `setCoverage`, both sweeps traced, `dropFailedFindings`' `items`, `iterationCoverageSchema`, `ITERATION_FILES` + `trace.jsonl`; `trace.test.ts` (8); `mcp/src/draftTasks.test.ts` asserts each sweep's trace and coverage, the dropped quote and why, and a seeded sweep's `scope.seed` (+1 test) | | `751b2eff` | umtool: the run page and `/research/runs`, the APIs, `runs-view.ts` (trace + turns projections), `runs-board.ts`, `runs-hrefs.ts`, the scope sweep (`planScopeSweep`/`confirmScopeSweep`, `to: "sweep"`), `by: "agent"` and `run` on a case, the board's button and From run, the run fixture, `runs.test.ts` (7) | | `2351d34e` | `e2e/run-trace.spec.ts` (6); **Agent runs** on Research; a Claude Code-routed scope sweep runs the API agent (plan says so); `boards.test.ts` +1 | | `15c4b813` | the replay assertion watches every frame; `[Unreleased]` bullets | | `d35e0c51` | `data-board-busy` on the board; `board.spec` waits for it before each move | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `767f2681` (common, mcp, editor, umtool), `751b2eff` (umtool) and `2351d34e` (repo-wide, exit 0); umtool's at every later commit | | common `pnpm --filter yt-dlp-transcript-common test` (`SETTINGS_FILE` at the primary's, read only) | **4104/4104** (+8: `trace.test.ts`) | | mcp `pnpm --filter yt-dlp-transcript-mcp test` | **364/364** (+1: the seeded sweep's trace; the sweep tests assert their traces) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 834 tests, 832 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | **24/24** (new: `runs.test.ts` 7 — the trace projection, live and torn lines, two trace runs, turns-only with two starts and running totals, the unmarked split, the small words, open as a board end to end with re-verify; `boards.test.ts` +1 — the scope sweep) | | editor unit `pnpm --filter editor test` | 297/297 | | `pnpm run test:scripts` (reads the capped build) | 985 tests, 983 pass, 2 skipped, 0 fail | | `pnpm archilyzer docs cli --check` | clean | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0; compiled 12.3 s, 44.6 s wall, 1.46 GB max RSS. The run page's and the board route's traces: 938 / 932 files, none from `transcripts/`, `export/public`, `.e2e-song` or `.env*`; the link removed | | capped editor `next build` (common changed) | exit 0; compiled 39.4 s, 1:13.6 wall, 2.36 GB max RSS | | editor e2e, the report-draft specs (`report-draft.spec.ts`, `ops-api.spec.ts`; `export/public` linked from the primary) | **17 passed, 0 failed**, 30 s | | full umtool e2e, run 1 (`2351d34e`) | 413 tests: 405 passed, 2 failed, 6 skipped, 8.3 min. Reds: `run-trace.spec` replay (asserted a 650 ms step with backed-off retries — now watched per frame, `15c4b813`) and `running.spec:185` (the drafts decision read empty once; green in every run since) | | `research` + `run-trace` + `running` specs | 21/21 | | full umtool e2e, run 2 (`15c4b813`) | 404 passed, 3 failed, 6 skipped, 7.8 min: `board.spec` 102/163/185 — an R2 race surfaced by the loaded machine (below), then `board`+`run-trace`+`running` 16/16 and 13/16 | | `board.spec` × 3 (`d35e0c51`) | 7/7, 7/7, 7/7 | | full umtool e2e, run 3 (`d35e0c51`) | **413 tests: 407 passed, 0 failed, 6 skipped** (the song-data skips), 7.9m; `run-trace.spec` 6/6 | **Screenshots and keys.** Job scratch `r3-shots/`: `/research/runs/piratesoftware-ai-friends/1?run=1` (the fallback on REAL data: the iteration's two files copied read-only into a scratch article store, run 1 of 3, `t4` lit) and the fixture's traced run (`runfix`, the quote checks lit; the batch lit with the chart's tooltip), 1366×768 and 1440×900, dark and light; `dev/` holds the working shots (run 3 with the hover, the turns-only and live runs, the index). Against the canvas's Transparent run: the same two columns (the 330 px step list with `t`, label and sub-line, and the running spend in Meter; the detail pane), the three lanes (Batches, Findings, Coverage), the ids as mono chips, the spend chart as a Meter step line with the lit step's dot in Signal and the endpoint labelled, the gap step in italics. The real run's numbers match the canvas's (t0 $0.04 … t7 $0.64). Differences: the title is `<article> i<n>` with the question under it (the head's h1 truncates a long line; the question wraps), the run picker and the notes in the head, the extractor's lines on the reader surface, the checks grouped in the detail, Replay and Open as a board in the head, the key legend at the foot. **Keyboard only** (reduced motion): the rail's 11 stops, the trail's two links, Replay, Open as a board (each the 2 px Signal ring), the step list ONE stop (the lit line, dashed 1 px), then the footer's link; `j`/`k`, `Home`/`End` move the light and the detail follows; `r` replays to the end and stops; `b` opens the board. **Found and left.** - **R2's board refused a move pressed while the previous one was answering** (`busy`): the case file is written before the answer lands, so a spec — or a fast operator — pressing `alt+j` twice saw the second dropped. On a loaded machine `board.spec` went red 2 runs in 3. The board now says `data-board-busy` while it waits and the spec waits for it; queueing the key instead of dropping it is left for R2's owner to judge. - **An imported stopgap run's spend per turn is a running total** (the importer kept the stopgap's own field); the projection takes differences when the run has a stopgap note. The iteration's `usage` for such an import is only its last attempt's (`$0.33` on piratesoftware-ai-friends while its first run alone shows `$1.83`); the head says both when they differ. - **The trace is the editor's to write**: runs already in the store have none, and nothing back-fills one. A run started before the editor restart writes none either. - **Open as a board takes the iteration's report** (the last run's), so it is offered on the last run only. A cite's link needs the run's origin: an old run's comes from its sweep.md's links; a run with neither gets no link (the board shows the cite without one). - **The live page polls the whole view** every 2.5 s (a trace of a few hundred lines is a few tens of KB); a cursor (`?from=<line>`) is the next step if traces grow large. - **A scope sweep from a board with no channels** is refused with what to do; a case whose scope names a hub's `<site>:<slug>` keys sweeps the slugs (R2's rule). - **Not wired** (above): the Iterations tab and the Running list link the run page through `runHref` once their owners take it. **Follow-up (review, 2026-10-14).** - **Rulings:** a scope sweep under a policy routing sweeps to Claude Code runs the API agent, said in the plan — accepted. - **The question is the run page's title**, as on the canvas: the `<h1>` (Archivo), clamped to two lines with the full text in `title` (AppHeader's new additive `clamp`), and `<article> · i<n>` is a crumb in the trail, linking the article's iterations. The `below` row keeps the micro line, the meta and the notes. - **Board moves queue, never drop** (`components/research/BoardView.tsx`): an `alt+j`/`alt+k` pressed while the last move is still answering is queued and applied after it, in order, computed on the case that move left (`docRef`, updated from each answer); a move that fails drops the ones behind it and says why. `data-board-busy` stays (a request answering or moves queued). `board.spec` now presses two moves at once and expects both, in order (`q2 q3 q1`), with no waits between them. - **The Running list links a sweep's run page** (`lib/activity.ts` `placeHref`): a report-draft row placed on an iteration whose task has a run page (`hasRunPage`: a sweep, not a research proposal) links `runHref(article, n)`; any other placed job its article's iterations, as before. The rail lists active jobs only, so a finished draft has no row to link. `running.spec`: the existing running sweep row now links `/research/runs/zeta/7`; a new test places one row by its iteration's `jobId` (the run fixture's live sweep, `jobId: e2e-run-live`) and one by its log (a narration step), and follows the first to the live run page. The Iterations tab is not touched (P4a-2). - **Merged `ux/integration` `8675bc57` (P5)** at `e7d59eb1`; one conflict, this plan (P5's records kept, R3's after them, one status row per phase); `pnpm install` up to date. | sha | what | |---|---| | `e7d59eb1` | merge `ux/integration` `8675bc57` (P5) | | `0f4d05a0` | the question as the title (AppHeader `clamp`), the run in the trail; board moves queued; a sweep's Running row links its run page; `board.spec`, `run-trace.spec`, `running.spec` (+1) | Gates at `0f4d05a0`: repo-wide tsc clean; common 4104/4104 (`SETTINGS_FILE` at the primary's; a first run beside the chain's builds had 1 failure, gone on the rerun); mcp 364/364; umtool unit 843 tests, 841 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 24/24; editor unit 297/297; test:scripts 994, 992 pass, 2 skipped, 0 fail; capped umtool build exit 0 (24.1 s compile, 1:06.9 wall, 1.47 GB); capped editor build exit 0 (27.4 s, 1:05.0, 2.37 GB); `board` + `run-trace` + `running` specs 17/17; full umtool e2e **433 tests: 427 passed, 0 failed, 6 skipped** (the song-data skips), 7.8 min. Screenshots: job scratch `r3-shots/followup/` (the real fallback and the fixture trace with the question as the title, dark and light, 1366×768). ### P4a-2, as shipped **What.** An article and the video project it claims are one page: the article's address (`/articles/<id>`, `/sites/<site>/<report>`, the MCP's and the notes' addresses, kept) is the piece frame around nine tabs, and a claimed project's own address lands there. - **The frame, generalised** (`components/piece/PieceFrame.tsx`): it takes the trail, the tabs with their addresses, a `meta` line beside the title and a `head` slot after the stepper, instead of a project id; the rail's key is `projects` or `articles` (Work lit as the place the piece is under, `aria-current="true"`, not as Work itself — `shell.spec`'s `/articles/delta` row caught it). `ReportProject` passes `PIECE_TABS`' project addresses, unchanged. - **The article piece** (`components/articles/ArticlePage.tsx`, rewritten; `ArticleOverview.tsx`, new): the head — the trail (`articles / <id>` or `articles / <site> / <id>`), the title as the `<h1>`, the meta line (`[data-article-meta]`: home, status badge, dates, revisions — where the old page's first line had them), **Active ▾**, **⋯** (the piece id, **Delete article** for a store article, the video's id and **Delete project**), `N open notes`, the stepper, a board's "from the board <title>", the policy chip. Tabs (`lib/pieces/tabs.mjs` `ARTICLE_PIECE_TABS`), counts in Meter (Iterations: a readdir; Cut, Media, Sources: the video's, as P4a-1): - **Overview** (canvas "Piece · Overview"): the Next card; Iterations (P4a-1's `IterationsSummary`, newest five, **All iterations →**, the question and scope of the current report's iteration) and the video's decisions (P4a-1's section, now `ProjectDecisions`); Article · N sections (**Read →**); Cut · i<n> (final video built or not, clips · runtime, the project id, **Open the cut →**), the other cuts the article made (each a `?project=` link), not reachable here, or no video project yet; the research board; slug matches nobody linked ("Possible videos"). - **Article**: the old page's views moved in — the reader with its notes (`ArticleReader`, unchanged), `?tab=source` (workspace files, slide lint), the problems when `report.json` does not read, "No report yet" for one in the making. Its first line is the views' switch (article · source · evidence) and the linked projects (now `?project=` links into the piece) and the draft/generator line. - **Iterations**: `IterationsView` as it was (r28's media drafts and Draft everything untouched; P4b absorbs them). A site's report says it has none. - **Cut · Media · Build · Deliver · Sources · History**: the claimed project's P4a-1 tabs, through `components/projects/report/ReportTabBody.tsx` (extracted from `ReportProject`, shared by both pages; the project's notes are the target under it). `ReportTabProps` gains an optional `tabHref`, so the Cut's "show every quote" stays inside the article piece. No video: "No video project yet" with a way to the Iterations; not reachable: "i<n>'s video project is not reachable here" and the directory; a manifest that does not parse says so. - **Which project** (`lib/pieces/article.ts` `articleVideo`): only projects this piece OWNS (the graph's `pieceOfProject`). The iteration `current.video` names; if its `projectDir` is outside `REPORTS_ROOT`, the video tabs say "not reachable here" rather than show another; else the article's Cut (`links.mjs`: first linked — iterations newest first, then a manifest naming it, then a unique slug). `?project=<id>` opens another the piece owns, and is carried from tab to tab only when it is not the Cut. The fixture's `zeta` (i1 and i3, no `current.json`) shows i3; `msurf` shows i2. - **A claimed project renders as the article's piece** (`claimedProjectRedirect`): `/projects/<path>` with no view segment, and `/projects/at?path=`, answer `redirect()` — a 307 — to the article piece: the same `?tab=`; with no tab, a `?note=`'s tab (its anchor in the project's `notes.json`, P4a-1's rule) or `?all=1`'s Cut; `?project=` when it is not the Cut; `note` last (`withQuery`). The benches and kind views (`clip/<id>`, `claim/<id>`, `review`, `narration`, `takes`) stay at the project's address; their way back is `pieceHrefOfProject` (the article piece's Cut, Media or Overview). Decision and activity hrefs are unchanged — they ride the redirect, so the MCP still sees `note=<id>` last on the project's href. - **`?note=` on an article piece**: a note in the article's `notes.json` opens the Article tab on it (as the old page did); else a note in the shown project's opens where its anchor is drawn; `?rv=`, `?status=`, `?ws=`/`?rel=` open the Article tab; the reader's slides switch keeps `?tab=article` beside `rv` (`readerPlaceUrl` keeps other keys). - **The stepper** (`articleSteps`, pure, unit-tested): Research done with iterations or a board that seeded it (else `na`, "no iterations or research board" — a site's hand-written report); Article done with a report; Video done with a claimed project (one not reachable here counts); Deliver done when it looks done (P2a's `looksDone`: a final video and a share batch, or published with its video); the first not done is current. `data-piece-stage` is that step. - **The board** (`boardOfArticle`, beside `boardOfProject`; `readCases` shared): the case whose `to: "article"` hand-off names the article's page; shown in the head and on the Overview, as P4a-1 did for a video. - **The policy chip** (`components/piece/PolicyChip.tsx`): a Meter dot, "policy", the preset, the API model, today's spend of the daily cap, linking `generationSettingsHref()` → `/settings/generation` (P5's page; a new builder — `generationPolicyHref` still names the new-article form, for P5 to switch). Streamed under a `<Suspense>`; an editor that does not answer says so. The brief's "remove the panel from the article page": `PolicyPanel` was never on it (since release 27 S8 it lives only on `/articles/new`), so nothing was removed; the component is untouched. - **The Next card**: `readNextCall(a:<site>/<report>)` — decisions on the article and on its claimed projects already carry the article's piece id, so it is the top Inbox call across both. - **Keys**: `1`–`9` open the nine tabs (PieceKeys takes the frame's hrefs); `n` runs the Next card on the Overview and is the reader's "note" elsewhere (PieceKeys acts only when a Next action is on the page). | sha | what | |---|---| | `86ef12ab` | the article piece: `ArticlePage`/`ArticleOverview`, `PieceFrame` generalised, `ReportTabBody`, `lib/pieces/article.ts`, `articleSteps`/`articleTabOf`/`ARTICLE_PIECE_TABS`, `boardOfArticle`, `PolicyChip`, the redirect, the benches' way back, `articleHref`'s `tab`/`project`/`all`, unit tests | | `33da7f73` | specs: `piece.spec` (the article piece's frame, video tabs, redirect, note landing, 1366×768); the article specs through `urls.articleHref`; Delete article via **More** | | `1a301c42` | `piece.spec`: an article drafted from a board shows it | | `84b16df2` | a piece page lights Work as its parent place | | `5d2872fb` | the meta line drops the home link the trail already has | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at every commit (umtool typecheck clean at every commit) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 838 tests, 836 pass, 2 skipped, 0 fail (new: `tabs.test.mjs` +3 — the nine tabs and their sections, the address → tab rules, the stepper by what exists; `board.test.mjs` +1; `hrefs.test.mjs` +3 assertions) | | `pnpm --filter umtool test` | 16/16 | | `pnpm run test:scripts` (reads the capped build's traces) | 989 tests, 987 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, compiled 13.4 s, 46 s wall, 1.44 GB max RSS; the link removed | | full umtool e2e, run 1 (`1a301c42`) | 411 tests: 404 passed, 1 failed, 6 skipped, 7.5 min. Red: `shell.spec` `/articles/delta has the rail, with work lit` — the frame lit Work as `page`; fixed in `84b16df2` | | `shell.spec` + `piece.spec` through the e2e entry (`84b16df2`) | 34/34 | | full umtool e2e, run 2 (`5d2872fb`) | **411 tests: 405 passed, 0 failed, 6 skipped** (the song-data capability skips), 7.4 min; `piece.spec` 14/14 | **Spec churn:** `piece.spec` +5 tests (14): the article piece's frame (nine tabs, the stepper, the policy chip's href and no panel, the Overview's iterations and Cut, keys `3` and `9`), the video tabs (the Cut, `?project=` and its carry, no video), the redirect (307 with the tab, the Overview, `?project=`, `?all=1`; a standalone project 200; `/browse/…` through both hops; takes and review 200; the clip bench's way back to the Cut, with `?project=` for the other cut), a video note landing on the Cut inside the piece (the 307's `note` last; the article's address finds it too), an article drafted from a board; the 1366×768 test covers both kinds of piece; the old "an article's video" test went (that page is now the redirect). The article specs (`article-delete`, `-evidence`, `-integration`, `-iterations`, `-notes`, `-slides`) open the tab they mean through `urls.articleHref` (the reader is `?tab=article`; the Iterations `?tab=iterations`); `article-iterations`' first test opens the piece on its Overview and clicks the Iterations tab; `article-slides`' URL checks accept `&rv=`; `article-delete` opens **More** before **Delete article**; `media-draft`/`media-surfaces` use the builder; `projects.spec`'s nested-folder gotos use `urls.projectHref`. No `data-testid` renamed; `[data-article-meta] [data-status]` kept (now in the head). **Screenshots** (job scratch `p4a2-shots/final/`): `/articles/msurf` (an article with two iterations, a current report made from i1, and two video projects) on Overview, Article, Iterations and Cut at 1366×768 and 1440×900, dark and light, plus `/sites/priv/polemic-alpha` (a site's report with a slug-linked video) and `/articles/zeta`. Against the canvas's Piece · Overview: the head (title in Archivo, the chip and ⋯ on the right, the stepper with the current stage Signal-ringed), the nine tabs with Meter counts and the Signal underline, the Next card with its Signal edge and one filled action, the two columns (iterations table and question | the article's sections, Cut · i<n>). Differences: the trail sits above the title where the canvas has "Article · articles registry"; the policy chip sits in the stepper's row (the canvas puts the policy on Create); the Overview adds the video's decisions under the iterations. **Keyboard-only** (production build of `84b16df2`, both themes, `/articles/zeta`): the rail's 11 stops, the trail (and the meta line's home link, the same "articles" twice — dropped in `5d2872fb`), **Lifecycle: Active**, **More**, the policy chip, the nine tabs, the Next card's action, the Overview's links — each with the 2 px Signal ring; `2`, `3`, `4`, `1` open Article, Iterations, Cut, Overview; `n` runs the Next card's action. **Found and left.** - **Work's stage and the stepper can disagree** for an article in the making that already has a video: Work's bucket (P2a's rule) says Research, the stepper (this brief's rule) lights Article with Video done. Left: Work's facet is P2a's contract; worth one rule when P6 audits. - **Decision and activity hrefs still name `/projects/<id>`** for a claimed project's calls; they ride the 307 (one hop), which keeps the MCP's `note=<id>`-last contract on the project's href. Building them as article hrefs would mean the decisions engine knowing the piece's Cut; not needed. - **`generationPolicyHref()` still names `/articles/new`** (the rail's Settings page and ⌘K use it); the chip uses the new `generationSettingsHref()`. P5 points both at `/settings/generation` when its page lands. - **The reader's first click can land before hydration** in dev mode (`article-slides`' "a section's open notes" failed once in three dev runs, `note on Later` clicked before its handler); the start-mode suite passed it every time. Not new to this slice. - **`ReportProject`'s "a video of <article>"** in the head is now reached only by a project the redirect cannot find an article for at render time (a graph built a moment before); kept rather than removed. **Follow-up (review, 2026-10-14).** Decisions 1, 4, 5 and 6 accepted. Four changes: - **`ux/integration` `8675bc57` merged** at `c6f5ec05`: P5 LIVE (`/create`, `/?from=` → `/create`, `/articles/new` → `/create?make=article`, `/settings/generation` with the PolicyPanel, `/settings/system`). Conflicts: this plan (P5's record, then this one; one status row per phase) and `hrefs.test.mjs` (Create's `newArticleHref` beside the article piece's assertions). - **One policy link.** `generationSettingsHref()` is folded into P5's `generationPolicyHref()` (`/settings/generation`): the article piece's chip and `piece.spec` use it, as the rail's Settings page, ⌘K and Create already did. No policy link names `/articles/new` (the dead `/articles` list's "new article" literal is not the policy and rides P5's redirect). - **One stage rule** (decision 3 reversed). `pieceSteps({kind, reached, lifecycle})` (`lib/pieces/tabs.mjs`) replaces `stepsOf`/`articleSteps`, and `stageOfPiece` is its current step. The pieces graph records each piece's `reached` — Research (iterations, or a board's hand-off), Article (a report), Video (a claimed project, one not reachable here, or the report's own video; a project piece is its video), Deliver (looks done) — and an article's `stage`, Work's `stageOf` and both piece frames read it. The current step is the **furthest stage reached**, as the canvas has it (a built cut not yet delivered is at Video); the brief's parentheses read as where each stage is reached, not as "first missing", which had put an article with a video in progress at Deliver. A skipped stage before the current one is to do with its reason ("no report yet"). The graph's memo signature now includes the research cases (one stat each), so a hand-off shows at once. Unit-tested: a standalone video (Video), a board's video (Video, Research done), an article in the making with a video (Video, Article to do) and a published article with its video (Deliver) give the same stage from the stepper and from Work's facet. On the fixture, Work (`life=all`) lists 48 pieces: research 1, article 4, video 41, deliver 2 — none vanishes; the Inbox does not read the stage. `zeta` is at Video (`article-iterations`, `inbox-engine`, `piece.spec` follow). - **The reader's buttons wait for hydration.** A section's **+ note**, a citation and **+ whole article** were live in the server HTML and a click before hydration was lost (`article-slides`' dev-mode red, the class of the editor toggle `ff3baf6b`): disabled until `useHydrated()`. Probed four cold loads in dev: disabled before hydration, the composer opens on every click. | sha | what | |---|---| | `c6f5ec05` | merge `ux/integration` `8675bc57` (P5); one policy href | | `a62bd368` | one stage rule: `pieceSteps`/`stageOfPiece`, the graph's `reached`, Work's facet and both frames on it, the unit tests, the specs | | `d6328e46` | the reader's note and citation buttons disabled until hydrated | | `e6b0be39` | `piece.spec`: a board's article in the making is at Research | Gates at `d6328e46`: repo-wide tsc clean; umtool unit 846 tests, 844 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 16/16; test:scripts 997, 995 pass, 2 skipped, 0 fail; capped build exit 0 (12.3 s compile, 57 s wall, 1.52 GB); full umtool e2e at `d6328e46` 430 tests: 423 passed, 1 failed, 6 skipped, 9.8 min — `piece.spec`'s board article asserted Research done under the old rule (in the making, its sweep running: Research is the furthest reached, so current); fixed in `e6b0be39`, then `piece`/`work`/`article-iterations`/`inbox-engine` 25/25; **full umtool e2e at `e6b0be39` 430 tests: 424 passed, 0 failed, 6 skipped** (the song-data skips), 8.6 min. **Follow-up 2 (2026-10-14).** `ux/integration` `6362cf40` (R3: the run pages, `lib/research/runs*`, AppHeader's `clamp`, queued board moves, the Running list's run link, the trace in common) merged at `f3f27f78`; one conflict, this plan (R3's record, then this one; R3 LIVE, P4a-2 shipped on the branch). The Iterations tab wires R3's run page: a row whose kind has one (`hasRunPage`, the sweeps) carries **Run** → `runHref(article, n)`, a quiet link beside the row's actions (`data-run-link`); the primary stays **Use this iteration**. `article-iterations` asserts it on `zeta` (i1 and i4, the sweeps, link `/research/runs/zeta/1` and `/4`; the revisions i2 and i3 have none). | sha | what | |---|---| | `f3f27f78` | merge `ux/integration` `6362cf40` (R3) | | `243d2494` | the Iterations row's **Run** link and its assertion | Gates at `243d2494`: repo-wide tsc clean; umtool unit 846 tests, 844 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 24/24; test:scripts 997, 995 pass, 2 skipped, 0 fail; capped build exit 0 (11.1 s compile, 39 s wall, 1.47 GB); **full umtool e2e 437 tests: 431 passed, 0 failed, 6 skipped** (the song-data skips), 9.7 min. ### R3 rollout (orchestrator, 2026-10-14) Rulings: a scope sweep under a Claude Code policy runs the API agent, said in the plan; the run page's title is the question (two-line clamp), `<article> · i<n>` in the trail; board moves queue, never drop; the Running list links a sweep's run page (follow-up `0f4d05a0`); the Iterations tab's run link is P4a-2's (it lands second). Gates on `6362cf40`: common 4104/4104 (primary), mcp 364/364, editor unit 297/297, capped editor + umtool builds, umtool unit and test:scripts green, full umtool e2e 427 passed, 0 failed, 6 skipped; full editor e2e 693 passed, 1 failed, 12 skipped (20.3 min). The red, `site-scope.spec` (`:362` in the suite, `:424` in one of three runs alone; the other two 13/13), is a known intermittent — it failed 1 of 13 on r23, r24 and r26 (×2) integration — and R3 changes no editor app code (its editor reach is common's sweep tasks: `report-draft.spec` + `ops-api.spec` 17/17). **Owed, outside this epic: the `site-scope.spec` intermittent** (the picker's history entry: a Back landed on `about:blank`). Shipped after a ping to the r28 session: editor built (53 s) and restarted (`scripts/r3-editor-{build,restart}.sh`: 200, `PATH` and `UV_THREADPOOL_SIZE=16` ok, no ZodError, 0 queued before and after), umtool built (77 s) and restarted. Live: `/research/runs`, `/research/runs/piratesoftware-ai-friends/1` (the real turns.jsonl fallback, the question as title), `/research`, `/work`, `/` 200; editor 200. ### P4a-2 rollout (orchestrator, 2026-10-14) Rulings: Overview is every article's default tab; ONE policy href (`generationPolicyHref()` → `/settings/generation`); ONE stage rule for the stepper and Work's facet (`pieceSteps`/`stageOfPiece`; the furthest stage reached is current); the reader's note and citation buttons wait for hydration; the Iterations tab links a sweep's run page (R3's `runHref`). Gates on `243d2494` (R3 merged): full umtool e2e 431 passed, 0 failed, 6 skipped (9.7 min); test:scripts 995 pass, 0 fail; capped build ok. `main` (R3's records merged, plan-only conflict resolved) fast-forwarded to `d84cf4d7`; umtool built (41 s) and restarted (`scripts/p4a2-umtool.sh`). Live: `/articles/piratesoftware-ai-friends` and its `?tab=iterations|cut|media` 200; the claimed project `/projects/articles/piratesoftware-ai-friends/i1?tab=cut` 307 → the article's Cut tab; its clip bench stays 200 at the project URL; the Iterations tab links `/research/runs/piratesoftware-ai-friends/1`; decisions API 828 rows, notes' hrefs intact. ### P4a-3, as shipped **What.** A song's page (`/projects/<song>`) is a piece page: the P4a frame around one of five tabs, Overview · Cuts · Spec · Cover · Notes, with the stepper **Spec → Cuts → Done**. A cut's page (`/projects/<song>/<cut>`) keeps its address and is drawn inside the song with Cuts current. The song deck and the `/tools/song/<mode>` piles stay in Tools; the Overview links them. - **The frame** (`components/projects/song/SongFrame.tsx`) hands P4a-1's kind-blind `PieceFrame` the trail (`projects / <project id>`, the title as the `<h1>`), the five tabs with their `?tab=` addresses (`projectHref(project.id, { tab })`), the counts in Meter (Cuts: cuts built; Cover: covers on offer; Notes: notes written), the status line (`4/4 cuts · 3 variants`, the old header's) and **⋯** (the project id; a song had no Delete before and has none now). The lifecycle chip, the Undo bar, `1`–`5` and `n` come with the frame unchanged. - **One stage rule, a song's flow** (`lib/pieces/song-tabs.mjs`, pure, unit-tested). The song kind declares its stepper in the registry (`lib/projects/kinds.mjs` `piece: { flow: SONG_FLOW, reached: songReached }`, `kindPieceFlow`); the pieces graph copies the flow onto the piece (`Piece.flow`: `article`, `project`, or a kind's) with the facts that light it (`Reached` gains `spec`, `cuts`, `done`). **`pieceSteps` and `stageOfPiece` switch on it** (`lib/pieces/tabs.mjs`, an additive kind switch: `songSteps`, `bucketOfSongStep(songStepOf)`), and `stepOfPiece` is the frame's `data-piece-stage` (a song's `spec` / `cuts` / `done`; the four-stage pieces' unchanged). The rule is the one rule: the furthest stage reached is current, a skipped one is to do with its reason ("no spec.json"), a piece marked done has done them all. Spec is reached with a `spec.json`, Cuts with one cut built, Done with all four (the derived `shipped`, which is also P2a's looks-done suggestion: Done is current, Signal-ringed, until the operator marks it done). - **Work agrees.** `stageOf` reads the piece's flow: a song's bucket is the one its current step stands for — **Spec → article, Cuts → video, Done → deliver** (the spec is a song's written stage, as an article is a report video's) — and `stageBar` (`lib/work/facets.mjs`) draws a song's own three steps on its row with the step's word (`cuts`, `done`) where a project's state used to be. The four-stage rows are unchanged. Unit-tested: for every combination of facts the stepper's current step, `stepOfPiece`, `stageOf`'s bucket, `stageOfPiece` and the bar agree. - **The page reads its own facts fresh**: `readPieceFrame(project, { reached })` takes the song's facts from the `readSong` the page did anyway (one stat for `spec.json`), over the graph's 15 s memo, so a promote shows at once; a song the graph has not listed yet still walks the song's stepper (`kindPieceFlow`). - **The Next card** is P4a-1's, kind-blind: the song's top Inbox card (an unnamed plan, an unjudged variant, a missing cut, a stale recipe … or **Mark done** when looking done is all that is left). - **A song's calls open their tab** (`lib/decisions.ts`, by `songTabOfSection`): `spec-problem` and `no-plan` → Spec, `unattributed` → Cuts, `thumb-unaccepted` → Cover (`/projects/<song>?tab=…`); a cut's calls (`missing-cut`, `unjudged-variant` with its `?v=`, `stale-recipe`, `no-recipe`, `loudness`) keep the cut page's href. - **Addresses.** No `tab` is the Overview; a bad `tab` is the Overview; `?note=<target>` opens the tab that note is written on (a song's notes are keyed by target, `lib/notes.ts`): `song` → Notes; `cut:`, `file:`, `moment:`, `source:`, `clip:` → Cuts; `plan:` → Spec; `thumb:` → Cover. `/browse/<song>` rides P3's redirect to the Overview, `/browse/<song>/<cut>` to the cut's page. The cut page's own keys (`?v=`, `?plan=`, `?notes=all`) are unchanged. **Section → tab** (SongProject's two columns and head row, CutPage's body; `SONG_SECTION_TAB` names each for `e2e/urls.ts` `songSection(song, name)`): | Section (its attribute) | Tab | |---|---| | Header: crumbs `songs / <id>`, note `N/4 cuts · N variants` | head (trail `projects / <id>`, the title, the same status line) | | Head row: the song's note (`NoteField target="song"`) | Notes | | Head row: **copy this song** (`CopyButton`, `/api/browse/context?song=`) | Overview (`data-song-copy`) | | Left: the four cut cards (`data-cut`, `data-present`, `data-variant`, `data-variant-tag`, `VerdictChip`, the slot's and the file's notes) | Cuts | | Left: matches no cut name (`data-unattributed`, new attribute) | Cuts | | Aside: `ThumbBench` (`data-judge-faces` …) | Cover (says "No cover generated" when the bench would draw nothing) | | Aside: `SpecSheet` (`data-op` …) | Spec | | Aside: README | Overview (`data-readme`) | | Aside: plans, their notes, clips.csv (`data-song-plans`, new) | Spec | | CutPage: `CutBench`, `LoudnessTable`, `ProvenancePanel` | Cuts (the cut's page, a view of it; `bare`, unpadded as before) | | CutPage: crumbs `songs / <id> / <cut>`, note duration · bytes | head: trail with the id linking the song, the four cuts beside the title (`data-song-cut-picker`), the same note | | new: the Next card, the song's decisions (P4a-1's `ProjectDecisions`), the four cut slots (`data-song-slot`), This song (cuts, variants, verdicts, plans, cover, looks done — `data-song-looks-done`), Song tools (`data-song-pile`, `data-song-trim`, song piles, find, mix, sources) | Overview | | new: every other note on the song, each linking its tab (`data-song-notes`, `data-song-note-target`) | Notes | The sections live in `components/projects/song/{SongFrame,OverviewTab,CutsTab,SpecTab,CoverTab,NotesTab}.tsx`; `SongProject.tsx` reads the song once, picks the tab and renders the frame; `CutPage.tsx` keeps its body and draws it through `SongFrame`. `ProjectView`'s song case hands both the project (it handed the basename). Only the tab on show is read: the Cuts tab's ffprobes and the spec's validation cost nothing on the Overview. A cut card's name is an ink link (it wore Signal on hover). `[data-nav-group=song]` and every `data-testid` are untouched. **Shared files, additive only.** `lib/pieces/tabs.mjs`: the import, the kind switch in `pieceSteps` and `stageOfPiece`, the new `stepOfPiece`. `PieceFrame`: no change. `lib/pieces/frame.ts`: `readPieceFrame`'s optional `reached`, the flow from the piece or the registry, `stepOfPiece` for `stage`. `lib/pieces.ts`: `Piece.flow`, `Reached`, a project piece's declared facts. `lib/work.ts`/`lib/work/facets.mjs`/`app/work/page.tsx`: the flow, `stageBar`, the row's `steps`. `lib/projects/kinds.mjs`: the song's `piece`, `kindPieceFlow`; `lib/projects/song.mjs`: `songReached`. `lib/decisions.ts`: the song-wide hrefs' tab. `e2e/urls.ts`: `songSection`. | sha | what | |---|---| | `aa8739d9` | the song piece: `lib/pieces/song-tabs.mjs` (+ unit tests), the flow switch in `pieceSteps`/`stageOfPiece`, `stepOfPiece`, the registry's `piece` and `songReached`, `Piece.flow`/`Reached`, `readPieceFrame`'s fresh facts, Work's `stageBar`, `components/projects/song/*`, `SongProject`/`CutPage` through `SongFrame`, the song-wide hrefs' tab | | `56a1fe72` | specs: `browse`/`faces`/`projects` through `urls.songSection`, `e2e/song-piece.spec.ts` (9); a cut card's name an ink link | **Gates** (at `56a1fe72`). | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at both commits (umtool typecheck clean) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 850 tests, 848 pass, 2 skipped, 0 fail (new: `song-tabs.test.mjs` 4 — the tabs and sections, the address → tab rules and `?note=<target>`, the stepper by what exists, the stepper against Work's facet and bar) | | `pnpm --filter umtool test` | 24/24 | | `pnpm run test:scripts` (reads the capped build's traces) | 1001 tests, 999 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, compiled 12.4 s, 39 s wall, 1.48 GB max RSS; the link removed | | song specs, dev mode (`E2E_MODE=dev`, the song specs' filter) | 102 tests: 96 passed, 1 failed, 5 skipped, 6.4 min; `song-piece.spec` 9/9. Red: `projects.spec:219` (the tool pages under `/browse`: a dev-mode `ERR_ABORTED` on first compile; green in both start-mode runs) | | full umtool e2e, run 1 (`56a1fe72`) | 446 tests: 437 passed, 3 failed, 6 skipped. Reds: `board.spec:102` (`e` did not focus the claim field) and the two after it that build on its sections (`:164`, `:186`) — the run started after 12 minutes waiting at the heavy slot for memory (a sibling dev server at 3.8 GB, 2.2–3.4 GB available); `board.spec` + `song-piece.spec` alone: 16/16 | | full umtool e2e, run 2 (`56a1fe72`) | **446 tests: 440 passed, 0 failed, 6 skipped** (the song-data capability skips), 10.9 min; `song-piece.spec` 9/9 | **Spec churn:** `browse.spec` (6 gotos through `urls.songSection`: the cut cards, verdicts and a hole on Cuts, the trim operation on Spec), `faces.spec` (the bench on Cover), `projects.spec` ("the song URLs that already existed": `/browse/alpha` is the Overview with the cut slots, the Cuts tab has the cards, `/browse/alpha/wide` is the cut's page with Cuts current, the canonical path is the Overview). No `data-testid` renamed. New `e2e/song-piece.spec.ts` (9): the frame (title, trail, status line, stepper at Done, five tabs, the Overview alone); a song with a hole at Cuts and Work's row (bucket, word, looks done) agreeing with both steppers; the Next card = the Inbox's top card for the song; a song's calls' hrefs; the tab as the URL (`?tab=`, a bad tab, `?note=song|plan:|cut:`, `/browse/alpha`); the cut's page (frame, picker, the loudness table, the trail back, a hop to `wide-short`); the keys (`2`, `5`, `1`, `n`); marked done (all done, the suggestion gone, the Next card's Reactivate); 1366×768 with no horizontal scroll on four addresses. **Screenshots** (job scratch `p4a3-shots/final/`, 17): `alpha` (all four cuts, at Done) on Overview, Cuts and Spec at 1366×768 and 1440×900, dark and light; and, dark at 1366×768, the cut page `alpha/wide`, Cover, Notes, `beta`'s Overview (at Cuts, two holes) and Work filtered to songs — on the e2e start build over the fixture. Against the canvas's Piece · Overview, in a song's words: the head (title in Archivo, the chip and ⋯ on the right, the status line), the three-step stepper with Done Signal-ringed, the five tabs with Meter counts and the Signal underline, the Next card with its Signal edge and one filled action ("Name the plan" → Spec), the two columns (decisions and the four cut slots | This song and the song tools), the README under them. Work's row for Mortal Kombat in the canvas reads step 2 "Cuts"; a song's row now reads its own three bars with `cuts` lit second, as drawn there. **Found and left.** - **On the real reports** (a read-only listing): all five songs have a `spec.json`; `mario-rpg`, `metal-slug`, `mortal-kombat` and `yoshi` have three of the four cuts and stand at Cuts, `pokemon` has all four and stands at Done with P2a's looks-done suggestion. The fixture's alpha has no `spec.json` until browse.spec writes one, so its Spec reads to do ("no spec.json") on a fresh fixture. - **Spec → article** in Work's stage facet is a ruling to confirm: a song with a spec and no cut is filed under Article (the written stage). The alternatives were Video (a song is a video piece) or Research; Article keeps the three steps on three different buckets, so a song moves along the facet as it moves along its stepper. - **`urls.songSection`, not `urls.section`**: a song's section names overlap the report's (`notes`, `readme`, `decisions`, `next`) on different tabs, so the song has its own table and builder rather than a fall-through. - The song bench's own controls (CutBench, ProvenancePanel, LoudnessTable, SpecSheet, ThumbBench, NoteField, VerdictChip) keep P1's Signal-outline `primary` buttons and their Signal states; only the cut card's name link changed. They live outside `components/projects/` and were moved, not restyled. ### P4a-3 rollout (orchestrator, 2026-10-14) Rulings: a song with a spec and no cut sits under Article in Work's stage facet; specs use `urls.songSection`; Work draws a song's three bars, as its stepper does (one stage rule over the canvas mock's four); the song benches' Signal-outline buttons stay until P6's audit. Gates on `56a1fe72` (the merge of `main` brought plan text only): full umtool e2e 440 passed, 0 failed, 6 skipped (10.9 min); test:scripts 999 pass, 0 fail; capped build ok. `main` fast-forwarded to `3d69d6c6`; umtool built (171 s) and restarted (`scripts/p4a3-umtool.sh`). Live: the five songs under `/projects/quartering-uh-song/videos/`, pokemon at Done and mario-rpg at Cuts; pokemon's five tabs and four cut pages 200; `/browse/quartering-uh-song/videos/pokemon` 307 → the Overview; decisions API 828 rows, notes' hrefs end `note=<id>`. P6 audit: a cut card links `/projects/<song id>/<cut>` (the short id) while the song's page is the full path — both resolve; P6 picks one canonical address. The ochre `OPEN` chips on a song's decisions are a verdict colour on a state. ### P4b, as shipped **What.** The human-piloted walks are one bench shell, a report video's drafted fields are one Media surface, and every job umtool shows is one `JobProgress`. Built on P4a-2's piece frame (`ux/p4a2` `d84cf4d7`); no URL moved. - **The bench shell** (`components/projects/bench/BenchShell.tsx`, no hooks, server- and client-safe): - `BenchFrame` (the viewport; below `lg` one scrolling column), `BenchTop` (canvas `.benchtop`, one row: the mark linking home, a Breadcrumb nav — "projects /" from `xl`, **← the piece** (`data-bench-back`, its Cut, Media or Overview through `pieceHrefOfProject`), the bench's place — the bench's kind (`data-bench-kind`), **N of M** (`data-bench-pos`), ‹ prev / next › (`data-bench-nav`, a bench's own attributes kept: the clip bench's `data-clip-nav`), the key legend (`data-bench-keys`) and the status `.micro`; it IS the head: `data-app-header="bench"`); `BenchBody` (the work column with the verdict bar at its foot, the reader on the right at `minmax(320px, 28%)`); `VerdictBar` (canvas `.verdictbar`: the question, the consequence in bold (`data-verdict-question`, `data-verdict-consequence`), the actions). - **Clip** (`ClipBench` keeps its internals; its return is re-laid onto the shell): the transcript pane is the reader (`ReaderPane`: the source, channel · date · transcript length, the cite thread, the same cue rows — click to play, dimmed to fetch, peek further — with the **cited cue lit** until something plays, **Copy citation** in the house format, **Play clip**, the window file as fine print). The verdict bar asks ONE question: a clip that ends mid-sentence (and is not locked) asks "Extend c04 to the end of the sentence?" with what it would do ("It would end at 0:09.00 (+3.0 s), covering all of s02." — a sibling inside the extension is *covered*, one across its end *overlapped*, past the cache "past what is fetched"), **Extend to m:ss** (saves the window) or **Fetch to m:ss**, and **Keep the cut here** (lockEnd); otherwise "Is c04 what the report says it is?" with what a confirmation does. **Yes, confirmed** / **No, note what is wrong** (`y`/`x`) are always there; the filled one is the question's first action. The position and prev/next moved to the top bar; the picture column scrolls on its own before the picture drops under 200 px; the answer column is 20–23 rem. - **Claim**: the ±90 s context is the reader (cues as a lit list, `j`/`k` from anywhere, the cue the cite starts in lit, a light seeks the player), **Save ruling** is the verdict bar's action with what is missing ("it stays blocking") or that every field is set; "as recorded" stays under the player. - **Narration**: the verdict bar asks about the card in hand (focused, else the first not approved): **Approve** (`a`) its words as saved, **Reject with a note** (`r`, the cursor to its note); `j`/`k` move between cards (the card in hand wears the Signal edge). - **Takes**: about the take being listened to — "Is <take> the take for <group>?" — **Like / Maybe / No** (`l`, `m`, `x`), `n`/`p` move the listening; "0 of 4 judged, 4 to go". - **Review**: below. - **`ReaderPane`, additive** (P1's primitive): `bodyProps` (a handle and a ref on the scrolling body), `bare` (children without the reader-text column), `onLight`, `global` (j/k from anywhere), a cue's `attrs`. - **The Media tab** (`components/projects/MediaDrafts.tsx`; `report/MediaTab.tsx` reads; canvas "Piece · Media"): - every field `draftsView()` lists — the drafted ones and a narration written by hand — as ONE lit list grouped by its section (the address's task: cut, on-screen, teaser, flips, threads, narration, YouTube), each line `data-draft-row` with its words, its **provenance** (`lib/report/draft-provenance.mjs`, unit-tested: the draft file, when, by what model, "attempt 2 of 2 chosen", each refused attempt's `hard` rules in the reject colour, soft flags, "repaired" when narrate's repair made the value, its review state), **Approve draft** / **Reject** with the note (`data-draft-action`, toggling as r28's did), the alternatives with **Use this**; a field that is the operator's with a draft kept aside is its own line; - release 25's `narration-draft.json` (units at the top level, keyed by card id, no model) is read as well as release 28's `units[].target`; two files claiming one field: the one the mark's task wrote; - each section is headed by what it writes, what it holds and its **Draft with <model>** (`DraftPanel.tsx`'s `DraftControl`: the button, the model, force, the entries, the job on `EditorJobProgress`, the last run) — only on a project made from a done iteration; otherwise the line why, and only the narration's head (its bench link); - above: the counts (Meter), "drafts are steps on <article> i<n>", **Review drafts — N** (the bench), the Draft everything model and **Draft everything** (opens the draft-all chain panel and starts it), **Approve all N**, the final gate's line (`data-drafts-gate`), section chips (`data-media-chip`) that narrow the list; - keys: `j`/`k` light a field, `a` approves it, `r` rejects it (the cursor to its note first) — from the list or the page, never from another control on the tab. Signal: the lit field's **Approve draft** only; - then **OnscreenSection, whole** (moved from Build; `SECTION_TAB.onscreen` is `media`) and `YoutubeSection`. - **The review bench** (`ReviewPage.tsx` → `MediaReview`): the same field list in the shell, one field at a time — the verdict bar asks about the lit field ("Approve the drafted on-screen text of m01? A final build refuses it until it is approved."; the field's Approve draft is an outline there, the bar's is the filled one), the reader shows the clip it is drawn over (its cues ±20 s, the cite's cue lit, Copy citation) or says it has no source window. `DraftsReview.tsx` is gone; `/browse/<p>/review` (r28's hard-coded link) rides P3's redirect to it. - **The Iterations tab's media drafts** (Narrate, the task select, Draft, Draft everything) are a **Media drafts →** link (`data-media-link`) to the iteration's video's Media tab (`IterationRow.projectId`, new: the project dir under `REPORTS_ROOT`); its job view is `EditorJobProgress`. - **One `JobProgress`** (`components/ui/job-progress.tsx`): the state in words, the current step, the Meter bar (only with a fraction), the spend in Meter, the step list (✓ ▸ ✕ –, each step's own data attributes kept: `data-chain-step`/`data-step-status`, the build's `data-step`/`data-step-state`), children, the log, **Cancel** where the job allows it; `useEditorJob` + `EditorJobProgress` follow an editor job every 2 s (queue words and progress from `lib/running.mjs`, spend from the log's `~$`). Used by the chain panel (Make the video, Draft everything: "running: 6/15 draft the cut…", "5/15 steps"), the build chain, the Media tab's drafts, the Iterations tab's jobs; the rail's Running row uses its two small parts (`components/shell/JobProgress.tsx` re-exports them). - **Signal-outline (`primary`) buttons** in the benches, the on-screen panel, the badges and the takes are outlines (a pressed toggle wears the panel ground); the filled action per screen is the verdict bar's or the lit field's. | sha | what | |---|---| | `71e1eeb4` | `components/ui/job-progress.tsx`; ChainPanel, ReportBuildChain and the Iterations tab's job view on it; the rail's parts re-exported | | `4d5a49bb` | the bench shell; clip, claim, narration, takes on it; ReaderPane's additive props; `lib/report/draft-provenance.mjs` + test | | `456f987d` | the Media tab (`MediaDrafts`), `DraftControl`, the review bench, on-screen moved to Media, the Iterations tab's link, `IterationRow.projectId`, `SECTION_TAB.onscreen` | | `1eb35db7` | `e2e/bench-shell.spec.ts`, piece.spec's Media test, media-surfaces / article-iterations onto the Media tab, `fixtures/bench-shell-fixture.mjs`; primary → outline | | `1d55a5a4` | the chain's progress over all its steps; the bench specs through the href builders | | `3e988fd7` | the Media tab's `a`/`r` from the list only | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean (umtool typecheck clean at every commit) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 849 tests, 847 pass, 2 skipped, 0 fail (new: `draft-provenance.test.mjs` 3; `tabs.test.mjs` onscreen → media) | | `pnpm --filter umtool test` | 24/24 | | `pnpm run test:scripts` (reads the capped build's traces) | 1000 tests, 998 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`) | exit 0, compiled 15.9 s, 54 s wall, 1.46 GB max RSS; the link removed | | full umtool e2e (`3e988fd7`, one run) | **443 tests: 437 passed, 0 failed, 6 skipped** (the song-data capability skips), 8.7 min | **Spec churn.** New `e2e/bench-shell.spec.ts` (5): the clip bench at 1366×768 (the top bar — home, the piece's Cut, "Clip bench", "1 of 2", no prev, next s02, the keys —, no rail; the extension question and its exact consequence, **Extend to 0:09.00** the filled action, Yes as an outline, Keep the cut here; the reader's lit cited cue, Copy citation, "cites 0:03"; the correction box on screen; no page scroll either way); `n`/`p` and the walk's question on s02; the claim bench (reader, cited cue lit, `j` from the page, Save ruling); the review bench (three fields, the question and consequence on m01, its provenance, `j` → m02, `a` approves it, `j` → the narration with "no source window", `r` to its note); narration and takes in the shell. `piece.spec` +1 (15): the Media tab on `media-tab-fixture` (Media 2, three rows, provenance words for m01 and the release-25 narration, one filled Approve, the narration chip, approve one, **Approve all 2**, the gate passes, on-screen here and not on Build). `media-surfaces`: the region "Media drafts", the cut's field line (provenance, approve), YouTube's alternative in its section, Draft everything from i2's Media tab (reached by the Iterations tab's link). `article-iterations`: narrate from the Media tab's narration section, the step then done on the Iterations tab. `claim-bench`, `clip-bench`, `draft-review`, `onscreen`, `takes` open their pages through `urls.*Href`. New fixtures (`fixtures/bench-shell-fixture.mjs`): `bench-shell-fixture` (read-only), `media-tab-fixture`, `media-review-fixture`. No `data-testid` renamed; `data-draft-badge` stays the in-place badge's (OnscreenSection, StructureEditors), the list's lines are `data-draft-row`. **Screenshots** (job scratch `p4b-shots/final/`, dev server on the e2e fixture): the clip bench (s01), the claim bench (k01), the Media tab with drafts (media-tab-fixture), the review bench, the narration bench — 1366×768 and 1440×900, dark and light — and `JobProgress` mid-run: a section's Draft with queued on the editor's lane (both sizes, both themes) and Draft everything at step 6 of 15 (light, 1440×900). Against the canvas: the bench's one-row top bar, the verdict bar's question + bold consequence + filled first action, the reader on the right with the lit cue and the cite thread; the Media list's `170px | words + provenance | actions` lines with the Signal edge on the lit field, the chips, Draft everything / Approve all at the top right. Differences: the clip bench keeps its answer column (attribution, on-screen, notes) between the work and the reader, and its player is the cached window's `<video>` rather than the canvas's timeline strip; the Media tab's chips filter rather than switch, and Thumbnail (a canvas chip) is not a drafted field. **Keyboard-only** (dev, 1366×768): the top bar's stops (home, projects, ← the piece, next) then the work, each with the 2 px Signal ring; the review list's lit line takes its dashed mark, its Approve draft, Reject and note the ring; `j`/`k` move the verdict bar's field; `--glide` is 0 s under reduced motion. **Found and left.** - **Merge c04 + c05 and Park** (the canvas's other two clip-bench actions) are not built: merging two timeline entries and parking one clip are new writes; the bar states the overlap instead ("covering all of c05"), and **Extend** saves the longer window without dropping the covered clip. - The clip bench's own key hint paragraph under the waveform stays (its internals); the top bar's legend is the short form. - Narration and takes have no reader: neither has a cited source window (a card narrates the report, a take is our render). - The Media tab's count in the tab bar is the drafted fields (P4a-1's); the list also holds narrations written by hand, so "Media 2" can sit over three lines. - `IterationsTab`'s **Use this iteration** and **New iteration**'s submit are still P1's `primary` (not the media drafts part of that file). - Draft everything's spend is what the chain's log says (`~$`); a chain's ledger total is the Running row's. **Follow-up (review, 2026-10-14).** Rulings: the review bench keeps every field on the page and asks about the lit one (the lit-line model); **Extend to …** saves at once (the button names its result; `y` still records the verdict), and **Reset undoes it**. Changes: - **One number for "awaiting review"** (`lib/inbox/drafts.mjs` `awaitingReview`): a field a model drafted — its `drafted` mark, or a task's draft file records it (release 25's `narration-draft.json` carries no mark) — whose verdict is not given on its current value (`unreviewed`, `edited`). The Inbox's `drafts-unreviewed` card (`lib/inbox.ts` now reads the draft files' provenance), the piece's **Media** tab count (`reportCounts` is async: `awaitingReviewOf(dir, manifest)`), the Media header's "to review", **Approve all N** and the review bench's status all read it. A narration written by hand is still listed and can be judged, but nothing waits on it. On the fixture: `media-tab-fixture` reads Media 3 · "3 fields · 0 approved · 3 to review" · Approve all 3 · three `drafts-unreviewed` rows. The final gate's line ("refuses 2 fields") stays the build's own rule (drafted marks only). Live, read only: one project waits — `articles/piratesoftware-ai-friends/i1`'s five release-25 narrations, now an Inbox Review card (the canvas's "Review the narration draft"); before, 0. - **Reset undoes a saved Extend**: the clip bench keeps the window an Extend replaced; Reset (the button, `R`) with nothing unsaved writes it back and says so; a window saved by hand forgets it. - **Cite thread labels** (`components/ui/cite-thread.tsx` `ReaderThread`, `lib/cite-thread.mjs` pure + test): the cite's label is held clear of 0:00 and the length, measured in `ch` (the labels are mono): `clamp(<0:00>+1ch, pct − half, 100% − <end>+1ch+<cite>)`; an end still gives way near it (under 12 %, over 80 %). Was "0:000:03". - **The Media tab's unlinked line** is a status: "Not from an article iteration — Draft with is off here." (the why in its `title`); a running iteration: "<article> i<n> is running — Draft with waits for it to finish." | sha | what | |---|---| | `00b10cde` | `awaitingReview` everywhere; Reset undoes Extend (`bench-extend-fixture`, a test); `threadLabels`; the terse line; specs | | `298450f7` | this follow-up's record | | `3498801b` | merge `main` `c103181d` (P4a-3 LIVE); one conflict, this plan (P4a-2/P4a-3 rollout records, then this one; one status row per phase) | Gates at `3498801b` (the merged tip): repo-wide tsc clean; umtool unit 854 tests, 852 pass, 2 skipped, 0 fail (new: `cite-thread.test.mjs` 1, `drafts.test.mjs` +3 assertions); `pnpm --filter umtool test` 24/24; test:scripts 1005, 1003 pass, 2 skipped, 0 fail; capped build exit 0 (14.2 s compile, 61 s wall, 1.53 GB); **full umtool e2e 453 tests: 447 passed, 0 failed, 6 skipped** (the song-data skips), 11.3 min (`bench-shell.spec` 6 with the Extend-and-Reset test; `piece.spec`'s Media test asserts Media 3, "3 to review" and three `drafts-unreviewed` rows, then none and no count). Re-shot (job scratch `p4b-shots/review/`, dev server at `00b10cde`): `clip-dark-1366x768` (the thread reads "0:00 0:03 … 0:21"), `review-dark-1366x768`, `media-light-1440x900` (Media 3 · 3 to review · Approve all 3). ### P4b rollout (orchestrator, 2026-10-14) Rulings: the review bench keeps every field on the page and asks about the lit one; ONE "awaiting review" count (`awaitingReview`, `lib/inbox/drafts.mjs`) for the Inbox card, the Media tab count, the header, Approve all and the review bench; **Extend to …** saves at once (the button names its result) and Reset undoes it. Review fixes: the cite thread's labels kept clear of its ends (`lib/cite-thread.mjs`), the unlinked-project line made a status line. Gates on `3498801b` (main `c103181d` merged): full umtool e2e 447 passed, 0 failed, 6 skipped (11.3 min); test:scripts 1003 pass, 0 fail; capped build ok. `main` fast-forwarded to `e66dd702`; umtool built (450 s, waiting on the heavy slot for memory) and restarted (`scripts/p4b-umtool.sh`). Live: `/articles/piratesoftware-ai-friends` Overview, Media ("5 to review", Approve all 5 — release 25's five drafted narrations, newly counted), Build and Iterations 200; its project's review and narration benches and clip benches c01/c03 200 with the bench head; `/drafts` 307; decisions API 833 rows (the five `drafts-unreviewed` rows are new), notes' hrefs end `note=<id>`. P6 audit: "Draft with is off here" reads clipped — name the action whole. ### R4, as shipped **What.** Refresh: a report iteration that is "fetch what is new, check it, update" — cheap and deterministic until something changed. ONE editor job (`report-draft {"task": "refresh"}`) over a new `refresh` iteration whose parent is the iteration refreshed; umtool plans it, confirms it, shows what it found, and suggests it. - **The engine** (`common/lib/report/draft/refresh/`; the task beside the others, `runTask`'s `refresh`): - `types.ts` — `refresh.json` (`archilyzer-refresh` v1: the basis it searched again with, each fetch step, the build, the corpus, the delta, the update, warnings, the one-line summary, `status` running · no-change · updated · held-by-cap · failed · cancelled), `RefreshPlan`, `RefreshOutcome` (what iteration.json keeps as `refresh` and the log's marker carries), `deltaLine` ("1 new recording matches · 1 quote changed", "Nothing new since <date>"). - `basis.ts` `refreshBasis(article, n)` — what an iteration was built from: its own `refresh.json` (a refresh of a refresh: its queries and the match set it saw), else its trace's last run (`scope`, each `enumerate` with its ids and, new, `counts`), else its `turns.jsonl` (the agent's `enumerate_matches` calls with their arguments and, when an import kept them, their rows; the pipeline's terms), walking up the lineage for a revision; else its question as the one query (said). The report's quoted citations, and every cited recording counted as known. `knownComplete` false (a run whose answers were not kept, or the question) makes "new" mean "uploaded on or after the iteration's day". - `delta.ts` — `deltaCandidates({queries, scope}, corpus | enumerateFn, {known?, since?})`, the candidates on their own (R6's tier 0 and umtool's daily check call it): each distinct query once; new against `known` (or by upload date from `since`); changed = matched before and now with different matching lines; unmatched (a complete scan only). `recheckQuotes(cited, {recordOf, postTextOf})` — R2's word check at each cite on every track the record has (ok, moved, drifted with the words there now, missing), the platform state (deleted, private), `en` vs `en-orig`. `computeDelta` both; `deleted` counts sources (`channel/id`), `drifted` citations. - `fetch.ts` `fetchAndBuild(scope, hooks)` — stage 1 on its own: per video channel `sync`, then `refresh-report` and `transcribe-bucket` for ONLY the recordings that landed (the channel report's "downloaded, not transcribed" bucket after the sync against the one before — never a channel's backlog); per posts channel `fetch-posts`; a platform held or cooling down skipped with the editor's sentence; channels side by side (the platform queues pace them); then `publish {"verb": "build", "siteId", "force": false}` for the site whose build holds the channels (the parent's build first) — through the publish lock, never a deploy — every job waited for (polled; a step past `waitMs`, default 6 h, is left running and said). - `task.ts` `refresh` — `runOnIteration` (kind `refresh`, traced as task `refresh`): stage 1; the corpus opened after the build; stage 2 (`delta` in the trace) — nothing changed ends `no-change`, $0; stage 3 within the caps (`capRefusal(estimate)`: the job's cap, the daily cap, and "about $X more would pass the daily cap"; a refusal ends `held-by-cap` with the estimate) — the sweep restricted to the new and changed recordings over the parent's question and recorded queries (the API agent with its extractor, or the local pipeline; 70% of the cap), its findings then handed to `reviseReportBody` as feedback with the drifted quotes ("drop it; add it again with the words there now if the claim stands"), the sources gone, and those deleted from their platform; the revision's report is the iteration's. A sweep that finds nothing and no drift ends `no-change` (with what it read). The estimate is the parent's spend per recording read (else $0.08) × recordings + $0.30. The iteration ends `done` whatever the refresh's status; only a failed revision or a cancel fails it. `sweepAgentBody`, `sweepPipelineBody` and `reviseReportBody` are exported for it (additive). - The sweep's **`ids` restriction** (`tasks/restrict.ts`; a general sweep option — R6's escalation path): `report-draft {"task": "sweep", …, "ids"}` keeps the ids in the iteration's scope; the agent's `enumerate_matches` answers only their rows (and says so), `get_transcripts`/`extract_batch` drop other ids (none left refuses), `get_transcript`/`get_post`/`get_thread` refuse another id, `search_transcripts` is not offered, the preamble says so; the pipeline's worklist is those ids, each read even when its terms did not find it. - `lib/report/quoteWords.ts` — R2's check moved to common (`wordsOf`, `holdsWords`, `windowAround`, `checkWordsInWindow`, `enOrigDifference`); umtool's `verifyQuote` calls it, its API and answers unchanged. - `iterations.ts`: kind `refresh` (a parent, no feedback), `refresh.json` an iteration file (JSON), scope `ids`. `trace.ts`: `fetch`, `build`, `delta` events; `enumerate.counts`; `enumerateOf` answers each row (`rows`: channel, date, matches, title) and `countsOf`. Both sweeps record `counts`. - **The editor's side** (`common/controller/reportRefresh.ts`): `refreshTarget` (the iteration named, else current.json's report, else the newest done one with a report), `refreshModel` (the sweep route's model; a sweep routed to Claude Code runs the API model here, said), `planRefresh` (the dry run: each channel's actions or why skipped, the site, the corpus, model, cap, the day's spend, the estimate's rate), `enqueueRefresh` (the iteration, then one `report-draft` job on **`draft:refresh`** — a new queue, so a refresh waiting on fetches never holds `draft:api`; no daily-cap refusal at the ask, stage 3 asks), the job's hooks over the editor (its jobs, channel configs, `heldPlatformRefusal`/`platformCooldownRemainingMs`, channel snapshots, the builds, a disk reader of a cited recording's tracks and platform state — `diskRecordOf`, not publish's `readCitedRecord`: a controller may not import publish/), the usage rows (task `refresh`) and the marker. `reportDraft.ts`: task `refresh` (no route of its own), keys `ids`, `fetch`, `dryRun`, a refresh refused a question or a scope. - **R5's seam** (named for the coordinator): `fetchScope(scope, deps, {prefer?, signal?, log?, build?})` in `controller/reportRefresh.ts` — stage 1 for any `{channels, from?, to?}`, awaited, answering `{fetch, build, warnings}` (each step done, skipped with why, refused, failed or still running); and the refresh itself: `enqueueReportDraft({task: "refresh", article, iteration?}, deps)` (or `enqueueRefresh`) — its job's `done` ends with the iteration's `refresh.json` (`readRefreshFile(article, n, paths)`) whose `status` is `no-change`, `updated` or `held-by-cap`. Both need `deps.refreshEditor`, the editor's in-process door (`editor/app/api/ops/_researchEditor.ts` `refreshEditor`). - **The ops route** (`editor/app/api/ops/report-draft`): `task: "refresh"`; `dryRun: true` answers `{ok, plan}`. The in-process door (`refreshEditor`: sync, fetch-posts, refresh-report, transcribe-bucket, publish — build only; a deploy is refused) is `_researchEditor.ts`'s factored `inProcessEditor`. `pnpm ops report-draft --json '{"task":"refresh","article":"x"}' --wait` prints the marker. COMMANDS.md regenerated. - **umtool**: - `lib/articles/refresh.ts` — `planArticleRefresh`, `startArticleRefresh` (through `enqueueDraft`, `fetch` now one of its keys), `readRefreshes` (each refresh iteration with what its refresh.json kept). `GET/POST /api/articles/refresh` (`{article, iteration?, fetch?, confirm?}` → plan, or `{jobId, iteration, href}`). - `components/articles/RefreshDialog.tsx` — the plan then **Refresh**: Refreshes (i<n>, kind, made, the question), Searched again (the queries, the match set then, the quotes read again), Fetch (each channel's actions, or "skipped — <why>"), Build (the site, "locally, if anything changed — never deployed"), Update (model, extractor, "spends up to $X", the rate, today's spend); refusals and warnings; one dialog per page (`RefreshHost`), opened by the ⋯ menu's **Refresh…** (`RefreshMenuItem`), the Iterations tab's **Refresh…** (`RefreshButton`) or `?refresh=1` (the Next card's and the Inbox card's action); after **Refresh** "Refresh i<n> is running (job …)" and the page reads again. - `components/articles/RefreshSummary.tsx` (the Overview, under Iterations): "Refresh · i<n>" with its state (running, no change, updated, held by the cap, failed), the line, the new recordings, the quotes that changed and what they say now, the sources gone, the fetches and the build, the spend or the estimate; "Review in Iterations →" when it has a report; `RefreshWatch` reads the page again every 4 s while it runs. The Iterations tab: the refresh's line on its card (`IterationRow.refresh`, additive), and **Refresh…** in the tab's head (P4b had freed the tab). - `lib/inbox/refresh.ts` (add-only; two kinds): **refresh-available** (Review) — the daily check per active store article with a current report (parked, done and muted skipped): the newest done refresh of it, else the report itself, as the basis, `deltaCandidates` over the build it read when it is on this machine (the MCP's `SourceRegistry`), else Research's local corpus — the MCP engine's `enumerate`, no fetch, no model, at most 12 queries; kept a UTC day per article and iteration in `REPORTS_ROOT/.umtool/refresh-check.json` (one writer, temp + rename). The Inbox only reads it; a stale one is checked in the background, one at a time, in the app's server only (`NEXT_RUNTIME`; a CLI never waits on it), off with `UMTOOL_REFRESH_CHECK=0` (the e2e server). The card goes when a refresh made after the check exists or one is running. **refresh-held** (Your call) — the newest refresh of an article `held-by-cap`, until a later iteration runs. Both act **Refresh** → `?refresh=1`. `groups.mjs`/`what.mjs` gain the two kinds only. `POST /api/articles/refresh/check {article?, force?}` runs it now. - `umtool refresh <article> [--iteration N] [--no-fetch] [--yes] [--json]` and `umtool refresh --check [<article>] [--force]` (`bin/refresh.ts`, through tsx like `inbox`). - The e2e stub answers `report-draft` refresh (a plan; an iteration running then done with its refresh.json — updated, or no-change for an id ending `-quiet`). | sha | what | |---|---| | `f1982eef` | common: the refresh (`draft/refresh/`: types, basis, delta, task), the sweep's `ids` restriction (`tasks/restrict.ts`), `quoteWords.ts` (R2's check, umtool's `verifyQuote` on it), iteration kind `refresh` + `refresh.json` + scope `ids`, trace `fetch`/`build`/`delta` and `enumerate.counts`, `controller/reportRefresh.ts`, `reportDraft`'s task and keys, `draft:refresh`; the editor route's `refresh`/`dryRun` and the in-process refresh door; `refresh.test.ts` (10), `mcp/src/refreshTask.test.ts` (1) | | `3f33efe6` | editor: `_reportRefresh.test.ts` (7), `fetch.ts` `fetchAndBuild` and R5's `fetchScope` seam, `fetchHooksOf`; the ops help and COMMANDS.md | | `5f444574` | editor e2e: `report-draft.spec` +3 (the plan then no change, an update with the restricted sweep, the editor's own door: a real sync and channel report) | | `92fab5e7` | umtool: `lib/articles/refresh.ts`, `/api/articles/refresh` (+ `/check`), `RefreshDialog`/`RefreshSummary`/`RefreshWatch`, the ⋯ item, the Overview's summary, `lib/inbox/refresh.ts` (the daily check, refresh-available, refresh-held), `bin/refresh.ts`, the stub's refresh, `refresh-fixture.mjs`, `refresh.spec` (5), `lib/inbox/refresh.test.ts` (3), `UMTOOL_REFRESH_CHECK=0` on the e2e server | | `57c7eb7a` | merge `main` `d49737da` (P4a-3, P4b) — no conflict | | `e78e2ae8` | the Iterations tab's **Refresh…** and a refresh's line on its card (`IterationRow.refresh`); `diskRecordOf` (architecture test: a controller may not import publish/) | | `fed5716a` | the plan opens on a client navigation to `?refresh=1` (the Next card on its own page); `[Unreleased]` bullets | | `bed1e9d2` | the card reads "new recordings match"; a skipped step names its action | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `f1982eef`, `3f33efe6`, `92fab5e7`, `e78e2ae8` (repo-wide); umtool's at `fed5716a`, `bed1e9d2` | | common `pnpm --filter yt-dlp-transcript-common test` (`SETTINGS_FILE` at the primary's, read only) | **4114/4114** (+10: `refresh/refresh.test.ts`; `trace.test.ts`'s `enumerateOf` assertion has `rows`). A first run was 4113: `architecture.test.ts` refused `controller/reportRefresh.ts -> publish/composeReports` (fixed in `e78e2ae8`: `diskRecordOf`) | | mcp `pnpm --filter yt-dlp-transcript-mcp test` | **365/365** (+1: `refreshTask.test.ts`, the update end to end — the restricted sweep's enumeration answered the new row only, the revision added its finding) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 854 tests, 852 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` (now `lib/research/*.test.ts lib/inbox/*.test.ts`) | **27/27** (+3: `lib/inbox/refresh.test.ts` — the daily check over the refresh fixture and Research's local corpus, the two kinds, parked skipped, the plan and the start against a stand-in editor) | | editor unit `pnpm --filter editor test` | **304/304** (+7: `_reportRefresh.test.ts` — the body, the plan, refusals, the job on `draft:refresh` with no change and $0, held by the daily cap with no model, R5's `fetchScope`, the door never deploys) | | `pnpm run test:scripts` (reads the capped build) | 1005 tests, 1003 pass, 2 skipped, 0 fail | | `pnpm archilyzer docs cli --check` | clean (COMMANDS.md regenerated for the refresh and `ids`) | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0; compiled 13.9 s, 41 s wall, 1.53 GB max RSS; the link removed | | capped editor `next build` (common changed) | exit 0; compiled 41 s, 1:34 wall, 2.47 GB max RSS | | editor e2e `report-draft.spec` + `ops-api.spec` (`export/public` linked from the primary) | **20 passed, 0 failed** (57 s at `5f444574`; again at the tip, 35 s): the three refresh tests among them — the plan then no change, an update over the fake Anthropic, the editor's own door (a real sync of `slow-b` and its channel report as jobs) | | full umtool e2e, run 1 (`e78e2ae8`) | 458 tests: 451 passed, 1 failed, 6 skipped, 10.6 min. Red: `refresh.spec` — the Next card's action on its own page kept the dialog's host mounted, so `?refresh=1` did not open it; fixed in `fed5716a` | | `refresh` + `inbox` + `piece` + `article-iterations` (`fed5716a`) | 44/45: `inbox.spec`'s rail count 35 against the page's 34 (below); `article-iterations` + `inbox` + `refresh` again 22/22 | | `refresh` + `inbox` + `piece` + `inbox-engine` + `running` (`bed1e9d2`) | 49/49 | | full umtool e2e, run 2 (`bed1e9d2`) | 458 tests: 449 passed, 3 failed, 6 skipped, 9.4 min. Reds: `board.spec` 102 (a claim typed under load landed in the title) and the two after it that read that state; R2's spec, no file of it touched here | | `board.spec` × 3 (`bed1e9d2`) | 7/7, 7/7, 7/7 | **Screenshots** (job scratch `r4-shots/`, 1366×768, dark and light, on the e2e fixture with the refresh fixture written in and the stub editor): `suggestion-inbox` (the Inbox's Review card "1 new recording mentions this since 2026-10-14: Harbor Radio 52: storm season", action Refresh), `suggestion-next-card` (the article's Overview, the Next card the same call), `refresh-plan` (the plan dialog: the iteration and its query, harbor-radio's three actions, otherchan skipped as held, the build of priv, the cap and today's spend), `refreshed-summary` (the Overview after the run: "1 new recording matches · 1 quote changed", the new recording, the quote and what it says now, the fetches and the build, $0.31 spent), `refreshed-iterations` (the refresh's card with its line, **Refresh…** in the tab's head). No canvas screen exists for Refresh; the dialog is HandoffDialog's (the R2 plan-then-confirm) and the summary the Overview's own Card. **Keyboard only** (production build, reduced motion): Tab reaches **More**, Enter opens it, Tab reaches **Refresh…** (the 2 px Signal ring), Enter opens the plan with the focus inside the dialog, Escape closes it. **Found and left.** - **A refresh waits on the editor's own queues.** A sync on a busy platform queue, a transcription behind a long backlog, a site build behind others: the job waits (up to 6 h a step, then reads what is there and says so). It holds only `draft:refresh`, never `draft:api` or `draft:local`. The build is never forced, so a site that nothing changed is not rebuilt — but one that did is a whole site build (Jeralyzer's is long), by design: a sweep reads only a composed build. - **`transcribe-bucket` only for what landed** needs the channel's report from before the sync; a channel with no report yet transcribes nothing (said: "what landed is not known"). Its auto-transcribe lane still does what its policy says. - **"Changed" recordings need the counts** a sweep records from this release on; a parent from before has none (only new ones are found). A parent whose answers were never kept (an import with its results cut, or a run with no enumeration — the question searched as one phrase) finds new recordings only by upload date, so an old video transcribed late is missed; the plan says which. - **"Deleted" counts sources gone from the archive AND those deleted or private on their platform** (the archive keeps them, and their quotes still verify); the update keeps their findings and says so in the summary. - **The update runs on the sweep route's model**, not the parent's; a sweep routed to Claude Code runs the API model (said in the plan). The estimate is the parent's own spend per recording read — rough by design. - **refresh-held's action reopens the plan**: there is no "run just the update". A second refresh fetches and searches again (cheap when nothing moved: the build is skipped as fresh). - **The daily check reads the build the iteration read when it is on this machine, else Research's local corpus** (`export/public`: whichever site was composed last). An article whose build is gone and whose channels the local corpus lacks checks to 0 new, silently. It runs in umtool's server, one article at a time, at most 12 queries each (a large build is ~10 s a query). - **The run page (R3) does not list refresh iterations** (`hasRunPage` is the sweeps'); a refresh's trace is there (fetch, build, delta, then the restricted sweep's own events) for R5/R6 or a later run-page change to show. - **The editor e2e exercises the door with a real sync and channel report** (the fake yt-dlp); `transcribe-bucket` for what landed and the held-platform skip are unit-tested (common `refresh.test.ts`). The umtool e2e's editor is the stub (a canned refresh). - **`inbox.spec`'s first test went red once in a targeted run** (`article-iterations` + `inbox` + `piece` + `refresh`): the rail's count 35 against the page's 34 — the rail's 10 s memo caught the count mid-change after `article-iterations`' stub job finished. Green in the full runs and in a rerun of the same three specs (22/22); the refresh kinds add no card there (no check file; `UMTOOL_REFRESH_CHECK=0`). Not this lane's to change. - **Not done:** a refresh's own run page; "make current automatically" (R5's living report decides that). **Follow-up (review, 2026-10-14).** Rulings accepted: no-change and held-by-cap end `done` with the outcome in `refresh.json` and iteration.json's `refresh`; "deleted" counts both kinds; changed recordings only from this release on; the update on the sweep route's model; not built — a refresh's run page, and "run just the update" from a held refresh (the held card's action stays **Refresh**). Three changes: - **The coverage rule in the daily check — no silent zeros** (`lib/inbox/refresh.ts` `pickCheckCorpus`). A check reads the build the iteration read when it is on this machine AND holds every channel of the scope, else Research's local corpus when THAT holds every channel; the entry says which (`corpus`: "its own build (local:…)" / "the research corpus (local:…)"). When neither does, the entry is `status: "unchecked"` with the reason — "the build holding harbor-radio, nowhere-chan is not on this machine; channels not in the research corpus: nowhere-chan" — never "0 new", and the article gets no `refresh-available` card. `umtool refresh --check` prints `UNCHECKED — <why>`, and a checked one "over <corpus>". Unit-tested both ways (`lib/inbox/refresh.test.ts` +1): a build gone with the research corpus holding the channel is a real check that finds the new recording; a channel no corpus here holds is unchecked with that sentence and no card. - **The sources gone are said by where.** The delta keeps `deleted` and adds `goneFromArchive` and `removedOnPlatform {source, state, platform}`; the summary line reads "2 sources deleted on YouTube · 1 source made private on Rumble · 1 source gone from the archive" (`goneParts`; a record from before reads as it did). The editor's disk reader takes the platform from the recording's metadata page; the revision's feedback names it. - **Changes not tracked before an older parent, never 0.** The basis says whether it carries matching-line counts (`countsKnown`); when it does not, the delta's `changedTracked` is false with `changedSince`, the outcome's `changed` is `null` (the log marker and iteration.json too), a warning reads "changed recordings are not tracked before <date>: i<n> recorded no matching-line counts (new ones are still found)" (on the plan and the record), and the Overview shows that line. Unit-tested (common `refresh.test.ts` +2). | sha | what | |---|---| | `9549f987` | the coverage rule (`unchecked`, with why), the sources gone by where, changes not tracked before an older parent; tests | Gates at `9549f987`: repo-wide tsc clean; common (`SETTINGS_FILE` at the primary's) **4116/4116**; mcp 365/365; umtool unit 854 tests, 852 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` **28/28**; editor unit 304/304; test:scripts 1005, 1003 pass, 2 skipped, 0 fail; docs cli `--check` clean; capped umtool build exit 0 (26.7 s compile, 1:35 wall, 1.49 GB; the link removed); capped editor build exit 0 (42 s compile, 1:22 wall, 2.47 GB); **full umtool e2e 458 tests: 452 passed, 0 failed, 6 skipped**, 9.1 min; **full editor e2e** (this worktree, `export/public` linked from the primary, 0 dangling; queued, detached) **709 tests: 695 passed, 2 failed, 12 skipped**, 23.3 min. The reds, `operation-settings.spec:61` (the Saved status after a /settings save) and `publish-lane.spec:78` (the "pause publishing" button after Resume), touch no code of this lane (R4's editor reach is the report-draft route and the ops door); the two specs alone, three times: 9/9, 9/9, 9/9. ### R4 rollout (orchestrator, 2026-10-14) Rulings: a no-change or held-by-cap refresh ends `done` with its outcome in `refresh.json`; gone sources say where (deleted or private on the platform, or gone from the archive); an older parent says "changed recordings are not tracked before <date>", never 0; the update runs on the sweep route's model; the daily check never reports a silent 0 — an article whose channels neither its build nor the research corpus holds is `unchecked`, with the reason, and gets no card. Not built: a refresh run page; "run just the update" from a held refresh (the held card's action is Refresh). Gates on `08fee8e1`: full umtool e2e 452 passed, 0 failed, 6 skipped; full editor e2e 695 passed, 2 failed, 12 skipped — the two (`operation-settings.spec:61`, `publish-lane.spec:78`) on pages R4 does not touch, 9/9 alone three times; common 4116/4116 in the primary after the fast-forward; capped builds ok. `main` fast-forwarded to `08fee8e1`; editor built (55 s) and restarted (`scripts/r4-editor-{build,restart}.sh`: PATH, `UV_THREADPOOL_SIZE`, no ZodError, no queued metas lost), then umtool (`scripts/r4-umtool.sh`). Live: `pnpm ops report-draft {"task":"refresh","article":"piratesoftware-ai-friends", "dryRun":true}` plans sync/refresh-report/transcribe-bucket for `piratesoftware` and fetch-posts for its X and Bluesky channels, a local build of `jasolyzer-private` (never deployed), the $5 cap and today's spend, with the older parent's warnings; `umtool refresh --check` checked both articles with a current report. ### R5, as shipped **What.** Recurring reports: the same topic, updated at an interval, on a schedule the EDITOR keeps — a **living report** (one article kept current) or a **series** (a dated edition each tick over the window since the last; a window nothing matches is a quiet edition, recorded, no article, $0). umtool shows and edits a schedule; it never runs a timer. R4's two steps (stage 1 fetch + local build, `report-draft {"task":"refresh"}`) are behind a seam until R4 merges. - **The store** (common, new files; decided from the store's shape). A living report's schedule is `reports/<article>/schedule.json`, beside the article: it goes where the article goes (a delete parks the directory) and nothing that reads an article reads it (compose copies named files; the history commits report.json, report.md, exports.json). Creating one for a NEW article makes `<article>/iterations/` with it, so the article is "in the making" (`listPendingArticles`) from the first moment — never an id-named directory without report.json that the registry would list as a broken article. A series is `reports/.series/<id>/series.json`, its editions listed in it: a dot-directory, which `idDirs` never lists. Each edition is an ordinary store article `<series>-<YYYY-MM-DD>` (then -2, -3 …). The ids share one namespace (a series' ≤ 48 characters, room for the edition's date). Schema, words and derived views: `lib/report/schedule/types.ts` (zod; `shape` reserves `watch` for R6, refused by create); reads: `lib/report/schedule/store.ts`. **One writer**, `controller/reportSchedule.ts`: create (its plan first), update, pause/resume, delete (plan, then confirm; refused while a tick runs), and the tick's bookkeeping (the claim, the record, an edition's line) — each a read-patch-write under the article store's lock, validated, written whole. - **The cadence** (`lib/report/schedule/cadence.ts`, pure, 7 tests): daily · weekly on a day · every N days (2–365) anchored to the first tick's local date, at HH:MM on the schedule's `tz` (the editor's zone when it was made). A spring-forward gap ticks the same distance past it (02:30 → 03:30, that day); a fall-back's repeated hour ticks its first occurrence. **A missed window is ONE catch-up tick** (`dueTick`): the windows it stands in for are counted (`missed`), the next tick is the first window after now. A resume and a new cadence re-plan from now. - **The tick** (`controller/reportTick.ts`): ONE editor job, kind `report-tick` (jobKinds, "Report tick"), on its own queue `report-tick` (queueKeys, added) — one tick at a time machine-wide; a claim on the schedule (`running`) means never two ticks of one schedule. Its steps go through `TickSteps { fetchAndBuild, refresh, generateEdition, triage? }`: living → fetchAndBuild → refresh (its first tick, with no report yet, is the article's first sweep) → made current only with `autoMakeCurrent` (default off); series → fetchAndBuild → an edition over WHOLE DAYS, no day read twice (the review's ruling; `editionWindow`, `lib/report/schedule/types.ts`): start = the previous done/quiet/running edition's end + 1 day (the first: the cadence's length back, floored at the scope's `from`), end = the day before the tick (its own day is not over) — weekly on Mon 06:00 covers the Mon … Sun before it — titled "<topic> · week of <start>" (weekly) or "<topic> · <date>", its article named for the tick's day. A window that would be empty (start > end: a Tick now right after a tick) makes NO edition: the tick ends `no-change`, $0, "Nothing to cover yet — the next edition starts <date>", no Inbox card. `generateEdition` is real: the window check (the editor's enumerate over the build a sweep would read; the series' terms, or with none any recording — 0 is quiet), the daily cap (refused → `held-by-cap` with the per-tick cap as the estimate, before any job), a `report-draft` sweep with from/to on the model the schedule names (else the sweep route's; a sweep routed to Claude Code runs the API model, said in the plan), its end awaited (a cancelled tick cancels it; its spend logged as `~$x so far`), the edition's title written onto its report. A held or refused edition leaves no line: the next tick covers its window. Every tick ends with a line in the schedule's `ticks` (the newest 100: at, trigger, status, edition/iteration, spend, reason, estimate, missed) and the log's `@@report-tick {json}`. **Before R4 merges** `fetchAndBuild` and `refresh` are `notWiredFetch` / `notWiredRefresh`: every tick ends `failed` with "not wired: R4's stage 1 (fetch + local build) is not in this editor yet" — a Your call card, which is the honest state. - **The lane** (`controller/reportScheduleRunner.ts`): armed by `instrumentation.ts` below the idle gate (and refused on an idle boot by itself), shaped after the research auto-continue rather than the long-lived auto-queue runner jobs — a tick is the job, and the Running list shows ticks, not a runner that only waits. A scan now and every minute (unref'd timer): a claim whose job is gone is recorded `interrupted` and released; the pause gate is read; each due schedule not paused and not ticking gets one tick. **The pause gate** is `settings.reportSchedule.held` (a new settings block, its one key; SETTINGS.md regenerated), lane `report-schedule` in `PIPELINE_LANES` beside publish — `isGateHeld`/`withGateHeld`, the editor's pause action and `pnpm ops lane {"lane":"report-schedule","held":true}` (the lane takes `held` only). A hold stops the runner starting ticks; a tick in flight finishes; Tick now is the operator's word and is not held. - **`pnpm ops report-schedule`** (`controller/reportScheduleOps.ts`, the route an adapter): `list` (with the chip, the call, the spend, the lane), `create` (`dryRun`: the plan — first tick, model, cap, daily cap, a series' first window and title, what is worth knowing), `update`, `pause`, `resume`, `delete` (the plan unless `confirm: true`), `tick-now` (409 while a tick of it runs). Unknown channels are refused by name. COMMANDS.md regenerated; `--wait` prints the tick's result. - **umtool.** - **Create → "A recurring report"** (the Article group's third line; `components/create/RecurringForm.tsx`): shape (Living report / Series, one sentence each), topic, question, scope (channels — r28's `ChannelPicker`, now exported — or a board's: its channels, `dateFrom` and query as the window check), cadence (`components/series/ CadenceFields.tsx`), a series' window check or a living report's "Make each update current without review". **Plan the schedule** asks the editor's dry run (the region "plan recurring report"); **Start the schedule** (focused, so Enter starts it) makes it and opens the series page or the article. ⌘K gains "New recurring report". - **The series page** `/series/<id>` (static segment; the piece `s:<id>`, `lib/pieces/ids.mjs`): the cadence chip ("weekly · next Mon 06:00", "· paused"), Pause/Resume, Tick now, Edit cadence, Delete schedule (plan, then confirm; the editions stay as articles) — `components/series/ScheduleControls.tsx` through `POST /api/schedules` (the editor's action, forwarded); the tick in flight on P4b's `EditorJobProgress`; the editions newest first (a quiet one dimmed, with its window and why, no link; a done one linking its article); the tick log (when, how, status, edition, spend, why); what it asks (question, channels, board, window check, cadence and zone, model and cap). A living report's `/series/<article>` redirects to its article. - **Pieces and Work**: `s:<series>` pieces in the graph (flow `article`); an edition's article names its series and is not a Work row (nor counted on the rail); a living report's article carries its schedule's chip. Work gains the **Recurring** facet (`recurring=1`), the Series kind, and the chip under a row's id. A living report waiting for its first tick is listed and opens (named by its topic; ArticlePage no longer 404s an article in the making with a schedule and no iteration). - **The piece head** (PieceFrame, additive `schedule` and `edition` props): a living report's chip with Pause/Resume and Tick now; Edit cadence and Delete schedule in its ⋯ menu; an edition says "an edition of <series>". - **The Inbox** (add-only kinds, `lib/inbox/schedules.mjs`, unit-tested): `tick-failed` (Your call, **Tick now** → the schedule's page), `tick-held` (Your call, **Raise cap** → `/settings/generation`, the reason and "up to $x a tick"), `edition-ready` (Review, **Review edition** → its article's iterations: done, nothing current yet). An edition's article raises no `iteration-ready`/`iteration-failed` of its own — one card, on the series. - **The Running list**: `report-tick` is a generation row; its spend is its log's `~$x`, its link the schedule. - **`umtool schedule list | show <id> [--json]`** (bin/schedule.ts through tsx, like `inbox`; read-only). - **Not built (said so)**: R6's `triage?` step (typed, never called) and the `watch` shape (reserved, refused). - **For R6: windows are by PUBLISH date.** A recording of an earlier window that only gets its transcript (or is only fetched) after that window's tick is missed by a series. R6's tier 0 takes candidates by id — new since the last tick — which closes that gap; not built here. **Commits** (`ux/r5`, from `main` `c103181d`; `main` `d49737da` — P4b live — merged before the gates): | sha | what | |---|---| | `2eaf14da` | common + editor: the schedule store, cadence, tick, ops action and lane; the settings block and the pause lane; `pnpm ops report-schedule`; COMMANDS.md, SETTINGS.md; common tests (cadence 7, schedule 13), the ops script's | | `b3f677fb` | merge `main` `d49737da` (P4b live) | | `1699aeae` | umtool: Create's recurring form, `/series/<id>`, the series pieces, Work's facet, the Inbox kinds, the chip in the piece head, the Running row, `umtool schedule`; the editor stub's report-schedule (`common/testing/schedule/opsStub.ts`); `recurring.spec`, `create.spec` (nine lines); editor `ops-api.spec`'s report-schedule row; the tick logs its sweep's spend | | `d21da2a0` | the series page's panels one width and statuses as tags; Edit cadence opens on its field and closes back to its button; the spec's keys and screenshots | | (this commit) | this record, `[Unreleased]` bullets | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at every commit; `pnpm --filter umtool typecheck` clean | | common `pnpm --filter yt-dlp-transcript-common test` (`SETTINGS_FILE` at the primary's, read only) | **4124/4124** (+20: `cadence.test.ts` 7, `reportSchedule.test.ts` 13) | | editor unit `pnpm --filter editor test` | 297/297 | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 858 tests, 856 pass, 2 skipped, 0 fail (new: `inbox/schedules.test.mjs` 2, facets +1, running +1, ids +assertions); `pnpm --filter umtool test` 24/24 | | `pnpm run test:scripts` | 1010 tests, 1007 pass, 3 skipped, 0 fail (archilyzer-ops +1) | | `archilyzer docs cli --check`, `settings example --check` | clean | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot `--build --estimate 5120`) | exit 0; 1.56 GB max RSS; 10 min wall, most of it queued for the heavy slot; the link removed | | capped editor `next build` (heavy slot, `MemoryMax=5G`) | exit 0; compiled in 27.4 s | | editor e2e `ops-api.spec.ts` (detached, queued) | **14 passed**, 0 failed, 31.1 s — the new row: create's plan then the schedule, an unknown channel refused, list, Tick now as a `report-tick` job ending `failed` "not wired: R4's stage 1…" with its `@@report-tick` line, pause, the lane's gate (held only), delete plan then confirm | | umtool `recurring.spec` | 6/6 alone (with `R5_SHOTS`), then 7/7 in the full run below (the keys test added) | | full umtool e2e (`pnpm --filter umtool run e2e`, detached, queued) at `d21da2a0` | 460 tests: **451 passed, 3 failed, 6 skipped** (the song-data skips), 10.8 min — the three are `board.spec`'s serial chain (`e` did not focus the claim field at :137, the next two read the board it left); `board.spec` alone at the same tip: **7/7**. Not this lane's: no board file changed | **Screenshots and keys.** Job scratch `r5-shots/` (20): Create's recurring form and its plan, a series page with a real and a quiet edition, a living report's article with its chip, the Inbox with the two Your call cards and the Review card — each at 1366×768 and 1440×900, dark and light, on the e2e fixture under the start-mode build. The form opens in Create's left column (the Article group) and scrolls at 1366 when planned, as the article form does. Keyboard only (asserted in `recurring.spec`'s keys test): the topic takes the focus when the line opens; the plan's **Start the schedule** takes the focus, Enter starts it, Escape drops the plan; on the series page Tab walks Pause schedule → Tick now → Edit cadence → Delete schedule; Edit cadence opens on its cadence select and Escape returns to its button; the delete plan opens on **Confirm delete** and Escape returns to **Delete schedule**. **Found and left.** - **The seam.** `editor/app/api/ops/_reportSchedule.ts` wires `fetchAndBuild` and `refresh` to `notWiredFetch` / `notWiredRefresh`; once R4 is on `ux/integration` they become R4's stage 1 and its refresh task, and the ops-api row's tick asserts an edition over the fake Anthropic instead of the refusal. - **A series without terms** checks its window with enumerate's `.` regex over the build a sweep would read — "any recording in the window"; with terms, the terms (a board's query when made from a board). - **Tick now is not held** by the lane's gate (the operator's word, as Publish now is); a paused schedule may be ticked by hand. - **The board's `dateFrom`** is taken as the series' floor (`from`), YYYYMMDD normalised to YYYY-MM-DD. **Review follow-up (orchestrator rulings, 2026-10-14).** - Accepted: the armed timer (the Running list shows ticks only); Tick now not held by the lane's gate (it still obeys the caps); a living report in the making opens; `ChannelPicker` exported; `create.spec`'s nine lines. - **Overruled — no day is ever read twice.** The edition window above (whole days, the day after the last edition through the day before the tick; the empty case makes no edition). `window.test.ts` (5: daily, weekly, every N, the empty case, DST — the fall-back Monday, a Tokyo 00:30 tick, the spring-forward gap) and the schedule tests (the first window, a Tick now at once, the next week's) pin it. Create's plan names the first window and its whole days; the series page says what the next tick's edition will cover, or that there is nothing to cover yet. The e2e stub takes a clock (`POST /__stub/schedule-clock {now, quiet}`), so `recurring.spec` ticks a Monday (Mon … Sun before it), again at once (nothing to cover, no edition), then a week on (quiet). - **Delete schedule** is an outline button (its confirm too; the plan's border a seam): verdict colours are judgements. - **`board.spec:102`'s flake, root-caused (an app race).** The board's list is remounted on every arrangement's answer (`<LitList key={listKey}>`). `e`/`n`/`m` pressed while a move was answering focused the slip's input; the answer then replaced the list, the input with it, and refocused the line — so the field was not focused (the spec's red) and, for an operator, the typing that followed landed on the line as board commands (`s` toggled the speaker check, `x` asked to remove the quote). Under memory pressure the answer is slower and the window wider, which is why P4a-3 and the full run here hit it and `board.spec` alone did not. Fix (`components/research/BoardView.tsx`): a field asked for while a move or write is in flight waits for the redraw and takes the focus then; until it does, no key is a command (Escape lets go). The spec now presses `e` while the move answers, so every run exercises the race. - Not touched (R4's): `common/lib/report/draft/**`, `controller/reportDraft.ts`, `lib/report/iterations.ts` (imported only), `_researchEditor.ts`, the report-draft route. | sha | what | |---|---| | `7e2301e7` | the whole-day edition window and the empty case; the plan's and the series page's words; Delete as an outline button; the board's field keys wait for a redraw; the stub's clock; `window.test.ts`, the schedule tests, `recurring.spec`, `board.spec` | | `5e7bd515` | this follow-up's record, `[Unreleased]` bullets | | (this commit) | the follow-up's gates | Gates on `5e7bd515`: repo-wide tsc clean; common **4129 tests, 4128 pass, 1 fail** — `controller/fetchPosts.test.ts`'s "a drain mid-page waits…" (a timing test, untouched here, load average ~20 while e2e builds ran), then 6/6 green alone in this worktree and 4/4 on `main` in the primary; editor unit 297/297; umtool unit 858 tests, 856 pass, 2 skipped; `pnpm --filter umtool test` 24/24; test:scripts 1010, 1007 pass, 3 skipped, 0 fail; docs `cli` and `settings` checks clean; capped umtool build exit 0 (1.48 GB); capped editor build exit 0 (24.2 s compile); editor `ops-api.spec` 14/14; **`board.spec` alone 3× — 7/7, 7/7, 7/7**; `recurring.spec` 7/7; **full umtool e2e 460 tests: 454 passed, 0 failed, 6 skipped** (12.5 min). Screenshots re-taken in `r5-shots/` (20) from the full run: the series page shows a done week (2026-10-12 … 10-18), the at-once tick's "Nothing to cover yet — the next edition starts 2026-10-19" in the tick log, and the quiet week after. **R4 merged and wired (orchestrator, 2026-10-14: R4 LIVE, `main` = `ux/integration` = `f3122815`).** - **Merge** `0dbf6e6b`: the Inbox's kinds and ranks (R4's `refresh-held`/`refresh-available` beside R5's `tick-failed`/`tick-held`/`edition-ready`), `lib/inbox.ts`'s disk decisions (both), `bin/umtool.mjs`'s tsx commands (one helper for `inbox`, `schedule` and `refresh`), the CHANGELOG (both), this plan (main's, R5's records after R4's; one status row per phase: R4 LIVE, R5 shipped on the branch). - **The seam, wired** (`controller/reportTick.ts r4Steps`, `editor/app/api/ops/_reportSchedule.ts` through R4's `refreshEditor`): - `fetchAndBuild` → R4's `fetchScope` (stage 1 for `{channels, from?, to?}`: the editor's own paced fetches, then the local build of the site that holds them, never a deploy). A step refused or skipped — a held or cooling platform, a channel no build holds, a build that is not a site's — is a **warning on the tick** (the tick's `warnings`), never its failure; only a build that ran and failed fails the tick. - `refresh` → `report-draft {"task":"refresh","article"}` (the schedule's model and cap), the job awaited (a cancelled tick cancels it), then `refresh.json`'s status is the outcome: `updated` → done (the new iteration), `no-change`, `held-by-cap` (the cap's refusal and R4's estimate → `tick-held`, Your call). A cap refusal at the ask is held too. - The tick's order: a **series** computes its window first (an empty one fetches nothing), runs stage 1 over the window's channels and dates, then the edition. A **living** report with a report runs the refresh, which does its own stage 1 over its report's scope and every channel its citations touch (a separate fetch before it would sync twice); its first sweep (no report yet) runs stage 1 first. `autoMakeCurrent` acts only on `updated`. - `notWiredFetch`/`notWiredRefresh` stay as what a deps without the editor's door gets (the unit tests' case). - **Specs.** Unit (`reportSchedule.test.ts`, +3): `r4Steps` over stubbed calls (the scope and signal passed, the warnings, a failed build; each refresh status and a cap refusal), the wired tick (living no-change / held / updated with autoMakeCurrent, a series' stage 1 over its window, nothing fetched for an empty window). Editor `report-draft.spec` (+2): a **series edition over the fake model** (`synth-kitchen` an editor channel, the build holding a recording from yesterday UTC; the sync through the editor's door, the build not a site's said as a warning, the window check, the sweep with from/to, the edition titled "Contest · <yesterday>") and a **living report's refresh** (its own sync, no change, $0, `autoMakeCurrent` leaving i1 current). `ops-api.spec`'s tick now runs stage 1 and fails on the missing composed build, saying so. | sha | what | |---|---| | `0dbf6e6b` | merge `main` `f3122815` (R4 live) | | `e837ab70` | the seam wired: `r4Steps`, the tick's order, warnings on the tick; unit and editor specs | | (this commit) | this record, `[Unreleased]` reworded (a tick fetches first; a living tick is a Refresh) | Gates on `e837ab70`: repo-wide tsc clean; common **4144/4144** (`SETTINGS_FILE` at the primary's); editor unit **304/304**; umtool unit 858 tests, 856 pass, 2 skipped; `pnpm --filter umtool test` 28/28; test:scripts 1010, 1007 pass, 3 skipped, 0 fail; `docs cli --check` and `settings example --check` clean; capped umtool build exit 0 (1.52 GB); capped editor build exit 0 (22.2 s compile); editor `ops-api.spec` + `report-draft.spec` alone **23/23** (the two new ticks among them); **full umtool e2e 465 tests: 459 passed, 0 failed, 6 skipped** (9.4 min); **full editor e2e 712 tests: 698 passed, 2 failed, 12 skipped** (21.0 min) — `publish-lane.spec:78` (the known flake) and `storage-locations.spec:723` (the "timing saved" status not there within 5 s; the page snapshot shows it written, "Saved. A read may take 4 s", just late — no R5 file on that path); both specs alone **3× — 11/11, 11/11, 11/11**. No live schedule was made. ### R5 rollout (orchestrator, 2026-10-14) Rulings: the lane is an armed timer (the Running list shows ticks only); Tick now is not held by the lane's gate but obeys the caps; **no day is read twice** — an edition covers whole days from the day after the previous edition's end to the day before the tick, and a tick with nothing to cover makes no edition ($0, no card); Delete schedule is an outline button (verdict colours are judgements only). The `board.spec` serial-chain flake was a race in `BoardView.tsx` (a field asked for while a move saved was replaced by the redraw, and the next keys acted as board commands) — fixed, and the spec now presses `e` mid-save. Seam wired to R4: a series tick computes its window, runs `fetchScope` over it, then the edition; a living tick runs R4's refresh (its own stage 1). Gates on `0bf4aacd`: full umtool e2e 459 passed, 0 failed, 6 skipped; full editor e2e 698 passed, 2 failed, 12 skipped — `publish-lane.spec:78` (known) and `storage-locations.spec:723` (a "timing saved" status late under load), both 11/11 alone three times; common 4144/4144 in the primary after the fast-forward. Editor built and restarted (`scripts/r5-editor-{build,restart}.sh`; no ZodError, no queued metas lost), then umtool (`scripts/r5-umtool.sh`). Live: `pnpm ops report-schedule {"action":"list"}` → no schedules, the lane armed and not held; a dry-run of the co-host series (`the-quartering`, `the-quartering-rumble`, `quartering-live`, weekly Mon 06:00) plans the first tick Mon 2026-10-19 06:00 America/New_York over 2026-10-12 … 2026-10-18 ("Co-host updates · week of 2026-10-12"), $5 a tick, and stores nothing; `/create` offers "A recurring report"; `/work?recurring=1` 200. No schedule exists until the operator (or the pilot, with the operator) makes one. ### P6a, as shipped **What.** The cleanup, the docs and the audit list that do not wait for R6; the 308 flip and the full screenshot audit are P6b's. No URL moved; every old address still lands. - **Deletes** (each with its proof: nothing imports it — a resolver over every `import`/`export … from` in `app`, `components`, `lib`, `bin`, `e2e`, `scripts`, run before and after; or it is unreachable behind a redirect row): - `components/BrowseHeader.tsx` — its 11 call sites render `AppShell` directly (same crumbs, note, `<header>`, `.micro`, `[data-nav-group=song]`, `aria-current`); a tool page passes its own key, so `/tools/faces` and a trim set light Tools (they lit Work). - `app/articles/page.tsx`, `app/sites/page.tsx` — unreachable since P3's `/articles` and `/sites` rows. - `app/drafts/page.tsx` — now a P6 row, `/drafts` → `/create?make=article` (where the page sent it). - `components/shell/JobProgress.tsx` — a re-export for `RunningList` alone, which imports `components/ui/job-progress.tsx`. - `components/ui/verdict.tsx` and its `.verdict` CSS — imported by nothing since P1. - `components/dashboard/{Panel,ToolsPanel,NowPanel,StateStrip,SourcesPanel,DeliverablesPanel}.tsx` — the old dashboard panels, rewritten as `components/system/{ToolsPanel,Status}.tsx` (+ `NowLive.tsx` moved) on the ui `Panel`, every `data-*` kept. `components/dashboard/` keeps the Inbox's own (`InboxList`, `Lifecycle`, `ResumeChip`, `SlashFocus`, `ToolList`, `CheckSourcesButton`). - Kept, by rule: `lib/report/chain-run.mjs` (the resolver's only other "unused" file: it is executed, not imported). - **Settings · system in status lines.** The index is said once, in its panel ("51 records · rebuilt just now", or "No index — every read walks the disk."); Tools & disk says the free space and the tools (**Check** / **Check again**); roots "= reports · UMTOOL_MEDIA_DIR unset", an old cache "not read; safe to delete"; Sources one count line with **Re-check N projects**; Activity, Projects (**Every project →**), Deliverables (**Built →**); Storage, the long list, last. - **The audit list.** - A state is never a verdict colour: `badgeVariants` gains `state` (a dashed ink edge) for "in the making", an open decision's chip (`TONE.open`), an iteration running or queued, a research proposal waiting, a refresh held by the cap, open notes, a clip not fetched yet. - One filled action per view: IterationsTab's **Use this iteration** and **Start iteration**, ResearchSlot's **Yes** and **Continue into a sweep**, StructureEditors' saves are outlines. - The song benches (CutBench, ProvenancePanel, LoudnessTable, SpecSheet, ThumbBench, NoteField, VerdictChip, MomentMarks, PlanDiffPanel, CopyButton) are `buttonVariants` outlines; a pressed toggle (blind, the picked variant, the plan shown, an accepted cover, the chosen generation preset) wears the panel ground. Signal stays on focus and the cut slider. - One address per cut: the Cuts tab's cards, the provenance plan links and a song's decision hrefs use the full path (`songProjectId`, `lib/browse.ts`; the decision's `project` stays the basename, the notes' target); the short `/projects/<song>/<cut>` still resolves through the basename alias. - Media: "Drafting is off: no article iteration made this project." / "Drafting waits for <article> i<n>, which is <status>." - Found on the way: `umtool show` and `umtool check-sources` named `/browse/decisions` and "the dashboard"; Re-check in sentence case. - **Docs.** `umtool/docs/`: `inbox.md`, `research.md`, `work.md`, `piece.md`, `tools.md`, `settings.md`, `refresh.md`, `recurring.md` (new); README (the places, Create's lines, the old-address table); `dashboard`, `browse`, `decisions`, `sites`, `projects` folded in and deleted; the other sheets' addresses and "project page" now name the tab; `notes.md` keeps its agent loop and says where each kind of note is written. Every relative link and anchor checked by a script. AGENTS.md (where notes are written), FACTS (a new section: places, piece ids, the `.umtool` files, the one stage rule, the decisions API, the 16-row redirect table, a claimed project's redirect, a song's address, colour roles; three stale lines fixed), OPERATING.md (Create, the Iterations tab, the Media tab, `/settings/generation`, the ⋯ deletes), REPORT.md. | sha | what | |---|---| | `0353424a` | deletes: BrowseHeader, the dead list pages, `/drafts`' page (a P6 row), the JobProgress re-export, the Verdict primitive; `shell.spec` (tool pages light Tools), `redirects.spec` (the P6 row) | | `9206e3da` | Settings · system: the dashboard panels to `components/system`, status lines; `settings.spec` (the index line, no index on Tools & disk) | | `1f8136f9` | the audit: `state` tag, outlines, the cut's full path, the Media line; `article-iterations`, `song-piece`, `media-surfaces`, `piece` specs | | `356b897a` | `umtool show` points at the Inbox | | `821c6be2` | Re-check in sentence case | | `658e992f` | the chosen preset is a pressed outline | | `3c7f88a1` | docs, AGENTS, FACTS, OPERATING, REPORT | | `4a224e58` | `umtool check-sources` names Settings · system | | `a4406b50` | the cut page's last Signal outlines (the full run's one red) | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `4a224e58` (and `0353424a`, `1f8136f9`); `pnpm --filter umtool typecheck` clean at every commit | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 858 tests, 856 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | 28/28 | | `pnpm run test:scripts` (reads the capped build's traces) | 1010 tests, 1008 pass, 2 skipped, 0 fail | | `pnpm archilyzer docs cli --check` | clean | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot `--build --estimate 5120`) | exit 0 at `4a224e58`: compiled 13.2 s, 43 s wall, 1.54 GB max RSS; the link removed | | full umtool e2e, run 1 (`4a224e58`, detached, queued) | 470 tests: 463 passed, 1 failed, 6 skipped, 11.3 min. The red was this lane's new assertion on a cut page (`song-piece.spec:164`, no Signal-outline control in `main`): four more — the plan compare and the copy buttons — fixed in `a4406b50` | | `song-piece.spec` + the screenshot pass (`a4406b50`) | 30/30 (9 + 21 shots) | | full umtool e2e, run 2 (`a4406b50`, queued ~1.5 min behind `ux-r6`) | 470 tests: 461 passed, 3 failed, 6 skipped, 11.2 min. The reds: `board.spec`'s serial chain (`:102` — `s` did not mark the speaker checked under load — and the two after it that read its board). No board file is touched here; `board.spec` alone at the same tip **3× — 7/7, 7/7, 7/7** | | common, editor, mcp | not touched | **Screenshots** (job scratch `p6a-shots/{before,after}/`, 1366×768, dark and light, the e2e start build over the fixture; before = this branch's first commit, which changes no pixel but the faces and trim pages' rail): Settings · system and · generation; an article in the making (its head and its Iterations tab); a song's Overview, Cuts, Spec, Cover, Notes and a cut page; a report video's Overview and Media tab; and every page moved off `BrowseHeader` — `/projects`, a sweep report, `/sites/priv`, an evidence walk, `/tools/{find,faces,sources,bench,trim/mk-hooks}`. Seen: the "IN THE MAKING", OPEN and running/queued tags dashed ink; Use this iteration and the song benches' controls ink outlines, the Next card's action the one filled button; the system page's index said once and storage last. **Found and left** — P6b inherits: - **The 308 flip** of all 16 `redirects.mjs` rows (`redirects.spec` asserts 307 today) and **the full screenshot audit against the canvas**. - **R6's files, not touched here:** the paused schedule chip is the doubt colour on a state in `PieceFrame`'s head AND on `app/series/[id]/page.tsx` — change both together; R6's triage kinds and the `watch` shape belong in `inbox.md`'s tables and `recurring.md`; Create's, the series page's and the run page's audit. - **Signal or a verdict colour still on a state or an action, outside the listed benches** (38 files still name `--color-sel`; most are focus rings): `NewArticleForm`'s **Start** and `NewProjectMenu`'s `/projects` submit and `ActionPlan`'s confirm are `primary` (Signal outline); `OnscreenSection`'s "estimated" tag is `open`; `PlanDiffPanel` colours swapped / added / removed deltas with the verdict colours; TrimBench (**play selection**, **run the chain** in Signal, **clear trim** in the kept colour), FaceDeck, Deck, MixBench, PhraseConsole, WordSelector, ArticleReader, NoteCards and NoteThread hand-roll Signal. - **Lowercase button labels** against the copy rule: the Build tab's **show the command** / **run** / **cancel**, the Sources tab's **tag N videos**, the song benches' **mark this moment**, **promote … to …**, **retire**, **save**, `/projects`' **+ new project**, **filter**, **copy the whole picture**, the deck's and the trim bench's. - `/settings/generation`'s Spend today aside renders "2026-10-14UTC" (no space). - **Names that outlived the dashboard:** `components/dashboard/` (now the Inbox's own components) and `lib/dashboard.ts` (the projects note, the state rows, the source buckets) — a rename after R6 lands, which adds Inbox cards there. - **`/drafts` lands on Create's article form**, as the deleted page did; the plan's earlier notes said the Inbox. The reviewer's call. ### P6a rollout (orchestrator, 2026-10-14) Rulings: `/drafts` → Create's article form (`/create?make=article`, as the deleted page did); the `state` tag and the outline rule apply to every state and secondary action, beyond the listed items; a song decision's `project` stays the basename (the notes and MCP target) while its href takes the full path. Gates on `7fb90e6e`: full umtool e2e 461 passed, 3 failed, 6 skipped — the three are `board.spec`'s serial chain under load (`s` did not mark the speaker), a second race after R5's fix, 3/3 alone; taken as its own fix (below). `main` fast-forwarded to `7fb90e6e`; umtool built and restarted (`scripts/p6a-umtool.sh`). Live: every place, tab and tool page 200; `/drafts` 307 → `/create?make=article`; `/browse`, `/articles`, `/sites` 307 → Work; a song's cut cards link the full path and `/projects/pokemon/wide` still answers; decisions API 833 rows, notes' hrefs end `note=<id>`. P6b adds: **Prune…** on Settings · system wears the Reject colour for a destructive action (outline it, as Delete schedule). ### R6, as shipped **What.** Triage first: a cheap pass that flags what is worth researching, and only what it flags reaches the better model with tools. A `report-draft` STEP `triage` (tier 0 code, tier 1 the local window judge, the threshold), wired into R5's tick as `TickSteps.triage` — a schedule's `triageFirst` (living, series) and R5's reserved third shape, **watch** (no article until something is found) — with umtool's tiers, marks and the Worth researching card. - **The step** (`common/lib/report/draft/triage/`; the editor's side `controller/reportTriage.ts`): - **A run** is `reports/.triage/<owner>/<k>/` — `triage.json` (`archilyzer-triage` v1: the question, scope, terms, topics, threshold, `since`, tier 0, tier 1, the escalation, `cost {tier0, tier1}`, warnings) and `trace.jsonl` — and `reports/.triage/<owner>/seen.json` is the ids the owner's last COMPLETED run saw. A dot-directory of the article store (`idDirs` never lists it). The owner is the schedule's id. ONE writer: the job (the run is created queued under the article store's lock, numbered 1, 2, …). - **Tier 0** (`tier0.ts`, code, $0): the scope is scanned once with enumerate's "any recording" regex (the set this run SAW); new = not in `seen.json` **by id** — an old recording whose transcript lands late is new (R5's late-transcript gap, closed); with no last run, new = uploaded on or after `since` (the tick passes the cadence's length back). Candidates: new recordings matching the terms (R4's `deltaCandidates` with `known` = the ids seen; aliases as enumerate has them) OR carrying a digest topic tag that matches a topic (the build's digest, read through `get_video_metadata`'s "Topic tags"); with neither terms nor topics, every new one. `maxCandidates` (default 40) — the rest are cut and left OUT of the next `seen`, so they stay new. - **Tier 1** (`judge.ts`): the sweep pipeline's window judge (`EXTRACT_SYSTEM`/`EXTRACT_SCHEMA`, its `windowsOf`/`chunksOf`/`locate`) over the candidates' MATCHING windows only (get_transcripts around the terms and topics; a caller's own `windows`; a recording put forward by a digest tag that no word matched is read from its opening), at most 3 chunks and 3 flags a recording. A flag is a line `locate` finds verbatim in the window AND R2's word check (`checkWordsInWindow`) finds in the transcript's cues near that second; score 3 on topic = strong, 2 = weak. Dismissed, each with its reason: a window not relevant (`judge`), a line not verbatim — the invented line kept beside it — or not in the cues (`verbatim`), off topic or a mention only (`score`), nothing to read (`read`). The judge's model is `settings.generation.triage.model`: `local` (`models.local`, on `draft:local` through the GPU arbiter — `gpuGatedFetch` — ollama unloaded at the end, $0) or `extractor` (`models.extractor`, on `draft:api`, metered, its usage rows task `triage`). - **The decision** (`escalationOf`): strong flags ≥ `strong` OR flags of any strength ≥ `weak` (0 turns a rule off); default one strong or three. The step only SAYS it; the tick escalates. - **The trace** gains `{t: "triage", owner, k, candidates, flagged, dismissed, escalated, why, cost, model}`, `cost.tier`, and `check` stage `triage`; a triage run's own trace has its scope, tier 0's enumerations, one `batch` per read batch with the judge's lines, a `check` per flag and dismissed line, the triage line and the tier-1 cost. A sweep that escalates a triage names it (`report-draft {…, "triage": "<owner>/<k>"}`, kept as `scope.triage`) and `runOnIteration` writes the triage line right after the run's start. - **`report-draft {"task":"triage", "article": <owner>, question, channels, terms?, regex?, topics?, threshold?, since?, ids?, windows?, maxCandidates?, model?}`**; the answer's `iteration` is the run's number and `triage: {owner, k}`; the log ends `@@report-draft {…, triage: {k, status, candidates, flagged, dismissed, escalate, why, usd}}`. A refresh takes `ids` (R6: the update reads exactly those, even when the delta found nothing else). COMMANDS.md regenerated. - **`settings.generation.triage`** `{model: local | extractor, strong: 1, weak: 3, maxEscalationsPerDay: 3, maxCandidates: 40}` (SETTINGS.md, settings.json.example regenerated); umtool's Settings → Generation edits it. - **The tick** (`controller/reportTick.ts`; `triageStep(draft)` the real step, awaited, a cancelled tick cancels it). Living or series with `triageFirst`, and every watch: fetch → triage → (escalate) → the shape's step on the FLAGGED ids only: - **watch** — stage 1 over the scope; below the threshold `no-change`, $0 API, the triage on the line; at or above it an API sweep restricted to the flagged ids (`generateEdition` with `ids` and the triage ref — no date bound, so a late transcript is in; no window check) as a new article `<watch>-<YYYY-MM-DD>` titled "<topic> · <date>". - **series** — the window, stage 1 over it, the triage over the SCOPE by id; below the threshold the edition is quiet (its window covered, the triage's reason); above it the edition sweeps the flagged ids. - **living** — stage 1, the triage, then R4's refresh with `ids` and `fetch: false` (no second fetch); below the threshold `no-change`. Its first tick (no report yet) is its first sweep, as in R5 (triage applies from the next tick). - **The day's escalation cap** (`escalationCapRefusal`): escalations ticked on the UTC day across every schedule (`tick.triage.escalated`) ≥ `maxEscalationsPerDay` → the tick is `held-by-cap` (R5's tick-held card) with the flags kept (`triage.capped`). The tier-2 sweep is also held to the policy's caps as any sweep. - The tick line gains `triage` (`TickTriage`: owner, k, status, candidates, flagged, dismissed, escalated, why, the flagged ids, the top five flags, `usd {tier1, tier2}`); the tick's `usd` is tier 1 + tier 2. - **The schedule**: `OFFERED_SHAPES` gains `watch` (stored like a series, `.series/<id>/series.json`, no editions); `triageFirst`; `scope.topics`; `triage.threshold` (a schedule's own); create's plan names the triage (model, provider, threshold, the day's cap, terms, topics); a watch's delete plan keeps its articles and its triage runs. `pnpm ops report-schedule` takes `triageFirst`, `topics`, `threshold`. - **umtool**: - **Create → A recurring report** offers **Watch** ("No article until something is found: each tick triages what is new, and only what it flags is researched.") with its terms, digest tags and threshold ("Escalate on [1] strong or [3] any"), and **Triage first** on a living report or a series; the plan says "triage first on <model> ($0): escalates on 1 strong or 3 weak · at most 3 escalations a day; no article until one does". - **The triage page** `/series/<id>/triage/<k>` (`components/series/TriageView.tsx`; a living report's runs too, under its id): the question and the run's facts in the head, the run picker, **Open as a board** (`b`, the one filled action); ONE lit list — the flags (strong first) then the dismissals — each flag's line in the reader serif with its recording, second and reason, strength and mark badges; beside it the three tiers (Tier 0 · code, Tier 1 · local model or extractor, Tier 2 · sweep — each with its spend; tier 2 links the escalated sweep's run page and its findings, or says "not escalated: $0 API" or the cap that held it), the escalation line, the lit item's detail (the line on the reader with its cite and window, "why: …", **Right** `y` / **Wrong** `x` / **Unmark** `u`), the candidates with why each was one, and the schedule's precision and suggested threshold. - **The series page**: a watch shows **Found** (each escalation's article, its top flag, its board and its triage run, the spend) instead of editions; every schedule that triages shows the **Triage** table (each run: when, candidates · flagged · dismissed, escalated or below and why, tier 1 and tier 2 spend), its threshold, the precision of the marks and the suggested threshold; the tick log links each tick's triage. - **The run page** (R3): an escalated sweep's first step is **triage first** (its tiers in the facts, the flagged ids, a link to the triage run). - **Marks** (`lib/research/triage-marks.mjs`): `REPORTS_ROOT/.umtool/triage/<schedule>.json`, umtool's own (one writer, serialised, temp + rename, a file that does not parse never overwritten). Precision = right / marked; the suggestion (`suggestThreshold`, common): weak flags right under 25% → let weak flags alone not escalate, under 60% → one more weak, 80% and up → one fewer; strong flags under 50% → one more strong; fewer than 3 marks of a kind → "mark N more". A suggestion only: nothing writes the schedule's threshold. - **The board** (`lib/research/triage.ts` `openTriageBoard`): an R2 case of the run's flags, each `by: "triage"` (the slip says **by triage**), in **Strong flags** / **Weak flags**, the judge's reason as the claim line, the case's `triage {schedule, k}` (the side panel's **From triage**). Its id is the escalation's article (so the board's article hand-off adds an iteration to it), else `<schedule>-t<k>`. A second open adds what is new and never touches the operator's claims, notes, sections or order. - **Inbox kind `worth-researching`** (Your call, add-only; `lib/inbox/schedules.mjs`): a watch's tick that escalated and made its article — the flags (the first two, with their reasons) and how many findings the sweep kept; **Open the board**. It goes once the board has a hand-off or every flag of the run is marked. The watch's articles are its own: no iteration cards, not Work rows (`editionOf`). - **ONE WRITER OF THE CASE FILES: umtool.** The editor's tick never writes a case: it records the escalation on its tick line and the triage run. umtool makes the board the first time it reads an escalated watch tick (the Inbox's read, `ensureTriageBoards` — idempotent; a failure leaves the card on the triage page) or when the operator presses **Open as a board**. - **Docs**: `umtool/docs/triage.md` (P6a's rewrite of `umtool/docs/` may link it from its recurring page). - **Not built (said so)**: a watch has no Work kind of its own (it is listed as a series); the run page shows the tiers as one step with a link, the flags and dismissals in full are on the triage page; a living report's first tick does not triage. **Commits** (`ux/r6`, from `main` `165a4ee2`): | sha | what | |---|---| | `077c36d1` | common, editor: the triage step (types, store, tier 0, judge, the run), `controller/reportTriage.ts`, report-draft's `triage` task and keys, a sweep's triage ref, a refresh's `ids`, `settings.generation.triage`, the watch shape and `triageFirst` on the tick, the day's escalation cap, the tick line's triage; `triage.test.ts` (8), `reportSchedule.test.ts` (+4), `_reportRefresh.test.ts`; COMMANDS.md, SETTINGS.md | | `a2b20f96` | umtool: Create's Watch and Triage first, the triage page and its API, the series page (Found, Triage, precision), the run page's triage step, marks, the board, Inbox `worth-researching`; the stub's triage and escalation; `triage-first.spec`, editor `report-draft.spec` (+1) and `ops-api.spec` (+1); `lib/research/triage.test.ts` (3), `triage-marks.test.mjs` (1), `inbox/schedules.test.mjs` (+1) | | `e0f072ca` | Settings → Generation edits triage first; `umtool/docs/triage.md` | | `73f2078c` | the digest tags field is not named for topics; the stub escalation's report claims carry ids | | `9d85ca8d` | the precision panel says "no flag marked yet" once; the run page's triage link; Digest tags on a watch's scope | | `9a18c171` | this record (first cut), `[Unreleased]` bullets | | `fc1695cf` | merge `main` `9330a309` (P6a live) — one conflict, this plan: P6a's record and rollout kept, R6's after them, one status row per phase | | `a94031d7` | after P6a: a paused schedule's chip is the `state` tag (the series page, the piece head); a dismissal an ink tag; Right / Wrong pressed outlines; `recurring.md` and the README name the watch and `triage.md` | | `a9765711` | docs: the Inbox's `worth-researching`, the run page's triage step | | `2501f9ee` | common: REPORT.md's generator says what P6a wrote into REPORT.md by hand (`docs.test` "REPORT.md is what the schema generates" failed on `main` after P6a) | | (this commit) | the record's final gates | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `a2b20f96` (repo-wide); common, editor, mcp at `077c36d1`; umtool and common at every later commit | | common `pnpm --filter yt-dlp-transcript-common test` (`SETTINGS_FILE` at the primary's, read only) | **4156/4156** (+12: `triage/triage.test.ts` 8 — tier 0 by id with a late transcript, by date with no last run, digest topics, the cap left new; the judge over given windows with a stubbed model — a strong and a weak flag, an invented line dismissed as not verbatim, a mention only, a window not relevant, a line the cues do not hold; the threshold; precision and the suggestion; a run end to end with its trace and `seen.json`, and the next run by id; a failed run keeps nothing seen — and `reportSchedule.test.ts` +4: a watch's plan and a tick below the threshold, an escalation as `<watch>-<date>` and the day's cap, triage first on a series and a living report, `triageStep` over stubbed calls) | | mcp `pnpm --filter yt-dlp-transcript-mcp test` | 365/365 | | editor unit `pnpm --filter editor test` | 304/304 (`_reportRefresh.test.ts`: a refresh's `ids`, a triage's keys and refusals, a sweep's triage ref) | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 860 tests, 858 pass, 2 skipped, 0 fail (new: `triage-marks.test.mjs` 1, `inbox/schedules.test.mjs` +1) | | `pnpm --filter umtool test` | **31/31** (+3: `lib/research/triage.test.ts` — the run view with its tick and tier 2, marks and precision, the board by umtool, idempotent, the Inbox's ensure) | | `pnpm run test:scripts` (reads the capped build) | 1012 tests, 1010 pass, 2 skipped, 0 fail | | `archilyzer docs cli --check`, `settings example --check` | clean (COMMANDS.md, SETTINGS.md, settings.json.example regenerated) | | capped umtool `next build` (corpus linked inside the heavy slot, `MemoryMax=5G`) | exit 0; compiled 16.0 s, 47.7 s wall, 1.50 GB max RSS; the link removed | | capped editor `next build` (heavy slot, `MemoryMax=5G`) | exit 0; compiled 29.1 s, 1:06 wall, 2.52 GB max RSS | | editor e2e `report-draft.spec` + `ops-api.spec` (detached, queued; `export/public` linked) | **25 passed**, 0 failed, 1.8 min — the two new: a watch over the fake models (the fake ollama started in the spec for the judge, $0; below the threshold, then a late transcript flagged strong and escalated to a sweep of it on the fake Anthropic) and a watch over HTTP (its plan; a tick with no build fails in its triage, saying so) | | umtool `triage-first.spec` + neighbours | run 1 (`a2b20f96`, with recurring, run-trace, board, inbox): 33 passed, 1 failed, 5 skipped — Create's "digest tags" field was named "topics", which `getByRole({name: "topic"})` also matched (`73f2078c`); run 2 (with recurring, create): 19 passed, 1 failed — the stub's escalation report's claims had no ids (`73f2078c`); run 3: **6/6** | Gates after merging `main` `9330a309` (P6a), at `2501f9ee`: repo-wide tsc clean; common (`SETTINGS_FILE` at the primary's) 4156 tests, 4155 pass, 1 fail at `a9765711` — `lib/report/docs.test.ts` "REPORT.md is what the schema generates", P6a's hand edit of REPORT.md (fixed in `2501f9ee`; the file's tests 4/4 after); mcp 365/365; editor unit 304/304; umtool unit 860 tests, 858 pass, 2 skipped, 0 fail; `pnpm --filter umtool test` 31/31; docs `cli` and `settings` checks clean; capped umtool build exit 0 (compiled 15.8 s, 44.2 s wall, 1.55 GB; the corpus linked inside the heavy slot, removed after; the triage routes' traces 1,008–1,012 files, none from `transcripts/`, `export/public`, `.e2e-song` or `.env*`); capped editor build exit 0 (compiled 24.4 s, 1:38 wall, 2.49 GB); test:scripts 1012 tests, 1010 pass, 2 skipped, 0 fail; **full umtool e2e 476 tests: 470 passed, 0 failed, 6 skipped** (the song-data skips), 11.6 min; **full editor e2e (`export/public` linked from the primary, 0 dangling; queued, detached) 714 tests: 702 passed, 0 failed, 12 skipped**, 23.1 min. **Screenshots and keys.** Job scratch `r6-shots/` (32, from `triage-first.spec` with `R6_SHOTS`), each at 1366×768 and 1440×900, dark and light, on the e2e fixture with the stub editor: Create's Watch (`create-watch`) and its plan (`create-watch-plan`), the triage run with its tiers and the lit strong flag (`triage-run`) and after the marks (`triage-marked`), the escalated sweep's run page with its **triage first** step (`triage-run-page`), the watch page with Found, the Triage table and the precision (`watch-page`), the Inbox's Worth researching card (`inbox-worth-researching`) and its board (`triage-board`). No canvas screen exists for triage; the triage page is the run page's two columns (the lit list, the detail) with the three tier lanes in Meter. **Keyboard only** (asserted in `triage-first.spec`'s keys test; production build): the flags and dismissals are ONE lit list (one Tab stop, the lit line's dashed 1 px focus), `j`/`k`, `Home`/`End` move it, `y`/`x`/`u` act on the lit flag only (on a dismissal they do nothing), `b` opens the board; the head's run picker and **Open as a board** are in the Tab order before the list, the mark buttons after it. **Found and left.** - **The judge's windows are what the terms match.** A recording put forward by a digest tag that no word matches is judged on its opening (the first window, at most three chunks) — said in its dismissal when it is not relevant. The digest's chapters could pick a better window; not built. - **Tier 0 scans the whole scope each tick** (enumerate's `.` regex over the build), and `seen.json` keeps every id it saw — on Jeralyzer's scale a few hundred KB and a scan of a few seconds a channel. A scan that was partial says so on the run; what it did not reach is not a candidate that time. - **A watch is listed as a series** (Work's Series kind, `s:<id>`); its found articles are its own (not Work rows, no iteration cards — one Worth researching card on the watch). - **The run page shows the tiers as one step** (the facts, the flagged ids, the link); the flags and dismissals in full, with their lines on the reader, are on the triage page. - **The board is made on the Inbox's read** when a watch has escalated and no board exists (idempotent, umtool's own state), so a watch that escalates while nobody opens the Inbox has its board made later. The triage page's **Open as a board** does the same by hand. - **A living report's first tick is its first sweep**, as in R5: triage applies from the second tick (its `seen` starts then; the first triage counts new by upload date from the cadence's length back). - **The spec is `triage-first.spec.ts`**: `triage.spec.ts` is the song deck's clip triage. The brief's editor `ops-api.spec` watch tick over the fake model is in `report-draft.spec` (where the fake Anthropic lives, with a fake ollama started beside it); `ops-api.spec` has the watch over HTTP. - **`REPORT.md` was hand-edited by P6a** (`/articles/new` "is an address"); its generator (`lib/report/docs.ts`) now says the same, so common's docs test passes on this branch (it failed on `main` `9330a309`). - **Docs**: `umtool/docs/triage.md`, linked from `recurring.md` (now three shapes), the README, `inbox.md` and `research.md`. - **No live schedule was made**; the pilot is the orchestrator's, with the operator. ### R6 rollout (orchestrator, 2026-10-14) Rulings: umtool is the one writer of case files (the board is made idempotently on the Inbox read or "Open as a board"; the editor tick never writes one); a living report's first tick stays its first sweep (triage from the second); the run page shows triage as one step linking the triage page. P6b adds: a watch is listed under Work's Series kind — give it its own. R6 also restored common's generated-REPORT.md test, which P6a's hand edit of `REPORT.md` had broken on `main` (`2501f9ee`, the generator's text). Gates on `326beacf` (main `9330a309` merged): full umtool e2e 470 passed, 0 failed, 6 skipped; full editor e2e 702 passed, 0 failed, 12 skipped; common 4156/4156 in the primary after the fast-forward. Editor built (75 s) and restarted (`scripts/r6-editor-{build,restart}.sh`; no ZodError, no queued metas lost), then umtool (`scripts/r6-umtool.sh`). Live: a dry-run watch over `the-quartering`, `the-quartering-rumble`, `quartering-live` (weekly Mon 06:00) plans triage on `qwen3:8b` (local), threshold 1 strong or 3 weak, 3 escalations a day, the API model capped $5 a tick, and stores nothing; no schedules exist, the lane armed; decisions API 833 rows, notes' hrefs end `note=<id>`. ### board.spec races, as fixed **What.** The remaining `board.spec` serial-chain flake, root-caused in the app (`components/research/BoardView.tsx`). Under load three different reds had shown: `s` did not mark the speaker checked (P6a run 2), a typed claim landed in the case's title (R4 run 2), `e` did not focus the claim (P4a-3, R5). R5 fixed one race: a field asked for mid-save waited for the redraw. It held the keys typed while it waited by throwing them away, and it left four more. **Root causes.** - **Several writes in flight at once.** `busy` was one boolean. A note's save and the `s` after it were two PATCHes racing their answers: an older answer landing last redrew the speaker as unchecked. A write finishing also cleared `busy` while another was still answering. - **Toggles and moves computed on the render that queued them.** Two `s` presses each sent `!speakerChecked` as the page drew it: true, true. - **Keys acting on a list about to be replaced.** The list remounts on every arrangement's answer. While a move was answering: - `j`/`k` moved the light in the old list, and the redraw then put it back. - `e` focused a field the redraw took away. The claim typed after it ran as board commands: `r` opened the case's rename, the rest went into its title, Enter renamed the case. - R5's waiting field fixed the focus, but the claim typed meanwhile was dropped. - **The light read from the last render.** A key in the same tick as a j/k acted on the line the page had last drawn. - **A dialog's field never took the focus.** React's `autoFocus` focuses before `showModal()` and never writes the attribute the browser's focusing steps read. So `a`/`r` + typing went to the dialog's ✕. **Fix.** - **ONE write queue (`write`).** Every board write — moves, claim, note, speaker, sections, removal, re-verify, the hand-off's reload — runs in the order asked. Each is computed on the case the previous one left (`docRef`; the speaker toggle on the quote at its turn), and each answer is applied before the next starts. - **Keys held while the board settles.** A capture listener on `window` runs before the list's j/k and any field. It holds every key pressed while a write is queued or answering, or while earlier keys still wait, and replays them in order once the board has settled, one per frame: - a command acts on the redrawn board; - a character or Backspace lands in the focused field; - Enter goes to the field's handler, or submits its form; Escape closes a dialog. - A field the operator is already typing in is left alone unless keys are waiting ahead of it. - `data-board-busy` covers the held keys too. - **The light is a ref** the list sets on every `lit` event. - **`Dialog` focuses `[data-autofocus]`** after `showModal()` (additive); the board's ask field carries it. - R5's pending-field rule is gone; the held keys do its job without losing the typing. **The spec** (`e2e/board.spec.ts`, one new test after test 102). `holdNext(page, method, part)` holds the next matching board request at the network (`page.route`) until `release()`. So the board is settling, certainly and for as long as the test needs, with no wait and no timing. Under a held write: 1. `e`, then the claim "Recorded at the vote, x-ray" (r, a, c, v, x and e are all board commands), then Enter. Nothing acts while it is held. After release the claim is saved whole, the case title is unchanged, and no dialog opened. 2. A note saved with Enter and held; `s` twice. The PATCH bodies are `[true, false]`, in order, and the view matches the file. 3. alt+k held, then `j`: the light lands on the line after the moved quote in the redrawn list. 4. `a` + a title + Enter: the section is added after release, the dialog's field focused. Then `x` + Escape: no dialog, no quote removed. The test then restores the board for the tests after it. **Proof the spec catches the races.** The new spec run against `main`'s `BoardView.tsx` and `dialog.tsx`: 8 tests, 6 passed, 2 failed. Step 1's claim is "" (the typed keys were swallowed), and the hand-off test after it reads the board the failure left. On the fix: below. | sha | what | |---|---| | `21c29bf5` | one write queue, held keys replayed on the settled board, the light as a ref, `Dialog`'s `data-autofocus`; `board.spec`'s held-write test | | `7bc75790` | merge `main` `82ab18c5` (R6 live): clean; R6's one board change, the side panel's "From triage", is additive | **Gates.** | Gate | Result | |---|---| | `board.spec` alone, 5× (`21c29bf5`) | 8/8 each time: 5 of 5 runs green | | repo-wide `tsc --noEmit` | clean at `21c29bf5` and at the merged tip `7bc75790` | | umtool unit, at `7bc75790` | 860 tests: 858 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | 31/31 | | `pnpm run test:scripts` | 1012 tests: 1010 pass, 2 skipped, 0 fail | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0 at `7bc75790`; compiled 18.6 s, 1:13 wall (with the wait for memory), 1.51 GB max RSS; the link removed | | full umtool e2e at `7bc75790` (detached, queued; about 7 min of its 20 were spent waiting for memory at the heavy slot) | **477 tests: 471 passed, 0 failed, 6 skipped** (the song-data skips), 10.4 min of tests; `board.spec` 8/8 | **Left.** - **A held key that opens a dialog with no field** (`x`'s Remove the quote) lands the focus on the dialog's ✕. A held Enter after it does not confirm the removal; a held Escape closes the dialog. This is the cautious side, and deliberate. - **Held text goes in at the field's end**, not at a caret: a held key always targets a field the replay itself just focused. - **Other pages' lit lists** (Research's results, the run page) have no writes that remount them while keys are pressed, so they are not changed. ### board.spec races rollout (orchestrator, 2026-10-14) `main` fast-forwarded to `d9c119e2` (the race fix and its spec, R6 merged in): one write queue for every board write, keys held while the board settles and replayed on the redrawn board, the lit line a ref, `Dialog` focusing a `data-autofocus` field. Gates: `board.spec` 5/5 alone; full umtool e2e on the merged tip 471 passed, 0 failed, 6 skipped. umtool built and restarted (`scripts/board-umtool.sh`); live `/research` and a case page 200. ### P6b, as shipped **What.** The last phase: the redirects become permanent, the list P6a and the rollouts left for P6b is cleared, and every place and tab is audited against the canvas (v2) at 1366×768 and 1440×900 in both themes, with an e2e spec that holds the colour roles from now on. No URL moved. - **308s.** Every `umtool/redirects.mjs` row is `permanent: true`, 16 rows. The `has` rule `/?from=` → `/create` is kept (the editor's `VideoPanel`/`VideoNavStrip` still link it), now a 308 too. `redirects.spec` asserts 308 and the Location for every row (with and without a query) and that each destination answers 200; the hrefs unit test asserts `permanent: true`. **Browsers cache a 308 forever:** from now on a row is never repointed or removed, only added. The claimed project's page `redirect()` (`/projects/<path>` → its article, `claimedProjectRedirect`) stays a 307 on purpose: it follows state (an article can stop claiming a project). - **The inherited list.** - The `primary` and `destructive` button variants are gone; `pressed` (the panel ground) is new. NewArticleForm's submit is the page's one `go` and names its result (**Start sweep** / **Start research**); the `/projects` new-project submit is `go`; ActionPlan's trigger and confirm are outlines; **Prune…** is an outline (plan-then-confirm guards it, as **Delete schedule**). DeletePlan, a job's Cancel, ResearchSlot's **No**, a quote's or a post's removal, the board's remove confirm and the Build tab's cancel/replace are outlines; a pressed **Rejected** is `pressed` like a pressed **Approved**. - Hand-rolled Signal and verdict colours: TrimBench (Play selection, Save/Clear trim, the trimmed hooks in the kept colour), FaceDeck (Commit, the pressed verdict and reasons, the preview's frame, "on the shipped cover"), Deck (Play whole window, Keep it, Drop it anyway in red, the "another sound" toggle), MixBench (Play, Render in green), PhraseConsole (timecodes, stars), WordSelector ("labelled"), ShortlistBar, ClaimBench's and TakesBench's toggles, BuildChain (Run the chain, "running"), TimedNotes' Mark, ArticleReader's filter, RunView's running status, the find page (Find, the pager, chips), the compare page's change bars and "only here", a note's Resolve and Add note (kept colour) and its Delete's red hover, the projects index's red **blocking** facet. Kept on purpose: Signal on focus, the lit line, a list's current item (`aria-current`), a selection on a waveform, the article reader's floating **Note** on a selection, a composer's **Save note**. - Lower-case labels → sentence case naming the result: the Build tab's **Show the command** / **Build** (was "run") / **Cancel build** / **Stamp it aside and build**; **Tag N videos**; **Mark this moment**, **Promote … to …**, **Retire** / **Restore**, **Save note**, **Copy citation** (was "cite"), **Measure the rest**, **Compare**, **Blind A/B**, **Match variant**, **Accept — spends N videos**; `/projects`' **+ New project**, **Filter**, **Clear**, **Work**, **Inbox**, **Copy the whole picture**; the deck's, the trim bench's, the mix bench's and the faces deck's buttons and verdict words; the clip bench's controls; the Deliver tab's **Cut N confirmed clips from cache** / **Build share batch**; **Take snapshot**; **Fetch N unfetched clips via the editor**; a note's **Resolve**, **Won't fix**, **Reopen**, **Reply**, **Edit**, **Delete**. - Spend today read "2026-10-14UTC": the date and "UTC" were two text nodes that rendered with no space between them; it is one string now. - **A watch is its own kind on Work** (`kind=watch`, the row says "watch"; `lib/work.ts`, the facet); triage-first.spec checks it under Watch and not under Series. - Triage docs: `triage.md` covered the watch shape; it now names the `worth-researching` decision kind and Work's Watch kind; `recurring.md` and `work.md` name the Watch kind. Links and anchors checked by a script (the only misses were inline-code examples and an anchor in `report-to-video/README.md`, both fine). - `components/dashboard/` and `lib/dashboard.ts` are renamed: InboxList and ResumeChip → `components/inbox/`, Lifecycle → `components/piece/`, SlashFocus → `components/shell/`, ToolList → `components/tools/`, CheckSourcesButton → `components/system/`, `lib/dashboard.ts` → `lib/system/status.ts`; every import moved. - Clipped copy: "Draft with" sat beside its model select, so it read as a sentence cut off before the model. The button is now **Draft** and "with" sits before the model. No other dangling "with" in the copy (grep). - **Page titles and lead paragraphs (found by the audit).** A page under a place had a lower-case title (archive, runs, find, faces, song piles, sources, verdict bench, trim, the deck's sort/salvage/verify/keeps, compare, evidence): each is sentence case, and the place crumbs over them (Research, Runs, Tools, Projects, Song piles) too; an id or a piece's name is spelled as it is. The faces page's explanatory paragraph, the sources page's, the mix page's instruction line and find's empty-state essay go (tools.md keeps what they said); the faces page keeps its one status line. - **Docs.** README's places table names each place once with its addresses (Inbox, Research, Work, a site, a piece, a series or watch and its triage runs, the benches, Create, Tools, Settings); its old-address paragraph and FACTS' redirect table say 308; FACTS' colour line says there is no red button and no Signal outline. | sha | what | |---|---| | `5d1705b8` | every redirects.mjs row 308; `redirects.spec`, `hrefs.test.mjs` | | `936770f7` | `components/dashboard` and `lib/dashboard.ts` renamed by what they are | | `e84ad32f` | a watch is its own Work kind; `triage-first.spec` | | `798b3622` | no Signal outline, no red button (`primary`/`destructive` gone, `pressed` new), the inherited labels, Draft with | | `73c525da` | docs: the places once each, the Watch kind, `worth-researching`; FACTS: 308, the colour line | | `c12ca26d` | page titles in sentence case, no lead paragraphs on the tools; `find`, `faces`, `research` specs | | `b5c44ddd` | `e2e/visual-audit.spec.ts`: 64 pages × both themes by computed colour, the keyboard-only pass | | `e1bf8a64` | the audit's fixes: the rest of the labels, open findings as `state`, the spend line, the blocking facet; `clip-bench`, `article-notes`, `triage` specs | | `26cc4408` | the triage page's crumb and the refresh dialog's status line back to `main` (the R6.1 lane owns them) | | `277c130b` | the run page's crumbs (RunView's header) say Research / Runs | **Audit** (job scratch `p6b-shots/`: `before/` = the first audit build, mid-way through the inherited list; `pass2/`, `pass3/`; `after/`, `after-r5/`, `after-r6/` = the full run at the tip. Each page at 1366×768 and 1440×900, dark and light, on the e2e fixture build). The spec measures the colour roles and the fit; the table is what the eye found against the canvas. | Page | State before | Fixed / left | |---|---|---| | Inbox | the canvas's: one big count, groups, one filled action (Retry run) | — | | Research, results + reader | canvas | — | | Research · a case (board) | canvas; "? Speaker not checked" in doubt is the canvas's own `.flag` | — | | Research · archive | title "archive" | fixed: Archive | | Research · runs, a run page | titles "runs"; the run's running status in Signal | fixed | | Work | canvas | fixed: Watch kind | | `/projects` | red **blocking** facet; lower-case Filter/Work/Inbox/+ new project/copy the whole picture; Signal-outline submit | fixed | | A site (`/sites/priv`) | canvas | — | | Article piece: Overview, Article, Iterations | FAILED / BLOCKING / ✕ check words are judgements, kept | left: "+ note", "show every quote" small lower-case links | | Article piece: Cut, Build, Deliver, Sources, History, Media | "not fetched yet" / "ends mid-sentence" / "widener would move it" in doubt; lower-case Build, Deliver, History, Sources buttons; "Draft with" read clipped | fixed | | Project piece (report video), all seven tabs | as the article's Cut…History | fixed (same components) | | Song piece: Overview, Cuts, Spec, Cover, Notes; a cut page | lower-case copy this song / save(d) / blind A/B / match / accept; the cover's rule-break warning in reject is a judgement | fixed | | Clip bench | lower-case controls (save window, play selection, reset, cut to quote, fetch to …) | fixed; left: the sibling bands' Signal tint (a selection overlay, ClipBench internals) | | Claim, narration, takes, drafts-review benches | fit 1366×768; takes' "listen" | fixed: Listen; left: the claim bench's option values (media, coffee, employees …) are values | | Create and each form (research, article, board, recurring/watch, the four video lines, song) | Start was a Signal outline | fixed: Start sweep / Start research filled | | Series page, a triage page | R6.1's lane | left for the orchestrator: the triage page's crumb "work" (twice, `app/series/[id]/triage/[k]/page.tsx`, `TriageView.tsx`) | | The refresh dialog | R6.1's lane | left for the orchestrator: its started line is `text-signal-text` (a status in Signal, `RefreshDialog.tsx:256`) | | Tools | tool names lower case (sort, salvage, find …) | left: tool names are the tools' ids, in the rail and the list alike (`shell.spec` reads them exact) | | Find, mix, faces, sources, trim, song piles, the deck's piles, verdict bench | lower-case titles; Signal-outline Find / Play / Commit / Run the chain; green Render / Save trim; lead paragraphs | fixed | | Settings · generation | "2026-10-14UTC"; preset names code / balanced / api / local | fixed the date; left: the presets are the policy's ids, spelled so everywhere (chip, Create) and read exact by `settings.spec` | | Settings · system | Prune… in the reject word | fixed: outline | 1366×768 fit: no page scrolls sideways (measured, both themes). **Keyboard-only pass** (in the spec): Inbox `j`/`k` light the first card with the focus on it, Tab reaches **Retry run**, Enter opens zeta's Iterations; `4` opens its Cut tab; Tab to **Walk the cut**, Enter opens clip bench a1; Tab to **← zeta**, Enter returns to the piece; ⌘K, "Inbox", Enter returns to `/`. Every Tab stop shows a focus ring. **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `5d1705b8`, `798b3622`, `e1bf8a64`; `pnpm --filter umtool typecheck` clean at every commit | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 860 tests: 858 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | 31/31 | | `pnpm run test:scripts` (reads the capped build's traces) | 1012 tests: 1010 pass, 2 skipped, 0 fail | | `pnpm archilyzer docs cli --check` | clean | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot `--build --estimate 5120`) | exit 0 at `e1bf8a64`: compiled 14.4 s, 41 s wall, 1.53 GB max RSS; the link removed | | `visual-audit.spec` alone (three passes while fixing) | pass 1: 63 passed, 1 failed (the faces deck's current row, a lit item: the spec now exempts `aria-current`), 2.2 min; pass 2: 65/65; pass 3: 65/65 (2.3 min) | | full umtool e2e, run 1, at `26cc4408` (detached, queued, with `P6B_SHOTS`, `R5_SHOTS`, `R6_SHOTS`) | **542 tests: 535 passed, 1 failed, 6 skipped** (the song-data skips), 12.0 min. The red: `media-surfaces.spec:40`, the cut's provenance line lacked `cut-draft.json` right after its draft job ended (`prov` was null while `row.drafted` was read): a read between the stub's manifest write and its draft-file write, in code this lane did not touch. The spec alone at the same tip **3× — 2/2, 2/2, 2/2** | | full umtool e2e, run 2, at `26cc4408` | **542 tests: 536 passed, 0 failed, 6 skipped**, 13.3 min wall | | `run-trace.spec` + `research.spec` at `277c130b` (the run page's crumbs) | 18/18 | | common, editor, mcp | not touched | **Left.** - R6.1's files, listed above for the orchestrator: the triage page's "work" crumb, the refresh dialog's Signal status line. - Small lower-case affordance links ("+ note", "show every quote", "+ notes on this cover") and value labels (option values, variant tags, preset ids, tool names): not actions that name a result. - Failure and error words stay in the reject word (an error says what to fix); a check's ✓/✕ and a rule-break warning are judgements. - `media-surfaces.spec:40` went red once in two full runs (above): the provenance line read before the draft file was there. A read-ordering race in the Media tab's refresh after a draft job, worth one look when the drafts view is next touched; not reproduced in 3 runs alone. - `triage-first.spec` gained this lane's Work-kind check (a watch under Watch, not Series): R6.1 may touch that spec too. ### P6b rollout (orchestrator, 2026-10-14) Rulings: the `destructive` button variant is removed (a variant named for red that draws an ink outline would lie); the benches' "Projects" crumb links `/projects`; the claimed-project page redirect stays a 307 (it follows state); the leftovers in R6.1's files (the triage page's "work" crumb, the refresh dialog's Signal status line) go to R6.1. Gates on `850e0989`: full umtool e2e 536 passed, 0 failed, 6 skipped (run 1's single red, `media-surfaces.spec:40`, a read between the stub's two writes, 3/3 alone and green in run 2); the new `visual-audit.spec` over 64 pages in both themes. `main` fast-forwarded to `850e0989`; umtool built (after waiting on the heavy slot for memory) and restarted (`scripts/p6b-umtool.sh`). Live: all 16 `redirects.mjs` rows answer **308** to their destination, `/?from=<slug>/<id>` included (→ `/create?from=…`); every place 200, `/work?kind=watch` 200; decisions API 833 rows, notes' hrefs end `note=<id>`; the MCP `notes` tool lists the same 14 open notes. Browsers now cache these redirects for good. ### R6.1, as shipped **What.** The co-host pilot's first live tick (2026-10-14) ended **quiet, $0** with no warning while recordings in its scope had been uploaded since its start date: tier 0 took "what exists in scope" from ONE `enumerate_matches(".")`, which stops at 2,000 recordings (`MCP_POLICY.hardVideoCap`). The scan reads channels in order and a channel's pages oldest first, so on five channels holding 23,284 recordings it stopped inside TheQuartering at page 5 of 29 and never reached the newest. The cap was in triage.json's warnings but never reached the tick: the tick ended quiet and recorded a quiet edition, and seen.json kept the 2,000 old ids as `known`. The next by-id run would have counted the other ~21,000 as new. Separately, the fetch stage queued `transcribe-bucket` while transcription was paused and would have waited up to 6 h; a cancelled step raised no warning, and every "nothing new to transcribe" was one. - **A complete scope listing** (`mcp/src/enumerate.ts` `listRecordings`; `CorpusTools.listRecordings`, not an agent tool; `CorpusToolsLike.listRecordings?`). Every recording in a scope, by id, comes from each channel's transcripts manifest (`slugToPage`: every record the build ships, uncapped). Dates and titles come from the summaries index, or, for a record the index lacks, from its own page (only those pages are read). A posts channel lists nothing and is not a gap. A scope token no channel matches, a manifest that does not read, or a record no page dates is said in `problems` and makes the listing incomplete. Tier 0 (`triage/tier0.ts`) lists with it; a corpus without it falls back to `enumerate(".")` per channel, its cap said per channel. **The listing is the WHOLE scope on a first run too** — this departs from the brief's "bound by `date_from = since`", because a since-bounded listing would become the next run's `known` and every older recording would then be new by id. "New" on a first run is still by date (`date >= since`). It is cheap: the pilot's five manifests and the index list 23,284 recordings in under 2 s. - **Bounded term queries.** `enumerate_matches` takes **`ids`** (`search.ts`): the scan plan reads only the pages holding them (`slugToPage`, the posts pass too), only their records match, and the footer says "restricted to N recording id(s): M held by a channel in scope". Tier 0's terms query carries the new ids, and on a first run also `date_from = since`. `deltaCandidates` with no known set adds `date_from = since` (a refresh of an iteration that kept no whole match set; the daily check) and takes `ids`. A restricted sweep's `enumerate_matches` passes its ids to the scan (`tasks/restrict.ts`), so a cap on the scope can no longer hide them. - **No silent zeros.** - `enumerateOf` reads a capped answer's coverage whole. A channel name with parentheses ("TheQuartering (Rumble)") is read to the line's end; the old reading cut it at the ")". The channel the cap stopped inside is new: `stopped`, "TheQuartering (stopped at page 5 of 29)". `enumerateViaTools` puts it first in `unreached`. - **Tier 0** is `partial` with `unreached` and `problems`, and `listedBy`, manifests or enumerate. A partial run keeps no seen set (`seen: null`): the last complete run's seen.json stands, or with none the next run counts new from its `since`. Its summary starts "partial (not reached: …) ·", and its warning says what was not kept. `partialWords` (triage/types.ts) is the one phrasing. The tick line's triage carries `partial`, and so does the job marker. - **The tick** (`reportTick.ts`): a partial triage **below the threshold** ends the tick **`partial`**, a new tick status in `CALL_STATUSES` (a Your call card). The reason reads "partial — not reached: …; nothing flagged in what was read (…)". A series records no quiet edition for it, so the next tick covers the window. A partial triage **at or above** the threshold still escalates, with a warning on the tick. - **The window check** (R5's `CountWindow`): the editor's count says `partial` and what it did not read. A 0 from a capped check ends the edition step `partial` ("the window check of … was capped (…): nothing matched in what it read, so the window is not called quiet"). With matches, the count is logged as "at least N" and the edition goes on. - **The refresh** (`refresh/task.ts`): a capped search with nothing to update ends `partial` (a new `RefreshStatus`), "partial — not reached: …; Nothing new since … in what was read". This holds after a sweep that found nothing too, unless a triage named the ids. `r4Steps.refresh` maps it to a partial tick. - **The daily check** (umtool `lib/inbox/refresh.ts`): it keeps `unreached`, the stopped channel included. A partial check with nothing new still raises **refresh-available**: "nothing new since … in what the check read · the check was partial — not reached: …; a Refresh reads the rest". With new ones it says "at least N". `umtool refresh --check` prints `PARTIAL (not reached: …)`. - **R4.1 — fetch under holds** (`refresh/fetch.ts`). Before queueing `transcribe-bucket`, the fetch asks `transcriptionHeld`. The default is `transcriptionHeldNow` (`controller/reportRefresh.ts`): the worker pool's live state, paused or no worker enabled, never the stored flag. Under a hold the step is skipped with "transcription is paused (…) — N recordings wait; a later run reads them once transcribed", keeping the ids, and it is a warning. A `cancelled` step is a warning. "nothing new to transcribe" is a skip marked `routine`: never a warning, in `r4Steps` or a refresh's tick. - **Recovering a bad run: `report-schedule` `reset-triage {id, k?, confirm?}`** (`controller/reportSchedule.ts` `planResetTriage` / `resetTriage`). The plan, unless `confirm: true`, names three things. The triage runs from run `k` on (default all, `reports/.triage/<id>/<k>/`). seen.json goes when those runs fed it, so the next run counts new from its `since`. The quiet edition lines those runs covered are dropped (found by the ticks' `edition` + `triage.k`), so the next tick covers their windows again. The schedule, its cadence, its tick log and every edition article stay. The reset is refused while a tick runs; with nothing to discard it is refused, saying so. One read-patch-write under the article store's lock. COMMANDS.md regenerated. - **umtool**: - Inbox kind **tick-partial** (Your call, **See what was missed** → the schedule's page), its why the tick's reason. - The series page tones a partial tick (`open`) and marks a partial triage run (`data-triage-partial`, the `partial` badge and what it did not reach). The triage page's tier 0 names it (`data-tier0-partial`). - A refresh `partial` is labelled on the Overview (the neutral `state` tag, as held-by-cap is). - After the merge of `main` (P6b), P6b's notes on these files: the triage page's crumbs start at the series or watch it belongs to (no "work"), and the Refresh dialog's started line is a neutral status (`text-text-2`, not Signal). - Files touched (for the orchestrator): `app/series/[id]/page.tsx`, `app/series/[id]/triage/[k]/page.tsx`, `components/series/TriageView.tsx`, `components/articles/RefreshSummary.tsx`, `components/articles/RefreshDialog.tsx`, `lib/inbox/{schedules,groups,what,refresh}.*`, `lib/research/triage{,-types}.ts`, `lib/articles/refresh.ts`, `bin/refresh.ts`, `e2e/triage-first.spec.ts`. Not touched: `umtool/docs/`, which is P6b's. `docs/inbox.md` and `docs/triage.md` should gain tick-partial, the partial tier 0 and reset-triage. **Read-only proof on the real corpus** (offline `tsx` over `export/.export-builds/jeralyzer/out`, no editor, no writes; the pilot's scope and terms from its triage.json; `since = 2026-10-07`): | | | |---|---| | the old scan (`enumerate(".")` over the scope) | 2,000 rows, partial: stopped inside TheQuartering at page 5 of 29; never reached TheQuartering (Rumble), Quartering Live, Jeremy Hambly, Melonie Mac | | the listing | **23,284 recordings in scope, complete**: the-quartering 11,583, the-quartering-rumble 8,093, jeremy-hambly 2,419, quartering-live 980, melonie-mac 209; none undated | | new (uploaded on or after 2026-10-07) | **99**: the-quartering 39, the-quartering-rumble 19, jeremy-hambly 22, quartering-live 17, melonie-mac 2 | | term matches among them | **1**: melonie-mac `-oMa-NtaEOQ` 2026-10-08 "Go Boom Live! Ep 61" (the terms query read 99 ids; not partial) | | seen.json it would keep | 23,284 ids | | time / memory | 1.8 s, 403 MB RSS | The brief expected hundreds new; the build holds 99 uploaded since 2026-10-07. An independent per-channel check agrees: `enumerate(".", date_from)` gives 39 / 19 / 17 / 22 / 2, none truncated, and the terms in the same windows match 1, the same recording. The whole-scope terms query the pilot ran matched 1,619 and was truncated; none of the 1,619 was recent. So the pilot's "0 new" was a silent partial, and on this build the honest answer is 99 new, 1 candidate. **Commits** (`ux/r61`, from `main` `4ceae82d`; `main` `26a482cf`, P6b live, merged before the final umtool gates): | sha | what | |---|---| | `10626f0b` | common, mcp, editor: `listRecordings` and enumerate's `ids`; tier 0 on a complete listing with bounded terms; partial everywhere an enumerate decides (tier 0, the tick, the window check, the refresh, `deltaCandidates`); `enumerateOf`'s coverage read; R4.1's transcription hold, cancelled and routine steps; `reset-triage`; tests (common +12, mcp +3); COMMANDS.md | | `f152740d` | umtool: tick-partial, the series and triage pages' partial, a partial refresh, the daily check's partial card and `--check`; unit tests (+2) | | `3c3308c4` | e2e: `triage-first.spec`'s partial tick (the stub's "partial"); `ops-api.spec`'s reset-triage over HTTP | | `202df297` | `[Unreleased]` bullets | | `795e5002` | merge `main` `26a482cf` (P6b live): CHANGELOG (both sides); `triage-first.spec` auto-merged | | `dcdc9339` | P6b's notes: the triage page's crumbs, the refresh's neutral started line | | (this commit) | this record | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `10626f0b`, `f152740d`, `3c3308c4` (common, umtool, editor); umtool clean at `dcdc9339` | | common (`SETTINGS_FILE` at the primary's, read only) | **4167/4167** at `dcdc9339`. A first run before COMMANDS.md was regenerated had `cli-docs.test` red, which the same commit fixes. +12 new: tier 0 over a scope larger than the cap whose new recordings sort last; a capped scan partial, the channels named, seen not kept and the earlier seen.json standing; the corpus's listing the default; enumerateOf's coverage; deltaCandidates bounded by since and ids, partial under a cap; a capped refresh partial; R4.1's held, routine and cancelled steps; a partial tick (series, watch, living); the window check under a cap; r4Steps' partial and warnings; reset-triage | | mcp | **368/368** (+3: `listRecordings.test.ts`, a three-page channel with the newest last: a capped scan's coverage parsed back, the listing dated by the index and by a page, an unknown channel said, enumerate with `ids` reading two of three pages) | | editor unit | **304/304** | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 861 tests, 859 pass, 2 skipped, 0 fail (before and after the merge; +1, `inbox/schedules.test.mjs`'s tick-partial) | | `pnpm --filter umtool test` | **32/32** (before and after the merge; +1, the partial daily check's card) | | `pnpm run test:scripts` | 1013 tests, 1010 pass, 3 skipped, 0 fail (before and after the merge) | | `archilyzer docs cli --check` / `settings example --check` | clean / clean | | capped editor `next build` (heavy slot, `MemoryMax=5G`) | exit 0; compiled 23.0 s, 2:43 wall, 2.51 GB max RSS | | capped umtool `next build` (corpus linked inside the heavy slot, `MemoryMax=5G`) | exit 0; compiled 13.5 s, 1:24 wall, 1.54 GB max RSS; the link removed | | **full editor e2e** (`export/public` linked from the primary, 0 dangling; queued, detached) | **714 tests: 701 passed, 1 failed, 12 skipped**, 24.0 min. Run on `3c3308c4`'s tree; the merge after it changed no editor file or spec (outside umtool only CHANGELOG and plans). The red: `channel-build-toggle.spec:23`, the /channels toggle still "Skipped" after 5 s under load; R6.1 touches no channels page or index build — alone below. Green among the 701: `ops-api.spec:1013` (the watch over HTTP, then reset-triage's plan, confirm and refusal) and `report-draft.spec:413` (a watch over the fake models, tier 0 now on the corpus tools' listing) | | `channel-build-toggle.spec` alone (editor) | **1/1, 1/1, 1/1** | | **full umtool e2e** at `dcdc9339` (merged; queued, detached) | **543 tests: 533 passed, 4 failed, 6 skipped**, 10.6 min. `triage-first.spec` green, including the new partial tick (the tick partial, the series page's tick row and run, the triage page's tier 0, the Inbox's tick-partial card and its action) and P6b's Work-kind check. The four reds are `board.spec`'s serial chain from `:127` (`e` did not focus the claim at `:167`; the three after it read the board it left). No board file is touched here | | `board.spec` alone (5 runs at `dcdc9339`) | 8/8, **4 passed 4 failed** (the same `:167`, while this lane's common suite ran beside it), 8/8, 8/8, 8/8 | **Found and left.** - **`board.spec:127`'s `e` still loses the claim field under load**, after the board-races fix: red in the full run and in one of five runs alone, that one beside a 4,167-test common suite. Green in four quiet runs alone. Not this lane's (no board file touched); for whoever next touches `BoardView.tsx`'s held keys. - **`channel-build-toggle.spec:23`** went red once in the full editor run (the /channels toggle still "Skipped" after 5 s under load) and was 1/1 three times alone. - **The co-host pilot still carries its bad run.** `reports/.triage/co-host-updates/` holds run 1 and a seen.json of 2,000 old ids taken from a partial scan. The series holds the quiet edition that run covered. After rollout: `pnpm ops report-schedule --json '{"action":"reset-triage","id":"co-host-updates"}'`, then the same with `"confirm": true`. The next tick then counts new from its since. Nothing was written to the live store here. - **A first run's listing is the whole scope, not `since`-bounded** (above). The terms query is what `since` bounds. - **The fallback** (a corpus without `listRecordings`: none in the editor, the MCP's in-process tools have it) still scans `enumerate(".")` per channel. A big channel there is partial and says so; it is never quiet. - **The refresh's search again with a known match set still scans the whole scope.** "Changed" and "unmatched" need every match, so it is not `since`-bounded. A scope with more than 2,000 matches is partial, said, and an update still reads what was found. - **`umtool/docs/` is P6b's.** `inbox.md` and `triage.md` should name tick-partial, the partial tier 0 and `reset-triage`. - **Not built:** a partial edition that sweeps the window anyway. A partial tick is the operator's call: narrow the scope, reset, or tick again. ### R6.1 rollout (orchestrator, 2026-10-14) Ruling: the scope listing covers the whole scope on a first run too (a since-bounded listing would become the next run's known set and make every older recording new); "new" on a first run is still by date. Gates on `4356199b` (main `26a482cf` merged): common 4167/4167 in the primary after the fast-forward; full editor e2e 701 passed, 1 failed (`channel-build-toggle.spec:23`, 1/1 alone three times); full umtool e2e 533 passed, 4 failed — `board.spec`'s chain from `:127` under load (a third board race, taken next). Editor built and restarted (`scripts/r61-editor-{build,restart}.sh`; no ZodError, no queued metas lost), then umtool. Read-only proof on the `jeralyzer` build for the pilot's scope since 2026-10-07: the old scan 2,000 rows, partial, four channels never reached; the new listing 23,284, complete; 99 new; 1 term match. The pilot's bad run reset with `report-schedule {"action":"reset-triage"}` (plan, then confirm): run 1, its 2,000-id seen set and the quiet edition it covered removed; the schedule stays paused; tick 2 started. ### R6.2, as shipped **What.** The co-host pilot's tick 2 (2026-10-14, after R6.1's reset) listed 23,290 recordings in scope from the build's manifests and stored every one in `seen.json` — including recordings the build lists with no transcript yet (synced but not transcribed, or a deleted upload with metadata only). A recording seen before its transcript lands is never new again, so its late transcript is never judged: the gap R6's by-id rule exists to close. On the `jeralyzer` build, 96 of the 23,290 have no transcript; 13 of them are this week's uploads (12 Rumble, 1 Quartering Live) waiting on transcription. - **The listing says which recordings have text** (`mcp/src/enumerate.ts` `listRecordings`). Each row carries `hasTranscript` (`ListedRecording`, `refresh/delta.ts`): the build's stats index's flag (`statsIndex()`, one read per source, cached; `statHasText`), or, for a record the summaries index lacks and whose page is read anyway, its own cues (`recordHasText`). `null`: the build does not say (no stats shipped, no entry) — read as judge-able, as before. The enumerate fallback (a corpus that cannot list) does not say either. - **Seen means judge-able** (`triage/tier0.ts`). `splitByTranscript` splits the listing into what can be judged and what waits (`hasTranscript: false`). A waiting recording is neither new nor seen this run, so the run after its transcript lands counts it new by id, and it is a candidate if it matches. `nextSeen` is the stored set: known + judge-able, less the candidates past the cap and less the waiting ones — so an id an earlier run stored while it had no text (tick 2's seen.json) is dropped on the next complete run, and heals. A partial run still stores nothing. - **Said.** The tier 0 log has a first line `tier 0: 23,290 listed · 96 without a transcript yet (not seen; new once transcribed)` (`listedWords`, `triage/types.ts`). triage.json's tier 0 carries `untranscribed` (the count) and `untranscribedIds` (the first 50). umtool's triage page counts them under Tier 0 (`data-tier0-untranscribed`: "· 96 without a transcript yet", the title saying they are not seen). - **R4.1's grammar.** The fetch's transcription-paused skip says "1 recording waits; a later run reads it once transcribed" for one ("N recordings wait; … reads them" otherwise). - **For R6.3** (the coordinator's ask): the per-recording flag and the seen rule are small exported functions, each unit-tested — `recordHasText`, `statHasText` (`refresh/delta.ts`), `splitByTranscript`, `nextSeen` (`tier0.ts`). - Files touched: `common/lib/report/draft/{refresh/delta.ts,refresh/fetch.ts,triage/tier0.ts,triage/types.ts}`, `common/testing/schedule/opsStub.ts` (a quiet stub triage lists two recordings without a transcript), `mcp/src/enumerate.ts`, `umtool/components/series/TriageView.tsx`, `umtool/e2e/triage-first.spec.ts`; tests in `triage/triage.test.ts`, `refresh/refresh.test.ts`, `mcp/src/listRecordings.test.ts`. Not touched: `BoardView.tsx`, `board.spec.ts`, `umtool/docs/` (the sibling lane's). **Read-only proof on the real corpus** (offline `tsx` over `export/.export-builds/jeralyzer/out` through `createCorpusTools` — the editor's path — no editor, no writes; the pilot's scope, terms and since from its live triage.json and seen.json, read only): | | | |---|---| | listed | **23,290, complete**: the-quartering 11,585, the-quartering-rumble 8,095, jeremy-hambly 2,421, quartering-live 980, melonie-mac 209 | | without a transcript | **96** (the-quartering 4, the-quartering-rumble 79, jeremy-hambly 7, quartering-live 2, melonie-mac 4); none unknown. The brief's four examples (`vmTjKK_Yi5Y`, `jNz-bYBTdPE`, `nKm18mxypnk`, `2P2xsqPgovY`) are among them | | of those, uploaded on or after 2026-10-07 | **13**: the-quartering-rumble `v7elaoy` … `v7ep2ba` (12, 2026-10-12 → 14), quartering-live `2P2xsqPgovY` (2026-10-14) | | tier 0 as tick 2 ran (first run, by date) | new **92** (tick 2 counted 105: the 13 above now wait), 1 candidate (melonie-mac `-oMa-NtaEOQ`, as tick 2), not partial | | would-be-seen | **23,194** (23,290 − 96); tick 2 stored 23,290 | | the next tick over the live seen.json (by id) | 0 new; the stored set drops the 96 (heals) → 23,194 | | cross-check: the stats flag against each record's own cues | 188 records (the 96 + the 92 new with text): **188 agree** | | the listing alone, cold | 1.1–1.4 s, ~300 MB RSS (R6.1's listing without stats: 1.8 s) | **Commits** (`ux/r62`, from `main` `54dbfb79`; `main` `21880180` — R6.3's plan section — merged before the gates): | sha | what | |---|---| | `fa6212c1` | common, mcp: `listRecordings`' `hasTranscript`; tier 0 keeps an untranscribed recording out of new and seen; the listed line; "1 recording waits"; tests (common +3, mcp +1) | | `0869f6ca` | umtool: the triage page's Tier 0 count; `triage-first.spec` checks it on the quiet run | | `16620c18` | common, mcp: `recordHasText`, `statHasText`, `splitByTranscript`, `nextSeen` as exported functions, unit-tested (+1) | | `dcc90df6` | merge `main` `21880180` (plans only) | | `66757900` | `[Unreleased]` bullet | | (this commit) | this record; the status row | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `fa6212c1` and at `66757900` (merged); common + mcp clean at `16620c18` | | common (`SETTINGS_FILE` at the primary's, read only) | **4171/4171** at `dcc90df6` (+4: the pieces; a recording listed with no transcript neither new nor seen, new and a candidate once transcribed, the counts logged, a pre-R6.2 seen id healed, unknown judge-able; a run end to end with seen.json; `listedWords`. `refresh.test`'s R4.1 test also asserts the singular) | | mcp | **369/369** (+1: the stats flag, a page-read record's cues, both ways) | | editor unit | **304/304** | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 861 tests, 859 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | **32/32** | | `pnpm run test:scripts` | 1013 tests, 1010 pass, 3 skipped, 0 fail | | `archilyzer docs cli --check` / `settings example --check` | clean / clean | | capped editor `next build` (heavy slot, `MemoryMax=5G`) | exit 0; compiled 26.9 s, 0:57 wall | | capped umtool `next build` (corpus linked inside the heavy slot, `MemoryMax=5G`) | exit 0; compiled 14.7 s, 1:04 wall; the link removed | | **full editor e2e** at `66757900` (`export/public` linked from the primary, 0 dangling; queued, detached) | **714 tests: 701 passed, 1 failed, 12 skipped**, 23.5 min. The red: `pacing.spec:195` (a live 429's pick order, `wp429vid1` then `a2`, read one extra pick under load); R6.2 touches no pacing or download code — alone below. Green among the 701: `report-draft.spec:413` (a watch over the fake models; tier 0 on the corpus tools' listing, now with the e2e corpus's stats) and `ops-api.spec`'s report-schedule rows | | `pacing.spec` alone (editor) | **2/2, 2/2, 2/2** | | **full umtool e2e** at `66757900` (queued, detached) | **543 tests: 533 passed, 4 failed, 6 skipped**, 12.6 min. `triage-first.spec` 7/7 green, including the quiet run's Tier 0 count ("· 2 without a transcript yet"). The four reds are `board.spec`'s serial chain from `:127` (the known race, being fixed in `ux/board-race-2` beside this lane; no board file touched here) | | `board.spec` alone (umtool) | **8/8, 8/8, 8/8** | **Found and left.** - **The pilot's live seen.json still holds the 96.** R6.2 heals it on the next complete run, but only for a recording still untranscribed then: one whose transcript lands before that run is in `known` with text, so it is not new and is missed. The 13 this-week recordings are exactly that risk. After rollout, the planned reset (`report-schedule {"action":"reset-triage","id":"co-host-updates"}`, then `"confirm": true`) avoids it: the next tick counts new from its since, and with R6.2 it stores no untranscribed id. - **A recording that never gets a transcript** (a deleted upload with metadata only, e.g. `vmTjKK_Yi5Y`) is counted as "without a transcript yet" on every run. Harmless (never judged, never seen); the count says it. - **The enumerate fallback** cannot tell; it treats every row as judge-able, as before. No corpus the editor uses lacks `listRecordings`. - **`umtool/docs/triage.md`** is the sibling lane's: it should say a recording with no transcript is not seen and is new once transcribed, and name the Tier 0 count. ### R6.2 rollout and the pilot resumed (orchestrator, 2026-10-14) Gates on `3d8af5b8` (main `21880180` merged): common 4171/4171 in the primary after the fast-forward; full editor e2e 701 passed, 1 failed (`pacing.spec:195`, one extra pick under load, 2/2 alone three times); full umtool e2e 533 passed, 4 failed (`board.spec`'s chain from `:127`, being fixed). Editor built and restarted (`scripts/r62-editor-{build,restart}.sh`; no ZodError, no queued metas lost), then umtool. **Pilot, operator's rulings ("do your recommendations"):** the watch's terms gained `\bMelanie\b` and `\bguests?\b` (transcripts spell her "Melanie"; tier 1 screens the noise at $0); tick 2's state reset with `reset-triage` (plan, then confirm: run #1, its 23,290-id seen set that held the 96 untranscribed recordings, the quiet 2026-10-07 … 10-13 edition line); the schedule **resumed** — weekly, Mon 06:00 America/New_York, first automatic tick 2026-10-19. Tick 2's review, for the record: tier 0 listed all 23,290, 105 new since 10-07 (81 transcribed), one candidate (Melonie Mac's Go Boom Live! Ep 61 plugging her "Bible Time with Melanie Mack" channel) rightly dismissed; a broader hand scan of the 81 found nothing co-host related — a quiet week, as the record says (no co-hosts for the rest of the year, 2026-09-28; Melonie Mac on hiatus). ### board.spec race 3 + R6.1 docs **What.** R6.1's full umtool e2e had four reds in `board.spec`'s serial chain from `:127`: "`e` did not focus the claim field". Run alone it went 8/8, 4/8, 8/8, 8/8, 8/8; the 4/8 ran beside a heavy common test run. The board-race fix (`21c29bf5`) had held keys while a write was queued or answering. Two later gaps were left open, and a key landing in either acted on a list or a focus that was about to change. **Found, not guessed.** - **The reproduction.** A throwaway stress spec ran rounds of alt+j / alt+k + `e` on a case of its own, under CDP `Emulation.setCPUThrottlingRate`. At 6× it missed 10 of 25 rounds on `b969f61b`; each time the focus ended on the moved line. - **The cause, from a page log.** The order on a miss was `apply` → `e` (trusted, not held) → `refocus effect`. The key arrived AFTER the move's commit but BEFORE its passive effects: - The board counted itself settled at the commit (a layout effect), so `e` focused the new claim field. - The deferred refocus of the moved line then took the focus back, and the claim typed next went to the line. - The remounted list's light and its j/k listener are passive effects too. - **The first gap**, closed in `b969f61b`: a write ends in microtasks, while React commits its answer in a later task. The board counted itself settled when the write ended. **Fix** (`components/research/BoardView.tsx`). - **Settled** means no write queued or answering AND the last answer drawn with its effects run. `drawnV` is set in a passive effect declared after the refocus. Being the parent's, it also runs after the list's own effects. Until then keys are held, as during a write. Stress after the fix: 0 of 25 rounds at 6×, 0 of 40 at 10×. - **The view, the light and the list's key are ONE state**, with `v` saying which answer is drawn, so they can never commit apart. - **An added section** is lit and focused in the redraw that draws it, inside its write. Before, it was a second remount after the write had ended. - **`data-board-keys="ready"`** is set once the board's key listeners are attached. **The spec.** One new test hits each gap for certain from inside the page. These are spec-only hooks; the app has no test code. - **answer:** `Response.json` is wrapped, and `e` is dispatched 50 microtasks after the held move's answer is read. That is after the write and before the commit. - **commit:** a MutationObserver sees the remounted list arrive and dispatches `n` in its callback. That is after the commit and before the passive effects' task. Each key must focus its field, and the text typed next must be saved whole. Every board test now opens the board through `openBoard`, which waits for `data-board-keys="ready"`: before that, a key is the browser's, because nothing on the page listens yet. **Proof the spec catches both.** Each old `BoardView.tsx` was run with the new spec, 2 runs each: - `b969f61b` fails the commit gap ("Noted after the redraw" not saved). Its second run also hit the original chain red, at `:137`, where `e` did not focus. - `main` (`54dbfb79`) fails the answer gap ("corded in the gap": the `R` and `e` were lost) and the chain. **R6.1 docs** (`umtool/docs/`). - `inbox.md`: **tick-partial** (Your call, **See what was missed**). Your call now includes a partial tick, and a partial `refresh-available` check says what it did not read. - `triage.md`: - **Partial runs**: never quiet, no seen set, the tick-partial card, capped window checks and refreshes. - **The fetch under a hold**: the transcription-paused skip as a warning, and "nothing new to transcribe" as routine. - **Recovering a bad run**: `report-schedule {"action":"reset-triage"}`, plan then `confirm`. - Tier 0's whole-scope listing by manifests; the lead paragraph folded into "Where it runs". - `refresh.md`: the `partial` status. - `recurring.md`: the fetch's skips and the partial tick. | sha | what | |---|---| | `b969f61b` | the answer gap: settled only after the answer's commit; `data-board-keys`; the spec's answer-gap test and `openBoard` | | `f70f41e5` | docs: R6.1 | | `231076a8` | the commit gap: settled only after the redraw's passive effects; one state for view, light and list; the add-section remount inside its write; the spec's commit gap | | `3a994922` | merge `main` `21880180` (plans only) | | `f5772c0e` | merge `main` `7ab19c75` (R6.2 live) | | `c0961d73` | docs: triage.md's tier 0 listing and R6.2's "seen means judge-able", in a section of their own (the tiers table as `main` has it, so R6.3's edits merge cleanly) | **Gates** (at `c0961d73` unless said). | Gate | Result | |---|---| | `board.spec` alone at `3a994922` (the fix + the plans-only merge) | 4 plain runs 9/9 each; 4 runs started beside `pnpm --filter ./common test` (run 1 truly under it, load 15; runs 2–3 waited for the queue behind ux-r62 until common had ended; run 4 load 11.7): 9/9 each | | `board.spec` alone at `c0961d73`, truly loaded (the run started, then common's suite, running through it) | 2 runs, 9/9 each (load 4.6 → 9.0, 12.0 → 15.5) | | repo-wide `tsc --noEmit` | clean at `3a994922` and `c0961d73` | | umtool unit | 861 tests: 859 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | 32/32 | | `pnpm run test:scripts` | 1013 tests: 1011 pass, 2 skipped, 0 fail | | `pnpm archilyzer docs cli --check` | clean | | capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0; compiled 12.8 s, 40 s wall, 1.63 GB max RSS; the link removed | | full umtool e2e at `c0961d73` (detached, queued) | **544 tests: 538 passed, 0 failed, 6 skipped** (the song-data skips), 10.8 min; `board.spec` 9/9 | `board.spec` alone, counted together: 10 runs, all 9/9 — four plain, four started beside common's suite, two truly under it — plus the full run. The stress spec stayed in the job's scratch; it was not committed. ### board.spec race 3 + R6.1 docs rollout (orchestrator, 2026-10-14) `main` fast-forwarded to `10542ff7`: the board is settled only after the refocus and the list's setup have run (keys held until then, `data-board-keys="ready"`), its view, lit line and redraw one piece of state; the spec reaches both gaps from inside the page. Stress 0/25 at 6× and 0/40 at 10× CPU throttling (10/25 missed before); `board.spec` 10/10 alone; full umtool e2e on the merged tip 538 passed, 0 failed, 6 skipped. Docs: `inbox.md` (tick-partial), `triage.md` (whole-scope listing, seen = judge-able, partial runs, the transcription-paused skip, `reset-triage`), `refresh.md`, `recurring.md`. umtool built and restarted (`scripts/board2-umtool.sh`); live `/research` and a case 200. ### R6.3, as shipped **What.** Learned spellings: a watch sees how the AI transcripts mishear the names it watches and adds its own terms (operator, 2026-10-14). Two ways a spelling is found, one rule for keeping it, and the operator's controls. - **The names** (`lib/report/draft/triage/learned.ts` `namesOf`): each top-level alternative of the terms that is literal once its `^`/`$`/`\b` anchors are stripped (a class, quantifier or group is skipped) and has a capital letter — proper names only (the review's ruling: lowercase words and phrases are not names). At most 16 a pass (`NAMES_PER_PASS`, the rest said as "not asked"). The pilot's terms give 9. - **Proposed** (`triage/confirm.ts` `proposeSpellings`, `parseProposals`): the triage model (the schedule's tier-1 model, `settings.generation.triage`, local by default) lists up to 5 likely mis-hearings a name. Put aside, with the reason kept: the name itself, a repeat, a spelling already in the terms, learned or removed, one the terms' own query already finds (`coveredByTerms`: "Melanie Mack" under "Melanie Mac"), non-words, more than 4 words. - **Heard** (`triage/judge.ts` `checkHeard`): with names, the window judge's prompt gains rule (6) and its schema `heard: [{span, means}]`. Code keeps a span only when `means` is a watched name, the span is not the name, not known and not found by the terms, at most 4 words, verbatim in the chunk the judge read (`locate`) and in the cues near that second (R2's word check); else it is put aside with why (`heardDropped` in triage.json). - **Confirmed by code and the judge** (`confirmSpellings`): every pending spelling is counted in scope at once and uncapped (`countPhrases`, below). No hits: dropped "no-hits"; a count that could not read everything and found nothing is "unread", never "none". Then the judge reads up to 3 windows where it occurs — a heard span's own recording first, then the newest — each answering whether it means the name and quoting the line, which must be verbatim in the window and the cues. **The rule (`keptByWindows`, the review's ruling): kept when at least 2 of the windows read say it means the name, each with a verbatim quoted line; with only 1 window, that yes AND at least 3 recordings in scope.** Else dropped: "not-verbatim" (the judge agreed often enough, its lines were not verbatim), "too-few" (one window's yes, fewer than 3 recordings), "not-the-name" ("k of n windows read said …, needs 2", the first "no"'s reason). Every window's verdict `{recording, start, means, verbatim, reason, quote?}` is kept on the spelling (`windows`) or on its drop, and logged. Kept: `{spelling, means, quote (the newest yes), recording, channel, start, url, hits, lines, source: proposed | heard, at, k?, windows}`. - **The count** (`mcp/src/enumerate.ts` `countPhrases`; `CorpusTools.countPhrases`, not an agent tool): the scope LISTED (R6.1's `listRecordings`, a recording without a transcript not counted), then enumerate's own scan restricted to those ids in batches of 1,000 (under the 2,000-recording cap, so a batch is never cut), the phrases as one alternation of escaped literals; each matching line is attributed to the phrases it holds. A capped batch or an incomplete listing makes it `complete: false`, said. A corpus without it: `countViaEnumerate` (the listing, then one restricted scan a phrase). - **Used** (`tier0.ts`, `task.ts`): the active spellings (their name still in the terms; at most 20) join the candidate query as escaped literal alternatives — never a regex (`spellingPattern`: escaped, `\b` at a word end). Tier 0 runs them as one query over the same new ids and dates, then, with several, each over what matched, so a candidate names the spellings that brought it (`by: ["learned"]`, `learned: [...]`). The judge's windows are around the terms and the learned spellings alike (`joinedQuery`). The log, the run's summary and triage.json say "terms + N learned" (`file.learned`, `tier0.learned`, the tick line's `triage.learned`). - **Suggest removing** (`suggestRemoving`): each run records each spelling's use (its candidates, how many were flagged; the last 8 kept). A spelling whose last 4 runs with candidates had none flagged is marked; nothing removes it but the operator. - **The store** (`learnedStore.ts`): `reports/.series/<id>/learned.json` beside `series.json` (a living report's: `reports/<article>/learned.json` beside `schedule.json`), `archilyzer-learned` v1: the spellings, the blocked ones, the last 100 drops, the last 10 passes, the terms the last pass asked about and when. ONE WRITER, `common/controller/learnedSpellings.ts` (read-patch-write under the article store's lock, atomic): `applyTriageLearning` (the triage job, after a run: the heard spans its confirmation kept, each spelling's use), `recordLearnPass`, `unlearnSpelling`, `promoteAlias`. - **The pass as a job** (`controller/reportLearn.ts`): `planLearn` (the names, the model, the cap, the last pass, a pass due — never proposed, the terms changed, a week since the last; refused for a schedule that does not triage or names no one) and `enqueueLearn`: one `report-draft` job, task `learn`, on the triage model's lane (`draft:local` through the GPU arbiter, ollama unloaded at the end; `draft:api` for the extractor, metered, usage rows task `learn`), over the newest build holding the scope; its log ends `@@report-draft {…, task: "learn", learn: {…}}`. - **When a pass runs**: a create of a schedule that triages and names someone, a change of its terms (the answers' `learn: {jobId, names}`), `report-schedule {"action":"learn"}`, and a tick before tier 0 when one is due (`TickSteps.learn`, the editor's `learnStep`, awaited; a failed pass is a warning on the tick, the triage runs on what is learned; the tick line's `learn`). - **Ops** (`report-schedule`, COMMANDS.md regenerated): `learn {id, dryRun?}` → the plan and the job (dryRun: the plan); `unlearn {id, spelling}` → removed and blocked (never relearned); `promote-alias {id, spelling, site?, confirm?}` → the plan (`planAliasPromotion`: the spelling added as a trigger to the alias whose label or trigger is the name — and to its regex suggestion as an escaped alternative when it does not match it — else a new alias `{id: slug of the name, label, triggers: [name, spelling], suggestion: both escaped, useRegex, note: "learned by watch <id> from <channel>/<recording> at m:ss"}`; the sites it could go to), then with `confirm` written through the alias writer (`aliasesStore` `write{Global,Site}Aliases`, coerced as the editor's /aliases page saves) and the spelling marked promoted. Refused when the alias already fires on it. - **umtool**: the series/watch page's **Learned spellings** panel (`components/series/LearnedSpellings.tsx`, read by `lib/research/learned.ts`): one lit list (spelling → name, hits, source; tags **suggest removing** (`state`), **idle**, **alias**), the lit spelling's proving line on the reader with its cite (the moment link), its facts and uses; **Remove** and **Promote to search alias**, each plan-then-confirm (the promote plan: the **Alias list** select — global or a site's — the alias as it will be written, **Confirm promote** / **Keep it**); **Propose spellings**; the last pass and the dropped ones with their reasons. The triage page's tier 0 says "terms + N learned (M by a learned spelling alone)" and a candidate a learned spelling brought reads `learned “…”`. `/api/schedules` forwards `learn`, `unlearn`, `promote-alias` (a plan clears no cache). The lit spelling lists each window the judge read with its verdict ("the name", "not the name", "not verbatim"). - **The umtool e2e stub** (`common/testing/schedule/opsStub.ts`): the real action and writer; a learn records a pass at once (two spellings kept, one dropped); the triage stub names a candidate a learned spelling brought; promote and unlearn are the real ones over the fixture (`<fixture>/search-aliases.json`, `<fixture>/sites`). - **Docs**: `umtool/docs/triage.md` "Learned spellings" (after main's R6.1/R6.2 sections, merged first), "What you see" and "Where things live". **Read-only proof on the real corpus** (offline `tsx` over `export/.export-builds/jeralyzer/out` through `createCorpusTools` — the editor's path — no editor, no writes; the pilot's scope, terms and question from its live series.json, read only; the local model `qwen3:8b` on ollama, the GPU checked free before every call — 0% busy, no model loaded, no transcription process — none was seen, nothing stubbed). Six runs; the model proposes differently each run (ollama's default sampling). Runs 1–4 calibrated the first cut; **runs 5 and 6 are the rules as shipped** (proper names only, a spelling the terms find is known, the majority rule): | run | rules | proposed | in scope | kept | |---|---|---|---|---| | 1 | first cut: one window's yes keeps | 26 (names and phrases) | Melony 39 recordings, Melanie Mack 1,039, Gothics 240, cohost 50 | Melony ("the packers beat melony steelers", wrong), Melanie Mack, Gothics, cohost | | 2 | + a spelling the terms find is known | 14 | Meloney 1, Melani 4, Gothics 240, Stix 94 | Meloney ("a guy named dr. Robert meloney", wrong), Melani, Gothics, Stix | | 3–4 | every window must agree | 19 each | Melony, Meloney, Gothics, Stix | none | | **5** | **as shipped** | 13 (9 names; 11 put aside as known) | Melony 39, Melina 4, Gothics 240, Stix 94 | **Stix** (2 of 3 windows) | | **6** | **as shipped** | 9 (14 known) | Meloney 1, Gothics 240, Stix 94 | **Stix** (2 of 3 windows) | Dropped under the rule as shipped: Melony 1 of 3, Melina 1 of 3 ("waitress Melina Salazar", another person), Gothics 1 of 3 (both runs), Meloney 0 of 1. **Checked against the cues by hand** (the hit line and three cues each side): | spelling | window | the cues | verdict | right? | |---|---|---|---|---| | Stix | the-quartering-rumble `v753wec` 1:37:31 | "I'm thankful for Stix, even if he's kind of lost his way / over the past couple of years" | the name | yes — the person, a former co-host | | Stix | the-quartering-rumble `v6x1c7u` 1:29:49 | "Stix is crashing out. / Oh no. / Why? / What's he doing?" | the name | yes | | Stix | quartering-live `3PWNracs5Gc` 45:37 | "Yeah, what does Stix do now? … I've reached out to Stix. I don't want / to make things worse for him" | not the name | **wrong** — it is him (the window opened on an ad read) | | Gothics | quartering-live `wRmzxEW0qJc` 30:19 | "I forget her name. / Gothics came over and they were really / nice to her" | not the name | **wrong** | | Gothics | quartering-live `95SQ02ALiCs` 1:46:54 | "there used to be a guy named / Sticks on the show. Not anymore. / Gothics. Not anymore." | not the name | **wrong** | | Gothics | quartering-live `cSVLgZVS2-E` 20:59 | "we could bring / Gothics in probably" | the name | yes | So Stix (Styx) is learned rightly, and its third window — "what does Stix do now?" — was a miss by the judge, not the word "sticks". Gothics (Gothix) is a real mis-hearing the 8B judge rejects in two of three windows, so it is not learned. "Sticks" (another hearing of Styx, `95SQ02ALiCs`) was not proposed in either run. The count read all **23,194** transcribed recordings in scope (complete, no problem) in one scan for every phrase: **9–11 s**; a whole pass 38–52 s, 16–26 model calls, $0; ~1.3 GB RSS. The brief's example, "Melanie Mack", is already found by the pilot's terms (`Melanie Mac` as a substring, and `\bMelanie\b`), so it is known, never proposed. **Commits** (`ux/r63`, from `main` `7ab19c75`; `main` `51a6fa8d` merged before the final gates): | sha | what | |---|---| | `66aef2e9` | common, mcp, editor: the names, proposals, heard spans, the confirmation, the count (`countPhrases`), the query, the store and its one writer, the learn job and the tick's step, report-schedule learn / unlearn / promote-alias; tests (common +18, mcp +1); COMMANDS.md | | `af899040` | umtool: the Learned spellings panel, the triage page's learned candidates, `/api/schedules`' actions, the stub's pass; `learned-spellings.spec`, `lib/research/learned.test.ts` | | `b3d39256` | editor e2e: `report-draft.spec` (a pass over the fake model, then the tick's query carries it), `ops-api.spec` (learn's plan, promote-alias plan then confirm, unlearn) | | `e613df92` | the calibration on the proof: every window must agree, a spelling the terms find is known, the confirm prompt, a hyphenated word is not a phrase | | `c7e60ae1` | merge `main` `51a6fa8d` (board race 3, the R6.1/R6.2 docs) | | `1a5aeebd` | `umtool/docs/triage.md` Learned spellings; the ops example | | `3eff3e68`, `12f232e4` | `[Unreleased]` bullets | | `6bed2c6a` | this record (first cut); the status row | | `aaba3723` | editor: Settings' save answers without revalidating, the form refreshes after (`cookies-mode.spec:73`, below) | | `27a35ab9` | the review's rulings: the majority rule (`keptByWindows`, "too-few"), each window's verdict kept and listed, proper names only; tests, the stub and the editor e2e to match | | `442b9568` | docs and changelog to match; the Settings bullet | | (this commit) | this record, final | **Gates.** | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean at `66aef2e9`, `af899040`, `e613df92` and on the merged tip | | common (`SETTINGS_FILE` at the primary's, read only) | **4190/4190** on the merged tip (+19: `triage/learned.test.ts` 14 — names, proposals, escaping, tier 0's learned candidates, heard spans, the confirmation's drops and keep, every window agreeing, an unread count, a pass, the cap, blocked, suggest removing, learnDue, the alias plan, a triage run that hears and confirms; `controller/learnedSpellings.test.ts` 5 — learn's plan and door, a create and a change of terms starting a pass, unlearn, promote-alias global and a site's in a temp dir, the tick's pass only when due and its failure a warning, a triage run's learning written). A first run had `envVars.test` red on the scratch proof script's `OUT` (removed; 9/9 alone, then the suite 4190/4190) | | mcp | **370/370** (+1: `countPhrases`, a three-page channel: counts, lines, examples newest first, a literal phrase, through the corpus tools with a date) | | editor unit | **304/304** | | umtool unit (`node --test umtool/lib/*.test.mjs umtool/lib/*/*.test.mjs umtool/report-to-video/*.test.mjs`) | 861 tests, 859 pass, 2 skipped, 0 fail | | `pnpm --filter umtool test` | **33/33** (+1, `lib/research/learned.test.ts`) | | `pnpm run test:scripts` | 1013 tests, 1011 pass, 2 skipped, 0 fail | | `archilyzer docs cli --check` / `settings example --check` | clean / clean | | capped editor `next build` (heavy slot, `MemoryMax=5G`) | exit 0; compiled 21.1 s, 49.6 s wall, 2.55 GB max RSS | | capped umtool `next build` (corpus linked inside the heavy slot, `MemoryMax=5G`) | exit 0; compiled 11.1 s, 37.6 s wall, 1.58 GB max RSS; the link removed | | editor e2e `report-draft.spec` + `ops-api.spec` (before the merge) | 27 tests: 26 passed, 1 failed, 1.9 min — the new ops-api test: "co-host" was taken for a phrase (`e613df92`); green in the full run below | | umtool `learned-spellings.spec` + `triage-first.spec` + `recurring.spec` (before the merge) | **18/18**, 1.4 min | | **full editor e2e** on the merged tip `12f232e4` (`export/public` linked from the primary, 0 dangling; queued, detached) | **716 tests: 703 passed, 1 failed, 12 skipped**, 22.6 min. Green among them: `report-draft.spec:505` (a watch learns a spelling over the fake model; the next tick's query carries it) and `ops-api.spec:1063` (learn's plan, promote-alias plan then confirm, unlearn). The red: `cookies-mode.spec:73` ("Saved" not visible within 5 s after Save settings) — not a known flake, and **not this lane's**: red 3 of 3 alone on the branch, and red 1 of 1 on `main` `51a6fa8d` checked out in this worktree (the same line); no settings or cookie code touched here | | **full umtool e2e** on the merged tip `12f232e4` (queued, detached, `R63_SHOTS`) | **548 tests: 542 passed, 0 failed, 6 skipped** (the song-data skips), 12.3 min — `learned-spellings.spec` 4/4, `triage-first.spec`, `recurring.spec` and `board.spec` green | **Gates after the review's rulings and the Settings fix** (tip `442b9568`, `main` `51a6fa8d` merged): | Gate | Result | |---|---| | repo-wide `tsc --noEmit` | clean | | common (`SETTINGS_FILE` at the primary's, read only) | **4190/4190** (the confirmation's tests rewritten for the majority rule over three windows — kept 2 of 3, kept on one window with 3 recordings, not the name 1 of 3, not verbatim, too few, no hits — and `keptByWindows` on its own; names capitalised only) | | mcp / editor unit | **370/370** / **304/304** | | umtool unit / `pnpm --filter umtool test` | 861 tests, 859 pass, 2 skipped, 0 fail / **33/33** | | `pnpm run test:scripts` | 1013 tests, 1011 pass, 2 skipped, 0 fail | | docs `cli --check` / `settings example --check` | clean / clean | | capped editor `next build` | exit 0; compiled 21.5 s, 52.2 s wall, 2.52 GB max RSS | | capped umtool `next build` (corpus linked, removed after) | exit 0; compiled 12.4 s, 40.3 s wall, 1.53 GB max RSS | | **full umtool e2e** (queued, detached, `R63_SHOTS`) | **548 tests: 542 passed, 0 failed, 6 skipped**, 13.6 min — `learned-spellings.spec` 4/4 (now also the windows' verdicts), `board.spec` green | | **full editor e2e** (`export/public` linked, 0 dangling; queued, detached, beside the umtool run) | **716 tests: 702 passed, 2 failed, 12 skipped**, ~24 min. `cookies-mode.spec` 6/6 and `report-draft.spec:505` (now three windows of the spelling, all three verdicts kept) green. The reds: `channels.spec:72` ("Renamed Channel" not visible after an edit) and `cleanup-page.spec:26` (a toggle still "Counted"), both a save's result not yet on the page under load; neither is touched here | | `channels.spec` + `cleanup-page.spec` alone | **9/9, 9/9, 9/9** | **Screenshots** (`r63-shots/`, from the full umtool run with `R63_SHOTS`, 1366×768, dark and light, the e2e fixture over the stub): the watch page's Learned spellings with the lit spelling's proving line and a "suggest removing" tag (`learned-spellings`), the promote plan with its alias list and the alias as written (`learned-promote-plan`), the triage page's tier 0 and a learned candidate (`learned-triage`). **Keys**: the list is one Tab stop, `j`/`k` move the light (asserted in the spec), the detail's buttons follow it in Tab order, Escape closes a plan; Confirm takes the focus when a plan opens. **`cookies-mode.spec:73`, root-caused and fixed (`aaba3723`).** Not the environment: an app race in the editor's Settings form, there since its save action called `revalidatePath("/settings")`. With it, the action's answer — `useActionState`'s state, so the "Saved." status — committed only once the client router applied the revalidated /settings tree, and a save made while the page's sidebar link prefetches were in flight (a click within about half a second of load, which is what the spec does) did not apply until a LATER router refresh: AutoRefresh's next pulse (5 s; the save moves settings.json's mtime, part of the pulse token) — the spec's 5 s expect — or never with automatic refresh off. Measured over the e2e server: saves 5,390 / 5,391 / 5,377 ms with the default interval, 5 of 12 never showing "Saved." with the interval at 0, and 18 of 18 under 0.25 s without the revalidate. Whether a run hits it depends on timing alone; no code between R6.2's run and `main` `51a6fa8d` touched it, and it went red 3 of 3 here and 1 of 1 on `main` checked out in this worktree. The fix: the action returns without revalidating, and the form calls `router.refresh()` once its answer is in (the sidebar title and the X login source re-render right after). `cookies-mode.spec` 3/3 alone; with `auto-refresh`, `cadence-ui`, `branding`, `operation-settings`, `settings`, `x-session` and `social-fetcher-picker`: 41/41. `xSessionActions.ts` still revalidates `/settings` (its own buttons, which show their result from the answer's status, not a form state); left as is. **Found and left.** - **Gothix's mis-hearing "Gothics" is not learned.** It occurs in 240 recordings and the three windows read are all him; the 8B judge says no in two of them, in both shipped runs. The judge's call, by the rule. - **"Sticks"** (another hearing of Styx) was not proposed in either run; proposals vary run to run. - **The proof is not repeatable run to run** (ollama's default sampling). What is learned is still only what the code checks and a majority of windows confirm. - **A spelling whose name leaves the terms stays, idle** (listed, not used); Remove clears it. - **The pilot's first pass**: `co-host-updates` (a series with triage first) was not touched. It has never proposed, so its next tick runs a pass before tier 0; the orchestrator runs `learn` on it after rollout (plan first: `{"action":"learn","id":"co-host-updates","dryRun":true}` names the 9 names). ### R6.3 rollout and the pilot's first learn pass (orchestrator, 2026-10-15) Rulings: a spelling is kept when at least 2 of the windows read (up to 3) say it means the name, each quoting a verbatim line (one window only: that yes and ≥3 recordings in scope); names are the capitalised alternatives only. The Settings save no longer waits on a revalidated page (`cookies-mode.spec:73`, a real race). Gates on `df9a23a9`: common 4190/4190 in the primary after the fast-forward; full umtool e2e 542 passed, 0 failed, 6 skipped; full editor e2e 702 passed, 2 failed (`channels.spec:72`, `cleanup-page.spec:26` — a save's result late while the umtool suite ran alongside, 9/9 alone three times; the same save-then-refresh pattern, owed to the editor). Editor built and restarted (`scripts/r63-editor-{build,restart}.sh`; no ZodError, no queued metas lost), then umtool. **The pilot's learn pass** (`report-schedule {"action":"learn","id":"co-host-updates"}`, local `qwen3:8b`, $0): 9 names, 12 spellings proposed, 2 learned — "Stix" → Styx (2 of 3 windows, 94 recordings) and "Stixy" → Styx (3 of 3, chat lines read aloud: "Stixy boy, where are you?") — each window checked against the cues by hand: all about Styx (the rejected "Stix" window too, a judge miss). Dropped: "Melony" and "Gothics" (1 of 3 each; every "Gothics" window checked earlier is Gothix — judge misses), and seven spellings that never occur. The CLI's `--wait` exits 1 on a learn job ("its log carries no result": it reads `@@report-tick`, the job writes `@@report-draft`) — owed. A lead for the co-host timeline from the "Stix" spelling: 2026-03-06, quartering-live 3PWNracs5Gc @ 45:37, "I've reached out to Stix. I don't want to make things worse for him."