Library

Volume 2 · MLOps & AgentOps

Notebook
Sign in

Section 65

AgentOps (Extending MLOps Principles for Agentic Systems)

920 words · about 4 min

65.1 What’s Fundamentally Different About Agentic Systems

Dimension Traditional MLOps AgentOps
Artifact Model weights Model + prompts + tools + orchestration graph
Versioning Model version Model + prompt + tool + graph version, independently
Testing Input → output accuracy Multi-step task completion, trajectory quality, safety
Monitoring Prediction drift Reasoning quality, tool usage patterns, cost, safety compliance
Rollback Swap model version Roll back model AND/OR prompt AND/OR tool AND/OR graph independently
Cost Per-inference, roughly fixed Per-task, highly variable (multi-step, branching)
Failure mode surface Wrong prediction Wrong prediction, wrong tool choice, unsafe action, infinite loop, runaway cost

An agentic system is not “a model with extra steps” from an operations standpoint — it’s a composite artifact where any one of four independently-versioned components (model, prompt, tools, orchestration graph) can independently cause a regression, and monitoring/testing must account for the full multi-step behavior, not just a single input-output pair.

65.2 AgentOps Architecture

┌─────────────────────────────────────────────────────────┐
│                    AgentOps Platform                      │
│                                                            │
│  Versioning Layer                                          │
│  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐    │
│  │ Model    │ │ Prompt   │ │ Tool     │ │ Graph    │    │
│  │ Registry │ │ Registry │ │ Registry │ │ Registry │    │
│  │ v1.0,1.1 │ │ v2.3     │ │ v1.5     │ │ v3.0     │    │
│  └──────────┘ └──────────┘ └──────────┘ └──────────┘    │
│                                                            │
│  Deployment Layer                                          │
│  ┌──────────────────────────────────────────────────┐    │
│  │ Agent Deployment Config:                          │    │
│  │   model: <pinned-model-version>                  │    │
│  │   prompt_version: v2.3                           │    │
│  │   tools: [lookup_tool:v1.5, recommender:v2.0]    │    │
│  │   graph: task_workflow:v3.0                       │    │
│  │   guardrails: [pii_filter:v1.0, cost_limit:$0.5] │    │
│  └──────────────────────────────────────────────────┘    │
│                                                            │
│  Observability Layer                                       │
│  ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐    │
│  │ Trace    │ │ Cost     │ │ Quality  │ │ Safety   │    │
│  │ Logger   │ │ Tracker  │ │ Scorer   │ │ Monitor  │    │
│  └──────────┘ └──────────┘ └──────────┘ └──────────┘    │
└─────────────────────────────────────────────────────────┘

65.3 AgentOps Deployment Config as a First-Class Artifact

A production agent deployment is fully defined by a versioned config, not an ad hoc combination of “whatever prompt and model happen to be in the code right now”:

agent_deployment:
  deployment_id: "deploy-2025-06-15-001"
  model: "pinned-model-version-id"     # exact model version, never "latest"
  prompt_version: "v2.3"               # git-tracked
  tools:
    - lookup_service: "v1.5"           # API/service version
    - recommender: "v2.0"              # ML model version
    - risk_predictor: "v3.1"           # ML model version
  graph: "task_workflow_v3.0"          # orchestration graph definition
  guardrails:
    - pii_filter: "v1.0"
    - cost_limit_per_task: 0.50
    - max_iterations: 10
    - max_tool_calls: 20

This makes every production incident answerable with a precise question: “which of these five independently-versioned components changed most recently?” — dramatically narrowing root-cause investigation versus a monolithic “the agent got worse” report.

65.4 AgentOps-Specific Operational Concerns

  • Runaway loop/cost protection: hard caps on iteration count, tool call count, and cumulative cost per task, enforced at the orchestration layer, not just hoped for via prompting.
  • Tool reliability as a first-class dependency: tool failures propagate into agent behavior in ways a static model never has to handle; each tool needs its own SLA, circuit breaker, and fallback behavior (Sections 68/69 resilience patterns apply directly here).
  • Non-determinism at every layer: model output varies run to run, tool responses vary with live data, and orchestration logic can branch differently — testing and monitoring have to account for behavioral variance, not assume single-path determinism.
  • Human approval gates as an architectural primitive: high-stakes or irreversible actions (financial transactions, external communications, data deletion) need an explicit human-in-the-loop checkpoint wired into the graph itself, not left to the model’s judgment.

Interview Q&A — Section 65

Q1: How does AgentOps differ from traditional MLOps, and why can’t you just apply standard MLOps practices to an agentic system unchanged? A: Traditional MLOps versions and monitors a single artifact — the model — and evaluates it on a static input-to-output mapping. An agentic system is a composite of four independently-changing components (model, prompt, tool set, orchestration graph), any one of which can independently cause a regression, so versioning has to track all four together as a single deployable config rather than just the model. Evaluation also has to shift from single-turn accuracy to trajectory-level evaluation (Section 59) — task completion, tool selection correctness, recovery from errors — because the failure surface of an agent includes things a static model never encounters, like calling the wrong tool, looping indefinitely, or taking an unsafe multi-step action that no single input-output pair would reveal. Monitoring similarly has to expand from prediction drift to reasoning quality, tool usage patterns, and cost-per-task, which is inherently variable in a way a fixed-cost-per-inference model never was.

Q2: An agent’s behavior degrades in production. How does an AgentOps-mature setup help you find the root cause quickly? A: Because the deployment config versions the model, prompt, tool set, and orchestration graph independently and explicitly, the first diagnostic step is simply diffing the current deployment config against the last known-good one — this immediately narrows the search to whichever of the four components actually changed, rather than a vague “something about the agent got worse.” Full trace logging (every tool call, its arguments, its response, and the agent’s reasoning at each step) then lets me pinpoint exactly where in the trajectory behavior diverges from expected — e.g., is it choosing the wrong tool, or choosing the right tool but misinterpreting its output? Rollback is similarly granular: if the prompt is the suspect, roll back only the prompt version and leave the model/tools untouched, verifying the fix without introducing unrelated changes.