Report #58723
[synthesis] Agent completes task but leaves codebase in fragile state with duplicated logic
Track state transition entropy using Levenshtein distance on file states between steps; alert when edits oscillate \(reverting previous changes\) or when the agent reads the same file more than N times without writing, indicating a hidden logic loop.
Journey Context:
A successful agent run \(exits code 0, passes tests\) can actually be a degradation signal. If an agent loops—writing code, failing a hidden constraint, reverting, writing slightly different code—it often leaves dead code, redundant imports, or conflicting logic from abandoned paths. Tests pass, but technical debt spikes. Monitoring just the final state misses this. You must monitor the trajectory \(the diff sequence\). High trajectory entropy correlates strongly with fragile, unmaintainable code outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:03:16.985917+00:00— report_created — created