Library

Volume 2 · MLOps & AgentOps

Notebook
Sign in

Cheat Sheet — Part 10: MLOps & AgentOps

656 words · about 3 min

Key Terms

Term In one line
Data drift Input feature distributions shift
Concept drift The relationship between features and the true outcome changes
Prediction drift Output distribution shifts with no confirmed data or concept drift
Label drift The distribution of true outcomes shifts
Feature store Shared, versioned feature definitions serving training and inference consistently
Model registry Versioned model artifacts with stage promotion and lineage
AgentOps MLOps extended for systems where the artifact is a model plus prompt plus tools plus graph
System card The published summary of an AI system’s purpose, data, limits and evaluation

Numbers That Matter

Figure Value Where it bites
Independently versioned artifacts 4 Model · prompt · tools · agent graph — each needs its own version and rollback
Canary ramp 5% → 25% → 50% → 100% Same as any deployment, plus a quality gate
Agent monitoring set Hallucination rate · format compliance · p95 latency · token usage · cost per task · tool call failure rate · PII leakage Seven signals; cost and tool failure are the AgentOps additions
Cost model Traditional ML: fixed per inference. Agentic: variable per task The economics change shape — a single task can loop

Decision Rules

  • Version the four artifacts independently. A prompt change and a model change have different blast radii, different rollback paths and different approvers. One monolithic “release version” makes rollback a guessing game.
  • Prompt versioning deserves code-grade rigor — Git, semantic versioning, CI eval, canary, automated rollback. It’s the artifact that changes most often and gets the least discipline.
  • Traditional MLOps rollback = swap the model version. AgentOps rollback = swap any of four things, and you need to know which one moved. Deploy config is a first-class versioned artifact for exactly this reason.
  • Triage drift alerts by type: prediction drift with stable inputs points at the model or a dependency; data drift points upstream at the pipeline or the source system; concept drift means the world changed and you need retraining or relabeling, not a rollback.
  • Monitor quality, not only ops signals. Latency, error rate and cost can all be green during a relevance collapse. Hallucination rate via sampled LLM-judge, format compliance via schema validation, and PII leakage via regex plus NER scan belong on the same dashboard.
  • Responsible AI is a checklist per project, not a policy document: bias detection across subgroups, explainability appropriate to the stakes, human oversight for consequential decisions, documented limitations, and a governance body with real authority.
  • Aggregation bias is the one that hides. A model can look good overall and be poor for a specific subgroup — always evaluate sliced, never only pooled.

Say This Out Loud

“The fundamental difference in AgentOps is that the artifact isn’t just model weights. It’s the model, plus the prompt, plus the tool definitions, plus the agent graph — four things that change on completely different cadences. So I version them independently, because a prompt change and a model change have different blast radii and different rollback paths. When something regresses at three in the morning, ‘which of the four moved’ has to be a query, not an investigation.”

“I triage drift by type before I touch anything. If predictions drifted but inputs look stable, I’m looking at the model or a dependency — often a silently updated provider version. If the input distributions moved, the problem is upstream in the pipeline or the source system. If the relationship between inputs and outcomes changed, that’s concept drift and no rollback helps; the world moved and we need to retrain.”

“My dashboards carry quality signals next to the operational ones, because latency, error rate and cost were all green through the worst quality incident I’ve handled. Hallucination rate from a sampled LLM judge, format compliance from schema validation, tool call failure rate, and a PII scan on outputs — those are the ones that catch the failures your users notice before your alerts do.”