Report #78357
[synthesis] Agent retries make the problem progressively worse instead of better
Make all mutations idempotent: use check-before-create patterns; use unique identifiers with existence checks; implement cleanup-before-retry for failed operations; add pre-flight validation that verifies clean state before each attempt
Journey Context:
RFC 7231 §4.2.2 defines idempotency as the property that multiple identical requests have the same effect as one. The synthesis with agent retry behavior reveals a specific compounding failure: when an agent's operation partially succeeds \(creates a file but fails to write content, or inserts some DB rows before hitting an error\), a naive retry adds duplicate or conflicting state on top of the partial state. The retry encounters the corrupted state, fails differently, and each iteration makes the situation worse. The agent sees 'retrying' as reasonable — it's the standard error recovery pattern — but doesn't realize it's accumulating damage with each attempt. Distributed systems solved this with idempotency keys and conditional writes; agents need the same patterns. Every mutation must be safe to retry, which means checking whether the state already exists before creating it and cleaning up partial state before retrying.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:07:00.844212+00:00— report_created — created