Archilyzer · Source

archilyzer

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

commit 690293b00b4f33d30e1b2797e29ae480e91d4bd9
parent b1629e893454b79b847653451449f8ccaaccdb62
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 12:37:48 -0400

umtool: the Refresh plan opens on a client navigation to ?refresh=1 too (the Next card's action on its own page); [Unreleased] bullets

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

Diffstat:
Meditor/CHANGELOG.md | 6++++++
Mumtool/components/articles/RefreshDialog.tsx | 5+++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog ## [Unreleased] +- **Refresh an article: fetch what is new, see what changed, update.** `pnpm ops report-draft --json '{"task": "refresh", "article": "<id>"}' --wait` (or umtool's **Refresh…**) takes the article's current report — or the iteration named by `"iteration"` — and runs ONE job on its own lane, `draft:refresh`: it fetches the report's scope and every channel its citations touch through the editor's own actions (`sync`, the channel's report, `transcribe-bucket` for only what landed; `fetch-posts` for a posts channel; a platform held or cooling down is skipped and said), builds the site whose build holds them locally (never a deploy), searches again with the report's own recorded enumerations (its trace; an older run's turns; else its question) and reads every cited quote again (words changed, `en` against `en-orig`, a source gone). Nothing changed: the new `refresh` iteration ends **no change**, $0. Something changed: a sweep of only the new and changed recordings, then a revision of the report with its findings and the quote fixes, within the caps — past one it ends **held by the cap** with the delta and the estimate. What it found is the iteration's `refresh.json`; the log ends `@@report-draft {…, refresh: {status, newIds, changed, drifted, deleted, summary}}`. `"fetch": false` reads the corpus as it stands; `"dryRun": true` answers the plan and writes nothing. Needs a restart of the editor and umtool. +- **umtool's Refresh: plan, then confirm.** The article piece's **⋯ → Refresh…**, the Iterations tab's **Refresh…** and the Next card (when one is suggested) open the plan — the iteration refreshed and what it searches again, each channel's fetches or why one is skipped, the site built, the model, the cap and the day's spend — and **Refresh** starts the job (the Running list follows it). The Overview then says what it found: "1 new recording matches · 1 quote changed" (or "Nothing new since <date>"), the new recordings, the quotes that changed and what they say now, the fetches and the build, the spend or the cap that held it; a refresh's card on the Iterations tab carries the same line. A refresh with a report is an **iteration ready** card like any other; making it current stays yours. +- **The Inbox suggests a refresh.** Once a day per active article with a current report (parked, done and muted pieces are skipped), umtool runs the report's enumerations again over the corpus it read — no fetch, no model — and an article with new matches gets a **Review** card, "3 new recordings mention this since 2026-10-01: …", whose action is **Refresh**. A refresh the cap held is a **Your call** card until something newer runs. The check is kept in `REPORTS_ROOT/.umtool/refresh-check.json`; `umtool refresh --check` runs it now. +- **`umtool refresh <article>`** prints the plan; `--yes` starts it; `--no-fetch` skips the fetch and the build; `--check [<article>]` runs the daily check. +- **A sweep can be restricted to given recordings: `"ids"`.** `report-draft {"task": "sweep", …, "ids": ["…"]}` keeps them in the iteration's scope: an enumeration answers only their rows, a read of another recording is refused, and the free-text search is not offered (the pipeline reads exactly those). A refresh's update uses it. +- **A sweep's trace keeps each enumeration's matching lines** (`counts`), so a later refresh can tell a recording whose transcript changed; a refresh adds `fetch`, `build` and `delta` lines to its own trace. - **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. - **The drafts review is a bench: `/projects/<p>/review`.** The same field list, walked 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 reader shows the clip it is drawn over with its cited cue lit. The Iterations tab's **Narrate**, media drafts and **Draft everything** are now a **Media drafts →** link to the iteration's video's Media tab. diff --git a/umtool/components/articles/RefreshDialog.tsx b/umtool/components/articles/RefreshDialog.tsx @@ -219,6 +219,11 @@ export function RefreshHost({ article, initialOpen = false, href }: { article: s const router = useRouter(); const [open, setOpen] = useState(initialOpen); const [said, setSaid] = useState<string | null>(null); + // A client navigation to `?refresh=1` on the page already showing (the Next + // card's action) keeps this mounted: open on the new address too. + useEffect(() => { + if (initialOpen) setOpen(true); + }, [initialOpen]); useEffect(() => { const onOpen = (e: Event) => { if ((e as CustomEvent<{ article?: string }>).detail?.article === article) {