Willful Disobedience: Automatically Detecting Failures in Agentic Traces
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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-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.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 24 of its 58 references that are in the map. First posted on arXiv 25 Mar 2026.
Builds on
24 of 58 references.
Closest ancestors · 3
Same direction, newest first
- 2026AgentRx: Diagnosing AI Agent Failures from Execution Trajectories2 Feb
- 2025TRAIL: Trace Reasoning and Agentic Issue Localization13 May
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
Other references · 21
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,282
- 2023GAIA: a benchmark for General AI Assistantscited by 1,128
- 2023Large Language Models are not Fair Evaluatorscited by 1,085
9 more
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 1,006
- 2023Teaching Large Language Models to Self-Debugcited by 988
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
- 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 627
- 2024Humans or LLMs as the Judge? A Study on Judgement Biasescited by 323
- 2025Agentic AI: A Comprehensive Survey of Architectures, Applications, and Future Directionscited by 48
- 2024SPML: A DSL for Defending Language Models Against Prompt Attackscited by 34
- 2024Specifications: The missing link to making the development of LLM systems an engineering disciplinecited by 17
- 2025PromptPex: Automatic Test Generation for Language Model Promptscited by 9
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agentscited by 1
- 2026Grounded Checklist Partial Credit for Agent Skill Trajectoriescited by 1
- 2026Explaining AI Agents Through Execution Tracescited by 0
- 2026Symbolic Temporal Supervision of LLM Agents Using Contractscited by 0
- 2026Runtime Authorization Consistency Checking for MCP-based Agentic Workflowscited by 0
- 2026Agents as Software: A Programming Languages Agenda for Agent Reliabilitycited by 0
- 2026Agents as Software: A Programming Languages Agenda for Agent Reliability26 Sep 2026
- 2026Runtime Authorization Consistency Checking for MCP-based Agentic Workflows20 Sep 2026
- 2026Symbolic Temporal Supervision of LLM Agents Using Contracts16 Sep 2026
- 2026Explaining AI Agents Through Execution Traces5 Sep 2026
- 2026Grounded Checklist Partial Credit for Agent Skill Trajectories26 Aug 2026
- 2026Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents4 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026Near-Miss: Latent Policy Failure Detection in Agentic Workflows
- 2026AgentEval: DAG-Structured Step-Level Evaluation for Agentic Workflows with Error Propagation Tracking
- 2026ABTest: Behavior-Driven Testing for AI Coding Agents
- 2026TraceDance: An Automated System for Building Agent Behavior Benchmarks from Real-World Agent Deployment Traces
- 2026AgentAudit: An Open, Extensible Framework for Full-Lifecycle Trust Evaluation of AI Agents
- 2026TraceSIR: A Multi-Agent Framework for Structured Analysis and Reporting of Agentic Execution Traces
- 2025AgentCompass: Towards Reliable Evaluation of Agentic Workflows in Production
- 2026Compositional Policy Violations: When Step-Level Compliance Fails In Agentic AI Workflows