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).
More from coding & agent
- Weaviate Podcast #148: Machine Studying, Continual Learning and Self-Driving Knowledge Bases — CShorten30 · 2026-11-24
- Beyond Software Factories: Learning Labs and engineers as harness builders — viksit · 2026-11-24
- Commit chart goes vertical: Conductor repo hits ~1,500 commits in a single week — charlieholtz · 2026-11-24
- Inkling 2 Mini: a 26B looped transformer, plus Songe trains your local model while you sleep — iamrobotbear · 2026-11-24
- Canva launches MCP server, opening its design engine to any AI agent — basedjensen · 2026-11-24
- Cognition co-founder: nearly all their code is written by Devin, some devs use iPads — Madisonkanna · 2026-11-24