Archilyzer · Source

archilyzer

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

commit 02225e9af857a6501fcfa948742dac44fe3d6ce8
parent b028855a0234fe94662ceb858a3922f6f2b93bc2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 17 Nov 2026 16:01:44 -0500

docs: the reads of a video -- knobs.md, the changelog, the plan's S4 status

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 28++++++++++++++++++++++++++++
Mplans/orpheus-retune.md | 8+++++++-
Mumtool/docs/knobs.md | 95+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 130 insertions(+), 1 deletion(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,34 @@ # Changelog ## [Unreleased] +- **umtool: a video's reads, found, replaced and re-read in one press, with no agent (the Reads page).** + `/projects/<p>/reads` lists every line a synthetic voice reads: a post's script, the pieces of a thread read, screen + lines and card narration. Each line shows what it SAYS, the take that plays and its state: + - `fresh`, `stale` (other words, the lexicon, or its character's settings or voice since then), `unpicked`, + `none` or `recorded`. + - **Find** searches the spoken text only, with case and whole-word options and a count of matches and lines. + - **Replace** offers two scopes, each previewed first. Neither synthesizes anything, and neither ever changes + what is shown: + - **These reads** rewrites the matched lines' spoken text as one undo point: a post's script, a screen line's + "said as" (created when the line has none), a card's narration. A parent, the quoted post or a linked post is + "said as shown: only Everywhere changes this". A recorded read is never replaced. + - **Everywhere, from now on** adds a pronunciation entry. It matches whole words only and never reaches a card. + - **Re-read N changed lines** queues them on the app's queue: one step per item, in cut order, one at a time. + Each step runs the command the item's bench button runs. The view says in one line why a step is waiting. + **Stop** and **Retry** work per line. A re-read joins the list unpicked. + - **Listen through** plays each re-read next to what played before, with a Pick on either and "Pick every new + read". + - The CLI twin is `umtool reads <p>` with `replace`, `undo`, `reread`, `queue` and `pick`, all with `--json`. + - The "made with other settings" lines in the character preset, on the Voices page and in the bench's Keep note + now link here. +- **umtool: a plain Read again passes back only the values the line owns.** Each take records `tuningOwn`. The + character's values and the editor's setting, `takes` included, are worked out again at each read. A read that went + stale because its character's takes changed now comes back fresh once its re-read is picked. + - Known limit: an older take that owned only its takes now reads with the character's takes, or the setting's. +- **umtool: the queue's read of a post asks exactly what a bench press asks.** Both go through one shared module, and + the slur rule is included (`posts narrate … --take --bench-slurs`). +- **umtool: an imported script that is edited for reading is marked as such.** `posts narrate --import` now marks it + the way Save script does, so the card keeps following the shown text. - **/cookies now has every cookie and session control /settings has, and logging in to X is one press away.** Each row still starts with its status and its one button, and the whole session block now sits under it: - X: login source, Check, the cookie-age limit, Connect X account, Refresh cookies, Forget session and where X posts diff --git a/plans/orpheus-retune.md b/plans/orpheus-retune.md @@ -2,7 +2,7 @@ Status: **planned 15 Nov 2026; S1 done (merged 2dff0a631, shipped 16 Nov 2026); S3 done (`lane/line-rerun`, merged 17 Nov 2026; S3b, re-read one sentence, is a follow-up after S4); S2 done (`lane/character-tuning`, -merged 17 Nov 2026).** Written to be picked up cold (after a usage reset). S4 is not started. +merged 17 Nov 2026); S4 built on `lane/reads-find` (17 Nov 2026), in review.** Written to be picked up cold (after a usage reset). ## The ask (operator, 15 Nov 2026) @@ -185,6 +185,12 @@ test must pin the drawn structure (blocks, hidden paragraphs, tile modes), not o ### S4. Find and replace over the whole video, and the re-read queue (`lane/reads-find`) +**Built** (17 Nov 2026, in review): the Reads page `/projects/<p>/reads`, `umtool reads`, `lib/report/reads.mjs` (the +one read model), `readsReplace.mjs`, `readsQueue.mjs` (the durable queue), `readAgainArgv.mjs`; umtool/docs/knobs.md, +"The reads of a video". The orchestrator's rulings for it: a queue re-read joins unpicked (Listen through's Pick); +a plain press passes back only what the LINE owned (`tuningOwn`), so a re-read comes back fresh; the queue's read of a +post is the bench's ask (one module, the slur rule included). + - A **Reads** view per project (a tab of the workspace, or a section of the Voices page; implementer proposes): every line a synthetic voice reads in the cut (posts, screen lines, cards, thread reads), with its character, its picked take, and whether that take still matches its text and tuning diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -1581,6 +1581,101 @@ the tuning it was asked with). **A pick keeps the verdict** given on the same words (the review keys a verdict by the narration's key, which a reading moves: the pick moves the verdict with it). New words are not the words anybody approved. +## The reads of a video + +Find a word across every read of a video, replace it in what is SAID, re-read only what changed, and listen +through. No agent is needed (lane reads-find, S4 of `plans/orpheus-retune.md`; the operator's rulings of 15 Nov 2026). +The page is `/projects/<p>/reads` (**Reads**, linked from the Voices page, the post bench, and every "made with other +settings" line). The CLI twin is `umtool reads`, and every press runs its commands (`lib/report/readsCli.mjs`). + +**What is shown never changes** (operator ruling 3). That covers every card's drawn text and structure: its blocks, +hidden paragraphs, tile modes and screens. This is pinned by `lib/report/reads-pin.test.mjs`, after a replace in +either scope and after the queue's re-reads are picked. + +**A read** (`lib/report/reads.mjs`, the one model) is one of these kinds: +- a post's script read alone; +- a piece of a thread read: his words, a parent, the quoted post or a linked post; +- a screen line; +- a card's narration. + +Each read has the words it says *as written* (what Find searches and Replace edits), where those words are kept, the +take that plays, and a state: + +| state | when | +|---|---| +| `fresh` | the take that plays says these words, made as a plain press would make it now | +| `stale` | it says other **words** (the script, the said-as, the card's text, or the **lexicon**), or was made with other **settings** than its character's tuning now, or in another **voice** | +| `unpicked` | stale, but a newer take would be fresh if picked: a re-read waiting for a Pick | +| `none` | no synthesized take reads it yet | +| `recorded` | yours: never stale, never re-read, never replaced | + +The **settings** rows are `cast.mjs tuningStale`'s own. So the bench's and the preset's "made with other settings" +counts and `umtool cast stale` are one count. + +| what | where | the CLI | +|---|---|---| +| Find: plain text, case, whole word; marks the matches and counts matches and lines | **Find in spoken text**, **Match case**, **Whole word** | `umtool reads <p> --find <text> [--case] [--word] [--json]` | +| the stale reads, or one character's | **Stale**, **Character** | `--stale`, `--character <id>` | +| **These reads**, after a preview (line, before → after, each line ticked): one undo point, `auto-before-reads-replace` | **Replace with** → **These reads** → **Apply** · **Undo the replace** | `umtool reads <p> replace <from> <to> [--case] [--word] [--only <ids>] [--dry-run]` · `umtool reads <p> undo` | +| **Everywhere, from now on**: a pronunciation entry (`posts say add`'s writer) | **Everywhere, from now on** → **Apply** · **Remove the entry** | `… replace <from> <to> --say-only [--dry-run]` · `umtool posts say <p> remove <word>` | +| **Re-read N changed lines** (or the ticked ones) | **Re-read N changed lines** · **Stop** · **Retry** | `umtool reads <p> reread [--only <ids>] [--wait]` · `umtool reads <p> queue [--stop] [--retry <id>]` | +| **Listen through**: each re-read, with what played before | **Listen through** · **▶ new** · **▶ before** · **play in the cut** | — | +| **Pick** the new read or what played before; one undo point | **Pick new** · **Pick before** · **Pick every new read** | `umtool reads <p> pick --new\|--old [--only <ids>]` | + +### What These reads changes, kind by kind + +- **A post's script, or his own words in a thread read:** the item's `narration.script`. A post with no script gets + one, made from its words as drafted and then edited. The script is marked for reading as Save script marks it, so + the card follows the shown text. As a new script does today, the edit takes the item's approval away, and the + preview says so. +- **A screen line:** its `screens[j].saidAs.<n>`. One is created from the line as it is read when it has none, and + removed when the words go back to the line as read. The line as shown (`lines[n].text`) is never touched. A said-as + that says what a screen masks is refused, and the whole write with it (the preview names it). +- **A card:** `narration.text`. The card's narration review verdict was given on the old words, and the preview says + so. Picking its reading from before (**Pick before**) brings back its old words too. +- **A parent, the quoted post or a linked post:** its spoken words are its shown words. It is listed as "said as + shown: only Everywhere changes this", and never rewritten. +- **An item playing a take read before the rule** (unstamped, other words): the preview names it. Picking its re-read + moves its card to the shown-text rule. + +**Everywhere** matches whole words only, and never reaches a card: cards are not said through the lexicon. Both +limits are said where the button is. + +### The re-read queue + +The re-reads run on the umtool app's **durable queue** (`lib/queue`, `umtool queue ls`): +- **Order:** one step per item, in cut order, none waiting on another (a failure never holds the rest). +- **One at a time:** the queue runs one step at a time, and only while the app's own job runner is idle, so a step + and a bench press never run together. The bench's single-post take answers, in a sentence, while that post's + re-read runs. +- **The step:** `umtool reads <p> reread --one <item> --only <ids>`. It judges the item again (a read that is no + longer stale is left alone), then runs in-process the command the item's bench button runs + (`lib/report/readAgainArgv.mjs`): + +| the item | its re-read | +|---|---| +| a post read alone | `posts narrate <p> <item> --take --reading next --no-pick [tuning] --bench-slurs` -- the bench's ask (`lib/report/postTakeAsk.mjs`), the bench's slur rule | +| one stale piece of a thread read | exactly its line's Read again: `posts screen <p> <item> read --for <role> --reading next [tuning] --no-pick` (with screens), else `posts narrate … --take --thread <as it was read> …` | +| several pieces | `--tuned <role>=reading:next,<tuning>` each; the others as they were read | +| a card | `narration <p> <card> --read`: its own words, reading and tuning | + +- **The tuning:** the **plain press**'s (`tuneAsk.mjs plainPressAskOf`). Only the values the LINE owned are passed + back (a take's `tuningOwn`). The character's values and the editor's setting, `takes` included, are resolved anew, + so a re-read of a settings-stale read, once picked, is fresh. An older take with no `tuningOwn` owns every + recorded value when it asked true, and none otherwise. The known limit: an old take that owned only its takes + re-reads with the character's or the setting's. +- **Synthesis:** each one is the editor's `tts-file` job on its `tts` lane, one at a time. A thread step asks one job + per piece it re-reads, one after another. Render mode holds them. +- **Picks:** a re-read joins its list **unpicked** (S3's ruling). A card's re-read is what the card now says, so it + plays. +- **What the page shows:** each line's state (waiting, running, done, failed with its reason, stopped). When lines + wait, it says why in one line: the runner is not running, render mode, a bench read of that post in flight, or + another step or job. The state is the batch file (`<p>/narration/reads/queue.json`) and the queue's steps, so it + survives a reload and a restart. A step whose app died reads failed, and Retry puts it back. +- **Where the runner runs:** inside the umtool app's server (`instrumentation.ts`): under `next start`, the systemd + unit's server and the e2e suite's, unless `UMTOOL_QUEUE_RUNNER=0`. Under `next dev` it runs only with + `UMTOOL_QUEUE_RUNNER=1`. + ## Pronunciation and voices (the lexicon, the voice map, a thread read) Three plain commands do what hand-made scripts used to (operator, 4 Nov 2026: "we want the plain apps to do as much