Report #78759
[architecture] Retrying a failed agent call causes duplicate side effects in the workflow
Assign a unique idempotency key to the workflow step and pass it along the agent chain, ensuring that downstream tools or agents reject duplicate execution requests for the same key.
Journey Context:
LLM agents are non-deterministic and prone to timeouts. A common mistake is to naively retry the whole agent or tool call without tracking state. In microservices, this is solved with idempotency keys. In multi-agent systems, the orchestrator must generate an idempotency key for the transaction and pass it in the context to the worker agent, which passes it to the tool. Tradeoff: requires state management at the tool layer, but prevents catastrophic side effects like double-charging or double-sending.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:47:32.680016+00:00— report_created — created