CellaFlow crash benchmark: preventing duplicate agent side effects can deadlock your workflow
merlinofthewater · reddit · 2026-09-12
- The CellaFlow team published a crash benchmark for multi-agent execution runtimes around irreversible side effects, like refunds issued before a pod dies.
- Four approaches compared: no guard, Postgres advisory locks, durable claims, and CellaFlow, across concurrent retries, crashes after claiming, crashes after side effects, slow workers, vanished owners, and ownership transfer.
- Key findings: advisory locks produced 5 duplicate side effects in failure modes; durable claims guarantee "exactly once" but deadlock when the owner dies; CellaFlow recovers ownership instead.
- The authors stress no distributed trick gives exactly-once across non-participating external APIs; use idempotency keys when available, and make the surrounding execution durable and recoverable.
- Multi-agent setups compound the issue: agents with different sessions/threads may independently refund the same ticket, defeating per-agent idempotency keys.
- Benchmark code is open-sourced in the cellaflow-sdks repo.
More from coding & agent
- Function Hooks in Claude Code get a standout explainer worth reading — therealdanvega · 2026-09-12
- Sentry CEO: Claude Desktop's design still beats Codex Desktop on the details — zeeg · 2026-09-12
- Sleeping models in Rust: reclaiming 79GB of idle VRAM with sub-200ms wake — ahstanin · 2026-09-12
- Report: Yemeni weapons cell uses Claude Code to run parallel missile software programs — teortaxesTex · 2026-09-12
- This ChatGPT agent skill is 395K tokens of Python: drone footage to property analysis for anyone — doodlestein · 2026-09-12
- Build and Own Your Agent Harness: Custom Setups Beat Out-of-the-Box Agents — JainAI29 · 2026-09-12