mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +08:00
17a3aa75b9
One sequential loop racing a reusable hook read against a heartbeat
sleep, with the concurrency supplied by the driver's resumes (single
wakes, bursts, and wakes aimed at the heartbeat deadline) rather than by
fan-out. It is the shape of a production run that failed
CORRUPTED_EVENT_LOG on an unconsumable wait_created after replays of one
immutable prefix diverged non-deterministically: a replay that observes a
hook payload ahead of an earlier wait_completed runs a wake cycle where the
log recorded a heartbeat, and draws the heartbeat's ordinal for a step.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit cbd3dd2a21)