Chapter CAI MonitoringPage 7 of 8

AI Monitoring

Trace a worked example

Read the evidence step by step: explain AI monitoring by connecting a concrete decision to observable evidence.

~13 minWorked example

Before you start

Why this matters

Imagine you own a customer-support assistant and must explain one decision to a teammate who knows basic AI vocabulary but has never operated this feature. Write two sentences: what problem does AI monitoring solve, and what evidence would show it is solving that problem? Do not name a vendor or model yet. This separates the enduring idea from one implementation.

1Learn the idea

Read

Scenario

See it

Training time vs chat time

Training

Huge dataHeavy computeWeights

Inference

Your promptFrozen modelReply

Training = long study · Inference = quick answer from what it already learned

You operate a customer-support assistant. A teammate proposes a change that sounds beneficial, but you require a trace connecting configuration to evidence. Here is the observed run:

A release changes retrieval top-k from 4 to 10. Citation coverage rises from 82% to 91%, but p95 latency moves 1.8→3.1 seconds and Spanish task success falls 78%→62%. A segmented alert fires; traces show long Spanish documents crowding the prompt. Roll back, then test top-k 6 with language-aware reranking.

Read

Reconstruct the trace

First identify the input and scope. Which user, segment, document, image, query, hardware profile, or task was involved? Next record the exact configuration: model or checkpoint, prompt, index, context policy, sampler, thresholds, and tool versions that matter for AI monitoring. Then preserve the intermediate artifact that explains the result. Finally attach the user-visible output and measured consequence.

Write the trace as a sequence rather than a conclusion:

request + configuration
  -> intermediate evidence
  -> model or policy decision
  -> validation / fusion / routing
  -> user-visible action
  -> measured outcome

This format prevents hindsight from collapsing several stages into “AI error.” It also exposes where a deterministic check could have stopped propagation.

Read

Calculate before interpreting

Use absolute counts alongside percentages. If success falls from 78 of 100 to 62 of 100, that is a 16 percentage-point decrease, not merely “16% worse.” If cost rises from $0.006 to $0.018 for one million requests, variable spend rises from $6,000 to $18,000. If a sample contains only ten cases from a critical language, one miss moves its rate by ten points; collect more evidence before claiming stability.

Track task success and severe-error rate by segment, groundedness where sources exist, refusal precision and recall, p50/p95 latency, tokens and dollars per successful task, escalation rate, and incident time-to-detect. Validate automated judges against blinded human labels and report confidence intervals. Pick one primary metric and list gates separately. Do not average a privacy breach, severe unsafe action, or failed authorization with stylistic quality.

Read

Competing hypotheses

Generate at least three explanations: input mix changed; a component configuration changed; or measurement changed. Then propose a discriminating test for each. Replay the same cases on old and new configurations, compare intermediate artifacts, and rescore both with the same rubric. This controls more variables than debating outputs by eye.

Common misses are silent prompt or provider changes, feedback that represents only angry users, judge drift, PII copied into logs, retry storms, and averages that hide one language or plan tier. Alert fatigue is itself a monitoring failure because ignored alarms provide no control. The likely failure should match the earliest divergent artifact. If it does not, revise the hypothesis.

Read

Decision and follow-up

Choose among keep, roll back, canary, route, or collect more data. State the owner and deadline. A rollback restores safety but does not explain root cause; preserve the failed configuration for offline reproduction. A successful fix adds the case to a regression set and updates the runbook.

The expert habit is modest: claim only what the trace supports. One run can demonstrate a mechanism, not a universal advantage. A coherent sequence with inspectable evidence teaches more than a polished before-and-after screenshot.

Checking tutor…

Continue learning · glossary & guides