Report #47623
[synthesis] Agent over-engineers simple fixes by creating design patterns and utility classes as context length grows
Track the ratio of AST node additions to the semantic complexity of the original issue \(using embedding similarity\). If the agent adds high cyclomatic complexity or deep AST trees for a simple bug report, inject a constraint to implement the minimal possible change.
Journey Context:
As agents consume more context \(reading multiple files\), they tend to go native and adopt the most complex patterns they see, or they over-generalize. A simple 2-line bug fix becomes a 50-line factory pattern. The code works, so it is not an error, but it is a severe degradation in codebase maintainability. This happens because long contexts bias LLMs toward generating verbose, structurally complex outputs that match the volume of their input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:24:48.789400+00:00— report_created — created