// RELEASE 38 LANE C's fixture: a research case with a pipeline beside its // board -- findings to verify, a forum channel whose posts link accounts (the // leads), a Wayback pages channel for the captures -- over the research // fixture's corpus (research-fixture.mjs; its hr-2022b carries an `en-orig` // primary and an `en` alternate that rewrites the line at 900 s). // // INVENTED, every word: no channel, account, post or line here is real. The // case's one private name is PRIVATE_NAME, stored as its hash only (as the // pipeline stores every private name); a post links an account of that name, // and the leads table withholds it. // // /.umtool/research/fixture-pipeline/ // case.json the board (scope.source: the fixture's local corpus) // pipeline.json scope channels (harbor-radio, night-desk, harbor-forum), // privateNames.sha256 = [hash(PRIVATE_NAME)] // findings.jsonl f1 hr-2022b@900 quoted from the `en` track ("rang in"); // f2 hr-2022a@2044 (held audio: the audio check's); // f3 a forum post's claim (quarantine's) // /harbor-forum a XenForo thread, 7 posts (platform xenforo) // /harbor-pages a Wayback pages channel (platform webpage) // /harbor-radio/data/hr-2022a/audio.m4a the held media (bytes the stub never reads) import { createHash } from "node:crypto"; import { mkdirSync, writeFileSync } from "node:fs"; import path from "node:path"; import { ARCHIVE, EN_REWRITE, RESEARCH_PHRASE } from "./research-fixture.mjs"; export const STAGES_CASE = "fixture-pipeline"; export const PRIVATE_NAME = "QuietKeeper"; export const FORUM = "harbor-forum"; export const PAGES = "harbor-pages"; export const EXCLUDED_URL = "http://gone.harbor-radio.example/"; export const TARGET_URL = "http://harbor-radio.example/archive"; /** What the stub's worker "hears" in f2's window. */ export const HEARD = `okay so they voted the ${RESEARCH_PHRASE} down eight to one and that was that`; // common/lib/research/privateNames-server.ts privateNameHash: sha256 of the NFKC, lowercased, single-spaced term. export const nameHash = (term) => createHash("sha256").update(term.normalize("NFKC").toLowerCase().trim().split(/\s+/u).join(" ")).digest("hex"); const write = (file, value) => { mkdirSync(path.dirname(file), { recursive: true }); writeFileSync(file, typeof value === "string" ? value : `${JSON.stringify(value, null, 2)}\n`); }; const THREAD = "https://forum.harbor.example/threads/the-lighthouse-budget.4401/"; const post = (n, author, text, links, extra = {}) => ({ id: String(70000 + n), slug: `${FORUM}/${70000 + n}`, channelSlug: FORUM, author, createdAt: `2014-03-0${Math.min(n, 9)}T18:00:00.000Z`, uploadDate: `2014030${Math.min(n, 9)}`, text, url: `${THREAD}post-${70000 + n}`, platform: "xenforo", isReply: false, isRepost: false, links, forum: { host: "forum.harbor.example", threadId: "4401", threadTitle: "The lighthouse budget", threadUrl: THREAD, page: 1, position: n }, ...extra, }); export const FORUM_POSTS = [ post(1, "deckhand", "Harbor Watch posted the council minutes https://x.com/HarborWatch/status/111", ["https://x.com/HarborWatch/status/111"]), post(2, "ferryfan", "Again from https://twitter.com/HarborWatch and the radio's archive https://harbor-radio.example/archive", ["https://twitter.com/HarborWatch", "https://harbor-radio.example/archive"]), post(3, "deckhand", "Screenshot attached. Tide Watcher says it was a joke https://x.com/TideWatcher/status/222", ["https://x.com/TideWatcher/status/222"], { media: [{ kind: "attachment", url: "https://forum.harbor.example/attachments/minutes-png.991/", name: "minutes.png" }], }), post(4, "ferryfan", "HarborWatch again https://x.com/HarborWatch/status/333 and the old page https://harbor-radio.example/archive", ["https://x.com/HarborWatch/status/333", "https://harbor-radio.example/archive"]), post(5, "gull", `someone found ${PRIVATE_NAME}'s account https://x.com/${PRIVATE_NAME}`, [`https://x.com/${PRIVATE_NAME}`]), post(6, "gull", "TideWatcher deleted it https://x.com/TideWatcher", ["https://x.com/TideWatcher"]), post(7, "deckhand", "the radio's channel https://www.youtube.com/@HarborRadio and an artist https://pocketfox.newgrounds.com/ plus our own thread https://forum.harbor.example/threads/x.1/", [ "https://www.youtube.com/@HarborRadio", "https://pocketfox.newgrounds.com/", "https://forum.harbor.example/threads/x.1/", ]), ]; /** Write the case, its pipeline files and the two channels. */ export function makeCaseStagesFixture({ reportsRoot, channels, pub }) { const at = "2026-11-01T12:00:00.000Z"; const dir = path.join(reportsRoot, ".umtool", "research", STAGES_CASE); write(path.join(dir, "case.json"), { format: "umtool-research-case", version: 1, id: STAGES_CASE, title: "Fixture pipeline", scope: { source: `local:${pub}`, query: RESEARCH_PHRASE }, search: null, sessions: [], sections: [], quotes: [], notes: "", handoffs: [], counters: { quote: 0, section: 0 }, createdAt: at, updatedAt: at, }); write(path.join(dir, "pipeline.json"), { format: "archilyzer-case-pipeline", version: 1, case: STAGES_CASE, subjects: [{ name: "Harbor Radio", aliases: [] }], scope: { channels: ["harbor-radio", "night-desk", FORUM], groups: [], sites: [] }, eras: [], groups: [], privateNames: { sha256: [nameHash(PRIVATE_NAME)], note: "a private person named in the forum thread" }, readerPrompts: { common: "Quote verbatim." }, status: "verifying", createdAt: at, updatedAt: at, }); const finding = (row, slug, id, title, date, t, quote, extra = {}) => ({ row, batch: "own-1-001", slug, id, date, title, t, url: `${ARCHIVE}/?v=${slug}%2F${id}&t=${t}`, category: "vote", relevance: 3, quote, summary: "", speaker: "host", confidence: "medium", round: 1, by: "api", quoteCheck: "found", ...extra, }); write( path.join(dir, "findings.jsonl"), [ finding("f1", "harbor-radio", "hr-2022b", "Harbor Radio 91: call-in night", "20221103", EN_REWRITE.at, EN_REWRITE.en), finding("f2", "harbor-radio", "hr-2022a", "Harbor Radio 80: the council vote", "20220211", 2044, `they voted the ${RESEARCH_PHRASE} down eight to one`), finding("f3", FORUM, "70003", "The lighthouse budget (forum)", "20140303", 0, "Tide Watcher says it was a joke", { speaker: "deckhand", by: "hand", url: FORUM_POSTS[2].url }), ] .map((r) => JSON.stringify(r)) .join("\n") + "\n", ); write(path.join(channels, FORUM, "config.json"), { name: "Harbor forum: the lighthouse budget", handling: "transcribe", sourceKind: "social", platform: "xenforo", url: THREAD, socialHandle: "forum.harbor.example", }); write(path.join(channels, FORUM, "posts", "2014-03.jsonl"), FORUM_POSTS.map((p) => JSON.stringify(p)).join("\n") + "\n"); write(path.join(channels, FORUM, "posts-archive"), FORUM_POSTS.map((p) => `xenforo ${p.id}`).join("\n") + "\n"); write(path.join(channels, PAGES, "config.json"), { name: "Harbor radio pages", handling: "transcribe", sourceKind: "social", platform: "webpage", socialHandle: "harbor-radio.example", url: "https://web.archive.org/web/*/harbor-radio.example*", wayback: { targets: [{ url: "harbor-radio.example/", match: "prefix" }] }, }); write(path.join(channels, "harbor-radio", "data", "hr-2022a", "audio.m4a"), "not audio: the stub never reads it\n"); return { id: STAGES_CASE, dir }; }