Idempotency & Concurrency Patterns
Saga Pattern for Long-Running Agent Transactions
Saga-style compensation gives agent workflows a crash-safe way to undo.
Priya Subramaniam · November 10, 2026 · 8 min read
Section
3 stories in Idempotency & Concurrency Patterns
Saga-style compensation gives agent workflows a crash-safe way to undo.
Fencing tokens let the resource reject stale writes that an expired lease cannot stop.
Stable per-step keys and tool-level enforcement stop agent retries from duplicating writes.