commit c057b28dd96f481a16978aa6ea45dcee3125522f
parent 686a4bbc694b95f9a328f223fd8361afb074f99f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 11 Oct 2026 12:05:09 -0400
Merge r25/tts-video (release 25 T5: the writing-for-the-ear guide in the README and the MCP sweep plan) into r25/integration
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 116 insertions(+), 27 deletions(-)
diff --git a/mcp/src/instructions.test.ts b/mcp/src/instructions.test.ts
@@ -1,6 +1,6 @@
import { test } from "node:test";
import assert from "node:assert/strict";
-import { NARRATION_HARD_RULE, buildSweepInstructions, buildAskInstructions, narrationStep } from "./instructions";
+import { NARRATION_HARD_RULE, NARRATION_WRITING_RULES, buildSweepInstructions, buildAskInstructions, narrationStep } from "./instructions";
import { parsePromptRequest } from "./promptRequest";
import { TOOLS } from "./server";
@@ -222,4 +222,11 @@ test("a sweep carries the narration hard rule: delivery, never the claims", () =
assert.ok(text.includes(NARRATION_HARD_RULE), "the hard rule, verbatim");
assert.match(text, /no invented quotes, no motives or feelings attributed to real people/);
assert.match(narrationStep(), /reviews every narrated card \(approve \/ edit \/ reject\)/);
+ // The five rules that mattered most, each in the plan.
+ assert.equal(NARRATION_WRITING_RULES.length, 5);
+ for (const rule of NARRATION_WRITING_RULES) assert.ok(text.includes(rule), rule);
+ assert.match(text, /at most one per sentence/);
+ assert.match(text, /reacting to what was just said, at a sentence boundary/);
+ assert.match(text, /own sentence after a colon lead-in/);
+ assert.match(text, /serves Kokoro too/);
});
diff --git a/mcp/src/instructions.ts b/mcp/src/instructions.ts
@@ -163,25 +163,35 @@ function clipStep(ctx: PlanContext): string {
// ─── Writing for the ear (release 25, T5) ───
//
// A report video's cards may carry a narration spoken by a stock synthetic
-// voice (umtool/report-to-video README, "Narration"). The rule below is fixed;
-// the concrete writing rules (sentence length, pauses, where expressive tags
-// work) are added from the voice tuning round. The same rule is in the
-// report-to-video README's "Writing narration".
+// voice (umtool/report-to-video README, "Narration"). The hard rule, and the
+// five writing rules that mattered most in the Orpheus tuning round; the README's
+// "Writing narration" has all ten with their evidence, and a worked example.
export const NARRATION_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.";
+export const NARRATION_WRITING_RULES = [
+ "Short sentences; fragments are fine (\"One file. No title. Just a date.\").",
+ "\"...\" for a beat inside a sentence — at most one per sentence.",
+ "An expressive tag (<sigh>, <chuckle>, <gasp>, …) only where a person would make that sound, " +
+ "reacting to what was just said, at a sentence boundary — never mid-clause, never after a greeting; " +
+ "one per paragraph at most.",
+ "End a paragraph on a short punch or a rhetorical question.",
+ "A quote gets its own sentence after a colon lead-in, never chained to its attribution.",
+] as const;
+
export function narrationStep(): string {
return (
`**Narration, only if you draft any.** When I ask for a video's narration ` +
`(a card's \`narration.text\` in a \`video.manifest.json\`), write it for the ` +
- `ear — short spoken sentences, a beat before the turn. ${NARRATION_HARD_RULE} ` +
- `Each narration line must be traceable to a citation already in the report; ` +
- `a line that is not is cut, not softened. The operator reviews every ` +
- `narrated card (approve / edit / reject) before it is synthesized, so draft ` +
- `the words and leave the verdicts to them.`
+ `ear. ${NARRATION_HARD_RULE} Each narration line must be traceable to a ` +
+ `citation already in the report; a line that is not is cut, not softened. ` +
+ `For the ear: ${NARRATION_WRITING_RULES.map((r, i) => `(${i + 1}) ${r}`).join(" ")} ` +
+ `The same script serves Kokoro too (its side strips the tags; the pacing ` +
+ `holds). The operator reviews every narrated card (approve / edit / reject) ` +
+ `before it is synthesized, so draft the words and leave the verdicts to them.`
);
}
diff --git a/plans/release-25.md b/plans/release-25.md
@@ -221,9 +221,9 @@ gate ran one through the route), the editor/export/homepage builds and `pnpm e2e
**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`)
+### T5, as shipped — writing for the ear: the narration review and the writing guide (`r25/tts-video`)
-**The surface first; the writing guide is a stub holding the hard rule until the Orpheus tuning round's rules land.**
+The review surface first, then the writing guide from the Orpheus tuning round's "Written for the ear" rules.
- **`/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
@@ -245,17 +245,27 @@ gate ran one through the route), the editor/export/homepage builds and `pnpm e2e
`--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.
+- **The guide.** 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 both places:
+ - **the report-to-video README's "Writing narration"**: all ten tuning-round rules, condensed, with the evidence
+ that makes them believable (a tag reacting to what was just said voiced 7–9 of 9 takes, one after a greeting 0 of
+ 6; story-shaped text 10–20% slower on Orpheus; "..." read at 2.0–2.5 words/s; a paragraph-ending punch 4.41–4.51
+ UTMOS; tags costing naturalness and 0.5–3 s each), a note that Kokoro reads the same scripts (tags stripped, its own
+ pace), and a worked example — a flat report sentence and its for-the-ear rewrite, invented content, no real names;
+ - **`mcp/src/instructions.ts`**, short: `narrationStep()` in every sweep plan carries `NARRATION_HARD_RULE` and the
+ five rules that mattered most (`NARRATION_WRITING_RULES`: short sentences and fragments; "..." for a beat, one a
+ sentence; a tag only where a person would make that sound, reacting, at a sentence boundary, one a paragraph; end a
+ paragraph on a punch or a question; a quote its own sentence after a colon lead-in), and the Kokoro note.
+- **Rulings (confirmed by the orchestrator):** a rejection needs a note; `--narration-unreviewed` never builds a
+ rejected card; a voice change un-approves, as an edit does; the gate applies to `--chrome-only`.
- 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) |
+| `988a62e5` | the writing guide: the README's ten rules, the Kokoro note and the worked example; the MCP plan's five rules |
#### Gates (T5 surface)
@@ -264,5 +274,5 @@ gate ran one through the route), the editor/export/homepage builds and `pnpm e2e
| 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) |
+| mcp unit | 306/306 (+1: a sweep plan carries the hard rule verbatim and each of the five writing rules) |
| 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 |
diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md
@@ -1133,15 +1133,77 @@ exactly as it did — every card's sound is still `anullsrc`.
**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. (The MCP's sweep plan carries the
-same sentence, `mcp/src/instructions.ts` `NARRATION_HARD_RULE`.)
-
-Write it for the ear: short spoken sentences, the beat before the turn, a
-little warmth or weariness where the moment has it — an expressive tag like
-`<sigh>` is a delivery note, not a claim. Every line traces to a citation the
-cut already carries; a line that does not is cut, not softened. The concrete
-rules — sentence length, punctuation for pauses, where Orpheus's tags work —
-come from the voice tuning round and are not written here yet.
+intensifiers that change a claim's strength. Every line traces to a citation
+the cut already carries; a line that does not is cut, not softened. (The MCP's
+sweep plan carries the same sentence, `mcp/src/instructions.ts`
+`NARRATION_HARD_RULE`.)
+
+**Write it for the ear.** The rules below come from release 25's Orpheus tuning
+round: three voices reading the same story written for the ear and written as
+prose, and the tagged bake-off lines. Numbers are takes voiced as asked, words a
+second, or predicted naturalness (UTMOS).
+
+1. **Short sentences; fragments are fine.** "One file. No title. Just a date."
+ read cleanly in 9 of 9 takes (UTMOS 4.36–4.48). Story-shaped text slows
+ Orpheus 10–20% against the same content as prose (2.05–2.24 words/s against
+ 2.30–2.66) — the pace a narrator takes.
+2. **"..." for a beat inside a sentence, at most one per sentence** ("Tuesday
+ night... without a single word"). "And then... there it was." was read
+ slowest, 2.0–2.5 words/s: the pause the text asks for (≈0.3 s).
+3. **A tag only where a person would make that sound, reacting to what was
+ just said, at a sentence boundary.** A sigh after "Nobody was supposed to
+ find it." was voiced in 7 of 9 takes, a chuckle after absurd file names 9 of
+ 9, a gasp before the reveal 8 of 9. A chuckle after a greeting ("Welcome back
+ to the archive. `<chuckle>`") reacts to nothing: voiced 0 of 6 and 1 of 4.
+ Never mid-clause.
+4. **Tags are rare: one a paragraph at most, two or three a minute.** Each
+ voiced tag lowers naturalness (a tagged quote fell to 3.4–3.5 for four of
+ eight voices) and adds 0.5–3 s, unevenly — leave room in a card with a fixed
+ `seconds`.
+5. **End a paragraph on a short punch or a rhetorical question.** "Are you
+ sure?" and "Somewhere, somebody hit save." scored 4.41–4.51, the best of the
+ story; the paragraph's 0.6 s pause lets the line land.
+6. **One idea a paragraph, one to three sentences.** A blank line is a scene
+ turn: 0.6 s, and a fresh chunk. Chunks of 58–169 characters are where Orpheus
+ is steadiest.
+7. **Emphasis by position, not markup.** The key word goes last in a short
+ sentence ("They were wrong.", "It doesn't."). CAPS and italics reach the
+ model as written and were not tested; do not rely on them.
+8. **A quote gets its own sentence after a colon lead-in** — "She said it
+ plainly: ..." — never chained to its attribution in one long sentence.
+ Expect a long beat after it (1.1–1.5 s in one voice's takes, the longest in
+ each).
+9. **No long subordinate-clause prose.** The chunker then cuts at commas
+ (chunks of 161–202 characters with a 1.1 s silence mid-chunk) and it reads
+ flatter. UTMOS scores that prose higher (4.42–4.45 against 4.10–4.27) — the
+ predictor's bias, not the listener's.
+10. **Numbers any way, but sparingly.** The pre-pass speaks them (years as
+ years); several spelled-out numbers in one sentence make the longest chunks
+ (21 words, 150 characters).
+
+**Kokoro reads the same scripts.** Its side strips the tags and keeps its own
+pace (2.82 words/s on the story, 2.69 on the prose): a script written for
+Orpheus needs no second version for Kokoro.
+
+**A worked example** (invented content, no real people):
+
+> Flat, from a report: *The council approved the permit on 12 March 2024,
+> despite the objection filed by the residents' association two weeks earlier,
+> which the minutes record as having been read into the record without
+> discussion.*
+>
+> For the ear:
+>
+> *Two weeks before the vote, the residents filed an objection. The minutes say
+> what happened to it: "read into the record." No discussion.*
+>
+> *On the twelfth of March... the permit passed.*
+
+Every fact is the report's — the dates, the objection, the minutes' own words
+quoted after a colon, the vote. What changed is the order (the objection first,
+so the vote lands last), the length of the sentences, one beat, and a short
+punch to end each paragraph. No tag: nothing in it is a sound a person would
+make; and nothing says the council *ignored* anyone — the minutes do not.
#### The narration review