Archilyzer · Source

archilyzer

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

commit 237496b0d6dfbe096e045c84b6f6d548c250fc70
parent 04d7813afbdefad0cbde32df14ab8fd587f124ab
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 11 Nov 2026 14:17:37 -0500

ops: get lookouts, and lookout-run's dry run — what a saved lookout would read

GET /api/ops/lookouts (`pnpm ops get lookouts [<id>]`): the saved lookouts and what the store holds for each.
POST /api/ops/lookout-run {id, dryRun: true, days?, maxVideos?, until?}: the plan, synchronous, nothing written;
without dryRun it is refused (the model run is a later slice). COMMANDS.md regenerated; changelog entry.

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
MCOMMANDS.md | 7+++++++
Meditor/CHANGELOG.md | 1+
Aeditor/app/api/ops/_lookouts.test.ts | 92+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aeditor/app/api/ops/lookout-run/route.ts | 56++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aeditor/app/api/ops/lookouts/route.ts | 29+++++++++++++++++++++++++++++
Mscripts/archilyzer-ops.mjs | 32++++++++++++++++++++++++++++++++
6 files changed, 217 insertions(+), 0 deletions(-)

diff --git a/COMMANDS.md b/COMMANDS.md @@ -225,6 +225,7 @@ Drives a running editor over HTTP (`/api/ops/*`, the same actions its pages run) | `find-clips` | find-clips runs the clip finder's chain for ONE video as one job: {"slug", "id", "target"? (the cut's seconds), "segment"? (one umtool found, "s2"), "project"? (the umtool project a run makes), "whilePaused"?, "dryRun"?}. Persist the source video, the corpus transcript, word timings (data/&lt;id&gt;/words.json), the chat replay (YouTube), diarization — each step skipped when its output exists, named in the log — then umtool's clip finder (POST UMTOOL\_URL/api/report/clips {mode: "new"}), followed to the end. "whilePaused": true runs this one video past the holds: the two transcriptions during a pause-all on a worker the pause alone switched off, and its diarization in the job when the backfill lane is held. "dryRun": true answers each step's plan and starts nothing. With --wait the result — {project, url, created, segments: \[{id, from, to, why}\], steps} — is printed on stdout. | `pnpm ops find-clips --json '{"slug":"demo-yt","id":"<videoId>","dryRun":true}'`<br>`pnpm ops find-clips --json '{"slug":"demo-yt","id":"<videoId>","target":600}' --wait`<br>`pnpm ops find-clips --json '{"slug":"demo-yt","id":"<videoId>","segment":"s2","whilePaused":true}' --wait` | | `fetch-chat-backlog` | fetch-chat-backlog fetches a channel's stream chats after its downloads: {"slug", "dryRun"?, "limit"?, "queueKey"?} — every held video whose metadata says it was a stream (live\_status was\_live / post\_live) and whose chat is not here, newest first, one at a time through fetch-chat's pass with the batch downloads' gap between two, as one fetch-chat-backlog job on the platform's download queue; a raw replay already here is only normalized. It stops on a rate limit, a held platform, three failures in a row, a drain or "limit" chats; a re-run skips the chats here and the streams known to have none (chat-backlog.json), and a restart resumes it. The download lane queues it by itself (25 a run) for a channel whose "chat" is "later" once it has nothing left to download. "dryRun": true counts from the disk and starts nothing: chats, normalizeOnly, have, settled, notStreams, ids (the first 50). | `pnpm ops fetch-chat-backlog --json '{"slug":"demo-yt","dryRun":true}'` | | `x-run` | x-run fetches several X posts channels IN SEQUENCE as ONE job on X's queue: {"channels": \[slug, ...\]} in that order, each a fetch-posts sync new of at most 200 posts ("limit": N, 1-200, caps it lower), X's queue gap (pacing.jobGapSeconds.twitter) between two channels. Before EACH channel the jar is checked again: once it is past social.x.maxCookieAgeMinutes (or the X alert is up) the run stops and the rest are DEFERRED until the next refresh. It never refreshes the jar: Refresh cookies on /settings, then {"resume": "&lt;run id&gt;"} runs the deferred channels (the console's Resume; a Retry of the job is the same). One run at a time; refused before a job on a stale jar (a new run's channels are kept, deferred). An interrupted run is not resumed on boot: it ends deferred. Answers {jobId, run}; get x-run follows it. The log ends with @@x-run {id, status, stopped?, counts, summary}. | `pnpm ops x-run --json '{"channels":["example-x","other-x"]}'`<br>`pnpm ops x-run --json '{"resume":"xr-01J…"}'` | +| `lookout-run` | lookout-run lists what a saved lookout (settings.lookouts) would read: {"id", "dryRun": true, "days"?, "maxVideos"?, "until"?: "YYYY-MM-DD"}. Every video of its channels whose AIR date (release\_timestamp, else timestamp, in the lookout's timeZone — not the UTC upload\_date) falls in the window; a duplicate upload of one recording, and a stream's cut-down, folded into it (each named, with why and its score); the longest maxVideos recordings read and the rest listed as skipped for the cap; under minSeconds and no transcript yet listed too. A local media library channel or a slug this archive does not hold is named in "refused". Answers {plan: {window, counts, read, skipped, refused, estimate}}: readCalls is one per transcript chunk, priced once a run has been measured. Synchronous, reads text only, writes nothing; without "dryRun": true it is refused (the model run is not in this build). | `pnpm ops lookout-run --json '{"id":"example-week","dryRun":true}'`<br>`pnpm ops lookout-run --json '{"id":"example-week","dryRun":true,"days":3,"until":"2026-11-10"}'` | ### Usage, flags and environment @@ -250,6 +251,7 @@ Usage: pnpm ops <action> [--json '<body>' | --file <path>] [--wait] pnpm ops get x-run [<run id>] pnpm ops get cleanup <slug> pnpm ops get speakers + pnpm ops get lookouts [<id>] pnpm ops get remote-listing <slug> [--wait-timeout <seconds>] pnpm ops get transcript <videoId> [--slug <slug>] pnpm ops get coverage <slug> @@ -341,6 +343,11 @@ get speakers is the speakers readout the lane deck and /cleanup print noFingerprintPossible (diarized, audio already gone), per channel with corpus-disk channels first; and the lane: armed, held, the operations it dispatches, its order, cleanAfterCapture and requireVoiceprints. +get lookouts [<id>] is the saved lookouts (settings.lookouts, SETTINGS.md): + each one's channels, days, cap and zone, its runs (transcripts/.lookouts/ + <id>/), the latest run (when, window, model, calls, seconds, ideas), how + many of that run's ideas have no verdict yet, and the verdicts given. + Reads settings and the store only, never a channel's videos. get cleanup <slug> is one channel's /cleanup row: what each sweep would reclaim (they overlap — never add them), what holds the rest, and the failed-transcriptions count. measured: false means unknown, not zero. diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **Lookouts: a saved set of channels and days, and a dry run that lists what it would read.** A lookout (lane/lookout) will read its channels' recent transcripts and answer with video ideas; this first part has no model. `settings.lookouts` holds the lookouts (off and empty by default; nothing in code names a channel), and `pnpm ops lookout-run --json '{"id":"…","dryRun":true}'` lists the week it would read: every video by its AIR date in the lookout's time zone (a stream that starts at 8:20 pm in New York is 3 Nov, not the 4 Nov of its UTC upload date), a recording uploaded twice read once with the other upload named beside it, a stream's cut-downs credited to the stream, the longest 40 read and every one left out listed with why. Over the pilot's week, read-only, it found all 6 of the pilot's duplicate uploads and all 18 of its stream cut-downs. `pnpm ops get lookouts` is the readout. Runs and verdicts will live in `transcripts/.lookouts/`, never published. - **The dashboard says when a media drive is not answering, slow, or not mounted.** A stalled external drive used to show only on `/storage` and in channel badges, so the editor looked broken with nothing on its front page saying why. The dashboard now opens with one card per storage location in trouble: **not answering** (an alert: pages and polls skip the drive, and its channels' jobs wait until it answers), **answering slowly** (everything still runs, just late), or **not mounted** (only when some channel's media is on it). Each card links to `/storage` and to that location's channels. On `/storage` each location has a **Drive** line that says when the drive last answered and how long it took (for example "answering — 12 ms (a read in the editor), last at 11:42"), and a **slow** chip appears next to Available when two reads in a row on it take half the 3-second limit or more (one long read is not enough). `pnpm ops get storage` reports the same for each location under `rows[].drive`: `state` (`ok`, `slow`, `stalled` or `unmounted`), `since`, `lastOkAt`, `latencyMs`, the cause and the one-line text. - **A transcription or backfill run waits while its channel's media drive is not answering.** Before, a run that started while the drive answered kept going after the drive stalled. Each next video asked the stalled drive for its audio, waited about 30 seconds and failed. Now the run pauses at the next video and says so in its log ("Holding: the media drive "…" is not answering (since 11:35) — no new transcription starts until it answers again"), then resumes by itself when the drive answers. If it has held for 5 minutes, the run checks the drive itself from a separate process, and it logs that it is still holding every 10 minutes. A run also follows a channel that is moved to another drive while it runs. A video that is refused because the drive is not answering is skipped, not added to the channel's failed-transcriptions list, and is transcribed on a later run. A downloaded video is also not moved into a saved-video store on a drive that is not answering. It stays in the video's folder, and a later pass stores it. - **The drive watch no longer overwrites a tier you change while it is pausing channels.** The five-minute storage watch, which pauses the channels on a drive that went away and restores them when it comes back, could save its change in the middle of yours and undo it. It now waits for the same settings lock that the channel-priority save uses. The editor's `dev` script also gives Node 16 file-access threads, as `start`, the systemd unit and the container already do. diff --git a/editor/app/api/ops/_lookouts.test.ts b/editor/app/api/ops/_lookouts.test.ts @@ -0,0 +1,92 @@ +// Run with: +// pnpm -C editor exec tsx --test "app/api/ops/_lookouts.test.ts" +// +// `pnpm ops get lookouts` and `pnpm ops lookout-run` (the dry run, the only +// one there is yet), against the route handlers over a temp corpus. Every +// channel and lookout here is invented. Never the live editor's settings. +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { mkdir, readdir, writeFile } from "node:fs/promises"; +import path from "node:path"; +import { callGet, callPost, setupOpsCorpus } from "./_testCorpus"; + +const corpus = await setupOpsCorpus(null); +const { GET } = await import("./lookouts/route"); +const { POST } = await import("./lookout-run/route"); +test.after(() => corpus.cleanup()); + +const LOOKOUTS = { + enabled: false, + afterSync: false, + items: [{ id: "example-week", label: "Example week", channels: ["example-news", "no-such-channel"], days: 3, timeZone: "America/New_York" }], +}; + +async function video(slug: string, dir: string, title: string, uploadDate: string, timestamp: number, seconds: number) { + const d = path.join(corpus.transcripts, "channels", slug, "data", dir); + await mkdir(d, { recursive: true }); + await writeFile(path.join(d, "metadata.info.json"), JSON.stringify({ id: dir, title, duration: seconds, upload_date: uploadDate, timestamp })); + const cues = Array.from({ length: 40 }, (_, i) => ({ start: i * (seconds / 40), end: (i + 1) * (seconds / 40), text: `${title} line ${i} of ${dir}` })); + await writeFile( + path.join(d, "transcript.cues.json"), + JSON.stringify({ version: 2, id: dir, title, uploadDate, duration: seconds, platform: "youtube", webpageUrl: `https://example.invalid/${dir}`, cues }), + ); +} + +test("get lookouts: the saved lookouts and what the store holds for each; nothing configured is an empty list", async () => { + const empty = await callGet(GET!, "http://localhost/api/ops/lookouts"); + assert.equal(empty.status, 200, JSON.stringify(empty.body)); + assert.deepEqual(empty.body.lookouts, []); + assert.equal(empty.body.enabled, false); + + await corpus.writeSettings({ minFreeDiskGB: 0, lookouts: LOOKOUTS }); + const r = await callGet(GET!, "http://localhost/api/ops/lookouts"); + assert.equal(r.status, 200, JSON.stringify(r.body)); + const [one] = r.body.lookouts as Record<string, unknown>[]; + assert.equal(one!.id, "example-week"); + assert.equal(one!.maxVideos, 40, "the defaults the settings filled"); + assert.equal(one!.lastRun, null); + assert.equal(one!.runs, 0); + assert.equal(one!.unruled, 0); + assert.equal((await callGet(GET!, "http://localhost/api/ops/lookouts?id=nope")).status, 404); + assert.equal((await callGet(GET!, "http://localhost/api/ops/lookouts?lookout=x")).status, 400); +}); + +test("lookout-run: the dry run lists what would be read, on air dates, and writes nothing", async () => { + await corpus.writeSettings({ minFreeDiskGB: 0, lookouts: LOOKOUTS }); + await corpus.writeChannelConfig("example-news", {}); + // 2026-11-04T01:20:53Z is the evening of 3 Nov in New York. + await video("example-news", "Evening0001", "Evening Show", "20261104", 1793755253, 1200); + await video("example-news", "Short000001", "A Short", "20261104", 1793790000, 45); + const before = await readdir(corpus.transcripts); + const r = await callPost(POST!, { id: "example-week", dryRun: true, until: "2026-11-05" }); + assert.equal(r.status, 200, JSON.stringify(r.body)); + const plan = r.body.plan as { + window: { from: string; to: string }; + read: { video: string; airDate: string }[]; + skipped: { video: string; reason: string }[]; + refused: { channel: string }[]; + }; + assert.deepEqual(plan.window, { from: "2026-11-03", to: "2026-11-05", days: 3, timeZone: "America/New_York" }); + assert.deepEqual(plan.read.map((v) => [v.video, v.airDate]), [["Evening0001", "2026-11-03"]]); + assert.deepEqual(plan.skipped.map((v) => [v.video, v.reason]), [["Short000001", "under-min-seconds"]]); + assert.deepEqual(plan.refused.map((x) => x.channel), ["no-such-channel"]); + assert.deepEqual(await readdir(corpus.transcripts), before, "no store, no job, nothing written"); + assert.deepEqual(await corpus.listJobIds(), []); +}); + +test("lookout-run refuses before reading anything: no dryRun, an unknown lookout or key, bad overrides", async () => { + await corpus.writeSettings({ minFreeDiskGB: 0, lookouts: LOOKOUTS }); + const run = await callPost(POST!, { id: "example-week" }); + assert.equal(run.status, 400); + assert.match(String(run.body.error), /dryRun/); + assert.equal((await callPost(POST!, { id: "example-week", dryRun: false })).status, 400); + assert.equal((await callPost(POST!, { id: "nope", dryRun: true })).status, 404); + assert.equal((await callPost(POST!, { id: "example-week", dryRun: true, model: "x" })).status, 400); + assert.equal((await callPost(POST!, { id: "example-week", dryRun: true, days: 99 })).status, 400); + assert.equal((await callPost(POST!, { id: "example-week", dryRun: true, maxVideos: 0 })).status, 400); + assert.equal((await callPost(POST!, { id: "example-week", dryRun: true, until: "11/05/2026" })).status, 400); + await corpus.writeSettings({ minFreeDiskGB: 0, lookouts: { items: [{ id: "empty", channels: [] }] } }); + const none = await callPost(POST!, { id: "empty", dryRun: true }); + assert.equal(none.status, 400); + assert.match(String(none.body.error), /names no channels/); +}); diff --git a/editor/app/api/ops/lookout-run/route.ts b/editor/app/api/ops/lookout-run/route.ts @@ -0,0 +1,56 @@ +import { NextResponse } from "next/server"; +import { getPaths } from "yt-dlp-transcript-common/lib/paths"; +import { getSettings } from "yt-dlp-transcript-common/lib/settings"; +import { isIsoDate } from "yt-dlp-transcript-common/lib/lookout"; +import { LOOKOUT_MAX_DAYS, LOOKOUT_MAX_MAX_VIDEOS, lookoutById } from "yt-dlp-transcript-common/lib/lookoutSettings"; +import { LookoutPlanRefusal, planLookout } from "yt-dlp-transcript-common/controller/lookoutPlan"; +import { OpsInputError, ops, opsFail, optBool, optPositiveInt, optString, reqString } from "../_lib"; + +export const dynamic = "force-dynamic"; + +// POST { id, dryRun: true, days?, maxVideos?, until? } -> { ok: true, plan } +// +// What a saved lookout (settings.lookouts.items, SETTINGS.md) would read +// (common/controller/lookoutPlan.ts): every video of its channels whose AIR +// date — `release_timestamp`, else `timestamp`, in its time zone — falls in +// the window; duplicate uploads and a stream's cut-downs folded into one +// recording; the longest `maxVideos` read and the rest listed as skipped for +// the cap, with why for every video left out; the reading calls and, once a +// run has been measured, the seconds they would take. `days` and `maxVideos` +// override the lookout's for this answer; `until` (YYYY-MM-DD) ends the window +// on another day than today. A local media library channel, or a slug this +// archive does not hold, is named in `refused`. Reads text only and writes +// nothing; synchronous, no job, no model, no network. +// +// Only the dry run exists in this build: without `dryRun: true` the request is +// refused, never run. +export async function POST(request: Request) { + return ops(request, ["id", "dryRun", "days", "maxVideos", "until"], async (body) => { + const id = reqString(body, "id"); + if (optBool(body, "dryRun") !== true) { + throw new OpsInputError( + 'a lookout run reads with a model, which this build does not do yet — send "dryRun": true to list what it would read', + ); + } + const days = optPositiveInt(body, "days"); + if (days !== undefined && days > LOOKOUT_MAX_DAYS) throw new OpsInputError(`"days" is at most ${LOOKOUT_MAX_DAYS}`); + const maxVideos = optPositiveInt(body, "maxVideos"); + if (maxVideos !== undefined && maxVideos > LOOKOUT_MAX_MAX_VIDEOS) { + throw new OpsInputError(`"maxVideos" is at most ${LOOKOUT_MAX_MAX_VIDEOS}`); + } + const until = optString(body, "until"); + if (until !== undefined && !isIsoDate(until)) throw new OpsInputError('"until" is a date, YYYY-MM-DD'); + const lookouts = getSettings().lookouts; + const item = lookoutById(lookouts, id); + if (!item) { + return opsFail(`no lookout "${id}" — settings.lookouts.items names ${lookouts.items.map((i) => i.id).join(", ") || "none"}`, 404); + } + try { + const plan = await planLookout(getPaths(), item, { days, maxVideos, until }); + return NextResponse.json({ ok: true, plan }); + } catch (err) { + if (err instanceof LookoutPlanRefusal) throw new OpsInputError(err.message); + throw err; + } + }); +} diff --git a/editor/app/api/ops/lookouts/route.ts b/editor/app/api/ops/lookouts/route.ts @@ -0,0 +1,29 @@ +import { getPaths } from "yt-dlp-transcript-common/lib/paths"; +import { getSettings } from "yt-dlp-transcript-common/lib/settings"; +import { lookoutReadout } from "yt-dlp-transcript-common/lib/lookoutStore"; +import { opsFail } from "../_lib"; +import { readRoute } from "../_read"; + +export const dynamic = "force-dynamic"; + +// GET /api/ops/lookouts[?id=<lookout>] — `pnpm ops get lookouts` +// +// The saved lookouts (settings.lookouts, SETTINGS.md) and what the store holds +// for each (common/lib/lookoutStore.ts, `transcripts/.lookouts/<id>/`): its +// runs, the latest one summarised (when, window, model, calls, seconds, +// ideas), how many of that run's ideas have no verdict yet, and the verdicts +// given. Reads settings and the store only — never a channel's videos, so it +// is cheap to poll; what a lookout would read is `lookout-run` with dryRun. +export async function GET(request: Request) { + return readRoute(request, ["id"], async (q) => { + const { enabled, afterSync, items } = getSettings().lookouts; + const id = q.get("id"); + const chosen = id === null ? items : items.filter((i) => i.id === id); + if (id !== null && chosen.length === 0) { + return opsFail(`no lookout "${id}" — settings.lookouts.items names ${items.map((i) => i.id).join(", ") || "none"}`, 404); + } + const paths = getPaths(); + const lookouts = await Promise.all(chosen.map(async (item) => ({ ...item, ...(await lookoutReadout(paths, item.id)) }))); + return { enabled, afterSync, lookouts }; + }); +} diff --git a/scripts/archilyzer-ops.mjs b/scripts/archilyzer-ops.mjs @@ -209,6 +209,9 @@ // pnpm ops report-schedule --json '{"action":"reset-triage","id":"co-host-updates"}' // pnpm ops report-schedule --json '{"action":"learn","id":"co-host-updates","dryRun":true}' // pnpm ops report-schedule --json '{"action":"promote-alias","id":"co-host-updates","spelling":"Gothics"}' +// pnpm ops get lookouts +// pnpm ops lookout-run --json '{"id":"example-week","dryRun":true}' +// pnpm ops lookout-run --json '{"id":"example-week","dryRun":true,"days":3,"until":"2026-11-10"}' // // --file reads the BODY from a JSON file, which is how a big one gets sent: a // four-thousand-id tag-videos body is written by a script, not typed by a model @@ -313,6 +316,9 @@ const GETTERS = { cleanup: (slug) => `/api/ops/cleanup/${encodeURIComponent(slug)}`, // The speakers readout: waiting, freed this run, rate, days left, per channel. speakers: () => "/api/ops/speakers", + // The saved lookouts (settings.lookouts) and what the store holds for each: + // the latest run, how many of its ideas wait for a verdict. + lookouts: (id) => (id ? `/api/ops/lookouts?id=${encodeURIComponent(id)}` : "/api/ops/lookouts"), // What a channel holds, by date, and its gaps (release 19 A9): each video // dated by its recorded date when the channel has a title rule, else upload. coverage: (slug) => `/api/ops/coverage?slug=${encodeURIComponent(slug)}`, @@ -365,6 +371,7 @@ const GET_ARG_OPTIONAL = new Set([ "generation-usage", "render-mode", "speakers", + "lookouts", ]); // The flags each noun takes beyond the shared ones; any other is refused. @@ -705,6 +712,11 @@ const ACTIONS = [ // X's queue, the jar checked before each ({channels: [...], limit?} or // {resume: <run id>}); a stale jar defers the rest. "x-run", + // What a saved lookout would read ({id, dryRun: true, days?, maxVideos?, + // until?}): its channels' videos by air date, duplicate uploads and stream + // cut-downs folded in, the cap. Synchronous; no job, nothing written. Only + // the dry run exists yet. + "lookout-run", ]; // The log line a transcribe job ends with: this marker, then the result as @@ -1084,6 +1096,7 @@ export function usage() { " pnpm ops get x-run [<run id>]", " pnpm ops get cleanup <slug>", " pnpm ops get speakers", + " pnpm ops get lookouts [<id>]", " pnpm ops get remote-listing <slug> [--wait-timeout <seconds>]", " pnpm ops get transcript <videoId> [--slug <slug>]", " pnpm ops get coverage <slug>", @@ -1177,6 +1190,11 @@ export function usage() { " noFingerprintPossible (diarized, audio already gone), per channel with", " corpus-disk channels first; and the lane: armed, held, the operations", " it dispatches, its order, cleanAfterCapture and requireVoiceprints.", + "get lookouts [<id>] is the saved lookouts (settings.lookouts, SETTINGS.md):", + " each one's channels, days, cap and zone, its runs (transcripts/.lookouts/", + " <id>/), the latest run (when, window, model, calls, seconds, ideas), how", + " many of that run's ideas have no verdict yet, and the verdicts given.", + " Reads settings and the store only, never a channel's videos.", "get cleanup <slug> is one channel's /cleanup row: what each sweep would", " reclaim (they overlap — never add them), what holds the rest, and the", " failed-transcriptions count. measured: false means unknown, not zero.", @@ -1262,6 +1280,20 @@ export function usage() { ' "speakers": "work" (the deck\'s Work through speakers: arm, lift the hold,', ' start a run) | "pause" (hold; stays armed).', "", + 'lookout-run lists what a saved lookout (settings.lookouts) would read:', + ' {"id", "dryRun": true, "days"?, "maxVideos"?, "until"?: "YYYY-MM-DD"}.', + " Every video of its channels whose AIR date (release_timestamp, else", + " timestamp, in the lookout's timeZone — not the UTC upload_date) falls in", + " the window; a duplicate upload of one recording, and a stream's cut-down,", + " folded into it (each named, with why and its score); the longest", + " maxVideos recordings read and the rest listed as skipped for the cap;", + " under minSeconds and no transcript yet listed too. A local media library", + " channel or a slug this archive does not hold is named in \"refused\".", + " Answers {plan: {window, counts, read, skipped, refused, estimate}}:", + " readCalls is one per transcript chunk, priced once a run has been", + " measured. Synchronous, reads text only, writes nothing; without", + ' "dryRun": true it is refused (the model run is not in this build).', + "", 'render-mode gives a render the operator is waiting for the machine:', ' {"on": true, "for"?: "90m" | <minutes>, "note"?} opens a window (default', ' 2h) in which every other heavy job — e2e suites, next builds, the publish',