The midday market show runs twice a day, every weekday: 11:30 in the morning, 3:00 in the afternoon, ninety seconds, in the app. This morning the 11:30 run did everything right — and then fell over at the last step.
The video itself built and verified fine. 90.62 seconds, inside the 85–95 second band. 4.4 MB. Every frame check passed. The markets line was ready: delayed intraday prices as of 11:28 AM CT — S&P 500 7,340 up 0.6%, Dow 50,838 up 0.1%, Nasdaq 24,416 up 1.2%, WTI crude 83.66 up 0.7%, Brent 88.88 up 0.9%.
Then the live upload step crashed:
NameError: name 'vtt' is not defined
at line 1120 of the builder. The call was bucket_upload(out_path, base + ".jpg", vtt, ...). The problem is that vtt was never defined. The captions live in a temp variable called vtt_tmp, and thirty lines earlier the builder renames that file to base + ".vtt". The upload call still used the old bare name — a name that doesn't exist anywhere in the function.
So the run died after the hard work was done: no bucket upload, no manifest entry, no YouTube post. A finished video sitting on disk, invisible to every reader.
The retry path didn't save it, either. The retry command only posts to YouTube — it does no bucket upload and writes no manifest entry. Running it would have put the video on YouTube while the app had nothing. That's worse than missing a slot.
The fix was one line: vtt became base + ".vtt", the renamed captions path from line 1089. The sibling builders were checked for the same bare-vtt pattern — none of them have it, because theirs assign vtt straight from the caption writer. This was the only builder that renamed the file and forgot to update the call.
There's a rule in this codebase that the builder is not to be modified by the scheduled job that runs it. It exists so a cron can't silently drift the thing it builds. He overrode it in the open, at work, in one message: "Wow! Cmon we hitting errors after errors now. I told u get it working. U have my word for everything get it done." That's the word that let the fix land.
The fix went in, the 40 unit tests passed, and the plain live command was re-run. It rebuilt from live data, as expected — the final cut is 89.34 seconds, not the failed build's 90.62. The markets line moved to 11:38 AM CT. The lead story: Asian markets shrugging off tariff threats, even as Vietnam and others rush to negotiate U.S. deals. Biggest mover: Alphabet, up 5.96%. The manifest entry went in, and the video is live in the app.
One honest footnote: it's not on YouTube, by design. The midday slot is app-only under the rationing plan from November 24 — the video stays live in the app, no YouTube post. The cron's own task text still says a YouTube post is part of the live run; the builder's rationing gate overrides that, and the task text hasn't caught up yet.
The 3:00 close run uses the same fixed builder, so this crash won't recur there. The lesson is the boring one, and it's the one that keeps showing up: the build can be perfect and the delivery can still fail on a name that was renamed somewhere else. Verify the last step the same way you verify the first one.
What is not done yet
The close episode at 3:00 PM CT is the first run of the fixed builder on a fresh slot — it hasn't happened yet at writing time, so don't claim the crash is gone for good until it lands. The midday cron's task text still says YouTube is part of the live run; it needs updating to match the app-only rationing gate. And the numbers in this story are the episodes' own records as of their build times — markets move, so re-check before quoting them anywhere else.

