Skip to content

Evaluate and observe changing AI systems

11 min reading

A release-evidence and monitoring design that separates quality, safety and operations

Page details

System Design · Optional AI architectures

11 min reading · 26 min with practice

Sources

Published · Last edited:

Prerequisite: Run agents with bounded authority and durable state. For basics, use the independent System Design foundations.

More
20px

Hypothetical scenario. Northwind changes an assistant prompt and model route. Dev sees lower mean latency, Maya sees more answers, and Priya finds an unauthorized proposal in a difficult case. None of those observations can erase the others.

Dev: “The new version completes more answers.”

Maya: “Which of those answers should have been limited, rejected or checked against different evidence?”

Build release evidence around distinct product requirements and the exact system version. Keep usefulness, evidence support, authority and operational outcomes separate. The selected evaluation cases are teaching cohorts, not achieved Northwind performance or a universal benchmark.

Background for this lesson

Your outcome is a release-evidence and monitoring design distinguishing usefulness, evidence support, authority and operations. Prerequisites are the optional assistant and agent pages, GenAI evaluation sets, and the core observability and safe-change chapters. The selected case counts below are teaching cohorts. They are not measured Northwind performance or a universal AI benchmark.

Which failure would this release metric overlook?

An evaluation case includes the task, authenticated scope, relevant evidence version and expected acceptance criteria. Some cases require an answer; others require a limitation or rejection. A single answer-rate metric rewards a system for answering questions it should refuse. A single refusal-rate metric can reward a useless system that declines everything.

Separate retrieval eligibility, evidence selection, answer support and tool authority. A retrieved passage can be relevant but forbidden, an answer can cite a real passage without being supported, and a correctly formatted tool call can still be unauthorized. Preserve these distinctions in the review rubric and failure records.

Version the full candidate: model route, prompt, tool definitions, index artifacts, policy and relevant configuration. If the evaluation silently changes its evidence or judge while comparing releases, the result is hard to attribute. Keep a stable baseline and record deliberate changes to both the system and its measurement process.

Build cases from the product’s actual decisions

Begin with explicit task categories and known boundary conditions. Include missing evidence, revoked access, changed source versions, ambiguous actions, provider timeouts and budget exhaustion. Synthetic cases can exercise these boundaries when clearly labeled; they do not establish the frequency of those situations among actual users.

Keep development cases separate from held-out review cases. Repeatedly tuning prompts to the same examples can improve their scores without improving general behavior. When a newly discovered failure becomes a regression case, record that transition rather than continuing to describe the case as unseen.

Use human review where the acceptance criteria require judgment. A model judge can assist with classification, but its errors need calibration against reviewed examples. Preserve disagreements and inspect slices where the judge is weak. A fluent explanation of its score is not independent evidence that the score is correct.

Release evidence and production observation answer different questionsVersioned cases and reviewed criteria compare a baseline with a candidate. Separate requirement slices inform a release decision. Production observation detects new failures and feeds deliberate revisions rather than replacing pre-release evidence.Versioned casesEligibility + supportHuman-reviewed criteriaBaseline / candidateSeparate failure slicesExplicit release decisionProduction signalsBounded retained evidenceInvestigate + revise
Release evidence and production observation answer different questions

Make release evidence case-level and versioned

Hypothetical scenario. Baseline and candidate answer the same versioned cases under comparable source and permission conditions. Store case identity, cohort, expected behavior, model/prompt/index versions, answer disposition and rubric evidence. Separate an appropriate refusal from an unsupported answer and from a collection failure.

Make release evidence case-level and versioned — selected design evidence
Evidence fieldExample roleWhy retain it
Case + cohortpermission revocation caseInspect required subgroup
Version tuplemodel, prompt, index, sourceReconstruct compared condition
Outcomesupported / refused / unsafe / missingPreserve denominator
Rubric evidencecase-level rationale + reviewerChallenge judgment
The release packet retains the cases supporting a conclusion and the limitations of that support.The release packet retains the cases supporting a conclusion and the limitations of that support. Versioned cases to Paired outcomes: same declared conditions; Paired outcomes to Release decision: required cohorts + uncertainty.Versioned casesPaired outcomesRelease decisionsame declared conditionsrequired cohorts + uncertainty
The release packet retains the cases supporting a conclusion and the limitations of that support. Enlarge the diagram to inspect its labels; the surrounding records and explanation give the text alternative.

A candidate can improve average fluency while regressing the small cohort that tests required permission boundaries. Declare those release requirements before inspecting scores. A held-out set reduces direct tuning leakage but does not prove representativeness; document selection, sample size and uncertainty for each conclusion. Keep paired case differences available instead of relying only on two means.

Traces explain selected runs, while policy checks enforce an actual boundary. Neither is interchangeable with a human or automated quality judgment. Measure accepted workflow economics using useful completed tasks and their full attempts, not just successful model-call cost. Drift monitoring should distinguish changed traffic, changed sources and changed implementation before assigning a cause.

Keep the denominator attached to the claim

Hypothetical worked example. Select two hundred answer-eligible cases. The baseline answers one hundred sixty; one hundred forty-four answers meet the selected support rubric. Coverage is 160 ÷ 200 = 0.8. Support among answered cases is 144 ÷ 160 = 0.9. Supported answers over all eligible cases are 144 ÷ 200 = 0.72.

The candidate answers one hundred eighty, of which one hundred fifty-three meet that rubric. Coverage is 180 ÷ 200 = 0.9, support among answered cases is 153 ÷ 180 = 0.85, and supported answers over eligible cases are 153 ÷ 200 = 0.765. The candidate increases supported coverage while reducing conditional support. Neither number alone expresses the full tradeoff.

Keep a separate twenty-case unauthorized-action challenge set. Suppose the candidate incorrectly dispatches one action. That is 1 ÷ 20 = 0.05 within this selected challenge set, not an estimate of population incident frequency. Under a selected release rule requiring every case in this boundary set to block dispatch, the candidate fails the rule. Averaging this result with the two hundred answer cases would conceal a required boundary failure.

For sampled diagnostics, select one thousand accepted tasks and a ten-percent random trace sample. Expected retained traces are 1,000 × 0.1 = 100, with actual count subject to sampling. That is not a complete audit record for the thousand accepted actions. Required approval and effect records need their own durable retention contract.

Observe a population without exposing it unnecessarily

Correlate request, task, evidence and effect identities across components. Metrics describe rates and distributions; traces help follow retained executions; durable audit records preserve required decisions. Their access and retention policies can differ. Do not retain all source text indefinitely simply because a debugging dashboard is convenient.

Operational indicators include queue wait, first-token latency, generation time, rejected admission, tool-attempt count and unresolved effects. Quality review includes support, task usefulness and refusal correctness. A slower result can be useful and correct; a fast result can be unsupported. Measure the joint product outcome when the contract requires both.

Watch distribution changes. New document types, languages, user roles and tool patterns can expose failures absent from the original cases. Drift signals trigger investigation; they do not establish that a model’s answers became wrong without inspecting task evidence. Keep sensitive identifiers out of unbounded metric labels.

In the wild: product evals differ from general benchmarks

Hamel Husain’s Your AI Product Needs Evals explains domain-specific evaluation, inspection and human/model assessment. Use that primary account to organize evidence around the product’s tasks. It does not provide a ready-made acceptance score for Northwind or certify a particular judge.

An online controlled experiment answers a different question from an offline challenge set. Randomization, instrumentation and experiment validity matter when estimating a causal product effect. Do not treat a before/after dashboard or a handpicked demonstration as an interchangeable substitute. The accompanying book develops that distinction in more depth.

The average rises while one required boundary breaks

Hypothetical failure scenario. A candidate improves common answer cases and reduces latency. The release report merges all scores into one average, obscuring a revoked-user case that exposes cached content. The team approves the aggregate and later discovers that the cache omitted authorization context.

Hold the release on the explicit boundary rule, fix the reuse path and inspect other derived artifacts. Repeat affected eligibility cases and relevant usefulness checks. Rolling back configuration can contain further disclosure, but cannot retract content already delivered. Keep the incident evidence and response scope distinct from an optimistic model explanation.

Make release decisions reviewable

Record which criteria are mandatory, which tradeoffs require judgment and what evidence remains uncertain. Small or selected case sets limit conclusions; state their scope rather than attaching a universal accuracy claim. Explain failed slices and unrun checks alongside passing results.

Deploy bounded changes with a compatible rollback path and production stop criteria. Keep the exact candidate identity attached to observed outcomes, including provider fallback. If the gateway silently changes the model, the evaluation evidence may no longer describe the execution. The next page makes that routing boundary explicit.

Challenge the proposed mechanism

A release decision cites inspectable cases rather than a single unqualified quality number.A release decision cites inspectable cases rather than a single unqualified quality number. Case evidence to Reviewer / rubric: 1 · paired versioned outcomes; Reviewer / rubric to Release owner: 2 · required cohort verdict; Release owner to Case evidence: 3 · retain decision evidence.Case evidenceReviewer / rubricRelease owner1 · paired versioned outcomes2 · required cohort verdict3 · retain decision evidence
A release decision cites inspectable cases rather than a single unqualified quality number. Enlarge the diagram to inspect its labels; the surrounding records and explanation give the text alternative.

The candidate wins the average but discloses one revoked source in a required cohort. May higher fluency offset it?

Reveal the design reasoning

Only if the previously declared release policy permits that trade-off; a required authority boundary ordinarily blocks release. Diagnose and repair the disclosure, rerun affected cases and report the small cohort uncertainty. Do not hide the failure inside a blended score.

Decision and reconsideration: Approve releases by declared case-level requirements and supported uncertainty. Keep enforcement, quality judgment and telemetry distinct.

Check the design against changed conditions

  1. Coverage rises from .8 to .9 while support among answers falls from .9 to .85. Is one metric enough?

    Reason through the consequence

    No. Inspect both the answer-eligible denominator and the answered denominator. Supported coverage rises from .72 to .765 in this selected cohort, but conditional support declines.

  2. One of twenty hostile cases dispatches an unauthorized action. Is that a five-percent production incident rate?

    Reason through the consequence

    No. It is the observed proportion in a selected challenge set. It also fails the declared all-cases boundary rule, independently of a population-rate estimate.

  3. A ten-percent trace sample is available. Can it prove approval for every accepted action?

    Reason through the consequence

    No. Diagnostic sampling and required durable approval records serve different purposes. Preserve the complete required decision population under its own contract.

Evaluation describes what the application must continue to satisfy. Page 65 puts several applications behind a gateway and asks which routing, budget and disclosure rules that shared boundary can actually enforce.

Northwind decision log

Separate usefulness, support, authority and operational evidence.
Preserve denominators, candidate versions and unrun checks.
Next, route model requests without silently changing these contracts.

Go deeper: Measurement validity and product evaluation