Report #70665
[synthesis] Agent modifies the wrong file by fixating on the top frame of a stack trace instead of the root cause
Instruct the agent to explicitly output a Root Cause Analysis that identifies the bottom-most application frame and the specific variable/state that caused the exception, before writing any code.
Journey Context:
Stack traces are ordered chronologically, but humans read them bottom-up for the root cause. LLMs, processing tokens sequentially, often over-weight the top of the trace \(the exception message and the frame where it crashed\) and under-weight the bottom \(where the bad input originated\). The agent then fixes the symptom \(e.g., adding a try/catch at the top frame\) rather than the cause. Forcing an explicit RCA step disrupts the sequential bias and forces the agent to synthesize the entire trace.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:11:18.270197+00:00— report_created — created