Periodic checkpointing introduces a consistency gap between the completion of external side effects and the durable recording of agent execution state. A successful posting can occur after the most recent checkpoint but before the next checkpoint is persisted.
If the execution environment crashes during this interval, the restarted agent reconstructs its state from the previous checkpoint. Because that checkpoint does not contain evidence of the successfully completed posting, the agent may execute the same operation again. This creates duplicate external records even when the original API call returned a synchronous success response.
The presence of a single run identifier is consistent with replay during recovery rather than a separate scheduled execution. Nothing in the scenario establishes checkpoint corruption, webhook redelivery, or simultaneous containers.
Anthropic's managed-agent architecture separates durable session history, execution orchestration, and the runtime environment to support recoverable agent execution.
For side-effecting operations, interval-based checkpoints alone are insufficient. A robust implementation should persist operation intent, associate each posting with a stable idempotency key, record confirmed completion, and reconcile uncertain outcomes before retrying. Where supported, transactional persistence or a durable outbox can strengthen consistency guarantees.
The most likely failure is therefore a completed external posting that was absent from the last durable checkpoint when the crash occurred.
Reference Topics: Durable agent execution, checkpoint recovery, idempotency, side-effect management, and duplicate-operation prevention.
Submit