TL;DR
LLM-based multi-agent systems offer incredible flexibility but are notoriously non-deterministic and prone to silent, semantic failures. This paper introduces AgentOps (Agent System Operations), a comprehensive framework designed to monitor, detect, diagnose, and resolve anomalies across the entire agent lifecycle. By shifting from reactive post-hoc fixes to proactive, in-execution interventions, AgentOps dramatically improves both the functional correctness and operational safety of AI agents.
What Problem Does This Paper Address?
As Large Language Model (LLM) agents transition from research novelties to production systems (handling customer support, code generation, and workflow automation), maintaining their reliability has become a major headache.
Traditional IT operations framework (DevOps and AIOps) rely on system-level metrics, logs, and distributed tracing. However, these tools are blind to the unique failure modes of AI agents. An agent can execute a series of tool calls that return perfect 200 OK HTTP status codes, yet completely fail the user's intent due to a reasoning hallucination or an ordering mistake—such as canceling an existing medical appointment before successfully confirming a new slot. This paper addresses the critical lack of standardized operational practices tailored to the stochastic, multi-step nature of agent systems.
Methods
The authors formalize AgentOps, a four-stage lifecycle framework modeled after traditional systems engineering but re-imagined for AI agents:
- Taxonomy of Anomalies: The paper categorizes failures along two dimensions: where they originate (Intra-agent vs. Inter-agent) and when they occur (Pre-execution, Execution, and Post-execution).

- The Four-Stage AgentOps Lifecycle:
- Monitoring: Extends traditional telemetry to capture agent-specific data, including model-level signals (token logits, attention maps) and state checkpoints (memory snapshots and environment states).
- Anomaly Detection: Employs white-box, grey-box, and black-box methods to identify reasoning, action, memory, or security deviations during runtime.
- Root Cause Localization (Failure Attribution): Uses trajectory replay, causal graphs, or LLM-as-a-judge prompting to trace downstream errors back to the exact initiating faulty step.
- Resolution: Implements a multi-tiered mitigation strategy consisting of pre-execution prevention (task re-specification), in-execution correction (replanning), and post-execution recovery (checkpoint-based rollback and re-execution).
The overall workflow of how these agent systems operate across phases is illustrated below:

Datasets
The paper provides a comprehensive review of existing failure attribution benchmarks, including Who&When, MASFT, TRAIL, AgentFail, and Aegis. To evaluate the distinct value of each phase of the AgentOps framework, the authors also construct a controlled benchmark containing 32 tasks (generating 96 paired samples) across configuration management, order processing, incident recovery, and data publication.
Key Insights and Ideas
- System Health $\neq$ Semantic Success: Trajectory-level and semantic failures cannot be caught by traditional infrastructure monitoring. Observability tools must look inside the LLM's generation process (e.g., uncertainty estimation via logits) rather than just tracking system uptime.
- The Irreversibility Trap: Post-execution repair can fix broken database states, but it cannot undo real-world side effects like an unprompted credit card charge or an accidental email blast. This makes early, in-execution anomaly detection a hard safety requirement for production agents.
- Hybrid Localization is King: While LLMs are excellent at semantic reasoning, they suffer from "lost-in-the-middle" context issues on long execution traces. The authors note that the most promising diagnostic direction is a two-stage approach: using non-LLM statistical models to narrow down suspicious trajectory regions, followed by an LLM judge for fine-grained attribution.
Key Results
Through a cumulative evaluation on their custom benchmark using deepseek-v4-flash, the authors demonstrated the compounding value of the full AgentOps pipeline:
- Naive Baseline: An unmonitored agent achieved a low 25.0% composite pass rate.
- + Resolution (Post-hoc repair): Improved functional correctness but left operational safety at 50.0% because it could not undo irreversible tool actions.
- + Anomaly Detection: Intercepting errors during execution boosted the composite pass rate to 85.4% and safety to 87.5%, while reducing the average execution length by 3.64 steps by cutting off failing trajectories early.
- + Root Cause Localization: Providing the resolver agent with the exact causal step maximized performance, reaching an 87.5% composite pass rate and 100% operational safety.
Limitations and Future Work
- Taxonomy Bias: Current datasets and literature focus overwhelmingly on intra-agent reasoning errors (47.2%–64.3% of analyzed benchmarks), leaving multi-agent orchestration and communication anomalies severely under-studied.
- Lack of Unified Detectors: Most existing anomaly detection methods are category-specific (e.g., focusing solely on RAG hallucinations). Future research needs to build unified, generalizable detection frameworks that map diverse anomaly patterns into a shared representation space.
- Intrinsic Self-Correction: Current agents rely too heavily on explicit environment feedback to realize they have failed. Developing rapid, self-driven error detection mechanisms is essential for long-horizon autonomous tasks.
Summary updated