Skip to content

4.6 Monitoring System Performance in Production

Launch-time evals prove readiness once. Monitoring proves that readiness stays true in production. Drift is a change after launch that moves quality. A baseline is the measured level of a metric. A guard metric is a metric that a change must not damage. This objective is the last step of the Domain 4 cycle. It uses the 4.1 metrics, the 4.2 graders and the 4.4 diagnosis in production. Every incident adds cases to the dataset.

This lesson uses one made-up example throughout: an accountancy firm whose Claude assistant answers client questions from its tax guidance library. Since launch, the firm has refreshed the library, edited the prompt and added a client portal.

Domain 3 built the infrastructure: what a trace captures, how sampling works, and how aggregate metrics are collected. Domain 4 runs the quality practice on that infrastructure: what dashboards show, and what happens when a line on a dashboard moves. The dashboards track the 4.1 metric sheet (the list of metrics and targets from lesson 4.1) against its targets, not only infrastructure health. The metric sheet includes accuracy signals, latency percentiles, cost per task, and refusal and error rates.

Uptime does not measure wrongness. A green uptime dashboard proves that the service is up. It does not prove that the service is right. A system can be fully up, fast on average and confidently incorrect. So quality monitoring is a separate discipline. It has its own scored signals. The firm’s assistant can answer quickly and still quote last year’s guidance.

Formal eval runs give proof that comes late, at each release. Drift arrives between those runs. Continuous evaluation automatically scores a sample of production traffic. Programmatic checks score deterministic properties. The calibrated judge from 4.2 (an LLM that scores outputs and was checked against human labels) scores the rest. Quality becomes a trend line against the launch baseline, not a single result from one point in time. At the firm, a check confirms that each answer cites a guidance note. The judge scores the advice.

Anthropic’s evaluation guidance says to automate when possible and to prioritise volume with automated grading. That guidance makes continuous evaluation affordable at production scale. The Usage and Cost API documentation lists these use cases: monitoring product performance, and measuring whether system changes improved it. The guardrails guidance adds security: continuously monitor outputs for signs of successful injection.

Input distributions shift, corpora refresh, models migrate and prompts accumulate edits. These changes follow no release schedule. Leading indicators move before user complaints do. Each leading indicator maps to a pipeline stage. So when an alert fires, finding the failing stage with the 4.4 method is fast.

  • Token spend per request : inputs grew, or a prompt edit changed behaviour
  • Refusal rate : traffic shifted, or a policy prompt interacts badly with new inputs
  • Tool-failure rate : an upstream API changed
  • Input-length distribution : a new client integrated
  • Retrieval-quality signals : a corpus refreshed

At the firm, the library refresh maps to retrieval-quality signals. The new portal maps to input-length distribution.

Waiting for concrete user complaints is the expensive alternative. Complaints are the signal that arrives last. Each complaint comes from a user whose problem the leading indicators could have caught earlier.

Alerts fire on guard metrics at tail percentiles. Their thresholds come from measured baselines. Averages hide the problems, so alerts on averages fire late or never. Alerts on everything send the team so many alarms that it ignores the real alert. To keep the real alerts visible, the team deliberately chooses what not to alert on. The firm sets tail thresholds from its baselines. It also names the signals that do not alert anyone.

When an alert fires, the incident loop runs:

  1. Alert
  2. Traces
  3. Diagnose, in 4.4’s order
  4. Fix at the failing layer
  5. Create regression cases (4.2)
  6. Re-baseline, if the baseline legitimately moved

The last two steps make monitoring improve over time. If the team skips the regression cases, the same failure returns under a new ticket number. If the team skips the re-baseline after a legitimate change, every future comparison is meaningless, because it uses an old baseline that is no longer correct. A legitimate change is, for example, a model migration or a corpus refresh that genuinely improved things. When the firm traces wrong answers to the refreshed library, it fixes retrieval, adds regression cases, and re-baselines if the refresh improved things.

The exam tests how to run this practice. It also tests where Domain 3 ends and Domain 4 begins. Questions test the difference between uptime and wrongness directly. When a question asks “what should the team monitor?”, check whether it wants instrumentation (Domain 3) or practice (Domain 4). The sample scenario in the guide is a corpus refresh that shows as confident wrong answers.

Three months after launch, a procurement assistant’s satisfaction scores fall. Release evals all passed; the uptime and mean-latency dashboards are green. The team must learn what has changed before altering the system, and catch any further decline before users report it. What should the team do?

  • A. Re-run the launch eval suite on the current build, and declare the system healthy if it still passes every case
  • B. Wait for concrete user complaints and investigate each one as a support ticket when it arrives
  • C. Upgrade the model, since three months is long enough for a newer tier to have overtaken it
  • D. Add continuous scoring of sampled production traffic plus drift indicators, and compare against launch baselines
Answer & explanation

Correct: D

  • A — The launch suite tests the traffic seen at launch; three months of drift in traffic, corpus, and prompt edits is what a static suite cannot see.
  • B — The question excludes this: it waits for users to report the decline. Complaints are also the most expensive, most lagging signal. Leading indicators and sampled scoring exist to move before many complaints arrive.
  • C — The question excludes this: it alters the system before anyone knows what changed. Nothing yet says capability is the failing layer, and an undiagnosed upgrade adds cost while the real drift continues.
  • D — It turns quality into a trend line for the traffic arriving now, not the launch distribution. Sampled automatic scoring shows what declined and when. Drift indicators show what moved. The baseline comparison shows where the change is, for a 4.4 diagnosis.