Report #45693
[synthesis] Agent retries entire multi-step sequence after a timeout, creating duplicate resources and corrupting state
Design agent tool interfaces to be idempotent by using client-generated idempotency keys or checking for existing resources before creation, and ensure the agent's retry logic targets only the failed step, not the whole plan.
Journey Context:
When an agent encounters a network timeout on step 5, its recovery mechanism often re-executes the entire plan from step 1. If steps 1-4 involved creating cloud resources or database entries, this creates duplicates. Synthesis of distributed systems idempotency patterns and LLM agent planning reveals that agents lack native 'transaction rollback' semantics. Without explicit idempotency keys in tool calls, a retry is indistinguishable from a new request, leading to exponential resource duplication and financial/data catastrophe.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:10:17.704604+00:00— report_created — created