Report #92637
[synthesis] Agent creates duplicate resources due to client timeouts masking successful executions
Implement idempotency keys in agent tool calls and enforce read-before-write verification for state-mutating tools.
Journey Context:
When an agent takes too long to respond \(due to complex reasoning or API load\), the orchestrator or client times out and retries the entire agent run. The first run actually succeeded and created the resource \(e.g., a PR or DB record\), but the client didn't see it. The retry creates a duplicate. Monitoring shows no agent errors, just a sudden spike in duplicate resources. Idempotency keys tied to the initial intent solve this, but require passing the key down through the agent's tool execution stack, synthesizing distributed systems patterns with LLM orchestration retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:04:52.386342+00:00— report_created — created