# The Inbox (`/`) ## The page - **One card per piece and kind**: 483 unadjudicated claims on one video are ONE call. `umtool inbox [--all] [--json]` prints the same list. - **The big number** — the cards in Your call, Review, Blocking, Notes and Open on active pieces, plus the machine's own calls ("N calls waiting on you"). Under it: rows · pieces ready to finish · quiet · hidden (`lib/inbox/headline.mjs`, which the rail's count and the CLI also read). - **One lit list** of the groups below. A card: piece · what, its why, the count in Meter, ONE action (an outline at rest, filled Signal on the lit line), **Park**, **Mute** (**Not yet** on a looks-done card). j/k move the light. - **Park** / **Mark done** / **Reactivate** write the piece's lifecycle; **Mute** / **Unmute** this kind of call on this piece. Each shows " " with **Undo** for 8 s. - **Show hidden N** (`/?hidden=1`) lists the calls on parked and done pieces as a Hidden group, each with **Reactivate**. **Muted N** (`/?muted=1`) lists the muted ones, each with **Unmute**. Hidden rows are never dropped: every count but the cards still has them. - **resume <url> →** offers the last page you were on (after its redirect), never navigates by itself. | Group | What lands there | Note on the page | |---|---|---| | **Your call** | research proposals, failed runs, a tick that failed, was held or was partial, a refresh held by the cap — money or work waiting on a yes | spend or failed runs | | **Review** | an iteration ready, drafts to review, an edition ready, new recordings since the current report | | | **Blocking** | a blocking decision on an active piece; a `notes.json` that does not read; the machine's calls (a required tool absent, under 5 GB free under the reports root → **Check tools** / **Open system**, `/settings/system`) | active pieces only | | **Notes** | open operator notes | | | **Open** | an open decision the groups above do not take (a variant with no verdict, a video to link) | | | **Ready to finish** | a piece that looks done (**Mark done**) | suggested, never automatic | | **Quiet** | every `info` decision — facts, not calls; folded | N cards, facts rather than calls | A piece's page shows the same top card as its **Next** card ([piece.md](piece.md)). ## Lifecycle and mutes | State | File | Effect | |---|---|---| | `active` / `parked` / `done` | `REPORTS_ROOT/.umtool/lifecycle.json`, keyed by piece id (`POST /api/pieces/lifecycle`) | a parked or done piece's calls are hidden (`hiddenBy: parked \| done`); Work's lifecycle facet; the piece's chip | | muted (piece × decision kind) | `REPORTS_ROOT/.umtool/mutes.json` (`POST /api/pieces/mute`) | those rows are hidden (`hiddenBy: muted`); a parked or done piece's reason wins | Both files: one writer, temp + rename, an unreadable file never overwritten (409). "Looks done" only ever suggests: a song with every cut, a final video plus a `share-*` batch, or a published article with its video. ## Decisions Severity is EARNED: | | | |---|---| | `blocking` | something downstream would **lie or die** if you acted on it | | `open` | a real decision nobody has made | | `info` | a true fact that is not a decision (always Quiet) | **It is a reducer, and it must never measure.** Every call it makes is one a piece page already makes: loudness from the cache, availability from what the preflight last wrote (`out/availability.json`). "Nobody has ever run one" is itself something it can say. Each kind's card action names its result (`lib/inbox/groups.mjs`), and a project-wide call links the tab it is settled on (`decisionTab`, `songTabOfSection`). **report-video** | kind | severity | trigger | action | |---|---|---|---| | `manifest-invalid` | blocking | a `localhost`/private `siteOrigin`; a missing one only when a QR the cut draws is built from it (its count and first ids named — lint.mjs `originQrsOf`); missing `channelSlug`, duplicate ids, `section` out of range | Fix the manifest | | `clip-no-cues` | blocking | no `transcript.cues.json` — the build dies there; the why names the fix: `pnpm ops build-cues --json '{"slug":"<channel>","ids":["<video>"]}' --wait` when the video is in the corpus, the Rumble two-ids check when it is not | Fix the cue source | | `clip-unfetchable` | blocking | the last preflight says the source is gone | Replace the source | | `clip-unchecked` | info | the last preflight could not ask: the platform refused a probe (403, 429, a bot check), so it and the platform's other sources were left `unchecked` | Re-check later | | `clip-mid-sentence` | open | the cut lands inside a cue that does not close a sentence, and `lockEnd` is unset | Trim to the sentence | | `window-overlap` | open/info | two clips from one source overlap; the row offers **It's deliberate: `<later>` repeats `<earlier>`** (`repeatOf` through the window writer) | Fix the windows | | `clip-cite-off` | open | the clock (`cite`) or the QR's `t=` (a citeUrl naming this recording) more than 5 s before what the clip plays, or after it: "the clock and the QR point 78 s before the clip (cite 25:22, it plays 26:40–26:50)"; **Move to 26:40** | Move the cite to the clip | | `patch-markers-stale` | open | a take patch beside the manifest (`*.patch.json`) whose deck markers name a clip not in the cut — a take made with it is refused; **Take the cut's markers** (the cut's marker of the same label) | Fix the take patch | | `link-dead` | blocking | the recorded link check (`umtool links`, out/links.json) found clip QRs that don't open on their site — one row per site, the clips and the first reason | Fix the links | | `links-unverified` | info | the link check could not reach a site (offline, a timeout, no corpus.json) | Check links again | | `links-unchecked` | info | archive links never checked, or changed since the check | Check links | | `site-deploy-behind` | open | a site the QRs open whose deploy (its recorded corpus.json `generatedAt`) is older than cited videos whose links the check did not find open — one row per site ([knobs.md](knobs.md#the-sites-the-links-depend-on)) | Publish <site> | | `clip-link-policy` | open | a clip whose QR breaks the project's link policy (`provenance.linkPolicy`): a direct channel's clip opening an archive, or another clip not opening the policy's site ([knobs.md](knobs.md#the-link-policy)) | Link it by the policy | | `no-punctuation` | info | a source's ASR has no terminators — one row per project | Check the windows | | `clip-cue-gap` | open | the cue file ends before a clip does (`cues end 880 s · c03 needs 897 s`), one row per source | Fix the window | | `claim-unadjudicated` | blocking | a `ledger[]` entry missing any of the six adjudication fields — one row per entry | Adjudicate claim | | `claim-incoherent` | open | a fired coherence predicate, in plain words | Rule on the flag | | `stale-build` | open | the output is older than the manifest (→ Build) | Rebuild the video | | `unbuilt` | info | never built | Build the video | | `storage-unreachable` | blocking | an `out/` or deliverables link whose drive is not there | Reconnect the media drive | | `storage-mismatch` | open | a storage move that was cut, with the command that finishes it | Settle the storage | | `clip-cut-outside` | blocking | a `cutStart`/`cutEnd` without its pair, under half a second, or outside its window | Fix the cut | | `clip-incorrect` | blocking | a clip whose verdict is `incorrect` (or a legacy `correction` with no verdict) still in the timeline: "e01 is marked incorrect: … — remove it, fix it and re-confirm, or clear the verdict". A take of a cut holding one refuses with the same sentence; Play the cut skips it | Remove or fix the clip | | `clip-rejected` | open | a clip the walk REJECTED for a cut reason (`verdict: "rejected"` — irrelevant, repeats, weak, privacy, other; not a fact error) that was kept in place: "c07 is rejected (irrelevant) but still in the cut — remove it (umtool timeline <p> reject c07 irrelevant), or clear the verdict". Play the cut skips it; a take does not refuse it | Take the clip out | **song** — `unjudged-variant` (Judge variant), `missing-cut` (Ship the cut), `no-recipe` / `stale-recipe` (Record the recipe), `spec-problem` (Fix the spec), `no-plan` (Name the plan), `unattributed` (Attribute variant), `thumb-unaccepted` (Accept a cover), `loudness` (Re-render at the target). A song-wide call opens its tab (Spec, Cuts, Cover); a cut's opens the cut's page, at the song's full path. **articles, runs and schedules** (from disk, beside the reducers — `lib/inbox.ts`) | kind | group | action | |---|---|---| | `research-proposal` — a research run's acquisition waiting (`proposals.json`, status `proposed`) | Your call | Approve acquisition | | `iteration-failed` — a failed run not superseded by a later live one; spend from its `usage` | Your call | Retry run | | `worth-researching` — a watch's tick whose triage escalated ([triage.md](triage.md)); gone once its board has a hand-off or every flag is marked | Your call | Open the board | | `tick-failed`, `tick-held` ([recurring.md](recurring.md)) | Your call | Tick now / Raise cap | | `tick-partial` — the newest tick's scan hit a cap or did not reach a channel: its why is the tick's reason ("partial — not reached: …; nothing flagged in what was read (…)"); never a quiet edition ([triage.md](triage.md#partial-runs)) | Your call | See what was missed (the schedule's page) | | `refresh-held` ([refresh.md](refresh.md)) | Your call | Refresh | | `iteration-ready` — done, not current, newer than current | Review | Make i<n> current | | `drafts-unreviewed` — drafted fields awaiting review (unreviewed, or edited since approved) | Review | Review drafts | | `verdict-proposed` — a model's proposed verdict for a fact-check's unruled claim (the article's `verdicts.proposed.json`), one row per proposal; gone once approved or rejected on the article's tab, the claim is ruled by hand, or the claim changes under its id (a stale proposal: counted on the tab, never shown) | Review | Review verdicts | | `edition-ready` | Review | Review edition | | `refresh-available` — a partial check says so ("the check was partial — not reached: …; a Refresh reads the rest"), never "nothing new" | Review | Refresh | | `open-note` — an operator note (its href ends `note=<id>`) | Notes | Answer note | | `unreadable-notes` | Blocking | Repair notes.json | | `unreadable-proposals` — an article's `verdicts.proposed.json` does not read: no proposal is shown or written until it is fixed | Blocking | Repair verdicts.proposed.json | | `link-ambiguous` — a slug match no iteration or manifest settles | Open | Link the video | | `looks-done` | Ready to finish | Mark done | **routing**, any kind — `shadowed-name` (blocking), `unroutable-name` (info), `ambiguous-project` (blocking) ([piece.md](piece.md#projects-kinds-ids-routing)). `claim-unadjudicated` earns blocking: both the stated and the implied total lie on an unadjudicated ledger, quietly, in a chart, with somebody's name on it — and fifty unadjudicated claims are fifty different decisions, so the empty Inbox is the sign-off. `claim-incoherent` is open: whether the flag is right, and belongs on screen, is editorial. **Adding a kind:** extend the project kind's `decisionKinds` and emit it from its `decisions(ctx, summary)`; nothing outside `lib/projects/` changes. Give it a card action in `lib/inbox/groups.mjs` and its words in `lib/inbox/what.mjs`. ## The API, `GET /api/browse/decisions` `items[]` is ONE ROW PER DECISION, never grouped and never dropped: the MCP reads it (`open-note` rows, `project` as the notes target, `href` ending `note=<id>`; `lib/hrefs.ts` keeps `?note=` last). Each row carries `piece`, `category`, `group`, `action {label, href}`, `lifecycle`, `muted`, `hidden`, `hiddenBy` — additive. Beside it: `counts` (by severity), `groups` (the cards), `hidden`, `muted`. `?project=<song>` narrows to one song's reducer. `no-store`. `umtool decisions [--json]` prints the reducer's rows; `umtool check` computes every report-video and routing decision and exits 1 on anything blocking (it cannot run the song reducer and says how many it only routed). ## The Running list (the rail's foot) - umtool's own jobs (a chain, a render, an index rebuild, a storage move) and the editor's `GET /api/ops/jobs?active=1`: generation first, then a research run's acquisitions and clip windows umtool asked for, then the rest; at most 5 rows, the rest folded ("+ 2 running · 140 queued · 3 lanes"). The lane runners are never rows. - A row: the kind in words, the target, queued ("queued · 1 ahead") or running, progress, a generation job's spend in Meter. A sweep's row links its run page; another placed draft its article's Iterations tab; anything else the editor's `/jobs`. The label says the day's API spend from the ledger ("$0.42 today"). - Three sentences, never one: **Editor unreachable**, **Editor's WORKER_TOKEN not set**, **Nothing running** (and **WORKER_TOKEN not set here**, **WORKER_TOKEN does not match the editor's**). - Polled every 8 s while the tab is visible; a page never waits on the editor ("Asking the editor…"). ## Discovered by getting it wrong once **Forty true rows are worse than one.** The first real run emitted a `no-punctuation` row per source — forty-odd, all correct, burying two blocking rows. One per project now. **518 "blocking" was mostly one finished video.** 483 of them were `claim-unadjudicated` on `quartering-diet`. One card per piece and kind, and a lifecycle that hides a done piece's calls, made the number mean something. **A reducer that says the opposite of the card next to it.** An adjudicated build shipped a rail tally reading "Spans everything **18**" beside a card reading "He never said eighteen": `valueKind: "derived"` was set and nothing downstream read it. A field that changes what something means has to be chased through every renderer that prints it. **Do not assume where a project reads its cues from.** A project says which directory it reads — `provenance.channelsDir`, or the `.shadow-channels` convention — and when the builder is present but unrun, the decision says to run it rather than declaring the sources gone.