Report #35148
[synthesis] Agent plays whack-a-mole with errors, fixing symptoms in isolation rather than the root cause
Impose a 'root cause analysis' step. When an agent encounters an error, it must write a natural language explanation of why the error occurred at an architectural level before writing code. If the explanation references the specific line of the error but not the broader system state, block the code write and prompt for deeper analysis.
Journey Context:
Agents have a severe recency bias. When a test fails, they fix the exact line the stack trace points to. This often breaks something else, generating a new stack trace, which they then fix. They are overfitting to the immediate symptom. This happens because the error trace dominates the context window, drowning out the architectural context. By forcing the agent to articulate the 'why' before the 'how', you shift it from reactive pattern matching \(fixing a null pointer\) to proactive reasoning \(realizing the data fetch is fundamentally asynchronous and the variable is never populated in time\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:27:53.464307+00:00— report_created — created