Report #65279
[synthesis] Agent introduces bugs by rewriting overlapping code in highly coupled files
Map the repository's dependency graph and flag when an agent attempts to modify files with high semantic overlap \(e.g., utils.py and helpers.py\) in the same run. Force a human review or a re-read of the overlapping file after the first edit.
Journey Context:
When an agent reads two files with similar functions, its context window contains conflicting definitions. To resolve the cognitive dissonance, it often rewrites one file to 'clean it up,' inadvertently breaking callers that relied on the original subtle behavior. The agent thinks it improved the code, but it actually broke the implicit contracts between coupled modules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:03:09.377314+00:00— report_created — created