AI Agent Assurance for Your Agent Deployments
Agent Assurance Tests How Your Agent Actually Behaves across Workflows, Tools, and Actions to Catch Failures and Vulnerabilities.
npm install -g @testmuai/rook@latest
What Is AgentOps? Operating AI Agents From Build to Production
AgentOps is how teams run AI agents that call tools: testing, tracing, cost, governance. See how it differs from LLMOps and MLOps, with metrics and practices.
OVERVIEW
AgentOps starts from a fact about deployed agents: many teams do not train the model underneath. In Measuring Agents in Production (UC Berkeley and other institutions, arXiv v3, February 2026), 14 of the 20 case studies, 70%, "rely on prompting off-the-shelf models instead of weight tuning." The same study surveyed 306 practitioners across 26 domains, and for the 31 deployed systems whose evaluation methods were reported (more than one allowed), LLM-as-a-judge (52%) was more common than rule-based checks (42%).
For agents like those, the parts that change are the prompt, the hosted model version, the tools and the data, and none of those changes runs through a training pipeline. The same paper names reliability, meaning consistent correct behavior over time, as the top development challenge. AgentOps is the practice that keeps those changes and that reliability under control once an agent can act.
A worked OpenTelemetry trace later on shows the stakes: a tool call fails, the root span of the run still reads UNSET, and the agent's final reply says the change went through.
Overview
AgentOps, short for agent operations, is the set of practices for running autonomous AI agents across their lifecycle. It covers testing an agent version before release, tracing its tool calls in production, capping its cost, and governing what it may do. It extends DevOps, MLOps and LLMOps to systems that choose their own steps and act through tools.
What Does AgentOps Cover?
- Testing before release: Pre-release testing runs a new agent version against scenarios before promotion and checks the tools it called and the records it changed, not only its reply. Agent Assurance from TestMu AI covers this step for agents that edit files, call APIs and invoke tools.
- Tracing in production: Production tracing records each agent run as spans for model calls and tool calls, with token counts and error codes, so a team can find which step of which version failed. OpenTelemetry's GenAI conventions name those spans and attributes.
- Cost control: Cost control caps the steps, model calls and spend one request can trigger, since a single request can fan out into several model calls once retries, sub-agents and checks run. Turn limits in agent SDKs end a run that keeps looping.
- Change control: Change control treats any edit to the prompt, model version, tool schema or data source as a new agent release.
- Governance and oversight: Governance sets which actions need human approval, who can deactivate an agent, and how incidents are recorded and turned into tests. Those duties line up with the MANAGE subcategories of the NIST AI Risk Management Framework.
How Is AgentOps Different From LLMOps and MLOps?
- MLOps: MLOps manages the lifecycle of a trained machine learning model, including data pipelines, retraining and accuracy drift as new data arrives. Its release unit is a model artifact built from the team's own training data.
- LLMOps: LLMOps is a subset of MLOps for large language models. Its work centers on prompts, hallucination control and the cost of API calls to a model the team usually did not train.
- AgentOps: AgentOps adds the agent loop on top, where an LLM picks tools, calls APIs and writes records over many steps. Its release unit is the whole agent configuration, and its failures appear as wrong actions as well as wrong text.
What Is AgentOps?
AgentOps (also written agent ops) is the discipline of building, releasing, running and improving AI agents that take actions through tools. It spans the agent's whole lifecycle: tests before each release, telemetry in production, limits on cost and steps, and rules for which actions the agent may take without a person. The same practice covers one agent with tools and agentic systems that hand work between agents, the two scopes compared in AI agents vs agentic AI.
Published definitions lean different ways. IBM's Think explainer "What is AgentOps?" describes an emerging set of practices for the lifecycle management of autonomous agents, borrowing from DevOps and MLOps.
Red Hat's topic page (April 2026) calls it a framework of tools for monitoring the "brain" of an AI as it decides in real time. Databricks, announcing its Big Book of AgentOps on 2 September 2026, calls it "the operating discipline for building, deploying and improving AI agents in production".
Research uses the term for observing and operating agent systems. Dong, Lu and Zhu at CSIRO's Data61 built a taxonomy of AgentOps artifacts that should be traced across an agent's lifecycle, from a systematic mapping study of existing AgentOps tools (arXiv, November 2024). A 2026 paper led by Zexin Wang, Agent System Operations, proposes an operational framework for agent systems and observes that "current research on the operations of agent systems is sparse."
The name also belongs to a product: AgentOps is an MIT-licensed Python SDK for agent monitoring and LLM cost tracking, published on GitHub as AgentOps-AI/agentops. This hub is about the practice; an SDK of that kind covers its telemetry slice.
Why Do AI Agents Need Their Own Operations Practice?
An agent runs a loop: it takes a goal, asks a model for the next move, calls a tool, looks at what came back and chooses again. The code around that loop, the agent harness, decides which tools exist, how results return to the model and when the run stops. Because the model picks the path at run time, the CSIRO authors flag safety concerns arising from agents' "autonomous and non-deterministic behavior."
Anthropic's Building effective agents guide ties that autonomy to higher costs and a risk of compounding errors, and recommends extensive testing in sandboxed environments together with guardrails. The OWASP Top 10 for Agentic Applications 2026, published on 9 December 2025, includes ASI08 Cascading Failures among its entries.
Agent operations differ from running a model behind an API in these ways:
- The path is chosen at run time - the same request can produce a different sequence of tool calls, so one passing run says little about the next one.
- Actions have effects - a wrong tool call writes a record, sends a message or spends money, so the error lands in a system of record rather than in text alone.
- The reply can disagree with the effect - the final message is generated text and can report a change that a tool refused, as the trace example in this hub shows.
- Behavior changes without a deploy - a provider can retire the model version an agent calls, and an API or data source can change under one of its tools.
What Are the Functions of AgentOps?
IBM lists five functions of AgentOps: development, testing, monitoring, feedback and governance. Red Hat and Databricks both add cost, which agent loops make harder to predict than single model calls. Development belongs to the build side of the lifecycle; the subsections below cover the rest, with IBM's feedback function folded into testing and governance.
Evaluation and Testing of Agent Versions Before Release
IBM's testing function happens before release into production, when developers evaluate how the agent performs in a simulated sandbox. For an agent, the test target is behavior: which tool it chose, with which arguments, what that tool changed and whether the run stopped when it should have.
- Tool selection - the agent called the tool the task needs and nothing outside its allowed set.
- Arguments - the values passed stay inside the limits the tool and the policy set, such as the 20% discount cap in the trace example.
- Effects - the record, file or message the tool produced exists and matches the request.
- Stopping - the run ends within its turn budget and hands over to a person when policy says so.
IBM's feedback function closes the loop: users and developers need a way to register when the agent made a mistake, plus a mechanism to do better on the next run. Each registered mistake is a candidate test case, and designing such cases is covered in AI agent testing.
Deployment and Change Control for Agent Versions
An agent release is a bundle: the system prompt, the model ID, tool schemas and descriptions, retrieval sources, permissions and limits. Version them together so a trace or an incident points to one release, which the trace example does by putting the release number on the telemetry resource as service.version.
Some changes arrive with no commit at all. Anthropic's Model deprecations page lists claude-sonnet-4-5-20250929 as deprecated on 30 September 2026 and retired on 30 November 2026, with claude-sonnet-5-5 as the replacement.
Requests to a retired model fail, and the Messages API returns a 404 not_found_error. An agent pinned to that ID on the Claude API stopped working on the retirement date unless someone shipped a new release.
Observability and Tracing for Deployed Agents
Once an agent is deployed, IBM's monitoring function has developers read their instrumentation at the level of the session, the trace or the span, reviewing agent actions, API calls and overall latency.
AI agent monitoring is the alerting side of that work: signals, thresholds and drift alerts on live traffic, and the software that collects them.
Agent observability is the ability to explain a past run from its telemetry, including why the agent chose the tool it chose.
AI agent tracing is the data model under both: one trace per run and one span per model call or tool call, named by OpenTelemetry's GenAI conventions.
Methods for post-deployment monitoring are still unsettled for AI systems in general. NIST's AI 800-4 report on challenges to monitoring deployed AI systems (6 March 2026) says it "quotes practitioners' repeated calls for guidance on post-deployment AI system monitoring methods."
Cost Control for Agent Loops
Red Hat warns that the think-act-observe loop "can quickly (and expensively) spiral" and recommends budget caps and safety nets. Databricks notes that a single user request can trigger several model calls once sub-agents, retries and guardrail checks are counted, and tells teams to "attribute usage, set limits and establish clear accountability for spend." That fan-out is built into deep agents, which hand side tasks to sub-agents with their own context windows.
Turn limits stop a loop in code. In the OpenAI Agents SDK, exceeding the max_turns you pass raises MaxTurnsExceeded, which the Running agents documentation explains as the agent failing to finish within the given number of agent-loop turns (LLM calls). A max_turns error handler can return a controlled final output instead, and max_turns=None disables the limit.
Count spend per run and per release. Each release in the trace example made 3 model calls and used 1,533 input and 101 output tokens (stub values). Per-release sums of such counts are the baseline a budget alert compares against.
Governance and Human Oversight of Agents
IBM frames governance as the guardrails and policies that constrain agent behavior as generative AI faces regulation such as the EU AI Act. Red Hat describes human approval checkpoints so that an agent cannot take high-stakes actions, such as deleting files or spending money, until a person signs off. The approval pattern is covered in depth under human in the loop.
The NIST AI RMF Playbook's MANAGE function gives the operational duties names. MANAGE 2.4 asks for mechanisms, and people with assigned responsibility, to supersede, disengage or deactivate a system whose results drift away from what it was meant to do.
MANAGE 4.1 asks for post-deployment monitoring plans that cover user input, appeal and override, decommissioning, incident response, recovery and change management. MANAGE 4.3 asks that incidents and errors be communicated to the relevant AI actors, affected communities included, and that the processes for tracking and recovering from them be followed and documented.
Records of who approved which agent action, and audit trails across a fleet, belong to agentic AI governance. An AI governance maturity assessment credits those approval and audit practices only when dated records back them.
AgentOps vs MLOps and LLMOps: What Changes for Agents?
Red Hat places the three in one family. MLOps keeps a model's accuracy from drifting as new data arrives, and LLMOps, a subset of MLOps, manages prompts, reduces hallucinations and lowers the cost of API calls. It adds a dependency: "To run a reliable business product with AgentOps, you must already have LLMOps and DevOps in place."
The split between the first two is covered in the guide to LLMOps; this table follows Red Hat's split and adds the agent column.
| Attribute | MLOps | LLMOps | AgentOps |
|---|---|---|---|
| What the team operates | A model trained on the team's own data, plus its feature and training pipelines | Prompts and a hosted or tuned language model, called through an API | An agent configuration (prompt, model version, tools, permissions, limits) running as a loop |
| Changes that arrive without a commit | New production data that shifts the input distribution | Provider model updates and retirements | Model retirements, plus changes in the tools, APIs and data the agent acts on |
| Failure the team watches for | Accuracy drift on new data | Hallucinated or off-policy text and rising API cost | Wrong or refused actions, runaway loops, and replies that disagree with what the tools did |
| What a test checks | Predictions against labeled data | Generated text, and tool choices where the app makes them, against references, rules or a model judge | The records and systems the tool calls changed, as well as the calls and the reply |
| What holds a release | A model metric below its accepted threshold | Eval scores below target after a prompt or model change | A failed scenario, or a reply that contradicts the effect, for the new agent version |
Where Does AgentOps Fit in an Agent's Lifecycle?
The agent development lifecycle (ADLC) is the full loop from planning an agent to retiring it, with a gate at each hand-off. AgentOps does most of its work after release, while the agent is operating. It feeds the change gate: each production finding becomes a test case, and each change becomes a release that has to pass again.
The Agent System Operations paper splits the operating work into four stages: monitoring, anomaly detection, root cause localization and resolution. An earlier 2025 paper by the same lead authors (arXiv 2508.02121) sorts anomalies into intra-agent ones, inside a single agent, and inter-agent ones, between agents. Each stage maps to something a trace can supply:
- Monitoring - root and child span status, and tool error counts per release.
- Anomaly detection - a failed tool span under a root that reads UNSET, or a reply that contradicts the trace.
- Root cause localization - the
error.typeon the child span plus the release recorded on the resource. - Resolution - roll back to the previous release or fix the prompt, then add the failing case to the test suite.
What Does a Failed Tool Call Look Like in an AgentOps Trace?
Running a script on 4 December 2026 (Python 3.14.6, opentelemetry-sdk 1.45.3) emits OpenTelemetry spans for two releases of a scripted subscription-desk agent. Everything below the span API is a stub: the model, the tools, the account data and the token counts are values written into the script, and it makes no model, API or network call. Release 1.5.0 differs from 1.4.0 only by a prompt edit that makes the model ask for a 30% discount on account S-2207, where the discount tool allows at most 20%.
Span and attribute names follow the OpenTelemetry GenAI semantic conventions at commit b0dc200c298a of 4 December 2026, where every GenAI attribute used is still marked Development. The execute-tool span document says the span name SHOULD be the operation followed by the tool name, its kind SHOULD be INTERNAL, and error.type SHOULD carry the error code a tool's result provides.
The root is an invoke_agent span, which the GenAI agent spans document uses when an LLM drives the control flow through tool calls. Each model call is a chat span of kind CLIENT, and each step of tool calling becomes an execute_tool span. This excerpt is the stub billing tool and the function that wraps every tool call in a span:
def apply_discount(account_id, percent):
# Stub billing tool: refuses more than the plan limit.
if percent > ACCOUNT["max_discount"]:
return {"error": "discount_exceeds_limit"}
return {"discount_id": "D-31", "percent": percent}
def tool_span(tracer, tool, call_id, fn, *args):
name = "execute_tool " + tool
with tracer.start_as_current_span(
name, kind=SpanKind.INTERNAL) as s:
s.set_attribute("gen_ai.operation.name",
"execute_tool")
s.set_attribute("gen_ai.tool.name", tool)
s.set_attribute("gen_ai.tool.call.id", call_id)
s.set_attribute("gen_ai.tool.type", "function")
result = fn(*args)
if "error" in result:
# The tool returned an error result, not
# an exception: error.type takes the code
# from the result.
s.set_attribute("error.type", result["error"])
s.set_status(Status(StatusCode.ERROR))
return resultThe script prints a trimmed span tree and an operations record per release. Its output, verbatim:
python 3.14.6, opentelemetry-sdk 1.45.3
semconv-genai commit b0dc200c298a
release 1.4.0 trace 9301a4d4
invoke_agent subscription-desk UNSET
chat stub-model-1 UNSET
execute_tool lookup_account UNSET
chat stub-model-1 UNSET
execute_tool apply_discount UNSET
chat stub-model-1 UNSET
ops record
model calls 3
tool calls 2 (failed 0)
tokens in/out 1533 / 101
root span status UNSET
final reply 20% discount applied to S-2207.
reply vs trace consistent
gate PROMOTE
release 1.5.0 trace 45c0f2a8
invoke_agent subscription-desk UNSET
chat stub-model-1 UNSET
execute_tool lookup_account UNSET
chat stub-model-1 UNSET
execute_tool apply_discount ERROR
error.type=discount_exceeds_limit
chat stub-model-1 UNSET
ops record
model calls 3
tool calls 2 (failed 1)
tokens in/out 1533 / 101
root span status UNSET
final reply 30% discount applied to S-2207.
reply vs trace CONTRADICTS
gate HOLD
full span JSON: spans-v2.jsonl- The root span stays UNSET - in both releases. The Recording errors rules in semantic conventions v1.45.0 say status MUST be left unset when an operation ends without errors. The agent run itself ended normally, so a dashboard that counts failed runs by root status sees nothing wrong with 1.5.0.
- The failure lives on a child span -
apply_discountcarries status ERROR anderror.type=discount_exceeds_limit, which means alerts and release checks have to count tool errors per release, not root errors. - The reply claims success - the final message says the 30% discount was applied. The script flags CONTRADICTS only because the last chat span carries
gen_ai.output.messages, an attribute the conventions mark Opt-In; with content capture off, the trace shows the refusal but not the claim. - The record becomes a decision - 1.4.0 is promoted and 1.5.0 is held. The reply check is a string match on scripted text: it shows why content capture matters, and it is not a method to copy into production.
Which Metrics Should an AgentOps Team Track?
Track release metrics and run metrics. For releases, the five measures in DORA's software delivery performance metrics guide (last updated 5 January 2026) carry over once a deployment means a new agent version, prompt edits and model moves included.
| DORA metric | What DORA measures | Reading for agent releases |
|---|---|---|
| Change lead time | Time from a change committed to version control until it runs in production | Time from a prompt, model or tool change until that agent version serves traffic, tests included |
| Deployment frequency | How many deployments happen in a period, or the gap between them | Agent versions promoted per period, counting prompt edits and model moves |
| Change fail rate | Share of deployments that need immediate intervention afterwards | Share of promoted agent versions that had to be rolled back or hotfixed after they reached production |
| Failed deployment recovery time | How long recovery takes after a deployment fails and needs immediate intervention | Time from spotting a bad agent version until the previous one serves again |
| Deployment rework rate | Share of deployments that were unplanned and caused by a production incident | Share of agent versions shipped to fix an incident, such as a prompt hotfix after a bad action |
For runs, count what the trace example's operations record counts:
- Model calls per run - 3 in each example release; a count that rises for the same task is a reason to check for loops.
- Tool calls and failed tool calls - 2 and 0 for release 1.4.0, 2 and 1 for release 1.5.0.
- Tokens in and out - 1,533 and 101 per run in both releases, identical by construction of the stub.
- Reply and trace contradictions - runs where the final message claims an action a tool refused.
Formulas for task success, tool-call accuracy and related scores are in AI agent evaluation metrics, and the metric names OpenTelemetry defines for token usage and operation duration are in OpenTelemetry LLM metrics.
Where Does Testing Sit in AgentOps?
Testing is the gate between a change and production. It runs before a new agent version is promoted, and operations data decides what it runs next: the failed tool span in release 1.5.0 is exactly the case a suite should hold from then on.
- Prompt edits - the trigger that broke release 1.5.0 in the example, with no change to code or tools.
- Model changes - including ones the provider forces.
- Tool and API changes - a new schema, a new limit or a new permission on a tool the agent already calls.
- Incidents - the failing production run becomes a scenario before the fix ships.
A model judge suits a reply, but an agent that acts also needs a read of the system it changed. Running both kinds of check on every change and on a schedule, so drift in tools and data shows up between releases, is the subject of continuous agent testing.
What Are the AgentOps Best Practices?
- Version the whole agent - prompt, model ID, tool schemas, permissions and limits ship as one release, recorded in telemetry as the example records
service.version. - Cap steps and spend - set
max_turnsor its equivalent to a value chosen for the task instead of relying on a framework default, and add a per-request budget as Red Hat advises. - Record tool errors on the tool span - set
error.typeand status Error on theexecute_toolspan, and alert on child errors rather than root status alone. - Decide content capture on purpose - message content is Opt-In in the GenAI conventions; capture it where a reply-versus-effect check needs it and your data policy allows it.
- Promote on test verdicts - a version that fails a scenario stays held, whatever its average score across the suite.
- Require approval for high-stakes tools - deletes, payments and discounts above a limit go through a person, as Red Hat's checkpoint pattern describes.
- Name a deactivation owner - MANAGE 2.4 asks for a mechanism and an assigned person to disengage or deactivate an agent whose outcomes stray from intended use.
- Turn incidents into test scenarios - MANAGE 4.3 asks for documented incident tracking; reporting practice is covered in AI incident reporting, and each incident should also become a scenario the next release must pass.
Gating Agent Releases With Agent Assurance
Testing is the AgentOps function that Agent Assurance from TestMu AI covers. Point it at an autonomous agent you own and it reads the codebase to work out what the agent does, then writes a test suite. It invokes the agent for real through a profile and grades the result against evidence.
Agent Assurance is not an observability or tracing product and does not watch live production traffic. It finds problems before you ship and blocks nothing at runtime, so traces and alerts stay with the tools covered earlier.
A claimed action never counts as proof: in the trace example the reply said 30% was applied while the tool refused. Each criterion gets Pass, Fail or Unable to Verify, and Unable to Verify stays outside the pass rate. Runs make real writes, so point them at staging.
At the release gate, rook run exits 2 when the run finished and a scenario failed, an attack that compromised the agent included. It exits 0 when the run finished and no scenario failed, since an Unable to Verify result is not a failure. Exit 1 covers anything else: a refused run, something unreachable, bad flags or a run that could not start; 3 means sign-in is needed and 4 that credits ran out.
Exit 2 tells you a scenario failed; the report tells you what passed, what failed and what could not be verified, so the CI step reads the verdicts in rook report --json. Run it after a change to the prompt, model, tools or data, and set up the pipeline step from the Agent Assurance CI/CD guide.
Most eval and observability tools score what your agent said and recorded. Agent Assurance checks what the run changed, and reports what it could not verify.
Rook CLI installs through npm with the command below, with Node.js 20 or newer installed. Installing with Homebrew, or with the shell installer script, requires no Node, and running npx @testmuai/rook-skill to add the skill takes Node.js 22 or newer. The Start Trial button inside the Agent Assurance web app opens a 7-day free trial with 10,000 credits; plan details sit on the Agent Assurance pricing page.
npm install -g @testmuai/rook@latestStart AgentOps With a Release Record for Each Agent Version
Pick one agent and, for its next change, write down the record the trace example prints. It holds the release, model calls, tool calls and failures, tokens, root status, whether the reply matches the trace, and the promote or hold decision. Then add a test that would have caught its last incident, and require that record before any version serves traffic.
Pin the conventions you instrument against: the GenAI semantic conventions were still marked Development on 4 December 2026, and their repository tagged its first release, v0.1.0, on 21 November 2026.
npm install -g @testmuai/rook@latest, or for a full walkthrough of the product.Was this helpful?
Authors

Samyak Goyal
Author · 05 hubs
Samyak Goyal is a Senior Member of Technical Staff at TestMu AI engineering Kane CLI, the command-line tool that runs browser automation from the terminal, where a flow described in natural language executes in a real Chrome browser and returns pass or fail with shareable proof. He is a backend engineer with 4+ years of experience, previously an SDE at Innovaccer, where he built APIs, introduced Kafka, and cut deployment from weeks to hours. Samyak also builds multi-agent systems, skill-orchestration frameworks, and a personal copilot that indexes 200+ microservice repositories.

Sirajuddin Khan
Reviewer
Sirajuddin Khan is Vice President of Product Management at TestMu AI, where he drives the company's agentic AI product strategy, building a suite of autonomous agents that includes Agentic Browsers and Agentic Visual Testing and shifting the unit of work from test execution to autonomous outcomes. One of the company's earliest product leaders, he has owned the roadmap for the high-performance execution cloud and grew the cross-browser testing products from early adoption to market leadership. He brings over a decade of experience across SaaS, B2B, and eCommerce, with earlier product roles at Wydr and ShopClues, where his catalog and search work cut delivery SLAs and lifted seller activity. Sirajuddin holds an MBA in Information Technology from Sikkim Manipal University and a B.Tech in Computer Science Engineering from Maharshi Dayanand University.
AgentOps FAQs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests


