PRACTITIONERCHAPTER 11

Monitoring quality in production

A model-backed job can run green while its output gets worse, so you sample live output, grade it with a judge you have frozen and checked, set alerts that know how noisy the score is, and keep a short replay that tells you which part moved

40 MINAI ENGINEERUPDATED 2026-11-21
PREDICT

Ojaline's judge score on sampled rewrites falls from 91% to 87% over a week. Nothing in the pipeline changed, and the provider's changelog is silent. What is the most useful first move?

A feature on a hosted model is a system in which you control some parts and not others. Your tests cover the parts you control. This chapter is about the rest: the monitor that watches live output, the alert that says when it has moved, and the replay that says which part moved. It does not re-teach the techniques underneath. The LLM-as-judge chapter teaches how to write and calibrate a judge, the evals in CI chapter teaches the regression gate and the online comparison, and the observability course teaches alert design and dashboards that answer questions. The AI engineer’s part is to join them into one document, the monitor spec, and to run it. The running job is Ojaline’s catalogue rewrite, with Habibat as its owner and Unai as the content lead whose editors define what a good rewrite is. All figures are illustrative unless a source is named.

The model: four things move

Four parts decide the quality of what the job produces, and each moves for a different reason.

Part Who moves it How you notice
The model behind the API The provider, sometimes without a changelog entry Nothing in your code changes and the scores shift
Your prompts, tools and context You A change log, and the regression run before the change ships
The inputs Sellers, customers, other teams The mix shifts: longer listings, a new language, a large new seller
The judge that grades the output You, or the provider if the judge calls an unpinned model name The score moves while the outputs have not

The regression gate in CI guards the second row: nobody ships a prompt change without the run. Monitoring watches the other three, which nobody asks your permission to change. Chen, Zaharia and Zou compared the March and June 2023 versions of two hosted chat models and found that the performance and behaviour of both could vary greatly over time. Their abstract concludes that the behaviour of the same service can change substantially in a short time, which highlights the need for continuous monitoring of LLMs. That paper covers two particular versions, and your provider may behave better or worse. The lesson is that you cannot assume.

The first thing to find out about your provider is whether a model name can move. Some publish dated snapshots that stay fixed until retired, plus unversioned names that point at the newest one. Others publish only fixed names. Read the provider’s page on model ids and write the answer into the spec. One provider’s documentation, read in November 2026, lists a retirement date for each model and says it gives at least 60 days’ notice before retiring a publicly released model. Treat that as an example of what to look for, not as a promise about yours. Ojaline’s job calls an unversioned name, which is why a silent change is possible at all.

What to sample, and what to store

Monitoring starts with output you can grade. Draw a random sample of live output every day, a fixed number, from everything the job produced and not from what someone flagged. An AI engineer’s week makes the same point about reading conversations: complaints are a biased sample, because they are only the failures somebody cared enough to report.

For each sampled item, store the input, the output and the versions of everything that made them: the model id the API reports, your prompt version, the judge’s version and the rubric’s version. Without the versions you can see that quality moved and cannot say what moved with it.

Budget sets the sample size, and the sample size sets what you can see. Habibat’s monitor grades 150 rewrites a day from about 6,000 a week, which is 1,050 a week and costs about ₦4,200 in judge calls at ₦4 each (assumed). Slice the sample by whatever you know changes behaviour. For listings that is the category and the length of the seller’s text. A slice with 30 items a week cannot show anything smaller than a swing of about ten points, so report small slices over a longer window.

Keep a second, smaller stream of human reads. Every Monday Unai’s editors read 40 rewrites: 20 at random and 20 the judge failed. That is where you find failures the rubric does not name, and it is the cheapest check that the judge still means what you think it means.

The judge is an instrument too

A score from a judge is a measurement, and a measurement needs an instrument that holds still. The judge chapter covers how to build and calibrate one. Monitoring adds three rules.

Freeze it. Pin the judge’s model and rubric separately from the generator’s, and change them only on purpose. If both call unversioned names on one provider, a single silent change moves the thing being measured and the ruler together, and the chart shows nothing.

Calibrate it on the people who define good. Habibat’s judge was checked against 120 rewrites that Unai’s editors labelled, three criteria each: every fact from the seller’s text is kept, nothing is claimed that the seller did not say, and the house style holds. A rewrite passes only if all three do. Agreement with the editors says how far the live number can be trusted, and which way it errs. Repeat the check each month on about 20 fresh labelled rewrites, and whenever the judge’s model changes. Shankar and colleagues also describe criteria drift: people only discover what they want from outputs by looking at outputs, so the rubric will change. When it does, version it and start a new series. A chart that spans two rubrics compares nothing.

Keep an anchor set. Store a frozen set from the baseline period, here 1,000 listings with the rewrites the job made then and the scores they earned. Re-judging those stored rewrites today is the instrument test. If they still score about 91%, within a couple of points, the judge has not moved. If they now score 87%, it has, and you have found the cause without touching the job.

How big a fall is real

A graded sample is a poll, and polls are noisy. A rule of thumb from the normal approximation: at a pass rate near 91%, the 95% noise either side of the true rate is about 1.96 times the square root of 0.91 times 0.09 divided by the number of items.

Window Items graded Noise either side of 91%
One day 150 about 4.6 points
Three days 450 about 2.6 points
Seven days 1,050 about 1.7 points
Twenty-eight days 4,200 about 0.9 points

A day at 87% therefore means nothing: it sits inside the noise of a day. A week at 87% against a baseline of 91.0% over four weeks is different. Comparing a 1,050-item week with a 4,200-item baseline, the noise on the difference is about 1 point at one standard error, so a four-point fall is about four standard errors and is not chance.

The same arithmetic sets how long a small fall takes to show. To detect a drop from 91% to 87% with 80% power at a 5% two-sided false-alarm rate, you need about 445 graded items when the baseline is treated as known, which is 3 days at 150 a day. Against a baseline you also measure, with equal windows on each side, you need about 960 items in each window, which is 7 days at 150 a day. One day cannot do it. Use two windows, the way the observability course does for burn-rate alerts: a fast one for large falls and a slow one for small falls.

  • Slow: the seven-day pooled score below 89.0%, two points under baseline. If nothing has changed, this fires about one week in fifty, roughly once a year, which is acceptable for an alert whose first action costs a small replay.
  • Fast: any single day below 82%. A day at 91% falls that far by chance far less than once in a thousand days, so this one is worth acting on the same morning.

Arm neither until the baseline exists. Four weeks of grading gives the 4,200 items above. Until then the dashboard is a notebook.

Zero-tolerance behaviour is separate. If Habibat’s rubric says no invented claims, the score cannot carry that rule, because a 91% pass rate permits nine in a hundred failures of any kind. Count confirmed invented claims on their own. When none is found in n graded items, a standard rule of thumb says the 95% upper bound on the true rate is about 3 divided by n, which for 1,050 items is about 0.3%. State that bound in the spec instead of the word zero.

Alerts: a ticket, a switch or a page

Alert design says an alert should describe a symptom a person must act on, and separates the page that wakes someone from the ticket that waits. A quality fall is a symptom, and for a nightly job the usual action is a ticket with a time limit. A page makes sense only when harm is landing faster than a working day can answer.

Signal Action Who How fast
Seven-day pooled score below 89.0% Ticket and start the replay Habibat Replay begun within one working day
One day below 82% Ticket and hold tonight’s publish Habibat, with Unai told The same morning
An invented claim confirmed by an editor Take that page down and ticket Unai’s editors The same day
Invented claims confirmed in three or more of one week’s 40 human reads Switch the job off Habibat Immediately

The switch deserves a sentence. Pausing the job sends the site back to the seller’s own text, which is the no-model alternative from scoping an AI feature. That fallback is the reason a pause is cheap, and a scope that never named one makes every pause a crisis. Write the switch’s owner and its test into the spec.

One dashboard, one question

A dashboard is an answer to a question. This one answers: is quality where it was, and if not, which part moved? Six panels are enough.

  1. The seven-day pooled score, with the baseline and the 89.0% line.
  2. Daily scores as dots inside the daily noise band, so nobody reads a dot as news.
  3. The same score by slice, over 28 days.
  4. The human-read panel: editors’ pass rate and confirmed invented claims.
  5. The instrument panel: the anchor set re-judged each week, which should be flat.
  6. Input mix: source text length, share of new sellers, and coverage, the share of listings that were rewritten at all. A job that exhausts its retries on rate limits leaves pages untouched, and that shows as a coverage drop with a normal score.

Mark every change on the time axis: a prompt release, a model id change, a judge or rubric change. A dashboard that cannot show what was deployed beside the score invites the argument it was built to end.

When the alert fires: separate the suspects

Do the cheap tests first, and do not change anything until one of them points somewhere.

Suspect Test If this is the cause
Your own change Read the change log for the week A prompt or context change reached production without the gate; roll it back and fix the gate
The judge Re-judge the stored anchor outputs today The old outputs now score lower; the live number is unreliable, so recalibrate before anything else
The model Re-run the 1,000 frozen inputs on the earlier dated version and on today’s name, and judge both with the same judge The dated version holds near 91% and today’s name does not; the model behind the name moved
The inputs Compare this week’s inputs with the baseline: length, language, sellers, categories Both versions score low on the new inputs; the model is fine and the job meets something it was not scoped for

Read the replay by what comes back, not by what you expect. A 1,000-item replay has about 1.8 points of noise at 91%, and scoring the same items on both versions makes the comparison tighter, since you can list the items that flipped from pass to fail and read them. A replay on 120 items can show only a large change.

If the model moved, pin the earlier version, which is a configuration line, and say so on the ticket. A pin holds behaviour still while you test the move. It does not last, because providers retire old versions after a notice period. Plan the migration through the regression gate, with a rollback, which is the subject of the lead-level chapter on model upgrades and regressions in this track. Open a ticket with the provider too, and attach the evidence: dates, model ids, a handful of item pairs and the replay table. A provider can act on that. “Quality feels worse” gets no reply.

Drift in models you train yourself, where the shift is in the data the model learned from, is a different problem with different tools. The monitoring-models-and-drift chapter in the Data and ML track covers it.

Where practitioners disagree

Judge or humans? One camp says only human labels are truth and a judge is a convenience that decays. The other says humans cannot read a thousand items a week. Most teams settle on a judge for volume and a small, regular human read to keep the judge honest, as above.

Alert on the score or on cheap proxies? Output length, refusal rate and format errors are free and move early. They are not quality, and a monitor made only of proxies will miss a fall that leaves them untouched. Keep them on the dashboard as early hints and keep the alert on graded quality.

Pin or follow the newest? Pinning gives you stability and a retirement date. Following gives you improvements and surprises. Many teams pin in production and run the newest version in a shadow monitor beside it, so a move is already measured when the notice arrives.

One rubric for ever? Changing it breaks the series, and never changing it freezes a misunderstanding. Version it, rerun the anchor set under the new version, and say on the chart where the break is.

Day to day

The monitor is a small standing load on top of the feature’s own work.

  • Daily, two minutes. Look at panels 1 and 2 and the ticket queue. You are checking that nothing is firing and that the sample still ran, not interpreting a dot.
  • Weekly, Monday, 45 minutes with Unai. Read the 40 human samples together. Note new failure types; a type you keep seeing is a candidate for a rubric criterion or a regression case. Compare editors’ pass rate with the judge’s.
  • After any change. Mark it on the dashboard, rerun the anchor set if the judge or rubric changed, and restart the comparison window.
  • Monthly, one hour. Label 20 fresh rewrites with editors and update the judge’s agreement figure. Review slices that were too small to read, now over 28 days.
  • Quarterly. Refresh the frozen set and the baseline, so they are not a year old. Read the provider’s deprecation page and the changelog, and write down the date each model you use is due to retire.
  • When an alert fires. Run the suspects table in order, record each result on the ticket, and write the finding into the spec’s change log whatever the cause.
  • Monthly quality review, 30 minutes. With Unai and the product manager for catalogue tooling: the score by slice, confirmed invented claims, tickets opened and closed, and the next retirement date. AI products covers how a PM reads a rate and what to promise from it. Testing AI features covers the test side of the same sample.

The feature’s regression set, from the eval set before the feature, and prompt change control, from prompts and context as code, both feed this monitor.

BY ORG SIZE
STARTUPunder 30 people

There is no catalogue team and perhaps no judge. The monitor is a spreadsheet: every Monday, read 20 random outputs yourself and mark pass or fail against three written criteria, with the model name and prompt version in a column. That takes under half an hour, and a fall of 15 points is visible within a month. You are the alert, so put the review in your calendar. Add an automatic judge only when the volume outgrows your reading.

SCALE-UP30 to 300

Several features call hosted models, and each has an owner who forgot the monitor on the day the prompt shipped. Share one judge harness, one anchor-set format and one dashboard template across teams, so a fall looks the same wherever it appears. Route tickets to the feature’s owner, not to a central queue nobody reads. Someone must own judge calibration, or each team will trust a judge nobody has checked. Pick that person early and give them a day a month for it.

ENTERPRISE300 and up

Monitoring becomes a control that other functions ask to see. Model risk and internal audit want evidence of sampling, the calibration record and what happened when a threshold was crossed. A gateway that records the model id on every call makes the versions column automatic. Stored samples hold customer content, so retention and access need the data protection owner’s agreement before the first sample is kept. Expect the argument to be about who may switch a feature off: settle that in writing, in advance.

ARTEFACT Write a quality monitor spec ~60 MIN
YOU PRODUCEA quality monitor spec: what is sampled, the judge and its calibration, a baseline with noise, alerts with actions, dashboard panels and a first-hour replay plan

Template

# Quality monitor: <feature>, <date>
Owner: <name> · Content or domain lead: <name> · Review date: <date>

## 1. What good means
Criteria (a pass needs all): <1> · <2> · <3>
Zero-tolerance: <which criterion, and the bound you will state>
Checked in code, not by the judge: <length, format, banned strings>

## 2. The sample
Source: <all output, or a random draw> · Size: <n a day> · Cost: <per item> × <n> = <per week> against a budget of <x>
Stored with each item: input, output, model id, prompt version, judge version, rubric version
Slices: <list> · Human read: <n a week, how drawn, who>

## 3. The judge
Model and rubric versions: <ids> · Calibrated on <n> labelled items by <who>: agreed on <k> of <n>
Where it errs: <direction and kind> → consequence for the live number: <...>
Recalibrate: <when> · Anchor set: <n items from the baseline period, with stored outputs and scores>

## 4. Baseline and noise
Baseline: <weeks>, <items>, <pooled score>
| Window | Items | Noise either side of the baseline |
|---|---|---|
Alerts are armed once <condition>.

## 5. Alerts
| Signal | Threshold | Action | Owner | Time limit |
|---|---|---|---|---|

## 6. Dashboard
<One question it answers. Panels, each with the question it answers. Deploys marked on the axis.>

## 7. First hour when an alert fires
1. <suspect, cheapest first> → <test> → <if it is this>
Fallback if the feature is switched off: <what users see> · Who may switch it: <role>
WORKED EXAMPLE

Ojaline, category pages. Besides product descriptions, the catalogue job rewrites 120 category introduction pages a week. Habibat writes a separate spec, because the volume is small and the pages are long.

1. Good. A page passes only if it keeps every product-type fact in the approved category brief, adds no claim that is not in the brief, and holds the house style. Length of 60 to 120 words and no capitalised words are checked in code. An invented claim is zero-tolerance.

2. Sample. All 120 pages are graded each week, at ₦4 each (₦480 a week, assumed). Unai reads 20 chosen at random each Monday. Every item stores the model id, prompt version, judge version and rubric version.

3. Judge. Calibrated on 60 pages that Unai and a second editor labelled: agreed on 54 (90%). Four of the six misses were pages the judge passed that editors failed, so the live score is slightly generous. Recalibrate monthly on 20 fresh pages.

4. Baseline. Eight weeks, 960 pages, 893 passed: 93.0%. One week of 120 carries about 4.6 points of noise; three pooled weeks of 360 carry about 2.6.

5. Alerts. Three-week pooled score below 90.0%: ticket, replay within two working days. Any single week below 84%: ticket the same day, hold Monday’s publish. An invented claim in Unai’s 20: take that page down.

6. First hour. Re-judge the 120 stored baseline pages; then re-run them on the earlier dated version and on today’s name. At 120 items the replay shows only a large change, so read the pages that flipped from pass to fail.

Now you

You are Habibat, three weeks before the product-description monitor goes live. The job rewrites about 6,000 descriptions a week. For six weeks Unai’s editors hand-read 150 rewrites a week and passed 138, 135, 140, 137, 139 and 136, which is 825 of 900 (91.7%). You built a judge and tested it on 120 rewrites the editors had labelled. The judge agreed with them on 108 (90%). All 12 disagreements are rewrites the judge passed and the editors failed, and each is a claim the seller never made, such as “waterproof”. Judge calls cost about ₦4 each, and the budget is ₦5,000 a week. The job calls an unversioned model name, and the provider also offers dated versions. Writing a monitor spec means choosing a daily sample size, the baseline period, two alert thresholds and an action for each, and saying what the judge’s twelve misses mean for the number. The complication is that the judge is lenient on exactly the failure you most want to catch, and Unai’s team can read no more than 40 a week.

Self-check

DECIDE

Three months after launch, Ojaline's monitor reports 914 of 1,050 sampled catalogue rewrites passing this week (87.0%), against 91.0% over the previous four weeks (4,200 items). The noise on that comparison is about two points. Nothing of Habibat's changed, and the provider's changelog is silent. The job calls an unversioned model name, and the provider offers dated versions. The 40 human reads this Monday found no invented claim. Pausing the job sends the site back to the sellers' own text. Habibat has the afternoon.

READING
  1. PAPER
    Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences Shreya Shankar, J.D. Zamfirescu-Pereira, Björn Hartmann, Aditya Parameswaran and Ian Arawjo, 2024

    The source of the term criteria drift, and a study of people building evaluators. It explains why your rubric will change and why a judge needs checking against human labels. Read: The abstract and the discussion of criteria drift.

  2. PAPER
    How is ChatGPT's behavior changing over time? Lingjiao Chen, Matei Zaharia and James Zou, 2023

    Compares the March and June 2023 versions of two hosted models and finds large changes on some tasks, in both directions. It is the published case for monitoring a model you do not control. Read: The abstract and the results across the seven tasks.

  3. POST
    Your AI Product Needs Evals Hamel Husain, 2024

    Argues that looking at real traces is central to evaluating a deployed AI product and weighs the use of a model to grade. Read it for the habit behind the weekly human read.

  4. DOC
    Model deprecations Anthropic

    One provider's lifecycle terms, retirement table and notice commitment. Use it as a model for what to find on your own provider's page before you pin a version.

  5. DOC
    Define success criteria and build evaluations Anthropic

    Sets out specific, measurable criteria and the use of a model as a grader, and recommends a different model for grading than for generating. Use it to word the first section of the spec.

All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.

RECALL CARDS Tap to flip. They join your review deck when you mark the lesson complete.
NEXT: An AI platform for product teams →