Archilyzer · Source

archilyzer

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

commit 4320dbee2ac7cc76e8872ba9b6155a774f033ceb
parent 25a23cd14bd29f183d739899991c4c0a16391276
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 11 Oct 2026 03:16:04 -0400

plans: release 25 — T5, as shipped: the narration review (the guide waits for the tuning round's rules); changelog

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/release-25.md | 46++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -147,6 +147,7 @@ - **The editor suite can run on several workers, each with servers of its own.** `E2E_WORKERS=2` (or `auto`, from memory, up to 3) gives every worker its own editor, export server and Ollama stub over its own data directory; specs that write into the checkout's build outputs or time a wall clock run afterwards on one worker. One worker stays the default until the parallel runs are measured. - **A report video's cards can be narrated by a stock synthetic voice.** A card may carry `narration: {text, voice?, engine?}` — the author's words, never derived from the card — and `seconds: "auto"`, its words' length plus a lead and a tail; `render.narration` sets the engine and voice (Kokoro, `af_heart`, by default), speed, level (−17.7 LUFS, with the clips) and the quiet around the words. The voice is synthesized by the editor (`pnpm ops tts`), never by umtool: the build chain's new step, `narrate-via-editor.mjs`, asks for every narration not yet kept and keeps each in the project's `out/narration/`, and the build plays it under its card. A number of seconds shorter than the words need is a lint error. A narrated cut says "Narration: synthetic voice (Kokoro-82M · af_heart)" — the editor's own line — in its file's metadata and at the end of its description and chapters exports. Stock voices only; a manifest without narration builds exactly as before. - **A report video can be exported as a podcast.** The project page's export row has a **podcast** button per cut (`build-podcast.mjs <manifest>` on the command line): the built cut as sound only — the clips, the narrated cards and the teasers' hits, each silent card left out (`render.podcast.skipSilentCards`) — levelled to −16 LUFS, as `out/<variant>/podcast.m4a` and `podcast.mp3` with the video's chapter titles at the podcast's own times, and `show-notes.md`: the chapters, every cited source's link and, for a narrated cut, the disclosure line. It is made from the segments of the last build, so build the cut first. +- **A report video's narration is reviewed card by card before it is synthesized.** umtool's project page links **Narration — N** when a card is narrated: each card's words beside what it shows on screen, its voice, **Approve**, **Reject** (with a note saying what is wrong), the words edited in place, and **Play** — the editor synthesizes that one card and it plays on the page. Verdicts are kept in `narration.review.json` beside the manifest, each on the words and voice it was given on, so new words or a new voice need approving again. Once that file exists a build refuses any narrated card not approved (`--narration-unreviewed` builds unreviewed and edited ones; a rejected one never); a narrated cut with no review at all builds as before, with a lint warning. The MCP's sweep plan now carries the rule for drafting narration: storytelling and emotion live in the delivery, never in the claims. ## [0.11.0] - 2026-09-30 - **Transcripts that arrived after a video was first seen are counted.** The stats behind the homepage, the hub and every site's charts were cached per video and refreshed only when the video's metadata changed, so a transcript that came later — a Whisper run days after the download, or a video downloaded after the last index build — never reached them, and a video with YouTube captions alone had no transcription date. Counts and charts were low; the homepage could show a site with 0 transcripts, 0 channels and 0 hours while it served its videos. A stat is now also redone whenever the index re-reads the video, every transcript has a date, and a captioned video is dated by when its captions arrived rather than by a later Normalize run, so its place on "Transcribed over time" can move. **After updating, rebuild and restart the editor before anything else:** until then, **Build stats dataset** runs the old code and would undo the new stats, while a site, hub or homepage build already runs the new code — and the first stats build of any kind re-reads every video once (about 10–30 minutes on a large archive; it can be stopped and picks up where it stopped). Then build the index, the stats, the homepage, the hub, and the sites. diff --git a/plans/release-25.md b/plans/release-25.md @@ -220,3 +220,49 @@ Not done here: no real Kokoro synthesis through the live editor (the fake editor gate ran one through the route), the editor/export/homepage builds and `pnpm e2e:all` (the orchestrator's). **Found and left.** A podcast is made from the last build's segments: a clip re-cut since is heard as it was built (only a narrated card's words are checked). Narration under clips, and a podcast's RSS enclosure (T4), are not built. + +### T5, as shipped — writing for the ear: the narration review (`r25/tts-video`) + +**The surface first; the writing guide is a stub holding the hard rule until the Orpheus tuning round's rules land.** + +- **`/browse/<project>/narration`** (linked from the project page as **Narration — N** when a card is narrated): each + narrated card's words beside what it shows on screen (kicker, heading, sub, the deck title), its engine · voice, its + words and estimated seconds, and **Approve**, **Reject** (a note required: "say what is wrong with the words", the + clip verdict's rule), **Save words**, **Play**. Verdicts and Play are disabled while the words are unsaved: a verdict + is on the words as saved. +- **The store** is takes/verdicts.json's shape, beside the manifest: `<project>/narration.review.json`, `{ "<cardId>": + { verdict: "approved" | "rejected" | null, note, key, text, at } }` (`report-to-video/narration-review.mjs`: its own + write queue, tmp + rename, a file that does not parse is an error and never overwritten, an empty row removed). + **A verdict is on the words and voice it was given on**: `key` is the narration's key (text, engine, voice, speed), + so an edit or a voice change leaves the card "edited" — not approved — with nothing having to remember to clear it. + The page's edit clears the verdict too. +- **Edit** goes through the manifest writer's new `updateNarration` (only `narration.text`, trimmed; a snapshot first; + the build's `validateNarration`, which now joins every structural writer's checks; the generated-manifest edit note). +- **Play** is a job (`narrateCardSteps`: `narrate-via-editor.mjs --only <id>`, new), followed by id, then + `GET /api/report/narration/audio` serves the kept voice for the card's current words. Playing approves nothing. +- **The build**: no review file — nothing held, the lint WARNS (existing narrated cuts build as they did). With one, + every narrated card in the cut must be approved on its current words: unreviewed or edited is a lint ERROR unless + `--narration-unreviewed` (then a note per card); **rejected refuses always** (rewrite and approve it, or take the + narration out). The check is in the lint (`reviewProblems`), so `--lint` reports it and a build refuses before any + voice is asked for. +- **The guide (stub)**: the hard rule — storytelling and emotion live in the delivery, never in the claims; every + factual statement stays exactly as the cited evidence supports; no invented quotes, no motives or feelings + attributed to real people, no intensifiers that change a claim's strength — in `mcp/src/instructions.ts` + (`NARRATION_HARD_RULE`, and `narrationStep()` in every sweep plan) and the report-to-video README's "Writing + narration". The concrete rules (sentence length, pauses, where Orpheus's tags work) wait for the tuning round. +- Docs: README "The narration review"; `docs/report-video.md` "Narrated cards". + +| commit | what | +|---|---| +| `39a7c923` | the review store, the lint/build gate and `--narration-unreviewed`, `updateNarration`, the page, its three routes, `--only`, the MCP rule, docs | +| `9016f63c` | the narration specs count the stub's asks from their own start (they share its log) | + +#### Gates (T5 surface) + +| gate | result | +|---|---| +| tsc | clean at every commit | +| umtool unit | new `report-to-video/narration-review.test.mjs` 5 (the file, the writer, the states, the problems, a build refused before any ask / let through by the flag / a rejected card refused regardless), `lib/report/narration-review.test.mjs` 2 (`updateNarration`, the view), `driver.test.mjs` +1 | +| `pnpm run test:scripts` | 833: 830 pass, 3 skip | +| mcp unit | 306/306 (+1: a sweep plan carries the hard rule verbatim) | +| umtool e2e `narration-review.spec.ts` (new) + `report-narration.spec.ts` (start mode) | 5 passed (20.1 s): approve; reject refused without a note, then with one; edit saved through the manifest and un-rejected; play asked the stub once for that card's words and the audio route served the WAV; a build refused with "timeline k02: its narration is not reviewed" and wrote no mp4 |