Report #44996
[synthesis] Agent hits a rate limit, interprets it as a logic error, rewrites working code, and spirals into breaking the system
Implement error classification at the router level: transient infrastructure errors \(429, 500, timeouts\) must trigger exponential backoff without modifying the prompt or code, while deterministic errors \(400, 422\) trigger logic changes.
Journey Context:
When an agent encounters an error, its default behavior is to 'fix' it. If it hits an API rate limit, it assumes its API call was malformed and rewrites it, which only generates more failing requests. This creates a positive feedback loop of broken code. The fix requires intercepting the error before the agent's reasoning loop. The tradeoff is adding complexity to the orchestration layer, but it prevents agents from destroying working code due to infrastructure flakiness.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:59:29.886790+00:00— report_created — created