The agent asked to pay ten dollars to Alice. A scripted person approved it. The tool added one line to a local payments file, and the test process killed itself before it could save anything else.

A new process then resumed the agent from its last checkpoint. The payment ran again.

This sequence repeated across LangGraph, Pydantic AI, the OpenAI Agents SDK, Google ADK, Microsoft Agent Framework and the Claude Agent SDK. In a public crash test by developer Salah Eddine Makboul, every one of 140 crash runs made two payments after one approval. Every one of 140 control runs without a crash made one.

The models did not disobey. The approval screen did not fail. The duplicate appeared in the narrow interval between an external action and the durable record that it had happened.

The checkpoint came after the money moved

Agent frameworks save enough state to pause for a person and continue later. That pattern supports approvals for payments, emails, database changes and other actions that should not happen without review. It also lets a process survive a restart.

Those two features meet a familiar distributed-systems problem. An external service can accept a request before the agent runtime records the result. If the process dies during that interval, the checkpoint still describes work that has not finished. A resumed run sees the pending tool call and executes it.

Makboul built one version of that failure for each framework. The agent used a stub model and a fake bank that was only a file. The harness paused at an approval-gated pay tool. After approval, the tool appended the payment and called a hard process exit, which prevented cleanup code from running.

The new process resumed through the method that each framework documents. LangGraph used its SQLite checkpointer and the same thread identifier. Pydantic AI restored message history and deferred tool results. The OpenAI Agents SDK loaded a serialized run state. Google ADK restored a resumable application and session. Microsoft loaded a workflow checkpoint. The Claude Agent SDK resumed its session after a hook had deferred the call.

The December rerun used the newest release of each framework available on 30 November. LangGraph, Pydantic AI, OpenAI Agents SDK and Claude Agent SDK each repeated the payment in 30 of 30 crash runs. Google ADK and Microsoft Agent Framework repeated it in 10 of 10. Makboul published 545 run files, the scripts and a short video of the test.

Approval answers a different question

A human approval establishes that a proposed action may begin. It does not prove that the action has never happened before.

LangGraph’s documentation makes the replay boundary explicit. When an interrupted node resumes, the node starts again from its beginning. The documentation tells developers that side effects before an interrupt must be idempotent. An idempotent operation produces the same external result when it receives the same request more than once.

Google ADK likewise documents at-least-once execution for resumable tools. Its guidance tells builders to make tools check for and prevent duplicates. OpenAI’s human-in-the-loop documentation supports serializing an approved run, but the Call4Agents review notes that approval alone does not provide exactly-once execution. Pydantic AI’s durable integrations use a journal to replay completed steps and retry the operation that was in flight.

These are reasonable guarantees for a framework. A runtime can persist its own state, but it cannot atomically commit a remote bank transfer and a local checkpoint unless the remote service participates in the same transaction. Networks fail, responses disappear and processes stop after the recipient has acted.

The safest common answer is a stable idempotency key. The agent assigns one identifier to the intended payment and sends it on every retry. A provider that remembers the key returns the original result instead of moving money again. The test deliberately did not use such a key, because it was measuring the frameworks’ default resume behaviour rather than a payment processor’s protection.

That limitation matters. The result is not evidence that these frameworks cannot support payments. It is evidence that a human approval layer does not supply the missing transaction semantics by itself.

The wrapper stopped instead of guessing

Makboul also tested his own Call4Agents library around the same tool. The library writes an intent record before it invokes the external action and records the result afterwards. A crash can still land between those writes, but the second process now sees that the action started and that no result was saved.

In all 180 crash runs with version 0.7.3, the fake bank contained one payment. The resumed agent raised an EffectInDoubt state and stopped for a person. It did not claim that the original payment had succeeded, and it did not send another one.

That is a narrower guarantee than automatic recovery. The run remains unfinished until a person checks the provider, or until a reconciliation function asks the provider whether the first action completed. In a real system, the wrapper needs a reliable lookup, a provider idempotency key or an operator who can resolve the ambiguity.

The library’s author is also the test’s author, and the experiment promotes his solution. The setup covers one tool, one crash point, default framework settings and one Windows machine. A fake model removes variation from model behaviour, which makes the execution failure easier to isolate but says nothing about a live agent’s decisions. The December run nevertheless reproduced the same result as Makboul’s 19 November run after the frameworks had moved to newer versions.

Side effects need their own state machine

Approval systems often show a clean sequence: propose, approve, execute, continue. A durable implementation needs more states. An action can be proposed, approved, started, completed, rejected, failed or left uncertain. The uncertain state is the one that a restart cannot infer from its own checkpoint.

This distinction extends beyond payments. An agent can send an email twice, create two cloud resources, post the same message again or apply a database migration after the first attempt actually succeeded. A tool that merely retries on timeout converts an unknown result into a possible duplicate.

The frameworks expose enough control to handle the problem. Builders can keep external actions in small tool functions, assign stable operation identifiers, store intent before execution and reconcile after ambiguous failures. Tools that cannot be made idempotent need an explicit stop state and a human procedure. The agent’s conversation history is not the ledger for the external world.

In Makboul’s test directory, the evidence is one line longer than it should be. The approval appears once. The payment appears twice. After the wrapper is added, the file returns to one line, and the restarted agent waits.

References