Contents

Foundation Model Engineering

Manuscript updated (UTC) · Chapter source on GitHub · Cite this chapter (RIS)

On this page

17.5 Production Evaluation and Release Gates

A support assistant has learned to answer a new class of questions. Can it still handle the requests customers rely on today? A release gate turns each requirement into a decision. Before seeing the scores, the team agrees on the smallest useful gain, the losses it can tolerate, and who can stop the rollout.

Worked Release Decision

In the release lab in §17.7, select regression. The candidate and the current production model answer the same cases. The lab uses synthetic outcomes for two tasks. Each has 80 independent groups of four related cases, and each group counts equally. All differences below are in percentage points of success rate.

TaskCandidate minus current modelOne-sided 95% lower boundRequirement set before the run
New task+15+11.25Lower bound above +5
Existing task to protect−25−25Lower bound above −2

Block the canary. The new task clears the minimum useful gain, even at its lower bound. On the existing task the candidate gets one fewer case right in every group of four. That is a 25-point loss regardless of which groups the lab resamples. Keep serving the current model and inspect the paired failures before testing a new candidate. The identical group losses are a feature of this exercise. Real tasks can vary enough to leave the decision open.

Immutable Artifact Bundle

Give the exact release a version. Record the hashes and settings for one immutable artifact bundle:

  • Base model and every adapter or merged checkpoint.
  • Tokenizer, special-token map, chat template, and generation configuration.
  • Tool schemas, retrieval index revision, safety policy, and prompts.
  • Code commit, resolved configuration, container, and CUDA, framework and kernel versions.
  • Training and evaluation data manifests, objective, and decoding seeds.

Record who owns each bundle, who approved it for which users, where the evaluation results are, and which last-known-good version it replaces. Check that the model, adapter, tokenizer, and template work together before loading them. Two services with the same model name can produce different answers if one renders the conversation differently.

Release Packet and Statistical Decision

Freeze the baseline hash, prompts, rubrics, grading model or verifier version, tool state, seeds, and decoding settings. Keep each system’s result for each case. Summarize both task quality and operating costs, as multi-metric evaluations such as HELM illustrate [1].

  • For the target domain and protected capabilities, report success by task. Break out safety failures, unnecessary refusals, invalid formats, incorrect tool calls, and privacy or security failures.
  • Report response length, entropy and calibration where relevant. Retain the evidence used to check factual claims and citations.
  • Record latency at p50, p95, and p99, throughput, cost, and rates of out-of-memory errors, other errors, and tool retries.
  • Give the sample size in each group and identify individual failures severe enough to block a release.

When both models see the same cases, keep their outcomes paired. Related prompts from one conversation also stay together in a paired bootstrap confidence interval. A paired permutation test is another option when its exchangeability assumptions fit the design. The unit of comparison matters: comparing algorithms across independent datasets is a different design from comparing answers to paired prompts [2]. Set the minimum useful effect, error tolerance, sample size or power rationale, tie handling and minimum evidence per group in advance. Inspect a sample of disagreements with a human reviewer.

If an LLM grades the answers, calibrate it against human judgments on the target rubric, randomize answer order, and check agreement and errors in each group. When a requirement can be checked exactly, such as whether a tool argument satisfies its schema, run that check directly.

Gate Decision Table

Write down what the release owner should do for each result.

RequirementPassReviewBlock
Target qualityLower bound exceeds the minimum useful gainToo few cases or an inconclusive estimateMaterial regression
RetentionAll protected groups meet their marginsBorderline result in a noncritical groupConfirmed loss on a critical capability
Safety and privacyNo critical failures and rates within limitsA case needs human adjudicationA failure reaches the predeclared blocking severity
Output format and toolsSchema checks and allowed-action tests passRecoverable warningInvalid action or unauthorized external effect
Service operationLatency, cost and errors stay within their limitsCapacity plan neededOut of memory, retry storm or service-level objective breached

Record the owner, observation window, threshold, statistical rule, treatment of missing evidence, and who can approve an exception. If a safety test never ran, record the result as missing and withhold approval.

Shadow, Canary, and Ramp-up

  1. Shadow traffic. Mirror actual inputs to the candidate. Only the current model responds to users. Disable external side effects on the shadow path so the team can compare outputs, latency and planned tool calls safely.
  2. Canary. Randomly assign a small share of eligible users or sessions to the candidate. Keep each assignment stable, log exposure and assignment probability, and compare the two models concurrently [3].
  3. Ramp-up. Increase the share in planned steps. Wait for the required observation window and sample size before expanding.

Use a traffic flag or a registry pointer to switch versions. Set automatic abort thresholds for safety, errors, latency, cost and critical task failures. For noisy metrics, hysteresis can require a healthier reading before resuming than the reading that triggered a pause. A critical safety event can still stop traffic immediately. Monitor safety throughout the run. For efficacy, use a fixed sample size and one planned analysis at the end, or choose a sequential design before the first look.

Rollback Runbook

Name the incident owner and approver. Switch routing to the complete last-known-good bundle and invalidate incompatible cached state. Then account for:

  • Model, adapter or tokenizer state that the prior version cannot load.
  • Stateful tool side effects, unfinished workflows, and external transactions.
  • Queued jobs, ongoing conversations, sessions, and replies already delivered.
  • Logs that identify the affected users, notifications, and follow-up evaluations.

A customer may already have received a refund. Restoring the previous model changes what handles the next request. The payments system needs its own record of the completed transaction. Use idempotency keys to make retries safe, dry runs for tool checks, version tags on queued work, and compensating actions where feasible. In a rollback rehearsal, time detection and recovery and verify that the prior bundle still loads.

Evaluation-Set Maintenance

Give each case a stable evaluation ID and a group ID. Record its source, why it was added, owner, severity, rubric version, access rules, and retirement status. Deduplicate semantically related cases and keep evaluation groups out of training, including synthetic data generation.

When a support incident becomes a test case, reserve the whole family of related requests for evaluation, or use it in training and mark all related regression cases as exposed. Use fresh, untouched groups to test generalization. Add cases as traffic changes, keeping a stable set for comparisons over time. Version changes to prompts, graders, tools or schemas and rerun both systems.

Audit access and possible contamination. Replace secret cases when exposure is suspected and record the change so readers can interpret the trend.

Evaluate Actions Without Creating Uncontrolled Effects

In its October 9, 2026 report, Anthropic described a model submitting a form on a real website [4]. A task can end with a plausible answer after an unauthorized action. Chapter 16.6 discusses containment. In release testing, grant network access explicitly. Use recorded responses, a test service you control or an offline subset when these exercise the intended skill. For live access, specify permitted destinations, identities and effects before the run.

Record attempted unauthorized actions even when the executor blocks them. Collect policy decisions and actual side effects outside the agent’s transcript. Test all enabled tool paths, including redirected and indirect requests. Version each offline substitute and report its results separately, since it changes the task being measured.

Quizzes

Quiz 1: The candidate clears the target quality threshold with room to spare. Why keep it out of the canary? The team also committed to protecting an existing task. In the example, every group loses one success in four, far beyond the two-point retention margin. Passing one requirement cannot offset that loss.

Quiz 2: Why record the tokenizer, template, tools and safety configuration alongside the weights? The template and tokenizer determine which tokens reach the model. The tool and safety configurations determine which actions it can take. Restoring the complete bundle restores the version that was evaluated.

Quiz 3: Two paraphrases of one support request produce the same outcome. What should a paired bootstrap resample? Resample the independent request group, keeping its paraphrases and both models’ outcomes together. Counting the paraphrases as independent requests gives duplicated evidence too much weight.

Quiz 4: During a refund test, what changes when the candidate moves from shadow traffic to a canary? Shadow tool calls must leave the payment system untouched. A canary can affect real users and create transactions. It needs monitoring, immediate abort criteria and a way to reconcile transactions after traffic switches back.

References

  1. Liang, P., et al. (2022). Holistic Evaluation of Language Models. arXiv:2211.09110.
  2. Demšar, J. (2006). Statistical Comparisons of Classifiers over Multiple Data Sets. JMLR.
  3. Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy Online Controlled Experiments. Authors’ website.
  4. Anthropic. (2026-10-09). Investigating unintended model actions in our evaluations and internal use.