commit 07af88f5802bcbd84237fbec6675385ba152a8e8
parent 6ed278e34fd3aafa97dcafcafebc6561e8afae1f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 13 Oct 2026 20:45:34 -0400
common: the release 28 test kit — full and flips manifests, a ruled fact-check
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
6 files changed, 639 insertions(+), 0 deletions(-)
diff --git a/common/testing/README.md b/common/testing/README.md
@@ -18,6 +18,8 @@ transcript, channel or person goes in these fixtures, ever.
| `draft/reports/`, `draft/manifests/` | `basic`, `posts-only`, `paragraphs` converted (`report.json`) and taken to a video manifest, as the converters make them today. |
| `web/fakeWeb.mjs` | A fake web on loopback: a DuckDuckGo-shaped HTML search (`POST /html/`, links in the `uddg` redirect, an ad), pages, plain text, a long page, redirects and a redirect loop, a PDF, a 429 that clears (`busyTimes`), a 503 that does not. `web.searchUrl` is what `webSearch` takes. |
| `archiveOrg/fakeArchiveOrg.mjs` | A fake archive.org on loopback: `/advancedsearch.php` (every word of `q` in an item's identifier, title or subject; `*` all) and `/metadata/<id>` over invented items (`ITEMS`: a show's episodes with an original, a derivative and a JSON file, a restricted item, an audio tape). `ia.fetch` sends `https://archive.org/…` to it, for `new ArchiveOrgClient({ fetch: ia.fetch })`; `busyTimes` answers 429 first. |
+| `draft/manifests/full`, `flips` | Release 28: every media field a draft task writes, as the build accepts it today — per-entry `onscreen`, a narrated card, a teaser, `claim` verdicts, `render.chrome.threads` with a `thread` per clip (`full`), or `render.chrome.flips` (`flips`: one THEN/NOW pair over clips of different dates). Hand-written, not derived; `umtool/report-to-video/fixtures-r28.test.mjs` keeps them lint-clean. |
+| `draft/reports/ruled.report.json` | Release 28: a synthetic fact-check whose claims carry verdicts standing for operator rulings — every verdict at least once, each cited quote a cue of the corpus. The verdict bench's tests read it. |
| `draft/runs/*.json` | One recorded run per generation task (release 27 S5): the model side, scripted — `turns` for the fake Anthropic (`sweep-agent`, `revise-report`, `revise-video`, `research`) or the fake ollama (`sweep-pipeline`, `narrate`), with the question, channels or feedback it answers. `mcp/src/draftTasks.test.ts` runs each task over the synthetic corpus against them. |
| `draft/derive.ts`, `draft/regenerate.ts` | How the derived files are made. After a converter change: `cd common && pnpm exec tsx testing/draft/regenerate.ts`, review the diff, commit. `fakes.test.ts` fails until they match. |
diff --git a/common/testing/draft/manifests/flips.video.manifest.json b/common/testing/draft/manifests/flips.video.manifest.json
@@ -0,0 +1,214 @@
+{
+ "schemaVersion": 1,
+ "slug": "synth-flips",
+ "title": "Synth Kitchen — what the baker says about the bakery",
+ "subtitle": "",
+ "generatedOn": "2026-10-13",
+ "provenance": {
+ "siteOrigin": "https://synth.example",
+ "channelSlug": "synth-kitchen",
+ "channel": ""
+ },
+ "render": {
+ "width": 1920,
+ "height": 1080,
+ "fps": 30,
+ "audioRate": 48000,
+ "audioChannels": 2,
+ "maxHeightSource": 1080,
+ "fontRegular": "/usr/share/fonts/TTF/FiraSans-Regular.ttf",
+ "fontBold": "/usr/share/fonts/TTF/FiraSans-Bold.ttf",
+ "palette": {
+ "bg": "#12100c",
+ "fg": "#f6f1e6",
+ "muted": "#a2957f",
+ "accent": "#c8752a",
+ "amber": "#ffc860"
+ },
+ "transition": 0.4,
+ "fetchPad": 3,
+ "snapWindow": 1.6,
+ "silenceMinDur": 0.09,
+ "silenceRelDb": 6,
+ "headerHeight": 56,
+ "footerHeight": 0,
+ "crf": 21,
+ "preset": "slow",
+ "qr": {
+ "scale": 4,
+ "quiet": 3,
+ "ecc": "M",
+ "margin": 28
+ },
+ "chrome": {
+ "engine": "hyperframes",
+ "layout": "deck",
+ "factcheck": {},
+ "flips": {
+ "pairs": [
+ {
+ "id": "chain",
+ "topic": "The bakery's size",
+ "then": {
+ "entry": "c01",
+ "when": "Jan 2026",
+ "words": "I would never sell the bakery to a chain"
+ },
+ "now": {
+ "entry": "c07",
+ "when": "Mar 2026",
+ "words": "it was always going to be a small place"
+ }
+ }
+ ]
+ }
+ },
+ "narration": {
+ "engine": "kokoro",
+ "voice": "af_heart"
+ }
+ },
+ "timelineNodes": [],
+ "timeline": [
+ {
+ "type": "card",
+ "id": "title",
+ "style": "title",
+ "seconds": 4,
+ "heading": "Synth Kitchen — what the baker says about the bakery",
+ "sub": "",
+ "foot": ""
+ },
+ {
+ "type": "card",
+ "id": "the-bakery",
+ "style": "chapter",
+ "seconds": 3.5,
+ "heading": "The bakery"
+ },
+ {
+ "type": "clip",
+ "id": "c01",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 15,
+ "end": 19.8,
+ "cite": 15,
+ "quote": "I would never sell the bakery to a chain",
+ "claim": {
+ "id": "k01",
+ "verdict": "CORROBORATED"
+ },
+ "onscreen": {
+ "title": "Not for sale",
+ "subtitle": "The baker on selling to a chain"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c02",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 25,
+ "end": 29.8,
+ "cite": 25,
+ "quote": "we never said that about the old oven",
+ "claim": {
+ "id": "k02",
+ "verdict": "PARTLY"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c03",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 45,
+ "end": 49.8,
+ "cite": 45,
+ "quote": "I paid for the new mixer myself",
+ "claim": {
+ "id": "k03",
+ "verdict": "CORROBORATED"
+ }
+ },
+ {
+ "type": "card",
+ "id": "the-contest",
+ "style": "chapter",
+ "seconds": 3.5,
+ "heading": "The contest",
+ "narration": {
+ "text": "A month later, the pie stream."
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c04",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 10,
+ "end": 14.8,
+ "cite": 10,
+ "quote": "I did not enter the contest this year",
+ "claim": {
+ "id": "k04",
+ "verdict": "CONTRADICTED"
+ },
+ "onscreen": {
+ "title": "The contest"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c05",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 15,
+ "end": 19.8,
+ "cite": 15,
+ "quote": "the judges were friends of mine so it felt wrong",
+ "claim": {
+ "id": "k05",
+ "verdict": "PARTLY"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c06",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 40,
+ "end": 44.8,
+ "cite": 40,
+ "quote": "my lawyer told me not to talk about the lease",
+ "claim": {
+ "id": "k06",
+ "verdict": "NOT_FOUND"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c07",
+ "channel": "synth-kitchen",
+ "video": "qa-long-03",
+ "start": 210,
+ "end": 214.8,
+ "cite": 210,
+ "quote": "it was always going to be a small place",
+ "claim": {
+ "id": "k07",
+ "verdict": "CONTRADICTED"
+ }
+ },
+ {
+ "type": "teaser",
+ "id": "fin",
+ "lines": [
+ "Synth Kitchen",
+ "The bakery and the contest",
+ "March 2026"
+ ]
+ }
+ ]
+}
diff --git a/common/testing/draft/manifests/full.video.manifest.json b/common/testing/draft/manifests/full.video.manifest.json
@@ -0,0 +1,218 @@
+{
+ "schemaVersion": 1,
+ "slug": "synth-full",
+ "title": "Synth Kitchen — what the baker says about the bakery",
+ "subtitle": "",
+ "generatedOn": "2026-10-13",
+ "provenance": {
+ "siteOrigin": "https://synth.example",
+ "channelSlug": "synth-kitchen",
+ "channel": ""
+ },
+ "render": {
+ "width": 1920,
+ "height": 1080,
+ "fps": 30,
+ "audioRate": 48000,
+ "audioChannels": 2,
+ "maxHeightSource": 1080,
+ "fontRegular": "/usr/share/fonts/TTF/FiraSans-Regular.ttf",
+ "fontBold": "/usr/share/fonts/TTF/FiraSans-Bold.ttf",
+ "palette": {
+ "bg": "#12100c",
+ "fg": "#f6f1e6",
+ "muted": "#a2957f",
+ "accent": "#c8752a",
+ "amber": "#ffc860"
+ },
+ "transition": 0.4,
+ "fetchPad": 3,
+ "snapWindow": 1.6,
+ "silenceMinDur": 0.09,
+ "silenceRelDb": 6,
+ "headerHeight": 56,
+ "footerHeight": 0,
+ "crf": 21,
+ "preset": "slow",
+ "qr": {
+ "scale": 4,
+ "quiet": 3,
+ "ecc": "M",
+ "margin": 28
+ },
+ "chrome": {
+ "engine": "hyperframes",
+ "layout": "deck",
+ "factcheck": {},
+ "threads": {
+ "list": [
+ {
+ "id": "bakery",
+ "label": "The bakery",
+ "outcome": {
+ "verdict": "CONTRADICTED"
+ }
+ },
+ {
+ "id": "contest",
+ "label": "The contest"
+ }
+ ]
+ }
+ },
+ "narration": {
+ "engine": "kokoro",
+ "voice": "af_heart"
+ }
+ },
+ "timelineNodes": [],
+ "timeline": [
+ {
+ "type": "card",
+ "id": "title",
+ "style": "title",
+ "seconds": 4,
+ "heading": "Synth Kitchen — what the baker says about the bakery",
+ "sub": "",
+ "foot": ""
+ },
+ {
+ "type": "card",
+ "id": "the-bakery",
+ "style": "chapter",
+ "seconds": 3.5,
+ "heading": "The bakery"
+ },
+ {
+ "type": "clip",
+ "id": "c01",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 15,
+ "end": 19.8,
+ "cite": 15,
+ "quote": "I would never sell the bakery to a chain",
+ "claim": {
+ "id": "k01",
+ "verdict": "CORROBORATED"
+ },
+ "thread": "bakery",
+ "onscreen": {
+ "title": "Not for sale",
+ "subtitle": "The baker on selling to a chain"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c02",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 25,
+ "end": 29.8,
+ "cite": 25,
+ "quote": "we never said that about the old oven",
+ "claim": {
+ "id": "k02",
+ "verdict": "PARTLY"
+ },
+ "thread": "bakery"
+ },
+ {
+ "type": "clip",
+ "id": "c03",
+ "channel": "synth-kitchen",
+ "video": "bread-day-01",
+ "start": 45,
+ "end": 49.8,
+ "cite": 45,
+ "quote": "I paid for the new mixer myself",
+ "claim": {
+ "id": "k03",
+ "verdict": "CORROBORATED"
+ },
+ "thread": "bakery"
+ },
+ {
+ "type": "card",
+ "id": "the-contest",
+ "style": "chapter",
+ "seconds": 3.5,
+ "heading": "The contest",
+ "narration": {
+ "text": "A month later, the pie stream."
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c04",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 10,
+ "end": 14.8,
+ "cite": 10,
+ "quote": "I did not enter the contest this year",
+ "claim": {
+ "id": "k04",
+ "verdict": "CONTRADICTED"
+ },
+ "thread": "contest",
+ "onscreen": {
+ "title": "The contest"
+ }
+ },
+ {
+ "type": "clip",
+ "id": "c05",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 15,
+ "end": 19.8,
+ "cite": 15,
+ "quote": "the judges were friends of mine so it felt wrong",
+ "claim": {
+ "id": "k05",
+ "verdict": "PARTLY"
+ },
+ "thread": "contest"
+ },
+ {
+ "type": "clip",
+ "id": "c06",
+ "channel": "synth-kitchen",
+ "video": "pie-stream-02",
+ "start": 40,
+ "end": 44.8,
+ "cite": 40,
+ "quote": "my lawyer told me not to talk about the lease",
+ "claim": {
+ "id": "k06",
+ "verdict": "NOT_FOUND"
+ },
+ "thread": "contest"
+ },
+ {
+ "type": "clip",
+ "id": "c07",
+ "channel": "synth-kitchen",
+ "video": "qa-long-03",
+ "start": 210,
+ "end": 214.8,
+ "cite": 210,
+ "quote": "it was always going to be a small place",
+ "claim": {
+ "id": "k07",
+ "verdict": "CONTRADICTED"
+ },
+ "thread": "bakery"
+ },
+ {
+ "type": "teaser",
+ "id": "fin",
+ "lines": [
+ "Synth Kitchen",
+ "The bakery and the contest",
+ "March 2026"
+ ]
+ }
+ ]
+}
diff --git a/common/testing/draft/reports/ruled.report.json b/common/testing/draft/reports/ruled.report.json
@@ -0,0 +1,156 @@
+{
+ "format": "archilyzer-report",
+ "version": 1,
+ "id": "synth-ruled",
+ "kind": "factcheck",
+ "title": "Synth Kitchen — what an article says about the baker, checked",
+ "summary": "Scope: channel `synth-kitchen`, every recording read. A synthetic fact-check whose verdicts stand for operator rulings.",
+ "sections": [
+ {
+ "id": "the-bakery",
+ "title": "The bakery",
+ "claims": [
+ {
+ "id": "r01",
+ "text": "The article says she has ruled out selling the bakery to a chain.",
+ "verdict": "CORROBORATED",
+ "findings": "She says so in Bread day.",
+ "citations": [
+ "q01"
+ ]
+ },
+ {
+ "id": "r02",
+ "text": "The article says the old oven was broken.",
+ "verdict": "PARTLY",
+ "findings": "She says it ran hot, and that it was fine.",
+ "citations": [
+ "q02"
+ ]
+ },
+ {
+ "id": "r03",
+ "text": "The article says she paid for all the kitchen's equipment herself.",
+ "verdict": "PARTLY",
+ "findings": "She says she paid for the mixer; nothing about the rest.",
+ "citations": [
+ "q03"
+ ]
+ },
+ {
+ "id": "r04",
+ "text": "The article says the second shop is a large store.",
+ "verdict": "CONTRADICTED",
+ "findings": "She calls it a small place.",
+ "citations": [
+ "q04"
+ ]
+ },
+ {
+ "id": "r05",
+ "text": "The article says she uses a bread machine.",
+ "verdict": "CONTRADICTED",
+ "findings": "She says she does not use one at all.",
+ "citations": [
+ "q05"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "the-contest",
+ "title": "The contest",
+ "claims": [
+ {
+ "id": "r06",
+ "text": "The article says she stayed out of this year's contest.",
+ "verdict": "CORROBORATED",
+ "findings": "She says she did not enter.",
+ "citations": [
+ "q06"
+ ]
+ },
+ {
+ "id": "r07",
+ "text": "The article says she named her lawyer on stream.",
+ "verdict": "NOT_FOUND",
+ "findings": "She mentions a lawyer, never by name.",
+ "citations": [
+ "q07"
+ ]
+ },
+ {
+ "id": "r08",
+ "text": "The article says she is the best baker in the county.",
+ "verdict": "UNTESTABLE",
+ "findings": "A judgement, not a statement of hers."
+ }
+ ]
+ }
+ ],
+ "citations": {
+ "q01": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "bread-day-01",
+ "start": 15,
+ "end": 19.8,
+ "quote": "I would never sell the bakery to a chain",
+ "label": "Bread day"
+ },
+ "q02": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "bread-day-01",
+ "start": 30,
+ "end": 34.8,
+ "quote": "the oven was fine it just ran hot",
+ "label": "Bread day"
+ },
+ "q03": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "bread-day-01",
+ "start": 45,
+ "end": 49.8,
+ "quote": "I paid for the new mixer myself",
+ "label": "Bread day"
+ },
+ "q04": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "qa-long-03",
+ "start": 210,
+ "end": 214.8,
+ "quote": "it was always going to be a small place",
+ "label": "Questions and answers"
+ },
+ "q05": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "qa-long-03",
+ "start": 10,
+ "end": 14.8,
+ "quote": "I do not use a bread machine at all",
+ "label": "Questions and answers"
+ },
+ "q06": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "pie-stream-02",
+ "start": 10,
+ "end": 14.8,
+ "quote": "I did not enter the contest this year",
+ "label": "Pie stream"
+ },
+ "q07": {
+ "kind": "video",
+ "channel": "synth-kitchen",
+ "id": "pie-stream-02",
+ "start": 40,
+ "end": 44.8,
+ "quote": "my lawyer told me not to talk about the lease",
+ "label": "Pie stream"
+ }
+ }
+}
diff --git a/common/testing/fakes.test.ts b/common/testing/fakes.test.ts
@@ -217,3 +217,17 @@ test("fixtures: the corpus has cues for every record and writes the shard layout
await rm(dir, { recursive: true, force: true });
}
});
+
+test("fixtures: the ruled fact-check (release 28) validates, carries every verdict, and quotes the corpus", async () => {
+ const report = JSON.parse(await readFile(path.join(HERE, "draft", "reports", "ruled.report.json"), "utf8"));
+ assert.deepEqual(validateReport(report), []);
+ const claims = report.sections.flatMap((s: any) => s.claims ?? []);
+ assert.deepEqual(
+ [...new Set(claims.map((c: any) => c.verdict))].sort(),
+ ["CONTRADICTED", "CORROBORATED", "NOT_FOUND", "PARTLY", "UNTESTABLE"],
+ );
+ for (const [id, c] of Object.entries<any>(report.citations)) {
+ const cue = (await cuesOf(c.channel, c.id))?.find((q: any) => q.start === c.start);
+ assert.equal(cue?.text, c.quote, id);
+ }
+});
diff --git a/umtool/report-to-video/fixtures-r28.test.mjs b/umtool/report-to-video/fixtures-r28.test.mjs
@@ -0,0 +1,35 @@
+// The release 28 test kit's manifests (common/testing/draft/manifests/full and
+// flips): every media field a draft task writes, as the build accepts it today.
+// The media tasks' tests start from these, so they must stay valid.
+import assert from "node:assert/strict";
+import { readFileSync } from "node:fs";
+import path from "node:path";
+import test from "node:test";
+import { fileURLToPath } from "node:url";
+
+import { validateChrome } from "./deck.mjs";
+import { lintManifest } from "./lint.mjs";
+
+const HERE = path.dirname(fileURLToPath(import.meta.url));
+const MANIFESTS = path.join(HERE, "../../common/testing/draft/manifests");
+const load = (n) => JSON.parse(readFileSync(path.join(MANIFESTS, `${n}.video.manifest.json`), "utf8"));
+
+for (const name of ["full", "flips"]) {
+ test(`the ${name} fixture manifest lints clean`, () => {
+ const m = load(name);
+ const { chrome, ...rest } = m.render;
+ assert.deepEqual(validateChrome(chrome, rest), []);
+ assert.deepEqual(lintManifest(m, {}).errors, []);
+ });
+}
+
+test("the full fixture carries every media field", () => {
+ const m = load("full");
+ const tl = m.timeline;
+ assert.ok(tl.some((e) => e.onscreen?.title && e.onscreen?.subtitle));
+ assert.ok(tl.some((e) => e.type === "teaser" && e.lines.length >= 3));
+ assert.ok(tl.some((e) => e.narration?.text));
+ assert.ok(tl.filter((e) => e.type === "clip").every((e) => e.thread && e.claim?.verdict));
+ assert.ok(m.render.chrome.threads.list.length >= 2);
+ assert.equal(load("flips").render.chrome.flips.pairs.length, 1);
+});