Archilyzer · Source

archilyzer

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

commit 9e0ac7dd03a3edfceade9f91be8407d590d6051c
parent cc37294c03d86c9d3dfcad92fddb9ce5e32518f9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 08:07:51 -0400

umtool: run-trace.spec watches each replayed step by frame; [Unreleased] bullets for R3

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

Diffstat:
Meditor/CHANGELOG.md | 4++++
Mumtool/e2e/run-trace.spec.ts | 3++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -10,6 +10,10 @@ - **A board exports as cited markdown.** **Copy as cited markdown** (`c`) and **Download .md**: the case's title, its notes as the summary, a `##` per section, each quote as a finding — the claim, the quote in quotes, `[title @ m:ss](link)` — with our note under it, and a `## Coverage` paragraph (the scope, what was searched and read, what is pinned, drifted and unchecked). It converts as a /sweep report. - **Hand off a board, plan first.** **Draft an article from this board** shows the plan — the article, the question, the channels, the model and the most it may spend — and on **Start the sweep** asks the editor for a `report-draft` sweep seeded with the board's markdown. **Start a video from this board** shows the clips — one per quote, its window the quote's cue span — and on **Create the project** scaffolds a report-video project under the reports root. A board with a quote from a local-only channel never becomes an article. The API (`/api/research/cases`, documented in its route) is what Create will use. - **A sweep can start from a seed.** `pnpm ops report-draft --json '{"task": "sweep", …, "seed": "<markdown>"}'` keeps the markdown as the iteration's `seed.md`; the sweep agent's report starts from it, checks its quotes, and extends it. A seed is a new sweep's, on a Claude model (a local model is refused: its pipeline writes the report from scratch). Needs a restart of the editor. +- **A sweep keeps a trace: `trace.jsonl`.** Every `report-draft` sweep — the API agent's and the local pipeline's — appends what it does beside `turns.jsonl`, one JSON line per step, as it happens: the scope (corpus, channels, dates, question, model, extractor, a board's seed), each enumeration (the ids, whether the scan was capped, the channels it never reached), each read, each extractor batch with the lines it returned, each turn's cost and the running total, every quote check — the quotes refused and the ones **dropped, with why**, which nothing recorded before — the findings it kept, and how the run ended. A trace that cannot be written never fails the run. `iteration.json` gains `coverage {matched, read, partial, unreached}`: the coverage rule as data. Needs a restart of the editor. +- **umtool shows how a sweep ran: `/research/runs/<article>/<n>`.** The question, the model and extractor, the scope, the time, the spend and the checks; the steps as one lit list (scope, each turn or batch, findings, the quote checks kept and dropped, the end) with the running spend on each; the lit step's detail (its ids, the extractor's own lines, the quotes kept and dropped with the reason); a cumulative spend chart. A running sweep's page follows it live; a finished one replays (`r`). A run from before the trace is read from `turns.jsonl`, turn by turn, and says what was never recorded; a file holding several run starts (an import keeps every attempt) shows each as its own run, never summed. **Agent runs** on `/research` lists every sweep. Needs a restart of umtool. +- **A run's findings open as a board.** **Open as a board** (`b`) on a run makes the research case `<article>-run<n>` (or adds to it) with the run's kept quotes, each in its section with its finding as the claim line and marked **by agent**; the board links back to the run. A second open adds nothing twice and keeps your edits. +- **Run a sweep on a case's scope.** A board's **Run a sweep on this scope** plans a `report-draft` sweep over the case's query, channels and dates — the model, the extractor and the most it may spend shown first — and on **Start the sweep** opens the run's page. A policy routing sweeps to Claude Code runs the API agent here, and the plan says so. - **umtool drafts each section of a report video with a model you pick.** A video project made from an article's iteration has a **draft** section: for the cut, the on-screen titles, the teaser, the flips, the threads, the narration and the YouTube text, **Draft with** and a model (the generation policy's models, the task's route chosen first), **force** (re-drafts only what a model drafted; what you wrote or edited is never replaced), and for a per-entry task the entries to draft. The job's progress shows while it runs; when it ends the page shows what it wrote, skipped and had refused by a check, the **drafted by** badge with **Approve** and **Reject**, and any draft kept aside with **Use this**. A project not made from an iteration says so and offers none. The article's Iterations tab gains the same drafts beside **Narrate**. Needs a restart of umtool. - **Draft everything.** One button on the Iterations tab (or `umtool chain <article> <n> --draft-all [--model M]`) runs the chain with every media draft in it, on the model you choose: the cut, on-screen, teaser, flips, threads and narration after the manifest, then the voices, a fast build and the podcast, then the YouTube text, whose chapters are re-muxed so `out/youtube.txt` is written. A draft the editor refuses or that fails is marked failed and the chain carries on; one with nothing to draft, or flips and threads with no on-screen deck (or with the other panel on), is skipped. It does not attach the video to the article: review the drafts first. Started again, it resumes after the last draft that ran. Needs a restart of umtool. - **A site's Delete shows its plan before anything goes.** On `/sites`, **Delete** lists what would be removed (the site, its publish state and last bundle, its staging), how much, what is kept and what refuses; **Confirm delete** removes it. A site with a deploy target, a recorded deploy or reports of its own is refused unless you tick the box and press **Delete with force**; a site whose directory is a link, or a publish stage running, is refused outright. The delete is `pnpm ops delete-site`'s, so it now removes the build state too. diff --git a/umtool/e2e/run-trace.spec.ts b/umtool/e2e/run-trace.spec.ts @@ -111,7 +111,8 @@ test("replay: r lights every step in turn, from the first to the end", async ({ await expect(steps(page)).toHaveAttribute("data-hydrated", ""); await page.locator("body").press("r"); await expect(page.locator("[data-replay]")).toHaveAttribute("data-replay", "on"); - await expect(lit(page)).toHaveAttribute("data-lit-id", "t2", { timeout: 10_000 }); + // Each step is lit for 650 ms: watch every frame, not the assertion's backed-off retries. + await page.waitForFunction(() => document.querySelector("[data-lit-line][data-lit]")?.getAttribute("data-lit-id") === "t2", null, { polling: "raf", timeout: 10_000 }); await expect(lit(page)).toHaveAttribute("data-lit-id", "end", { timeout: 10_000 }); await expect(page.locator("[data-replay]")).toHaveAttribute("data-replay", "off"); });