Near-Miss: Latent Policy Failure Detection in Agentic Workflows
Organizations: IBM Research
Abstract
Agentic systems for business process automation often require compliance with policies governing conditional updates to the system state. Evaluation of policy adherence in LLM-based agentic workflows is typically performed by comparing the final system state against a predefined ground truth. While this approach detects explicit policy violations, it may overlook a more subtle class of issues in which agents bypass required policy checks, yet reach a correct outcome due to favorable circumstances. We refer to such cases as near-misses or latent failures. In this work, we introduce a novel metric for detecting latent policy failures in agent conversations traces. Building on the ToolGuard framework, which converts natural-language policies into executable guard code, our method analyzes agent trajectories to determine whether agent's tool-calling decisions where sufficiently informed. We evaluate our approach on the -verified Airlines benchmark across several contemporary open and proprietary LLMs acting as agents. Our results show that latent failures occur in 8-17% of trajectories involving mutating tool calls, even when the final outcome matches the expected ground-truth state. These findings reveal a blind spot in current evaluation methodologies and highlight the need for metrics that assess not only final outcomes but also the decision process leading to them.
Figures & tables
| agent | Claude-Sonnet4 | Kimi-K2.5 | ||||
| model | NMR | P | R | NMR | P | R |
| generated-code-based search | ||||||
| CG-1 | 0.17 | 0.41 | 1.00 | 0.20 | 0.35 | 1.00 |
| CG-2 | 0.07 | 1.00 | 1.00 | 0.07 | 1.00 | 1.00 |
| LLM-based search | ||||||
| S-1 | 0.05 | 1.00 | 0.71 | 0.07 | 1.00 | 1.00 |
| trajectory outcome does not meet the gold state | trajectory outcome meets the gold state | |||
| model (agent) | total failure ratio | policy violation ratio | trajectories with MTCs | near-miss rate (NMR) (out of trajectories with MTCs) |
| GPT5-chat | 0.480 | 0.120 | 98 | 0.085 (0.173) |
| Claude-Sonnet4 | 0.405 | 0.220 | 116 | 0.070 ( 0.121 ) |
| Gemini-3-pro | 0.229 | 0.205 | 85 | 0.060 (0.140) |
| GPT-oss-120b | 0.399 | 0.182 | 93 | 0.040 ( 0.086 ) |
| Qwen2.5-72b | 0.611 | 0.207 | 144* | 0.061 (0.084*) |
LLM Agent Evaluation
Large language model agent evaluation measures whether tool-using systems complete tasks reliably, safely, and efficiently.
See all 1,194 papers