Report #36244
[synthesis] Agents enter infinite loops by treating hallucinated error messages as real constraints
Cap self-correction loops and require the agent to read the actual file/system state rather than blindly reacting to the previous step's error output.
Journey Context:
When an agent writes broken code and executes it, it reads the traceback. Under context pressure, it might misinterpret the traceback or hallucinate a fix \(e.g., adding an import that doesn't exist\). The next run fails with a different error. The agent focuses solely on the new error, stacking another hallucinated fix. This reinforcement loop compounds small syntax errors into architectural disasters. The agent needs a 'step back' mechanism to verify the actual state of the codebase rather than blindly patching error strings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:19:07.195005+00:00— report_created — created