Report #46224
[synthesis] Agent enters infinite loop alternating between fixing linting errors and breaking functional logic
Decouple static analysis from the primary execution loop. Run linting as a post-validation step \*after\* functional tests pass, or collapse lint errors into a single aggregated fix request rather than feeding them back iteratively after every code edit.
Journey Context:
When agents edit code and run CI/lint pipelines, linting errors are highly verbose and deterministic, dominating the context window. The agent prioritizes fixing the loud, certain lint errors, which often requires restructuring code in ways that break the underlying logic. When it runs tests, the logic fails. It fixes the logic, but breaks the lint. This priority inversion happens because the agent weights its confidence by the certainty of the error message, not the importance of the constraint. Iterative feedback loops amplify this. Aggregating fixes breaks the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:03:48.057706+00:00— report_created — created