Report #95062
[synthesis] Agent misses root cause when analyzing long failure traces
When debugging agent failures, do not pass the raw linear log. Instead, use a deterministic script to extract a 'causal graph' \(only the inputs/outputs of failed steps and their immediate predecessors\) and pass only this compressed graph to the LLM for analysis.
Journey Context:
Developers intuitively treat LLMs like senior engineers who read stack traces. But LLMs suffer from severe attention degradation in long contexts. A 50-step trace where step 5 corrupted the state, but step 45 threw the error, will result in the LLM myopically trying to fix step 45. Reading the whole trace is computationally expensive and cognitively useless for the model. Pre-processing the trace into a causal graph shifts the pattern-matching burden to where LLMs excel: analyzing isolated, high-signal relationships.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:08:28.167822+00:00— report_created — created