Report #65943
[synthesis] Agent enters micro-looping lint and fix cycles that complete but waste steps
Calculate the productive step ratio, which is steps advancing the core logic versus steps spent fixing previous step lint or format errors. Alert when the lint-fix loop depth exceeds 2 for a single logical change.
Journey Context:
Max-iteration limits catch infinite loops, but agents often degrade into micro-loops: write code, lint, fix whitespace, lint, fix unused import. The task completes, so it is logged as a success. However, this indicates the agent is losing holistic code generation capability and acting myopically. Monitoring the depth of immediate self-corrections reveals degradation in generation quality before it results in a hard failure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:09:46.339629+00:00— report_created — created