Report #62970
[synthesis] Agent refactors code to be cleaner but breaks implicit micro-optimizations or team conventions
Calculate a 'convention drift score' by comparing agent AST changes against the existing codebase's stylistic and structural patterns. Flag PRs that increase stylistic deviation without an explicit user prompt to refactor.
Journey Context:
Agents have a strong bias towards 'clean code' patterns from their training data. When asked to fix a small bug, they might refactor a highly optimized, slightly messy loop into a clean functional map. The code looks better and passes tests, but it silently degrades performance or violates the team's implicit 'don't touch this hot path' convention. It's a quality degradation masked by improved readability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:10:31.707240+00:00— report_created — created