Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit dfb6ccfe0e36f6359df997c1634b015d46ae95a8
parent 4ea43e5a27c03872a20b7c89984e41dc5591c86a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 13:20:40 -0400

plans: umtool redesign — R5 review follow-up (whole-day editions, the board's field keys, Delete as a plain button); CHANGELOG

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 3++-
Mplans/umtool-redesign.md | 38+++++++++++++++++++++++++++++++-------
2 files changed, 33 insertions(+), 8 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,7 +1,8 @@ # Changelog ## [Unreleased] -- **Recurring reports.** umtool's Create has **A recurring report**: a topic, its scope (channels, or a research board's), a cadence (daily, weekly on a day, or every N days, at a time) and a shape — a **Living report** (one article kept current: each tick fetches what is new and updates it, the new iteration left for review unless "Make each update current without review" is on) or a **Series** (a new dated article each tick, "Co-host updates · week of 2026-10-13", over only the window since the last; a window nothing matches is a *quiet* edition — recorded, no article, $0). **Plan the schedule** says the first tick, the model and the cap before anything is made. A series has its own page (the cadence chip "weekly · next Mon 06:00", Pause/Resume, **Tick now**, Edit cadence, Delete, the editions newest first, the tick log with each tick's spend); a living report wears the same chip in its article's head. Work has a **Recurring** facet; the Inbox puts a finished edition under Review and a failed or cap-held tick under Your call (**Tick now** / **Raise cap**). `umtool schedule list | show <id>` prints them. Needs a restart of umtool and of the editor. +- **Recurring reports.** umtool's Create has **A recurring report**: a topic, its scope (channels, or a research board's), a cadence (daily, weekly on a day, or every N days, at a time) and a shape — a **Living report** (one article kept current: each tick fetches what is new and updates it, the new iteration left for review unless "Make each update current without review" is on) or a **Series** (a new dated article each tick, "Co-host updates · week of 2026-10-12", over whole days — from the day after the last edition through the day before the tick, so weekly on Monday covers the Monday to Sunday before it and no day is read twice; a window nothing matches is a *quiet* edition — recorded, no article, $0; a Tick now with nothing new to cover makes no edition and says when the next one starts). **Plan the schedule** says the first tick, the model and the cap before anything is made. A series has its own page (the cadence chip "weekly · next Mon 06:00", Pause/Resume, **Tick now**, Edit cadence, Delete, the editions newest first, the tick log with each tick's spend); a living report wears the same chip in its article's head. Work has a **Recurring** facet; the Inbox puts a finished edition under Review and a failed or cap-held tick under Your call (**Tick now** / **Raise cap**). `umtool schedule list | show <id>` prints them. Needs a restart of umtool and of the editor. +- **The research board's `e`, `n` and `m` no longer lose the field.** Pressed while a move was still saving, the field took the focus and then lost it when the board redrew, and what was typed next landed on the board as commands (`s` toggled the speaker check, `x` asked to remove the quote). The field now takes the focus once the board has redrawn, and no key acts until it does. - **The editor keeps the schedules.** A new `report-schedule` lane ticks each recurring report when its window comes — one `report-tick` job at a time, never two of one schedule, never on an idle boot; a window missed while the editor was down is caught up by ONE tick. Hold it with `pnpm ops lane '{"lane":"report-schedule","held":true}'` (`settings.reportSchedule.held`); a tick in flight finishes, and Tick now still runs. Drive it with `pnpm ops report-schedule` (`list`, `create` — with `dryRun` the plan —, `update`, `pause`, `resume`, `delete` — the plan unless `confirm: true` —, `tick-now`). A tick is held, not run, past the day's API cap. Until umtool's Refresh (R4) is in the editor, a tick's fetch-and-build step is not wired and every tick ends failed saying so. - **umtool's benches are one shell.** The clip bench, the claim bench, the narration script, the takes and the drafts review share one frame that fits 1366×768 with no rail: a top bar (← the piece, which bench, **N of M**, ‹ prev / next ›, the keys), the work, a **verdict bar** asking ONE question with its consequence before you choose, and the source on the reader at the right. On the clip bench the transcript is the reader — the cited cue lit, its cite thread, **Copy citation**, **Play clip** — and a clip that ends mid-sentence asks "Extend c04 to the end of the sentence? It would end at 4:31:21 (+12.1 s), covering all of c05." with **Extend to 4:31:21** (or **Fetch to …** past what is fetched) and **Keep the cut here** (lockEnd) before the walk's **Yes, confirmed** / **No, note what is wrong**. The claim bench's context is its reader (`j`/`k` move the lit cue and seek the player) and **Save ruling** its verdict bar, saying what is still missing. Narration asks about the card in hand (`j`/`k`, `a` approve, `r` reject with its note); takes about the take being listened to (`n`/`p`, `l` like, `m` maybe, `x` no). Needs a restart of umtool. - **A report video's Media tab is one surface for every drafted field.** Each field is a line — its words, **where it came from** (the draft file, when, by what model, which attempt was kept, and the rule a refused attempt broke: "attempt 2 of 2 chosen · attempt 1 failed: ✕ text in quotation marks"), its review — with **Approve draft** and **Reject** (a note), the drafts kept aside with **Use this**, grouped by section (cut, on-screen, teaser, flips, threads, narration, YouTube), each headed by its **Draft with <model>**; **Approve all N**, **Draft everything** (the draft-all chain, on the model chosen) and section chips above. `j`/`k` light a field, `a` approves it, `r` rejects it. The on-screen panel moved here from Build, whole. A release-25 narration (no mark in the manifest) shows its `narration-draft.json` attempts too. Needs a restart of umtool. diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md @@ -2388,9 +2388,13 @@ timer. R4's two steps (stage 1 fetch + local build, `report-draft {"task":"refre 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 `[last swept or quiet edition's window - end, today]` (the first: the cadence's length back, floored at the scope's `from`), titled "<topic> · week of <from>" - (weekly) or "<topic> · <date>". `generateEdition` is real: the window check (the editor's enumerate over the build a + 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 @@ -2441,10 +2445,10 @@ timer. R4's two steps (stage 1 fetch + local build, `report-draft {"task":"refre 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); a - recording uploaded inside an older window but transcribed after its tick is not in any edition (R6's "new since the - last tick" candidates are its answer); the boundary day is read by two editions (from = the last window's end, - inclusive), on purpose — a video on that day may land after the earlier tick. +- **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): @@ -2490,6 +2494,26 @@ Delete schedule; Edit cadence opens on its cadence select and Escape returns to - **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.