When may a script write "this video has no captions"? In ai-engineering-book-lab, a wrong answer lost talks from the corpus behind the book From Copilot to Colleague. The answer now: only when yt-dlp says so in words. Anything else leaves the talk queued, and the code says that check "has never fired".
This post is for people who bulk-read a service they do not control. It follows the ingest fixes from October 2026. You get each failure with its date and count, the rule the script uses now, and the limit the code leaves open on purpose.
Why a wrong "no captions" note is permanent
The ingest fetches captions with yt-dlp and writes one note per talk into 01_Videos. It finds missing talks by a glob of 01_Videos/*.md. The code comment says a note written during a rate limit "marks the talk permanently ingested with no transcript and nothing ever retries it."
The code calls unavailable "a permanent verdict". The fixes below change when the script may give it, and how the script behaves when a fetch fails.
10 October: a rate limit recorded as "no captions"
The docstring of TranscriptFetchBlocked records the loss on 2026-10-10. On 2026-10-10, 16 of 18 talks became transcript-less notes "while YouTube returned HTTP 429 — captions existed for every one of them."
The fix is commit 3406ef8, subject "ingest: stop recording a rate-limit as "no captions", and unbreak synthesis". A blocked fetch now raises TranscriptFetchBlocked, and the script writes no note.
13 October: pace the fetch, skip the blocked talk
Three talks downloaded by hand on 2026-10-13. Then, by the code comment, "the same three returned 429 the moment the unpaced loop asked for them." Commit 3406942 added pacing and changed a blocked talk from a halt to a skip.
The skip has its own number. The comment in main() says that on 2026-10-13 "exactly one of 206 was returning 429 while the rest downloaded fine." A halt would let that one video block every talk behind it.
30 October: three commits on one day
The evidence file lists three ingest commits on 2026-10-30. Oldest first:
- a4a10f4, "fail fast on a blocked video instead of grinding for half an hour". The retry settings were 5 / 3 /
exp=5:120. One unfetchable video could burn about 30 minutes of backoff. A 10-video run wrote nothing in an hour, "while the same command succeeded by hand in 10 seconds." - a5a26db, "an absent subtitle file is not proof the talk has no captions".
yt-dlpcan exit 0 and write no file. That path cost two talks in a batch where 37 others succeeded. Both "downloaded fine by hand minutes later." - ed4d56a, "earn "no captions" with an allow-list, not a deny-list". The first guard asked whether an error looked transient, and gave the permanent verdict to everything else. On 2026-10-30 one talk got
unavailablefrom an error outside the transient list, "while the talk has both en and en-orig auto-captions."
The rule now: only yt-dlp's own words count
99_Meta/scripts/ingest_ai_engineer_videos.py holds the allow-list:
# The ONLY evidence that a talk has no captions: yt-dlp saying so in words.
# …
_NO_SUBTITLES = (
"has no subtitles",
"there are no subtitles",
"no subtitles for the requested languages",
"requested subtitles are not available",
)Every other failure raises TranscriptFetchBlocked. The comment gives the cost: "one more attempt later and loses nothing." The pacing and retry flags now read:
"--sleep-requests", os.environ.get("INGEST_SLEEP_REQUESTS", "2"),
"--sleep-subtitles", os.environ.get("INGEST_SLEEP_SUBTITLES", "3"),
# …
"--retries", "2",
"--extractor-retries", "1",
"--retry-sleep", "exp=3:20",retry_ingest.py runs slower on purpose: 8 and 15 seconds of sleep, 3 attempts, and a wait between runs that doubles from 3 hours to 24 when nothing lands.
The commits after the fixes show the batches. On 30 and 31 October, batches of 78, 79 and 77 talks landed. Commit 1d64e87 on 2026-10-31 ingested "the last 17 talks, closing the 343-talk backlog".
The known limit: the allow-list has never fired
A code comment marks a "KNOWN LIMIT": "this has never fired, and as written it cannot." yt-dlp prints "There are no subtitles for the requested languages" on stdout and exits 0. The check reads stderr, and only on a non-zero exit. A talk with no captions stays retryable forever.
The comment records a check on 2026-11-14: 1455 notes in 01_Videos, zero with transcript_status unavailable. The limit is "left alone on purpose", because "making 'unavailable' easier to earn is how 16 of 18 talks were lost on 2026-10-10."
14 November: a new toolchain, the same 429
Commit cc242bd on 2026-11-14 recorded the toolchain: yt-dlp 2026.10.26 with deno 2.9.8. A deno 1.41 on PATH "was NOT detected". The same probe on the new stack still got HTTP 429 on the caption endpoint.
For a related gate in the same repo, see the diagram truth gate.
What is not measured
- None of the files this post draws on shows a test that runs the allow-list against real
yt-dlpoutput. - The code says it is "untested" whether the old
yt-dlpstack made the rate limiting worse. - None of these files gives a total of talks lost before the fixes beyond the counts above (16 on 10 October, three on 30 October).
- The pacing values (2 / 3 and 8 / 15 seconds) are choices in the code. No file shows a measurement of the rate limit they avoid.
How this post was made: an AI agent drafted it from the project files listed in the repo, a second agent reviewed it, and Timur merged it.
