TRAIL: Trace Reasoning and Agentic Issue Localization
Darshan Deshpande, Varun Gangal, Hersh Mehta, Jitin Krishnan, Anand Kannappan, Rebecca Qian
TL;DR
TRAIL addresses the need for scalable, granular evaluation of agentic workflows by introducing a fine-grained error taxonomy and a grounded, open-source trace benchmark drawn from GAIA and SWE-Bench. The study systematically analyzes how modern long-context LLMs perform on trace debugging, revealing substantial limitations even for state-of-the-art models and highlighting the crucial role of reasoning and trace length. Through expert annotations and comprehensive analyses across reasoning, planning, and execution errors, TRAIL demonstrates both the coverage of real-world fault classes and the challenges of long-context trace interpretation. The work provides a foundation for scalable debugging and evaluation of complex agentic systems and suggests directions for improving trace observability and LLM-based evaluation methodologies.
Abstract
The increasing adoption of agentic workflows across diverse domains brings a critical need to scalably and systematically evaluate the complex traces these systems generate. Current evaluation methods depend on manual, domain-specific human analysis of lengthy workflow traces - an approach that does not scale with the growing complexity and volume of agentic outputs. Error analysis in these settings is further complicated by the interplay of external tool outputs and language model reasoning, making it more challenging than traditional software debugging. In this work, we (1) articulate the need for robust and dynamic evaluation methods for agentic workflow traces, (2) introduce a formal taxonomy of error types encountered in agentic systems, and (3) present a set of 148 large human-annotated traces (TRAIL) constructed using this taxonomy and grounded in established agentic benchmarks. To ensure ecological validity, we curate traces from both single and multi-agent systems, focusing on real-world applications such as software engineering and open-world information retrieval. Our evaluations reveal that modern long context LLMs perform poorly at trace debugging, with the best Gemini-2.5-pro model scoring a mere 11% on TRAIL. Our dataset and code are made publicly available to support and accelerate future research in scalable evaluation for agentic workflows.
