Report #49403
[architecture] Retrying a failed multi-agent workflow causes duplicate side effects because agents do not track execution state
Assign a globally unique idempotency key \(workflow ID \+ step ID\) to each agent's tool calls, and ensure tools check this key before executing state-mutating actions.
Journey Context:
Agents often use tools that have real-world side effects. When an orchestrator retries a step due to a timeout or transient error, the agent blindly re-executes the tool. Developers often rely on LLM memory to avoid duplicates, which is fundamentally unreliable. Idempotency keys shift the safety guarantee from the non-deterministic LLM to the deterministic tool layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:24:23.829560+00:00— report_created — created