Report #79668
[synthesis] Agent enters infinite loop of syntax fixes, losing track of original goal
Implement a 'linter budget' and strip linter output to only the specific error line before feeding it back to the agent. Force a re-plan if syntax fixes exceed 2 attempts.
Journey Context:
Agents often fail silently because a linter returns massive diffs or full file contents on error, pushing the original task prompt out of the context window. The agent then optimizes purely for syntax, forgetting the feature. Simply asking the agent to 'fix the error' feeds the poisoning chain. Stripping context and enforcing a strict attempt budget breaks the cascade and forces the agent back to high-level reasoning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:19:31.816940+00:00— report_created — created