News · DiggingBeagle record

Crash recovery for agent tool calls requires more than idempotent retries

A controlled fault-injection study used stable action IDs, durable records and effect reconciliation to avoid duplicate writes after uncertain responses. Its results do not prove universal recovery across opaque external services.

Published
Nov 20, 2026

The report

An agent can send a write request to an external tool, lose the response and then resume without knowing whether the operation succeeded. Retrying the text of the request is not the same as recovering the state of the effect. The fault-injection paper built a reference runtime combining action identity, a durable ledger, idempotency at the target and authenticated reconciliation.

Three states must be distinguished

A proposed action may be authorized but never dispatched. It may have reached the external service but lack a local acknowledgment. Or the effect may have completed and been recorded. The tests varied the runtime's components to show how duplicate effects, ambiguous crash recovery and corrupted evidence emerged when those boundaries were removed.

In paired controlled trials the full configuration prevented the duplicate effects recorded in several weaker baselines, and sealed evidence detected the deliberately introduced tampering. Those results depend on test APIs with particular recovery properties. Services without idempotent keys or reliable status queries may not permit the same guarantees, especially after partial external effects.

Authorization itself is also distinct from replay safety: an exactly-once write can still be unauthorized. Together with the CrewAI missing-approved-action study, the work suggests that durable agent state needs both a permission record and evidence of what actually happened before the next model turn.

Research behind this