commit 775d6e29225f1792a83925e4cfb33934634f405f
parent be80f309748f92ce95b2dac9b3262e54b7efebba
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 10 Oct 2026 12:24:29 -0400
plans: release 23 F2 — Transcribe from a saved container, as shipped (release 21 record)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -131,6 +131,7 @@
- **The download pace adapts to rate limits, a rate limit that outlasts the cooldown holds the platform, and the auto-download lane waits between downloads.** Every yt-dlp run against a platform now waits its platform's current pace between requests: 1 second for YouTube and Rumble, doubled by each real rate limit (up to 16 seconds) and eased back one step after every 5 clean downloads, and one step for every hour with no rate limit; a subtitle-only refusal never raises it. When a platform has failed three times in a row at the 30-minute cooldown, it is **held**: auto-download tries it once an hour instead of every 30 minutes, and until that try is due a manual **Sync**, download or metadata scan on it is refused with a sentence giving its time. A clean try lifts the hold — the lane's, or a manual Sync, download or scan once the try is due, which is how a hold ends while auto-download is off or has nothing to fetch on that platform — and so does a try whose video came down although its subtitles were refused. The lane page keeps a held platform listed until then (saying when the lane is off), with a **Clear hold** button that drops the hold, the cooldown and the raised pace at once and says so in a job log. The auto-download lane now waits **Sleep between downloads** between two downloads on one platform, as a channel's batch downloads always did, plus whatever the pace was raised by; batch downloads add that too. The lane page's **Rate-limit cooldown** box shows held platforms, the raised paces and the deferred subtitles, the lane says when it is idle because a platform is held or it is pausing between downloads, and `archilyzer doctor` warns about a platform in a cooldown or held, and about a raised pace. **Download missing subs** also waits that gap between videos. The four numbers are the new `pacing` block in `settings.json` (SETTINGS.md). **After the restart, YouTube may be held at its first real failure:** its cooldown count from before the update (the subtitle refusals) still stands, so one failure puts it straight past the cap — **Clear hold** on the download lane's page resets it, and a clean download does too. Needs a rebuild and restart of the editor.
- **A podcast channel's episodes imported by their enclosure URL get their titles and dates back from the feed.** Such a record carried only its file name as its title and no upload date, so the index skipped it and every surface showed the file id. `archilyzer feeds backfill-metadata <slug> [--feed <url>] [--dry-run]`, `POST /api/ops/feed-metadata {slug, dryRun?}` and `pnpm ops feed-metadata` (the new `feed-metadata` job, on the channel's download queue) fetch the channel's RSS feed once — no media — and match each record lacking a date or a real title to an item by guid, enclosure URL or enclosure file name; a record more than one item fits is reported, not guessed. A match fills in what the record lacks: the title, the description as plain text, the duration (a measured one is kept), the upload date and timestamp in UTC, and `webpage_url` only when the new URL keeps the record's id. Every change is a `feed-backfill` entry in the video's metadata history; a dry run counts matched, unmatched and already complete and writes nothing. Rebuild the index afterwards for the titles and dates to reach search and the sites.
- **A Twitch VOD cited by its published id is found on disk.** A Twitch video's folder is named by its number while its record (and its public page) says `v` and the number, so a clip fetch asked by the record's id (the MCP's `fetch_clip`, **Fetch missing evidence**, `pnpm ops fetch-windows`), a site's evidence clips and its missing-evidence list, and umtool's local cue lookup looked in a folder that does not exist: a clip or saved video already on disk was not found, and the video's availability and length were not read. They now look in the video's own folder. Published ids and URLs do not change. Needs a rebuild and restart of the editor and of umtool.
+- **Transcribe uses a video's saved source video instead of downloading its audio.** A video with no audio on disk but its whole recording in the saved-video store (a persisted video, a whole-source fetch, or one attached from a local archive) was downloaded again for its audio when **Transcribe** was clicked on its page or `pnpm ops transcribe-one` was run. Its saved video is now transcribed as it is, and the job's log says so ("transcribing from the saved container … — nothing downloaded"). When the saved video's drive is not mounted or not answering, the job stops with the same "media is not reachable" sentence as a clip fetch, rather than downloading; a saved video with no sound is downloaded around as before. Needs a rebuild and restart of the editor.
## [0.11.0] - 2026-09-30
- **Transcripts that arrived after a video was first seen are counted.** The stats behind the homepage, the hub and every site's charts were cached per video and refreshed only when the video's metadata changed, so a transcript that came later — a Whisper run days after the download, or a video downloaded after the last index build — never reached them, and a video with YouTube captions alone had no transcription date. Counts and charts were low; the homepage could show a site with 0 transcripts, 0 channels and 0 hours while it served its videos. A stat is now also redone whenever the index re-reads the video, every transcript has a date, and a captioned video is dated by when its captions arrived rather than by a later Normalize run, so its place on "Transcribed over time" can move. **After updating, rebuild and restart the editor before anything else:** until then, **Build stats dataset** runs the old code and would undo the new stats, while a site, hub or homepage build already runs the new code — and the first stats build of any kind re-reads every video once (about 10–30 minutes on a large archive; it can be stopped and picks up where it stopped). Then build the index, the stats, the homepage, the hub, and the sites.
diff --git a/plans/release-21.md b/plans/release-21.md
@@ -361,6 +361,51 @@ with the window and sidecar on disk while the cooling YouTube group is refused;
Editor unit 225/225; the touched common files (clipWindow, evidenceClip, savedVideo*, fetchWindows, windowJobs)
61/61; architecture 6/6; mcp 293/293. The whole common suite runs once at the end of the track (part 2).
+### F2 (release 23), as shipped — Transcribe reads a saved container before it downloads audio
+
+Release 23 Lane 1, on `r23/fixes` (from `r23/integration` `d3296bab`). The pilot's step 2 (`transcribe-one` for the
+three videos with media but not held) downloaded audio for a video whose whole source was already in the store.
+
+**What it does.** `controller/transcribeOne.ts` `transcriptionContainer({paths, slug, videoDir, entries})` answers,
+in `resolveAudioFile`'s own order (`findSourceMedia(entries) ?? the saved-video pointer`):
+- `container` — a container with sound: a `source-media.<ext>` in the video dir, else the store's (read through
+ D2's `savedWindowSource` over the window [0, 0], so its drive watchdog, store-move check and sentence are the
+ same);
+- `no-audio` — the container has no sound stream (`probeMedia`);
+- `unreadable` — a pointer whose container cannot be read, with the guard's sentence (`Channel "<slug>": media is
+ not reachable — its saved video <path> is not there (drive not mounted?)`, `… could not be read by ffprobe`, the
+ watchdog's, or the store-move sentence);
+- `none` — no container. A `source-media.<ext>` ffprobe cannot read is passed over for the pointer.
+
+`whisperVideoAction` (the video page's Transcribe) asks it when no extracted audio is on disk, before the disk gate
+and the `download-one-audio` path: `container` → no download, the log line `No audio on disk for <id>; transcribing
+from the saved container <file> — nothing downloaded.` (`the source container` for one in the video dir), then
+`transcribeWithWorker` as before, which resolves the same file non-strict; `unreadable` → the job fails with the
+sentence, nothing downloaded; `no-audio` → `The container <file> has no sound; downloading the audio instead.` and
+the download path; `none` → the download path, unchanged.
+
+**`pnpm ops transcribe-one {slug, id}`** reaches this path unchanged: `api/ops/transcribe-one` calls
+`whisperVideoAction` when no `file` is given (with `file`, `transcribeOneAction`, that file through the pool).
+
+**Found and left.** The e2e server's fake ffprobe answers a bare duration, never `-of json` (D2's note above), so a
+saved container probes as unreadable there; the action is proven by an editor unit test with the real ffprobe and
+the e2e fake whisper-cli instead, and `whisper.spec` gets no new case.
+
+**Commits**
+
+| Commit | What |
+|---|---|
+| `1c5793e5` | `channels:` F2 — `transcriptionContainer`, `whisperVideoAction` asks it first; 9 tests |
+
+**Gates.** tsc clean. New tests (real ffmpeg/ffprobe over 1 s lavfi containers): `controller/transcriptionContainer.test.ts`
+5 (saved container with sound; a missing container → the exact sentence; none; a silent container; the video dir's
+container first, a silent one there → download, an unreadable one passed over), editor
+`videos/[id]/whisperFromContainer.test.ts` 4 through `runManagedFunction` (present → `done` with a transcript from
+the fake whisper-cli and no yt-dlp run; a gone container → `failed` with the sentence and no yt-dlp run; none and
+silent → the download path's yt-dlp, a fake that records its argv and fails). E2E, start mode (the editor's e2e
+build rebuilt through the heavy slot, so the editor build is green with F1 and F2): `whisper.spec.ts` 10 passed,
+25.4 s.
+
## Rollout (pilot)
1. `pnpm ops attach-media --json '{"slug":"the-incredible-salt-mine","source":"<archive>/Uploads/YouTube.zip","dryRun":true}'`.