LongRCA Bench: Root-Cause Localization in Long-Horizon Agent Trajectories
Organizations: Computer Network Information Center, Chinese Academy of Sciences · Chongqing University · Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences · Institute of Computing Technology, Chinese Academy of Sciences ·
Abstract
In long agent executions, an early error can persist through later actions and checks, while evidence needed to trace its origin is dispersed across the history. Short histories offer limited tests of recovering error origins across substantial subsequent execution. We introduce LongRCA Bench: 1,140 complete failed trajectories from five sources, all human-annotated for responsible roles and earliest decisive root-cause steps. Reference roots precede completion by a median of 48 recorded steps; 28.4% of trajectories contain over 100 subsequent steps. With DeepSeek-V4-Flash on the full benchmark, the strongest of five evaluated baselines achieves 13.2% exact root-step accuracy. We propose Root-Cause Trajectory Attribution (RCTA), a training-free method that organizes original candidate records and explicit handoff instructions for attribution. Segment summaries and a trajectory outline guide candidate retrieval; available handoff records supply upstream instruction context for the final instruction-execution comparison. With the same backbone and scoring protocol, RCTA reaches 24.1% exact root-step accuracy and 51.1% responsible-role accuracy. LongRCA-Mini provides 200 fixed trajectories for lower-cost comparative screening. Even with RCTA, fewer than one quarter of reference roots are recovered exactly.
Figures & tables
| Benchmark | Error Source | Diagnostic Targets | Trajectories Total (Reviewed) | Avg. length (steps) |
|---|---|---|---|---|
| RootSE ( Wang et al., 2026a ) | Natural | Step a | 102 (102) | 51.7 |
| HORIZON ( Wang et al., 2026b ) | Natural | Type | 1995 (40) | – |
| TraceElephant ( Chen et al., 2026 ) | Natural | Component, Step b | 220 (220) | – |
| Failure as a Process ( Zhao et al., 2026 ) | Natural | Steps c , Type | 1184 (1184) | 42.0 |
| Who&When ( Zhang et al., 2025 ) | Natural | Agent, Step a | 184 (184) | 22.2 |
| Who&When Pro ( Liu et al., 2026 ) | Synthetic | Agent, Step a , Type | 12,326 (100) | 7.5 |
| Method | Overall | Per-source Step Acc | ||||||
|---|---|---|---|---|---|---|---|---|
| Agent Acc | Step Acc | Step | SWE | TB2 | TP | Vita | WA | |
| All-at-once | 26.2 | 7.6 | 19.9 | 1.6 | 7.1 | 4.5 | 19.4 | 16.9 |
| Step-by-step | 22.2 | 5.3 | 16.9 | 0.8 | 4.8 | 3.5 | 12.0 | 11.3 |
| Binary search | 23.0 | 3.4 | 13.3 | 0.8 | 4.8 | 2.0 | 12.0 | 5.1 |
| ECHO | 27.5 | 13.2 | 24.7 | 7.8 | 21.4 | 8.9 | 22.2 | 26.0 |
| FALAT | 19.0 | 2.8 | 12.5 | 2.3 | 2.4 | 2.9 | 3.7 | 2.3 |
| Method | V4-Flash | V4-Pro | GPT-5.6 Sol | Kimi K3 | Qwen3.5 35B-A3B | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Agent | Step | Agent | Step | Agent | Step | Agent | Step | Agent | Step | |
| All-at-once | 42.5 | 7.5 | 50.0 | 11.5 | 53.0 | 17.0 | 54.5 | 11.0 | 51.0 | 3.5 |
| Step-by-step | 38.5 | 6.5 | 47.5 | 10.5 | 49.0 | 13.0 | 44.0 | 9.5 | 46.5 | 4.5 |
| Binary search | 40.5 | 7.5 | 45.5 | 10.0 | 51.5 | 15.5 | 42.0 | 12.0 | 40.0 | 5.0 |
| ECHO | 45.0 | 13.0 | 53.5 | 18.0 | 55.5 | 18.5 | 55.0 | 20.5 | 48.5 | 10.0 |
| FALAT | 35.5 | 2.5 | 48.0 | 14.5 | 52.0 | 14.0 | 52.0 | 18.0 | 41.0 | 11.0 |
| Setting | Agent Acc | Step Acc | Step | Cov. | |
|---|---|---|---|---|---|
| RCTA (all components) | 56.0 | 28.0 | 41.0 | 97.0 | – |
| w/o candidate-information package (A1) | 53.5 | 22.0 | 39.0 | 91.5 | .17 |
| w/o handoff evidence (A2) | 53.5 | 24.5 | 38.0 | 97.0 | .75 |
| w/o backward attribution (A3) | 51.0 | 25.0 | 41.0 | 97.5 | .75 |
| w/o validation (A4) | 54.0 | 26.5 | 39.5 | 89.0 | .75 |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Size | Quotas | Max. median | Max. p95 | Pass |
|---|---|---|---|---|
| 75 | 15/15/15/15/15 | 3.865 | 10.532 | No |
| 100 | 20/20/20/20/20 | 3.135 | 8.865 | No |
| 125 | 25/25/25/25/25 | 2.535 | 7.335 | No |
| 150 | 30/30/30/30/30 | 2.327 | 6.532 | No |
| 175 | 35/35/35/35/35 | 2.151 | 5.849 | No |
| 200 | 40/40/40/40/40 | 1.890 | 5.365 | Yes |
| Method | Agent Acc | Step Acc | Step |
|---|---|---|---|
| All-at-once | |||
| Step-by-step | |||
| Binary search | |||
| ECHO | |||
| FALAT | |||
| RCTA |
| Structural quantity | Full | Mini | Comparison |
|---|---|---|---|
| Trajectories | 1,140 | 200 | 17.54% retained |
| Recorded steps | 178,137 | 32,317 | 18.14% retained |
| History characters | 207,731,218 | 41,784,984 | 20.11% retained |
| Macro-5 mean trajectory length | 167.7 | 161.6 | steps |
| Macro-5 mean root-to-end distance | 104.9 | 104.4 | steps |
| Macro-5 mean normalized root position | 0.420 | 0.399 |
| Source | Steps | Input kchars | Root-to-end | Root position | KS |
|---|---|---|---|---|---|
| SWE | 287.0/263.0 | 450.2/432.9 | 215.4/218.5 | 0.250/0.181 | 0.177 |
| TB2 | 272.1/265.6 | 297.2/294.9 | 186.9/179.5 | 0.263/0.268 | 0.040 |
| TP | 165.9/167.8 | 163.3/154.1 | 65.9/67.8 | 0.597/0.569 | 0.134 |
| Vita | 54.6/50.8 | 23.2/26.9 | 29.7/26.0 | 0.445/0.473 | 0.134 |
| WA | 58.8/60.8 | 131.2/135.8 | 26.8/30.1 | 0.543/0.502 | 0.147 |
| Method | Metric | SWE | TB2 | TP | Vita | WA |
|---|---|---|---|---|---|---|
| All-at-once | Agent Acc | 47.7/42.5 | 61.9/62.5 | 7.2/7.5 | 82.4/85.0 | 41.8/45.0 |
| Step Acc | 1.6/2.5 | 7.1/5.0 | 4.5/5.0 | 19.4/20.0 | 16.9/10.0 | |
| Step | 4.7/7.5 | 21.4/20.0 | 15.2/10.0 | 41.7/42.5 | 35.6/27.5 | |
| Step-by-step | Agent Acc | 38.3/30.0 | 40.5/40.0 | 2.8/5.0 | 83.3/85.0 | 44.1/47.5 |
| Step Acc | 0.8/2.5 | 4.8/5.0 | 3.5/0.0 | 12.0/12.5 | 11.3/12.5 | |
| Step | 10.2/7.5 | 16.7/15.0 | 13.0/10.0 | 30.6/27.5 | 28.8/27.5 |
| Method | Agent Acc | Step Acc | Step |
|---|---|---|---|
| All-at-once | |||
| Step-by-step | |||
| Binary search | |||
| ECHO | |||
| FALAT | |||
| RCTA |
| Method | Agent Acc | Step Acc | Step | Joint Exact | Joint | MAE |
|---|---|---|---|---|---|---|
| DS-V4-Flash | ||||||
| All-at-once | 42.5 | 7.5 | 20.5 | 7.5 | 13.0 | 44.915 |
| Step-by-step | 38.5 | 6.5 | 18.0 | 6.5 | 10.0 | 41.340 |
| Binary search | 40.5 | 7.5 | 20.5 | 7.5 | 12.0 | 43.465 |
| ECHO | 45.0 | 13.0 | 28.0 | 13.0 | 18.0 | 40.930 |
| FALAT | 35.5 | 2.5 | 17.5 | 2.5 | 10.5 | 53.685 |
| Backbone | 95% CI | W/L | Holm-20 | Holm-40 | |
|---|---|---|---|---|---|
| DS-V4-Flash | 39/11 | 0.00072 | 0.00217 | ||
| DS-V4-Pro | 36/16 | 0.00779 | 0.06007 | ||
| GPT-5.6 Sol | 40/17 | 0.00640 | 0.04162 | ||
| Kimi K3 | 31/9 | 0.00322 | 0.01155 |
| Excluded benchmark | Mean gain | 95% CI |
|---|---|---|
| SWE-bench Pro | ||
| Terminal-Bench 2 | ||
| TravelPlanner | ||
| VitaBench | ||
| WebArena Verified |
| Field | Meaning |
|---|---|
| question_ID | Source-prefixed trajectory identifier |
| history | Ordered trajectory records containing step , name , role , and content ; includes the task instruction |
| mistake_agent | Reference responsible role, scored independently of the root-cause step |
| mistake_step | Reference 0-based root-cause step, scored independently of the responsible role |
| mistake_reason | Trajectory-grounded annotation rationale, withheld during prediction and not scored |
| Source | Task domain | Agent organization | |
|---|---|---|---|
| SWE-bench Pro | 128 | Software repair | Diagnosis–execution–verification team |
| Terminal Bench 2 | 42 | Terminal tasks | Diagnosis–execution–verification team |
| TravelPlanner | 685 | Travel planning | Magentic-One group chat |
| VitaBench | 108 | Service-oriented tool use | Action expert–computer terminal workflow |
| WebArena Verified | 177 | Web interaction | Planner–web-surfer–critic workflow |
| Total | 1,140 | 5 task domains | |
| Source | Workflow | M2.5 | K2.5 | Q3.5+ | |
| SWE-bench Pro | 128 | Custom DiagnostAgent – ActionAgent – JudgeAgent team | 128 | – | – |
| Terminal-Bench 2 | 42 | Custom DiagnostAgent – ActionAgent – JudgeAgent team | 42 | – | – |
| TravelPlanner | 685 | AutoGen MagenticOneGroupChat with specialist roles | 265 | 260 | 160 |
| VitaBench | 108 | Action_Expert – Computer_terminal workflow | 69 | 16 | 23 |
| WebArena Verified | 177 | AutoGen Planner – WebSurfer – Critic controller | 177 | – | – |
| Total | 1,140 | 681 | 276 | 183 |
| Method | SWE-bench Pro | Terminal Bench 2 | TravelPlanner | VitaBench | WebArena Verified |
|---|---|---|---|---|---|
| All-at-once | 1.6 | 7.1 | 4.5 | 19.4 | 16.9 |
| Step-by-step | 0.8 | 4.8 | 3.5 | 12.0 | 11.3 |
| Binary search | 0.8 | 4.8 | 2.0 | 12.0 | 5.1 |
| ECHO | 7.8 | 21.4 | 8.9 | 22.2 | 26.0 |
| FALAT | 2.3 | 2.4 | 2.9 | 3.7 | 2.3 |
| RCTA | 38.3 | 26.2 | 18.8 | 25.0 | 33.3 |
| Method | 10–63 | 64–129 | 130–172 | 173–220 | 221–728 |
|---|---|---|---|---|---|
| All-at-once | 21.4 | 6.2 | 2.8 | 0.9 | 1.9 |
| Step-by-step | 13.4 | 3.3 | 2.8 | 3.3 | 0.5 |
| Binary search | 7.2 | 3.8 | 0.5 | 2.8 | 1.4 |
| ECHO | 27.9 | 11.4 | 7.1 | 7.9 | 6.1 |
| FALAT | 4.1 | 3.8 | 0.0 | 3.3 | 2.4 |
| RCTA | 34.8 | 18.5 | 21.2 | 18.6 | 23.6 |
| Source | Group | Actual range | All-at- once | Step-by- step | Binary search | ECHO | FALAT | RCTA | |
|---|---|---|---|---|---|---|---|---|---|
| Root-to-end distance (steps) | |||||||||
| SWE | 1 | 13–137 | 43 | 0.0 / 7.0 | 0.0 / 7.0 | 0.0 / 4.7 | 9.3 / 18.6 | 2.3 / 2.3 | 53.5 / 62.8 |
| 2 | 138–234 | 42 | 0.0 / 2.4 | 2.4 / 11.9 | 0.0 / 2.4 | 7.1 / 19.0 | 2.4 / 9.5 | 31.0 / 38.1 | |
| 3 | 235–605 | 43 | 4.7 / 4.7 | 0.0 / 11.6 | 2.3 / 4.7 | 7.0 / 16.3 | 2.3 / 20.9 | 30.2 / 39.5 | |
| TB2 | 1 | 26–491 | 42 | 7.1 / 21.4 | 4.8 / 16.7 | 4.8 / 23.8 | 21.4 / 38.1 | 2.4 / 16.7 | 26.2 / 45.2 |
| TP | 1 | 0–16 | 227 | 4.8 / 10.1 | 4.0 / 11.9 | 0.0 / 2.2 | 7.9 / 13.2 | 1.8 / 9.3 | 16.3 / 31.7 |
| Stage | Input | Required output | Validation |
|---|---|---|---|
| Local | Segment, task, and overlap | Purpose and candidate steps with evidence IDs | All IDs occur in the segment |
| Outline | Segment summaries and verifier-signal summary | Contiguous subgoal phases with step IDs | All IDs occur in the trajectory |
| Attribution | Outline, summaries, candidate text, and handoffs | Independent role and root fields, evidence IDs, and any cited handoff | Role and IDs occur in the trajectory; cited text is grounded |
| Role relation | Pairs | Role | Step | Median [Q1, Q3] | 0 | 1–5 | 6–20 | |
|---|---|---|---|---|---|---|---|---|
| Full-scale: 294 trajectories | ||||||||
| All pairs | 310 | 66.1 | 50.3 | 5 [0, 46] | 40.3 | 10.0 | 11.6 | 38.1 |
| Same role | 205 | 100.0 | 67.3 | 0 [0, 15] | 59.0 | 8.3 | 8.3 | 24.4 |
| Different role | 105 | 0.0 | 17.1 | 42 [13, 78] | 3.8 | 13.3 | 18.1 | 64.8 |
| Calibration: 100 trajectories | ||||||||
| All pairs | 296 | 53.7 | 37.8 | 17.5 [1, 54.25] | 24.7 | 13.2 | 15.5 | 46.6 |
| Method / comparison | Step Acc | Step |
|---|---|---|
| All-at-once | 7.8 8.3 [7.1, 9.5] | 21.1 22.1 [19.7, 24.5] |
| Step-by-step | 6.1 6.5 [5.4, 7.5] | 15.6 17.3 [15.3, 19.4] |
| Binary search | 3.7 3.9 [3.1, 4.8] | 15.0 15.9 [13.9, 18.0] |
| ECHO | 17.0 17.6 [15.6, 19.4] | 27.9 31.1 [28.6, 33.7] |
| FALAT | 1.0 2.2 [1.4, 3.1] | 13.6 14.4 [12.2, 16.7] |
| RCTA | 21.8 23.5 [21.1, 25.9] | 35.4 36.2 [33.7, 38.8] |
| Method | Agent Acc | Step Acc | Step | Root MAE |
|---|---|---|---|---|
| All-at-once | 26.2% | 7.6% | 19.9% | 55.9 |
| Step-by-step | 22.2% | 5.3% | 16.9% | 52.3 |
| Binary search | 23.0% | 3.4% | 13.3% | 61.7 |
| ECHO | 27.5% | 13.2% | 24.7% | 50.4 |
| FALAT | 19.0% | 2.8% | 12.5% | 66.6 |
| RCTA (ours) | 51.1% | 24.1% | 37.4% | 38.6 |
| Source | Reference roles (counts) | Majority | RCTA | |
|---|---|---|---|---|
| SWE | 5 | DiagnostAgent (79), ActionAgent (41), JudgeAgent (4), human (3), Computer_terminal (1) | 61.7 | 63.3 |
| TB2 | 5 | DiagnostAgent (20), ActionAgent (18), JudgeAgent (2), Computer_terminal (1), human (1) | 47.6 | 57.1 |
| TP | 6 [3–7] | stay_agent (174), manager_agent (162), Task_Planner (103), transport_agent (84), verifier_agent (67), food_attr_agent (56), Computer_terminal (39) | 25.4 | 41.2 |
| Vita | 2 | Action_Expert (89), Computer_terminal (19) | 82.4 | 82.4 |
| WA | 4 | Action_Expert (97), Task_Planner (43), Verification_Expert (29), Computer_terminal (8) | 54.8 | 60.5 |
| Overall | – | – | 40.3 | 51.1 |
| Setting | Agent Acc | Step Acc | Step | MAE | Cov. | [95% CI] | |
|---|---|---|---|---|---|---|---|
| RCTA (all components) | 56.0 | 28.0 | 41.0 | 28.3 | 97.0 | – | – |
| w/o candidate-information package (A1) | 53.5 | 22.0 | 39.0 | 30.5 | 91.5 | [ , ] | .17 |
| w/o handoff evidence (A2) | 53.5 | 24.5 | 38.0 | 29.7 | 97.0 | [ , ] | .75 |
| w/o backward attribution (A3) | 51.0 | 25.0 | 41.0 | 31.4 | 97.5 | [ , ] | .75 |
| w/o validation (A4) | 54.0 | 26.5 | 39.5 | 29.2 | 89.0 | [ , ] | .75 |
Root Cause Analysis
Root cause analysis identifies the initiating faults behind observed failures by tracing symptoms through causal and system dependencies.
See all 80 papers