Documents the race called out in code review: when recovery samples a stale run id and a fresh run is spawned for the same agent before endHeartbeatRun() lands, only the sampled id is terminated — never the freshly-spawned run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>