SAFARI: Scaling Long Horizon Agentic Fault Attribution via Active Investigation

Chenyang Zhu, Jiayu Yao, Kushal Chawla, Youbing Yin, Nathan Wolfe +8 more
6/23/2026
cs.AI

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhu2026safari,
  title  = {SAFARI: Scaling Long Horizon Agentic Fault Attribution via Active Investigation},
  author = {Chenyang Zhu and Jiayu Yao and Kushal Chawla and Youbing Yin and Nathan Wolfe and Pengshan Cai and Jingyu Wu and Spencer Hong and Sangwoo Cho and Shi-Xiong Zhang and Daben Liu and Sambit Sahu and Erin Babinsky},
  year   = {2026},
  eprint = {2606.24626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.24626v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.24626.svg)](https://codeofpaper.com/paper/2606.24626)

Discussion