// An article IN THE MAKING for the release 27 specs (article-compare, // article-iterations): `zeta`, iterations and no report.json, so the registry // does not list it (/articles shows it under "in the making"). Plus the usage // ledger's row for today, which the policy's "today" reads. // // articles/zeta/iterations/ // 1 sweep, claude-sonnet-5-5, done, $0.42; its report; a project with a cut // 2 revise-report of i1, qwen3:8b, done: 2 ops applied, 1 refused, a strict // check failed; its report (one finding reworded, a section added) // 3 revise-video of i1, qwen3:8b, done: no report (i1's); its own cut // 4 sweep, a copy of i1 on claude-haiku-4-5, failed // gen-projects/zeta/i{1,3}/video.manifest.json // generation-usage.jsonl today's row: $0.42 // // Synthetic, like every fixture: invented text, the fixture's own channel. import { mkdirSync, writeFileSync } from "node:fs"; import path from "node:path"; const put = (file, value) => { mkdirSync(path.dirname(file), { recursive: true }); writeFileSync(file, typeof value === "string" ? value : JSON.stringify(value, null, 2) + "\n"); }; const AT = "2026-10-13T10:00:00.000Z"; const CITE = { kind: "video", channel: "sitechan", id: "sv1", start: 3, end: 6, quote: "The vote was rigged and everybody knew.", speaker: "Site Channel", date: "2024-03-15" }; const report = (sections) => ({ format: "archilyzer-report", version: 1, id: "zeta", kind: "sweep", title: "Zeta: what the channel said about the vote", citations: { c1: CITE }, sections, }); const iteration = (n, extra) => ({ format: "archilyzer-iteration", version: 1, article: "zeta", n, parent: null, copyOf: null, status: "done", usage: {}, steps: [], createdAt: AT, updatedAt: AT, endedAt: AT, ...extra, }); export function makeIterationsFixture({ dest, articles }) { const dir = (n) => path.join(articles, "zeta", "iterations", String(n)); const projects = path.join(dest, "gen-projects"); const p1 = path.join(projects, "zeta", "i1"); const p3 = path.join(projects, "zeta", "i3"); put(path.join(dir(1), "iteration.json"), iteration(1, { kind: "sweep", model: "claude-sonnet-5-5", question: "What did the channel say about the vote?", scope: { channels: ["sitechan"] }, usage: { "claude-sonnet-5-5": { usd: 0.42, inputTokens: 52000, outputTokens: 3100, calls: 7 } }, minutes: 2.5, checks: [{ name: "strict-quotes", ok: true }], projectDir: p1, })); put(path.join(dir(1), "report.json"), report([ { id: "s1", title: "The claim", body: "She said [the vote was rigged](cite:c1) in the first stream." }, { id: "s2", title: "Coverage", body: "One channel was read." }, ])); put(path.join(p1, "video.manifest.json"), { title: "Zeta", provenance: { siteOrigin: "https://archive.example" }, // /browse scans gen-projects: no origin is a BLOCKING defect timeline: [ { type: "card", id: "t0", heading: "Zeta", narration: { text: "What the channel said about the vote." } }, { type: "clip", id: "a1", video: "sv1", channel: "sitechan", start: 3, end: 6, quote: "The vote was rigged" }, ], }); put(path.join(dir(2), "iteration.json"), iteration(2, { kind: "revise-report", model: "qwen3:8b", parent: 1, feedback: "Say when, and add what came later.", minutes: 1.2, ops: { applied: [ { index: 0, op: { op: "claim", finding: "f1", text: "In the first stream she said the vote was rigged." } }, { index: 1, op: { op: "section", title: "Later" } }, ], refused: [{ index: 2, op: { op: "drop", finding: "f7" }, why: "no finding f7" }], }, checks: [{ name: "strict-quotes", ok: false, detail: "f2: a quote not found within ±90 s" }], })); put(path.join(dir(2), "report.json"), report([ { id: "s1", title: "The claim", body: "In the first stream [she said the vote was rigged](cite:c1)." }, { id: "s3", title: "Later", body: "The story changed again." }, { id: "s2", title: "Coverage", body: "One channel was read." }, ])); put(path.join(dir(3), "iteration.json"), iteration(3, { kind: "revise-video", model: "qwen3:8b", parent: 1, feedback: "A shorter title card.", minutes: 0.8, ops: { applied: [{ index: 0, op: { op: "narration", card: "t0", text: "The vote, in her words." } }], refused: [] }, projectDir: p3, })); put(path.join(p3, "video.manifest.json"), { title: "Zeta", provenance: { siteOrigin: "https://archive.example" }, // /browse scans gen-projects: no origin is a BLOCKING defect timeline: [ { type: "card", id: "t0", heading: "Zeta", narration: { text: "The vote, in her words." } }, { type: "clip", id: "a1", video: "sv1", channel: "sitechan", start: 3, end: 6, quote: "The vote was rigged" }, ], }); put(path.join(dir(4), "iteration.json"), iteration(4, { kind: "sweep", model: "claude-haiku-4-5", copyOf: 1, question: "What did the channel say about the vote?", scope: { channels: ["sitechan"] }, status: "failed", error: "the model stopped at its cap", usage: { "claude-haiku-4-5": { usd: 0.05, inputTokens: 30000, outputTokens: 900 } }, })); const day = new Date().toISOString().slice(0, 10); const ledger = path.join(dest, "generation-usage.jsonl"); put(ledger, `${JSON.stringify({ at: AT, day, jobId: "fixture-1", article: "zeta", iteration: 1, task: "sweep", model: "claude-sonnet-5-5", inputTokens: 52000, outputTokens: 3100, cacheReadTokens: 0, cacheWriteTokens: 0, usd: 0.42 })}\n`); return { projects, ledger }; }