mlsanityData to 7 Oct 2026

SAFARI: Scaling Long Horizon Agentic Fault Attribution via Active Investigation

arXiv 2606.24626 ↗First posted 23 Jun 2026cs.AIcited by 1

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

As autonomous agents tackle increasingly complex multi-step, multi-agent tasks, their execution trajectories have scaled beyond the constraints of even the largest context windows. Current methods for effectively diagnosing agent failures load the full trajectory into an LLM's context window, which suffers from attention dilution and fails when agentic traces inevitably exceed context limits. To address this, we introduce SAFARI (Scaling long-horizon Agentic Fault AttRibution via active Investigation), a framework that replaces linear context loading with a tool-augmented diagnostic loop. By equipping LLMs with a specialized toolbox to read and search trajectory segments alongside a persistent Short-Term Memory (STM) for cross-turn reasoning, SAFARI effectively decouples diagnostic accuracy from architectural context limits. Our experiments demonstrate that SAFARI outperforms state-of-the-art results by 20% on the Who&When dataset within a 1M token budget, and by 19% on TRAIL GAIA subset on a 25K token budget. Most significantly, SAFARI maintains a 0.58 precision even when the target fault resides 5x beyond the model's native context window, a scenario where traditional evaluators fail entirely.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 14 of its 66 references that are in the map. First posted on arXiv 23 Jun 2026.

Builds on

14 of 66 references.

Closest ancestors · 7

Same direction, newest first

  1. 2025Where LLM Agents Fail and How They can Learn From Failures29 Sep
  2. 2025CORRECT: COndensed eRror RECognition via knowledge Transfer in multi-agent systems28 Sep
  3. 2025Who is Introducing the Failure? Automatically Attributing Failures of Multi-Agent Systems via Spectrum Analysis17 Sep
  4. 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
  5. 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr
  6. 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
  7. 2025Interactive Debugging and Steering of Multi-Agent AI Systems3 Mar

Other references · 7

  1. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
  2. 2024Magentic-One: A Generalist Multi-Agent System for Solving Complex Taskscited by 221
  3. 2024AssistantBench: Can Web Agents Solve Realistic and Time-Consuming Tasks?cited by 155
  4. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
  5. 2025Beyond a Million Tokens: Benchmarking and Enhancing Long-Term Memory in LLMscited by 52
  6. 2024Adaptive In-conversation Team Building for Language Model Agentscited by 38
  7. 2025RAFFLES: Reasoning-based Attribution of Faults for LLM Systemscited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
  2. 2026Root-Cause Attribution Is a Search Problem: Continual Search for Long-Horizon Agent Failures
  3. 2026From Anomalies to Failures: Constructing Causal Error Graphs for Agentic Trace Diagnosis
  4. 2026Towards Self-Improving Error Diagnosis in Multi-Agent Systems
  5. 2026When Agentic Executions Fail: Detecting and Localizing Runtime Faults from Telemetry
  6. 2026Agent Error Dataset: Scaling 50,000 Error--Diagnosis Pairs for Failure Analysis and Error-Aware Post-Training
  7. 2026AgentDebugX: An Open-Source Toolkit for Failure Observability, Attribution, and Recovery in LLM Agents
  8. 2025AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?