commit ce9bf72691bfb265589763901b9e36956b8b7dc1
parent 76604d55bd6b45ff9bd5e32f5704d82ad2e64d83
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 15 Oct 2026 17:31:12 -0400
plans: release 30 lane Q — the follow-ups' record (a clean refetch retires a salvage; the salvage mark downstream), FACTS, CHANGELOG
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 40 insertions(+), 5 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -2,7 +2,7 @@
## [Unreleased]
- **Retrying a corrupt full source downloads it again.** A video whose download completed with malformed audio (Odysee's intermittent AAC, on a channel with the audio check) kept its file, and that file made every retry say "Nothing to fetch". A retry of the **corrupt full sources** bucket — the new card on the channel's Download stage, or `pnpm ops retry-bucket --json '{"slug": "<channel>", "bucket": "corruptFullSource"}'` — now sets the kept file aside and downloads again: a clean result replaces it; a malformed one keeps whichever copy decodes longer; a download that fails (a 429, the network) puts the kept file back and the video stays in the bucket, with the attempt recorded. Each retry is recorded in the video's `download-outcome.json`. Needs a restart of the editor.
-- **A damaged recording is transcribed for what decodes, instead of not at all.** Transcribing a corrupt full source used to fail at the first bad stretch. It is now decoded with error tolerance, with the stretches that will not decode kept as silence of their own length, so every line of the transcript is at its true time in the recording; with parakeet, a window that still fails is skipped and noted. The transcript is marked **salvaged**: the video page says how much decoded and which stretches have no transcript, and the channel's report lists it under **salvaged transcript**. It happens on its own for a corrupt full source; `pnpm ops transcribe-one --json '{"slug": "<channel>", "id": "<video>", "salvage": true}'` asks for it on any video (`false` turns it off). Needs a restart of the editor.
+- **A damaged recording is transcribed for what decodes, instead of not at all.** Transcribing a corrupt full source used to fail at the first bad stretch. It is now decoded with error tolerance, with the stretches that will not decode kept as silence of their own length, so every line of the transcript is at its true time in the recording; with parakeet, a window that still fails is skipped and noted. The transcript is marked **salvaged**: the video page says how much decoded and which stretches have no transcript, and the channel's report lists it under **salvaged transcript**. It happens on its own for a corrupt full source; `pnpm ops transcribe-one --json '{"slug": "<channel>", "id": "<video>", "salvage": true}'` asks for it on any video (`false` turns it off). When a later retry downloads the recording clean, the salvaged transcript is removed so the recording is transcribed again in full. On the sites, a salvaged transcript's video page says "Partial transcript: N of M min decoded", and the MCP's `get_transcript` and `get_video_metadata` say it is partial. Needs a restart of the editor; the sites show it after their next build.
- **find-copy can fetch from an archive.org copy that is a single video file.** Such a file's fetch failed with "Requested format is not available" and the copy was then marked as failed. A copy's window is now cut from whatever single file it is, and a copy is marked failed only when the copy itself is gone or refused. `pnpm ops find-copy --json '{"article": "<id>", "retryFailed": true}'` tries copies marked failed again. Needs a restart of the editor.
- **A model can propose verdicts for a fact-check's unruled claims, for you to approve or reject.** `pnpm ops report-draft --json '{"task":"verdicts","article":"<id>"}'` asks each claim with no verdict, with the verdict bench's own prompt, and keeps each proposed verdict, its reason, the model and the prompt version in `verdicts.proposed.json` beside the article, never in `report.json`. It runs only on a model you ticked on the verdict bench (`settings.generation.verdicts.models`, empty until you do), and never sets a verdict itself. umtool's Inbox shows "N verdicts proposed" under Review; **Review verdicts** opens the article, where each proposal has **Approve** (the claim gets that verdict) and **Reject** (the claim stays unruled), with an optional note. A claim you have ruled, or whose proposal you have reviewed, is not asked again. `pnpm ops verdict-review` does the same from the command line. Needs a restart of the editor and umtool.
- **Draft everything can add the on-screen deck first.** Tick **with the deck** beside **Draft everything** on a cut's Media tab (or `umtool chain <article> <n> --draft-all --deck`): before the flips, a step adds the on-screen deck with every setting at its default to a cut that has none, so the flips and threads are drafted on a cut the converter made. A copy of the cut as it was is kept in its revisions first. A cut that already has a deck is left as it is, and the step says "deck added" or "deck already there". Off by default: without the tick, Draft everything is as it was. Needs a restart of umtool.
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -9650,3 +9650,16 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri
salvaged corrupt full source is in both buckets. Still counted in `totals.transcribed`. Channel flow: a transcribe
siding; the video page: `SalvagedTranscriptNotice` (`salvaged transcript` status).
- **Ops**: `transcribe-one {…, "salvage": bool}`; `retry-bucket {"bucket": "corruptFullSource"}` refetches.
+- **A clean refetch retires a salvage transcript** (operator ruling 2026-10-15): when `settleCorruptRefetch` sees a
+ clean result and `transcribe-outcome.json` has `salvaged`, `transcript.json`, `transcript.cues.json` and
+ `transcribe-outcome.json` go through `removeMediaFile`; the clean `CorruptRefetch` keeps
+ `retiredSalvage: {source, decodedSeconds, totalSeconds, gaps, transcribedAt}`; the snapshot then has the video in
+ `downloadedNoTranscript` for the transcription lane. Any other transcript is left alone.
+- **Downstream, the record's `salvaged`** (`TranscriptSummary.salvaged: {decodedSeconds, totalSeconds}` — a
+ `SalvageMark`, `lib/salvageMark.ts`; NOT the sidecar's `salvaged`, which also has `source` and `gaps`): set by
+ buildIndex on a whisper record whose transcribe-outcome has a salvage (read only for whisper records; deleted and
+ re-derived on every derivation; omitted otherwise, so other pages are byte-identical). The index re-derives a record
+ when its transcript changes — a salvage writes `transcript.json`, a retirement removes it — so the sidecar's mtime
+ needs no key of its own. Shown by the export's TranscriptModal ("Partial transcript: N of M min decoded",
+ `partialTranscriptLine`) and by MCP `get_transcript` / `get_video_metadata` (`salvageCaveat`; the metadata JSON
+ carries the field). Not on `DisplaySummary` (the summaries pages).
diff --git a/plans/release-30/q.md b/plans/release-30/q.md
@@ -71,13 +71,33 @@ whole-path test: a fake yt-dlp answering the prefetch with a 429 leaves the side
`["metadata-prefetch", "audio-checked-primary", "metadata-prefetch"]` and the kept file in place). The snapshot stays
the single classifier: it reads the sidecar's status as before; the only addition is `salvagedTranscript`.
+## Follow-ups (2026-10-15, orchestrator's ruling and brief)
+
+- **A clean refetch retires a salvage transcript** (ruling: yes). In `settleCorruptRefetch`'s clean branch: when
+ `transcribe-outcome.json` has `salvaged`, `transcript.json`, `transcript.cues.json` and `transcribe-outcome.json` go
+ through `removeMediaFile` (the one remover of a video-dir entry — the editor's `clearIncompleteTranscriptOne` uses
+ it too, but also takes the audio, which is the point here to keep); the clean `CorruptRefetch` records
+ `retiredSalvage` (the salvage and its `transcribedAt`); the snapshot then has the video in `downloadedNoTranscript`
+ (pinned through the real `generateChannelSnapshot`). A transcript that is not a salvage is left alone.
+- **Salvaged transcripts are marked downstream.** The index record gains `salvaged: {decodedSeconds, totalSeconds}`
+ (`TranscriptSummary.salvaged`, a `SalvageMark`; omitted otherwise so every other page is byte-identical) from the
+ sidecar, for whisper records only; the published transcript pages carry it (pinned through the real `buildIndex`).
+ The export's video page (TranscriptModal) shows "Partial transcript: N of M min decoded" under its date line; MCP
+ `get_transcript` adds a "⚠ PARTIAL TRANSCRIPT … do NOT conclude that something was never said" meta line (primary
+ track only) and `get_video_metadata` carries the field and the same line. Not on `DisplaySummary`; no e2e (unit
+ tests; the export suite at merge).
+
| Commit | What |
| --- | --- |
| `fc0942e7` | Q1: corruptRefetch.ts, renameMediaFile, the retry prefilter, scanDecodable + the test kit, the replay bucket, the Retry card, the sentences; ops help, COMMANDS.md |
| `72ef936b` | Q2: salvageDecode, transcribeOne salvage, parakeet-stitch --salvage, transcribe-outcome `salvaged`, the `salvagedTranscript` bucket, the video page's status; ops help, COMMANDS.md |
| `1d327f32` | Q2: a salvage that finds nothing missing is a clean transcript |
| `88e03d2f` | editor: the status is not a chore card (videoChoreCards); the e2e retry scenario; CHANGELOG |
-| (this commit) | this record, FACTS |
+| `ebd2d95f` | this record, FACTS |
+| `74310acc` | the test kit README lists `testing/audio` |
+| `ff9c2c51` | a clean refetch retires a salvage transcript |
+| `b606cebe` | the record's `salvaged` mark: buildIndex, the export's status line, the MCP caveat |
+| (this commit) | the follow-ups' record, FACTS, CHANGELOG |
Gates (from the worktree root; every tsc and suite behind the shared heavy lock after 16:29):
- tsc: common, editor, mcp package-scoped clean at each commit; `pnpm -r exec tsc --noEmit` clean at the branch tip.
@@ -90,9 +110,11 @@ Gates (from the worktree root; every tsc and suite behind the shared heavy lock
- editor unit: 310 → 310, all pass (the transcribe-one door check is inside an existing test).
- mcp: 372/372.
- `docs cli --check`, `docs files --check`, `docs env --check`: clean.
+- After the follow-ups (`b606cebe`): `pnpm -r exec tsc --noEmit` clean; common 4283/4283 (+2 corruptRefetch, +1
+ buildIndexSalvaged, +1 salvageMark); editor 310/310; mcp 372 → 373/373; test:scripts 1027 (1024 + 3 skipped);
+ export unit 117/117.
- e2e: `audio-check-scenarios.spec.ts` (with the new retry scenario) NOT RUN — held on the orchestrator's word while
the user systemd bus was down (the e2e build would have run uncapped). Owed: that one spec, foreground.
-Not done: no live run (the orchestrator's, after merge); the video page does not list `corruptRefetches` (the
-sidecar has them); a clean refetch leaves an existing salvage transcript in place (listed in `salvagedTranscript`;
-delete it and transcribe again for a full one); the export/MCP do not mark salvaged transcripts.
+Not done: no live run (the orchestrator's, after merge); the editor's video page does not list `corruptRefetches`
+(the sidecar has them); the summaries pages (`DisplaySummary`) do not carry the mark.