commit 90839d47ca239da9a60b777570dfebb91e3a7103
parent cc952eb3e7237a8c5ee37cae414d6010a5958454
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 17 Nov 2026 11:10:45 -0500
umtool review 1 (should 6) e2e and docs: a threaded item read again, a card read again and picked, a double press, a lost job, one autoplay box
- post-narration.spec: the misleading "no thread controls" check replaced by p-32, a reply with a thread read: its
controls by name and one Read the thread again (take 2, unpicked, each piece one reading on); a double press of
Read again asks the editor once; a read whose job cannot be followed fails in place; one play-when-ready box.
- narration-review.spec: a card read again (the card unchanged), the new reading picked (the verdict kept), the
first one press away with nothing asked.
- knobs.md and the changelog say the stamp rule, what a read that makes nothing says, the shared box.
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
4 files changed, 96 insertions(+), 10 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -60,17 +60,19 @@
the next reading), **Read edited text** (saved, then read) and **Tune ▾** (the six numbers for this line only,
started from how it was last made). The new read joins the list unpicked and plays as it lands (a box, on by
default, remembered per browser); **Pick** makes it the one, and the one it replaced stays a press away.
- - What the card shows never changes. A script saved for reading marks the item (`narration.forReading`), and its
- card then follows the post's own words. An item whose script was edited before this is flagged by
- `umtool posts narrate <p> --list` and on the bench; saving its script again moves it to the rule.
+ - What the card shows never changes. A take made from words that are not the post's is stamped when it is made,
+ and while it plays the card follows the post's own words, and its thread tiles keep their times, whatever the
+ script says later. An item playing a take from before this (no stamp, other words) is flagged by
+ `umtool posts narrate <p> --list` and on the bench; reading it again moves it to the rule.
- A screen line can be **said as** other words (`umtool posts screen <p> <item> set <id> said.<n>="…"`). It is never
drawn, and one that says a masked number or e-mail, or a redacted line, is refused.
- A thread read takes `--reading N|next` and the tuning flags, for the whole read or one piece (`--for <role>`),
and records each piece's (`--tuned` asks them again). One line read again re-synthesizes only that line.
- A card's narration has its own command, `umtool narration <p> <card>`: `--read` keeps a reading without changing
the card, `--pick <key>` plays one, and a verdict on the same words is kept.
- - One read of a post at a time: a second press is refused in place. While render mode holds the machine, a pressed
- read says it is waiting for the render.
+ - One read of a post at a time: a double press is one read, and a second press while one runs is refused in place.
+ A read that makes nothing (it already says that) says so, and only a take a job made is played or marked new.
+ While render mode holds the machine, a pressed read says it is waiting for the render.
- A cast re-read now always asks a take's recorded `takes` again, so a settings default other than 3 no longer
changes it.
- **A tag can be offered under the site's More filters, per site or for the whole corpus.** A site's Tags tab (Sites → a site → Tags) replaces Visibility with **Placement**: Inherit, Main row, More filters, Hidden. Main row and More filters both override a tag the corpus hides, which "Shown here" said it did but never saved. On /tags, a definition's **More filters** box sets the corpus default. The CLI twin is a new `tags` op, `present`: `pnpm ops tags --json '{"op":"present","site":"<site>","tag":{"id":"<tag>","secondary":true}}'` changes one row of `sites/<site>/tags.json`, keeping its other rows and fields; `null` clears a field so the site inherits it again. It is refused, with nothing written, for an unknown site, a tag the corpus does not define, or a field a site cannot set (rules, sites). Needs a rebuild and deploy of the site.
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -1533,7 +1533,7 @@ deleted by a re-read; recorded takes and their enhance/convert chain are untouch
| **Read again** — the same words, the NEXT reading (one past the highest reading of these words among the item's takes; new words: 0), a new take NOT picked | post bench, under the script: **Read again** | `umtool posts narrate <p> <item> --take --reading next --no-pick` | `op: "take", reading: "next", keepPick: true` |
| **Read edited text** — the script saved (as **Save script**), then read | **Read edited text** | `--script "…"` then the above | `op: "set", patch: {script}` then `op: "take"` |
| **Tune ▾** — temperature, top_p, top_k, min_p, repeat_penalty, takes for this line only, prefilled from how the text was last made; **Read with these** | **Tune ▾** | `--temperature … --top-p … --top-k … --min-p … --repeat-penalty … --chunk-takes …` | `tuning: {…}` |
-| play when ready — the new read plays as it lands (on by default, remembered per browser) | the **play when ready** box | — (the CLI waits and prints the take) | — |
+| play when ready — the new read plays as it lands (on by default, remembered per browser; one box for every line on the page) | the **play when ready** box | — (the CLI waits and prints the take) | — |
| **Pick** — the new read made the one the cut plays; the one it replaces stays in the list, one press away | the take's **Pick** | `--pick <n>` | `patch: {pick}` |
| a screen line **said as** (`screens[j].saidAs.<n>`) — what the voice says for that line instead of its words; never drawn, never the line's identity; one that says a masked shape or a redacted line is refused | Screens, the line's **said as** field (Save) | `umtool posts screen <p> <item> set <id> said.<n>="…"` (`=off` clears) | the bench's Save (`screens`) |
| a LINE read again — that line's part only, the rest from the parts cache, joined into a new take, not picked; the line's readings listed with Play and Pick | Screens, the line's **Read again** / **Read edited text** / **Tune ▾** | `umtool posts screen <p> <item> read --for screen:<id>:<n> --reading next [tuning flags] --no-pick` | `op: "screen-read", for, reading, tuning, keepPick` |
@@ -1545,7 +1545,10 @@ deleted by a re-read; recorded takes and their enhance/convert chain are untouch
`read.tuned` (`{ <role>: { reading?, tuning?, said } }`). `posts screen read` keeps the playing read's reading for a
piece while it says the same words; a cast re-read asks them again (`--tuned`). A part with no reading and no tuning
keeps the parts-cache key it always had.
-- **One read of a post at a time**: a second press while one is made is refused in place (409), never asked twice.
+- **One read of a post at a time**: a double press is one read; a second press while one is made is refused in place
+ (409), never asked twice. A read whose pieces already say this makes nothing and says so (the job's one result line,
+ `--events`); only a take the job made is played, marked new or named. A reading asked for a piece read from a take
+ (a recording) is refused: record it again.
While render mode holds the machine a pressed read says it is waiting for the render, and is made when it ends.
- **The card follows the shown text; the playing take decides** (review 1's ruling). A take is stamped `forReading`
by the writer when it is made from words that are not the post's as drafted (a script edited for reading, a lexicon
diff --git a/umtool/e2e/narration-review.spec.ts b/umtool/e2e/narration-review.spec.ts
@@ -99,3 +99,34 @@ test("the build refuses a narrated card the review has not approved", async ({ r
expect(JSON.stringify(done)).toContain("timeline k02: its narration is not reviewed");
expect(existsSync(path.join(DIR, "out", "narration-review-fixture.mp4"))).toBe(false);
});
+
+test("A CARD READ AGAIN (lane line-rerun): Read again keeps a new reading without changing the card, Pick plays it, the verdict on the same words kept; the first reading one press away", async ({ page }) => {
+ await page.goto(urls.section(PROJECT, "narration"));
+ await page.locator("[data-narration-link]").click();
+ const k1 = page.locator('[data-narration-card="k01"]');
+ const card = () => manifest().timeline.find((e) => e.id === "k01")!.narration as { text: string; reading?: number };
+ const text = card().text;
+ const state = await k1.getAttribute("data-state");
+ for (const label of ["Read the card again", "Read the card as edited", "Tune the card only", "Play new reads when they land"]) await expect(k1.locator(`[aria-label="${label}"]`), label).toHaveCount(1);
+ const readings = k1.locator("[data-narration-reading]");
+ const had = await readings.count();
+ const before = ttsAsks().length;
+ await k1.locator('[aria-label="Read the card again"]').click();
+ // The first reading it kept (Play's, if any) and this one.
+ await expect.poll(() => readings.count(), { timeout: 60_000 }).toBeGreaterThan(had);
+ expect(ttsAsks().length).toBe(before + 1);
+ expect(card()).toMatchObject({ text });
+ expect(card().reading ?? 0).toBe(0);
+ // Pick the new reading: the card plays it -- its verdict on these words kept.
+ const fresh = k1.locator('[data-narration-reading]:not([data-playing])').last();
+ const key = await fresh.getAttribute("data-narration-reading");
+ await k1.locator(`[data-narration-reading-pick="${key}"]`).click();
+ await expect(k1.locator(`[data-narration-reading="${key}"]`)).toHaveAttribute("data-playing", "1");
+ expect(card().reading).toBeGreaterThan(0);
+ if (state) await expect(k1).toHaveAttribute("data-state", state);
+ // Back to the first: one press, nothing asked.
+ const asked = ttsAsks().length;
+ await k1.locator('[data-narration-reading]:not([data-playing]) [data-narration-reading-pick]').first().click();
+ await expect.poll(() => card().reading ?? 0).toBe(0);
+ expect(ttsAsks().length).toBe(asked);
+});
diff --git a/umtool/e2e/post-narration.spec.ts b/umtool/e2e/post-narration.spec.ts
@@ -653,8 +653,12 @@ test("READ AGAIN (lane line-rerun): the next reading unpicked and heard as it la
// READ AGAIN: reading 1, a new take NOT picked, marked new, played as it lands.
await expect(panel.locator('[aria-label="Read the edited text"]')).toBeDisabled();
- await panel.locator('[aria-label="Read again"]').click();
+ // A DOUBLE PRESS is one read (review 1, finding 4): one ask of the editor, one take.
+ const asks31 = () => (JSON.parse(readFileSync(path.join(FIXTURE, "editor-stub.requests.json"), "utf8")) as { route?: string; out?: string }[]).filter((r) => r.route === "tts" && String(r.out ?? "").includes("/narration/posts/31/")).length;
+ const asked0 = asks31();
+ await panel.locator('[aria-label="Read again"]').dblclick();
await expect(panel.locator("[data-post-take]")).toHaveCount(2, { timeout: 20_000 });
+ expect(asks31()).toBe(asked0 + 1);
expect(narr("p-31").takes![1]).toMatchObject({ file: "narration/posts/31/take-2.orpheus-zac.wav", script: OWN_TEXT, reading: 1 });
expect(narr("p-31").pick).toBe(0);
await expect(panel.locator('[data-post-take-new="2"]')).toBeVisible();
@@ -691,6 +695,12 @@ test("READ AGAIN (lane line-rerun): the next reading unpicked and heard as it la
// The previous pick, one press away.
await page.locator('[data-post-narration="p-31"] [aria-label="Pick take 1"]').click();
await expect.poll(() => narr("p-31").pick).toBe(0);
+ // A READ WHOSE JOB CANNOT BE FOLLOWED fails in place, never "reading…" for ever (review 1, finding 5).
+ await page.route(/\/api\/report\/post-narration\?.*[?&]job=/, (route) => route.abort());
+ await page.locator('[data-post-narration="p-31"] [aria-label="Read again"]').click();
+ await expect(page.locator('[data-post-narration="p-31"] [data-post-take-failed]')).toContainText("did not answer", { timeout: 20_000 });
+ await expect(page.locator('[data-post-narration="p-31"] [aria-label="Read again"]')).toBeEnabled();
+ await page.unroute(/\/api\/report\/post-narration\?.*[?&]job=/);
});
test("READ A SCREEN LINE AGAIN (lane line-rerun): said as, read again alone, its readings listed and picked -- the controls by name; the narration page's too", async ({ page }) => {
@@ -722,8 +732,48 @@ test("READ A SCREEN LINE AGAIN (lane line-rerun): said as, read again alone, its
await expect(page.locator('[data-post-screen-reading-pick="0:3"]')).toBeVisible({ timeout: 15_000 });
await page.locator('[aria-label="Pick take 3 for line 0"]').click();
await expect.poll(() => narr("p-31").pick).toBe(2);
- // The thread read and the narration page's cards: their controls, by name.
- await expect(page.locator('[aria-label="Read the thread again"]')).toHaveCount(0);
+ // ONE "play when ready" for every line on the page (review 1, finding 9): off on the post's, off on the line's.
+ const postAuto = page.locator('[data-post-narration="p-31"] [aria-label="Play new reads when they land"]');
+ const lineAuto = page.locator('[data-post-screen-line="0"] [aria-label="Play new reads when they land"]');
+ await expect(lineAuto).toBeChecked();
+ await postAuto.uncheck();
+ await expect(lineAuto).not.toBeChecked();
+ await lineAuto.check();
+ await expect(postAuto).toBeChecked();
+});
+
+test("READ THE THREAD AGAIN (lane line-rerun): its controls by name on a threaded item, and one press makes a new thread read, unpicked, every synthesized piece one reading on", async ({ page }) => {
+ // p-32 of this test's own: a reply, its thread read (the post it answers, then his words) picked.
+ const m = JSON.parse(readFileSync(MANIFEST, "utf8"));
+ const base = m.timeline.find((x: { id: string }) => x.id === "p-13");
+ const file = "narration/posts/32/take-1.orpheus-thread.wav";
+ m.timeline.push({
+ ...base, id: "p-32", post: "narrchan-x/32", url: "https://x.com/narrsubject/status/32", text: "Yes, every morning at nine.", date: "2026-10-30T11:00:00.000Z",
+ parents: [{ id: "3201", handle: "ferryfan", author: "Ferry Fan", text: "Does the early boat still run?", date: "2026-10-30T10:30:00.000Z" }],
+ narration: {
+ script: "Yes, every morning at nine.", pick: 0,
+ takes: [{ file, engine: "orpheus", voice: "leo+zac", seconds: 4, script: "Does the early boat still run?\n\nYes, every morning at nine.", read: { kind: "thread", parents: "0" }, parts: [
+ { n: 1, para: 0, text: "Does the early boat still run?", voice: "leo", role: "parent:0", start: 0, seconds: 1.8 },
+ { n: 2, para: 100, text: "Yes, every morning at nine.", voice: "zac", role: "post", start: 2.6, seconds: 1.4 },
+ ] }],
+ },
+ });
+ writeFileSync(MANIFEST, JSON.stringify(m, null, 2) + "\n");
+ mkdirSync(path.join(DIR, "narration", "posts", "32"), { recursive: true });
+ execFileSync("ffmpeg", ["-v", "error", "-y", "-f", "lavfi", "-i", "sine=frequency=300:sample_rate=48000:duration=4", "-ac", "1", "-c:a", "pcm_s16le", path.join(DIR, file)]);
+ await page.setViewportSize({ width: 1440, height: 1400 });
+ await page.goto(urls.postBenchHref(PROJECT, "p-32"));
+ const thread = page.locator("[data-post-thread-panel]");
+ for (const label of ["Read the thread again", "Tune the thread only", "Read the thread again with this tuning", "Play new reads when they land"]) await expect(thread.locator(`[aria-label="${label}"]`), label).toHaveCount(1);
+ await thread.locator('[aria-label="Read the thread again"]').click();
+ await expect(thread.locator("[data-read-note]")).toContainText("take 2 made, not picked", { timeout: 60_000 });
+ const t2 = narr("p-32").takes![1] as Take & { parts?: Array<{ role?: string; reading?: number }>; read?: { kind?: string } };
+ expect(t2.read?.kind).toBe("thread");
+ expect(t2.parts!.map((p) => [p.role, p.reading])).toEqual([["parent:0", 1], ["post", 1]]);
+ expect(narr("p-32").pick).toBe(0);
+});
+
+test("THE NARRATION PAGE's cards carry the same controls, by name", async ({ page }) => {
await page.goto(urls.section("reports/narration-review-fixture", "narration"));
await page.locator("[data-narration-link]").click();
for (const label of ["Read the card again", "Read the card as edited", "Tune the card only"]) await expect(page.locator(`[aria-label="${label}"]`).first(), label).toBeVisible();