Archilyzer · Source

archilyzer

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

commit 10011d97795e573026adb500961e9e91a0a7cc41
parent 4320dbee2ac7cc76e8872ba9b6155a774f033ceb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 11 Oct 2026 12:04:53 -0400

umtool, mcp: writing for the ear — the tuning round's ten rules in the README, the five that matter in the sweep plan (release 25 T5)

The report-to-video README's "Writing narration" now carries all ten rules
from the Orpheus tuning round, condensed with their evidence, a note that
Kokoro reads the same scripts, and a worked example (a flat report sentence and
its for-the-ear rewrite; invented content). The MCP sweep plan's narration step
carries the hard rule and the five rules that mattered most
(NARRATION_WRITING_RULES), tested.

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

Diffstat:
Mmcp/src/instructions.test.ts | 9++++++++-
Mmcp/src/instructions.ts | 28+++++++++++++++++++---------
Mumtool/report-to-video/README.md | 80++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
3 files changed, 98 insertions(+), 19 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/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