Files
clawmates/crates/cm-api
Omar SobhandClaude Opus 5 9d427900a5
deploy / test (push) Successful in 5m1s
deploy / build (push) Successful in 5m56s
fix(podcast): a tombstone must not be permanent
Proven by the thing it broke. Mission 01a0c9c4 was tombstoned at
16:17:39 by the old code, in the four-minute gap after the reaper deleted
its checkout and before the build that could render it started at
16:21:58. Because the sweep selected on NOT EXISTS (podcast_episodes),
that row made the mission invisible forever: the fix shipped, and
recovered nothing, on a script that was sitting on a branch the whole
time.

The sweep now reconsiders a tombstone after RETRY_TOMBSTONE_AFTER, and
record_unrenderable_because refreshes created_at on each attempt, so the
backoff restarts rather than compounding. At most ~4 attempts a day per
mission: enough to recover the same day a cause is fixed, not enough to
become the every-two-minutes churn the no-turns tombstone was added to
stop.

Verified live by clearing the stale row and letting the deployed build
re-attempt:

  podcast: mission 01a0c9c4 — checkout is gone; rendering from the vault
    (clawmates/mission-01a0c9c4-cf8ba78d:.../script.md)
  podcast: episode ... 31 turns, 419s, 6708231 bytes
  audio: HTTP 200, 6708231 bytes, audio/mpeg; feed.xml carries the item

which is the first complete pass this pipeline has made: vault fallback,
the bold-speaker parser fix, ElevenLabs render, blob, feed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WZb5A2kfVfjpdwSochkuHz
2026-09-22 13:16:47 -05:00
..