AI Agents Just Rediscovered the Dual-Write Problem

bibryam · x · 2026-11-24

A System Design Classroom essay argues agentic systems are rediscovering the classic distributed-systems dual-write problem. Example: a support agent qualifies a refund, the payment provider creates it, but the agent crashes before recording the result; on resume, the workflow thinks the refund never finished and retries — the customer is refunded twice. The core danger: an agent can recover its reasoning without knowing what happened outside the workflow. The author splits agent state into three layers (conversation state and two more, truncated in the excerpt), and the accompanying diagram outlines reconciliation: query the provider with an action id/idempotency key, branch on outcomes (succeeded / retry same action id / failed final / keep unknown with retry and escalation to human review after 3 attempts or 24h).

Original post →

More from coding & agent

coding & agent channel →