cs.SEMar 25, 2026

Willful Disobedience: Automatically Detecting Failures in Agentic Traces

Authors: Reshabh K Sharma, Shraddha Barke, Benjamin Zorn

Organizations: University of Washington Seattle, Washington, USA · Microsoft Research Redmond, Washington, USA

Abstract

AI agents are increasingly embedded in real software systems, where they execute multi-step workflows through multi-turn dialogue, tool invocations, and intermediate decisions. These long execution histories, called agentic traces, make validation difficult. Outcome-only benchmarks can miss critical procedural failures, such as incorrect workflow routing, unsafe tool usage, or violations of prompt-specified rules. This paper presents AgentPex, an AI-powered tool designed to systematically evaluate agentic traces. AgentPex extracts behavioral rules from agent prompts and system instructions, then uses these specifications to automatically evaluate traces for compliance. We evaluate AgentPex on 424 traces from τ2τ^2-bench across models in telecom, retail, and airline customer service. Our results show that AgentPex distinguishes agent behavior across models and surfaces specification violations that are not captured by outcome-only scoring. It also provides fine-grained analysis by domain and metric, enabling developers to understand agent strengths and weaknesses at scale. The source code of AgentPex is available at https://github.com/microsoft/agentpex.

Figures & tables

Explore similar work

CardsList
  1. AgentRx: Diagnosing AI Agent Failures from Execution Trajectories

    Feb 2, 2026Shraddha Barke, Arnav Goyal, Alind Khare +3Agent Failure AnalysisAI Agent Reliability

  2. AgentEval: DAG-Structured Step-Level Evaluation for Agentic Workflows with Error Propagation Tracking

    Apr 26, 2026Dongxin Guo, Jikun Wu, Siu Ming YiuAgent Failure AnalysisAI Agent Evaluation