Report #35843
[architecture] Retrying a failed agent step duplicates external side effects like database writes or API calls
Assign a globally unique idempotency key to the workflow step and pass it to tool execution, ensuring tools check the key before mutating state.
Journey Context:
When an orchestrator dispatches a task to an agent and the agent times out, the orchestrator doesn't know if the failure happened before or after the tool was executed. Blind retries cause duplicate emails or DB rows. Alternatives like compensating transactions are complex. Idempotency keys at the tool level allow the orchestrator to safely retry failed agents without side-effect duplication.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T14:38:13.214870+00:00— report_created — created