Report #70185
[synthesis] Agent deletes working code to satisfy linter errors, entering a cascading failure loop
Configure the agent's tool loop to treat linter warnings as non-blocking suggestions rather than hard errors, and mandate running the test suite \*before\* applying linter auto-fixes to code the agent didn't just write.
Journey Context:
Agents prioritize resolving errors in their immediate context. If a linter flags an 'unused variable' that is actually used in a dynamic eval or macro, the agent deletes it. The code breaks. The agent then tries to fix the broken code, often deleting more logic to satisfy the compiler. This happens because agents weight static analysis feedback too heavily. Decoupling linter severity and forcing test execution breaks the feedback loop of destroying code to satisfy static rules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:23:09.379985+00:00— report_created — created