One retry, one double charge: a transient DB error exposes agent workflow idempotency traps

Common_Dream9420 · reddit · 2026-10-14

A real postmortem: after weeks of stable operation, a transient DB error triggered a workflow retry — Step 2's committed write was picked up by CDC and consumed, Step 3 failed before the durable checkpoint, and the orchestrator retried Step 2, producing a second committed write and event. Result: three customer records in a bad state and one charge processed twice.

Key takeaways:

The author is building FetchSandbox around deterministic checks: teams define exact rules (e.g., one committed customer update), the tool injects a controlled failure, observes the retry, and reads actual saved state — returning pass/fail/unmeasured. They're seeking design partners for DB fault injection and CDC-specific testing.

Original post →

More from coding & agent

coding & agent channel →