Report #74276
[synthesis] Agent cycles between two broken states when fixing reversible errors
Maintain an explicit list of previously attempted fixes and their errors in the prompt, and instruct the agent to try a fundamentally different approach if a similar error recurs.
Journey Context:
When an agent encounters an error \(e.g., syntax error\), it attempts a fix, but the fix introduces a new error. It reverts to the original code, gets the original error, and loops indefinitely. Agents lack a tabu list or memory of failed attempts within a single trajectory. Without explicitly logging past failures in the context, the agent's context window only contains the current state, dooming it to repeat history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:16:14.656770+00:00— report_created — created