AI Academy · Book
Engineering Managers · Module 05 · Chapter 009

Releasing AI Features: Shadow, Canary and Rollback

A release that passed its evaluation is still a guess about live traffic. Shadow mode, a small canary and a wider rollout turn the guess into evidence, one exposure step at a time. What makes it safe is a rollback that restores the whole bundle, model, prompt, index and settings, and a model pinned to a version you chose.

≈ 14 min read

After this chapter you can

  • Define a release bundle of model, prompt, index, tools and settings under one identifier that every request logs.
  • Order the four exposure steps and state which question each one answers.
  • Write proceed, hold and roll-back numbers for each step before it starts, and name who decides.
  • Estimate whether a canary's ratings can detect the smallest change that matters.
  • Require a rollback that restores the whole bundle without a deploy and has been rehearsed, with the model pinned by dated version.

Your team’s new feature scored 91 on the release gate, above the bar of 90 you set. The pull request is approved. The question now is how many customers see it tomorrow morning, and what you will do at 10:00 if something looks wrong. For ordinary software, teams answer with a feature flag and a rollback of the code. For an AI feature that answer is incomplete, because the behavior comes from more than code: a model version, a prompt, a retrieval index, tool definitions and settings, any of which can change the output without a code change.

Level 1 made the executive case for releasing in stages: a silent run, then a canary, with scale treated as a new proof. This chapter is the manager’s version. It covers what to expose, to whom, for how long, how to know whether to proceed, and how to take it back.

Why the gate is not the release

An evaluation set is a sample of the cases you thought of. Live traffic is the set you did not think of: different phrasing, longer inputs, odd files, users who push on the system. Two things follow. The score on the live distribution can differ from the score on your set, and some failure modes only show at scale, such as latency under load, cost per task, or a rare input that triggers a bad tool call. The gate decides whether the feature may go out. Staged release decides how far, and it gathers the first real evidence.

Google’s site reliability engineers define canarying as a partial, time-limited deployment of a change and its evaluation to decide whether to proceed with the rollout1. The definition has two halves, and teams often keep only the first. Without the evaluation half, a canary is a small outage. Everything below applies that idea to features whose output varies.

The release bundle: what you ship and what you roll back

Before staging anything, name what is being released. For an AI feature the release bundle has at least five parts:

  • the model, identified by an exact version;
  • the prompt and any examples, with a version;
  • the retrieval index or data snapshot it reads;
  • the tool definitions and their permissions;
  • the settings: temperature, output limits, routing rules and thresholds.

Each part can change behavior alone. A prompt edit in a configuration file, a refreshed index or a provider’s silent model update can degrade quality on a day when no code was deployed. So the rule for the team is that the bundle has one version identifier, every request logs it, and a rollback restores the whole bundle to a known-good state. Rolling back only the code while the prompt and model keep moving gives you a different, untested combination.

Model version pinning is the part managers most often ask about. Providers publish identifiers that name a dated snapshot and sometimes aliases that move to newer snapshots over time. Pin production to the dated identifier you evaluated. An alias that floats means the provider can change your feature’s behavior on its own schedule. Pinning has a price, because providers retire models. Anthropic’s published policy, as of October 2026, is to give at least 60 days’ notice before retiring a publicly released model, and its deprecation table lists dated identifiers with deprecation and retirement dates2. The practical reading is that pinning gives you control of when behavior changes, and a retirement notice starts a clock for the upgrade work. The last chapter of this module covers that work.

A release bundle of model, prompt, index, tools and settings shares one version identifier that is logged on every request and restored together on rollback.BundleOne version idModelPromptIndexToolsSettings
Figure 5.9.1 Any part of the bundle can change output on its own, so one identifier covers all of them and a rollback restores all of them.

Four steps of exposure

A staged release moves through steps, and each step answers a different question. Do not skip a step because the previous one looked good. Each one exists to catch something the earlier ones cannot.

Offline gate. The feature passes its evaluation set and the security gate. Question: is it good enough to try on real input at all?

Shadow mode. The new version runs on live requests, and its output is stored but never shown. Users still get the old experience or none. Compare the shadow outputs with the incumbent’s, score a sample automatically and check the failure rates, latency and cost per task. Question: does it behave on real input as it did on the evaluation set? Shadow mode suits new features and model swaps. It costs inference at up to twice the volume, and stored outputs may hold personal data, so agree retention and access first.

Canary. A small share of real users get the new version, with the rest as the control. Start with internal users if you have them, then a few percent of customers, chosen at random so the groups are comparable. Question: do users and the metrics behave as well as in the control? A canary needs a pre-agreed list of metrics, exit criteria and a duration. Google’s guidance is to keep the list to perhaps a dozen metrics, favor measures a user would notice, such as errors and latency, over resource counters, and run one canary at a time so signals do not mix1.

Progressive rollout. Widen exposure in steps, for instance 5, 25, 50 and 100 percent, holding at each step long enough to see a full cycle of use, such as a weekday and a weekend. Question: does the result hold as volume and the mix of users grow?

Four release steps, offline gate, shadow, canary and progressive rollout, each answering a different question about the feature.Offline gateEvals and security passShadowLive input, no user sees itCanaryA few percent, with a controlProgressiveWiden while signals hold
Figure 5.9.2 Each step answers a question the earlier ones cannot; a step ends on written criteria, not on a feeling.

Set exit criteria before you start

The most common failure in a staged release is not a missing step but a missing criterion. A canary with no stated threshold ends when someone feels comfortable, which is when the pressure to ship wins. Write, for each step, three things in advance: the metrics, the numbers that mean proceed, hold or roll back, and who decides.

Two kinds of metric belong in the list. Guardrails are the things that must not get worse: error rate, latency, cost per finished task, rate of refusals and escalations, and any safety flag. Quality signals show whether the feature does its job: automated scores on a sampled share of outputs, user ratings, and behavioral proxies such as how often users retry, edit the output or switch to a person. Ratings are sparse. Most users never click, so quality signals need either volume or an automated scorer, which the earlier chapter on evaluation gates covers.

Do the arithmetic on traffic before you commit to a canary size. The figure here is the author’s own calculation, not a published benchmark, and it rests on stated assumptions: two independent groups, a two-sided test at a 5 percent significance level, 80 percent power, a baseline satisfaction rate of 80 percent and a drop to 75 percent as the smallest change worth catching. Under the standard normal-approximation formula for two proportions, that needs about 1,094 rated responses per group, which this chapter rounds to 1,100. A canary that cannot produce that many ratings in its window cannot detect that drop, whatever the dashboard says. The same Google chapter says a small canary can still catch critical failures without large samples1, so the size needed depends on how big a change you must detect. That is not a reason to skip the canary. It is a reason to choose the signals, the share and the duration on purpose.

An illustrative table of proceed, hold and roll-back thresholds for error rate, latency, cost, judge-scored correctness and safety flags in a canary.MetricProceed whenHold whenRoll back whenError rate(guardrail)At or under control + 0.5 points0.5 to 1 point aboveMore than 1 point above for30 minutesp95 latency(guardrail)Under 6 seconds6 to 8 secondsOver 8 seconds for 15 minutesCost pertask (guardrail)Under 0.100.10 to 0.13Over 0.13 for a dayJudge-scoredcorrectness (quality)90% or above on 300+ samples86 to 90%Under 86%Safety flags(guardrail)No more than controlAny new type of flagAny confirmed leak orunconfirmed write
Figure 5.9.3 Illustrative exit criteria for one canary step; the numbers are invented for the example, and every team must set its own from its baseline.

A rollback that works for prompts and models

A rollback you have never tried is a hope. Because AI features have a bundle, the rollback design has four requirements.

  1. Versioned and stored. The previous bundle exists as a deployable unit. The old prompt, the old index snapshot and the pinned model are all retained, and the old model version is still available from the provider. If the provider has retired it, the rollback target is gone, so check before relying on it.
  2. Switchable without a deploy. A flag or a configuration change moves traffic to the previous bundle in minutes. A rebuild and redeploy is too slow when the feature is giving wrong answers to customers.
  3. Granular. You can disable one tool, one capability or one customer segment, and not only the whole feature. A partial switch-off often avoids a full outage.
  4. Rehearsed. Someone has done it, on a staging system or on real traffic at low volume, and it took under a target time. Put that time in the release checklist.

Add a kill criterion that is not a metric: any of the security or safety conditions on the gate table, such as a data leak, an unconfirmed write action or a serious harm report, means switch off first and investigate second. Decide in advance who may press the button without asking.

State changes need thought too. A rollback does not unsend an email, undo a refund or delete an index entry. If the feature takes actions, list what a rollback cannot reverse and make those actions confirmable or reversible, as the security chapter’s permission ladder suggests.

Case: Bing chat and the chat cap

In February 2023 Microsoft released its AI-powered Bing as a limited preview on desktop, open to people who signed up on a waitlist, and said it would scale the preview to millions in the coming weeks3. That is an exposure step. Eight days later, on 15 February, it published what it had learned: the preview had run in more than 169 countries, 71 percent of testers had given the AI-powered answers a thumbs up, and in long conversations of 15 or more questions Bing could become repetitive or be provoked into unhelpful responses4.

On 17 February Microsoft capped chat at 5 turns per conversation and 50 per day. Its stated reason was that very long conversations can confuse the underlying model, and it said the vast majority of users found their answers within 5 turns, while only about 1 percent of conversations had 50 or more messages. It also said it would explore expanding the caps as feedback came in5.

Microsoft released Bing chat in a limited preview, published first-week findings on 15 February 2023 and capped chat length on 17 February.7 Feb 2023Limited preview, waitlist15 FebFirst-week findingspublished17 FebCaps: 5 turns, 50 a dayA config-level limit, not a rebuild
Figure 5.9.4 Microsoft’s own account of the first ten days of the 2023 preview; the posts are the company’s description, not an independent review.

Three observations carry over, with limits. Exposure was gated by a waitlist, though the preview already spanned more than 169 countries, so “bounded” meant signed-up testers, not a small region. The company could say what a typical conversation looked like: most users found answers within 5 turns and about 1 percent of conversations ran to 50 or more messages. The 1 percent figure describes the daily cap; the 5-turn cap reaches further, and the post does not say how many conversations it touched. And the response was a limit on behavior, a control that could be applied and later relaxed, not a withdrawal of the product. Counter-point: the 71 percent thumbs-up figure sat beside the repetitive-reply finding, so a good average did not rule out a bad tail. The posts do not say how Microsoft chose the preview size, or whether the preview caught every user-visible problem.

A team-sized worked example

Here is a hypothetical team with invented numbers, offered as an illustration and not as a record of any real release. A team of seven has built a ticket-summary feature for a support tool. It handles 4,000 tickets a day. The team has a release gate of 90 percent correct on 200 labeled tickets and the candidate scored 91.

The lead writes the bundle first: pinned model snapshot, prompt version 14, summary template, the ticket-field mapping and a maximum output length, all under one identifier. Then the steps.

Shadow, 3 days. The summaries run on every ticket and are stored, not shown. The team scores a 5 percent sample, 600 tickets over three days, with an automated judge that agrees with human graders on a labeled set. Correctness is 89 percent, one point below the gate. In this story the team traces the dip to long tickets cut off by the output limit, fixes the limit, and a second shadow day reaches 92. The shadow also shows a cost per ticket of 0.04, under the 0.10 proceed line in the table above.

Canary, 25 percent, 9 days. Ratings are the problem. Only 12 percent of agents rate a summary, so 25 percent of 4,000 tickets is 1,000 a day and 120 ratings. At that rate, reaching the 1,100 ratings per group that the arithmetic asked for takes a little over nine days (1,100 / 120 = 9.2). The lead accepts nine days, and adds the judge on a 10 percent sample, which gives 100 scored summaries a day for a faster read on correctness. A guardrail trips on day 4: p95 latency rises to 9 seconds for 10 minutes during a peak. The table says roll back only after more than 8 seconds for 15 minutes, and hold from 6 to 8, so the 10-minute spike is a judgment call; the lead chooses to hold, not roll back. The canary holds, a queue limit is added, and it resumes.

Progressive rollout. 50 percent, then 100 percent, each held for a full week of ticket volume.

In an illustrative release, a team shadowed a ticket summarizer, ran a nine-day canary held on latency, widened to 50 then 100 percent and kept the old bundle for 30 days.Shadow3 days, 5%sampled, 89then 92Canary25%, 9 days;held on latency50%One weekof volume100%Previous bundlekept 30 daysRollback rehearsed: under 10 minutes
Figure 5.9.5 Illustrative composite: invented traffic, scores and thresholds, showing how criteria and sample sizes shape the schedule.

At the end the lead writes three lines in the release record. The bundle identifier. The exit criteria met at each step. The retained previous bundle, with the date after which it will be deleted. Keep the previous bundle for 30 days in this example, a figure chosen for illustration, so that a monthly cycle fits inside the window.

What this means for engineering managers

Check yourself

  1. If the feature passes its offline evaluation, a staged release adds nothing.
  2. Rolling back the code is enough to return an AI feature to its previous behavior.
  3. Pinning to a dated model version gives your team control over when behavior changes.
  4. A canary with a few hundred users can detect any quality drop.
  5. Shadow mode shows users the new output alongside the old one.
  6. A rollback you have never rehearsed can be assumed to work.

Monday action

Monday: ask for a release record for your next AI change, using the template below, before anyone sets a launch date.

Release record (copy; every number is yours to set)
Bundle id: model ____ | prompt v__ | index ____ | tools ____ | settings ____
Pinned model: ____  Provider retirement date: ____
Step (shadow / canary / 25% / 50% / 100%): share ____  duration ____
Proceed if: ____   Hold if: ____   Roll back if: ____   Decider: ____
Smallest detectable change at this size: ____ (units of the metric)
Rollback: tried on ____ ; took ____ min ; cannot undo: ____
May switch off without asking: ____

Reflection

What comes next

Once the feature is live at full exposure, the staged checks stop, but the questions do not. The next chapter, Observability and Monitoring in Production, covers what to log, which signals to watch for quality, drift and cost, and which of them should wake someone up.

Laws referenced

EU AI Act · EU

Regulation (EU) 2024/1689, as amended by Regulation (EU) 2026/1744

Risk-based rules. Prohibited practices include social scoring, untargeted scraping of facial images, and emotion recognition in workplaces and schools (with narrow exceptions). High-risk systems (Annex III: biometrics, safety components of critical infrastructure such as energy, water and traffic, employment and worker management, credit, education, essential services, law enforcement, migration, justice) need risk management, data governance, documentation, logging, human oversight, human oversight that keeps people able to understand the system, notice automation bias (over-reliance on its output), override it or stop it (Art. 14(4)), appropriate accuracy, robustness and cybersecurity (Art. 15), automatic logging of events (Art. 12), a provider quality-management system (Art. 17) and conformity assessment. An Annex III system is not high-risk if it poses no significant risk of harm, for example a narrow procedural or preparatory task that does not replace human assessment; systems that profile people are always high-risk, and a provider relying on this exception must document it and register (Art. 6(3)). Deployers of high-risk AI must use it as instructed, assign competent human oversight, monitor its operation, keep logs for at least six months and report serious incidents (Art. 26); employers must inform workers' representatives (Art. 26(7)). Public bodies, private providers of public services, and deployers of credit-scoring or life and health insurance pricing systems must carry out a fundamental-rights impact assessment before first use (Art. 27). Providers must run post-market monitoring (Art. 72). A deployer that puts its name on a high-risk system, substantially modifies it, or changes its purpose so that it becomes high-risk takes on the provider's obligations (Art. 25(1)). A substantial modification (Art. 3(23)) of a high-risk system needs a new conformity assessment, unless the change was pre-determined and documented at the first assessment, as with planned continuous learning (Art. 43(4)). Providers of general-purpose AI models (from 2 Aug 2025) must keep technical documentation, have a policy to comply with EU copyright law including text-and-data-mining opt-outs, and publish a sufficiently detailed summary of training content (Art. 53). Research, testing and development before a system is placed on the market or put into service is outside the Act, except testing in real-world conditions (Art. 2(8)). Since the 2026 Omnibus, the Art. 4 AI-literacy duty is an obligation of effort (take measures to support literacy), not of result. Fines reach EUR 35 million or 7% of global turnover for prohibited practices.

  • 2024-08-01 — Entered into force
  • 2025-02-02 — Prohibited practices (Art. 5) and the AI-literacy duty (Art. 4) apply
  • 2026-07-27 — Omnibus softens Art. 4: providers and deployers must take measures to support AI literacy; no specific level must be guaranteed
  • 2025-08-02 — General-purpose AI model obligations apply; governance and penalties regime in place
  • 2026-08-02 — Transparency duties (Art. 50) apply: disclose AI interaction, label synthetic and deepfake content (marking for generative systems already on the market: 2 Dec 2026)
  • 2027-12-02 — High-risk obligations for Annex III systems (e.g. hiring, credit, education, essential services) - moved from 2 Aug 2026 by the 2026 Omnibus
  • 2028-08-02 — High-risk obligations for AI in products regulated under Annex I

Last verified 2026-10-06 · official text

References

  1. Alec Warner and Štěpán Davidovič. Canarying Releases (Chapter 16). The Site Reliability Workbook, O'Reilly Media. 2018.
  2. Anthropic. Model deprecations. Claude API documentation. 2026.
  3. Yusuf Mehdi. Reinventing search with a new AI-powered Microsoft Bing and Edge, your copilot for the web. Official Microsoft Blog. 2023.
  4. Microsoft Bing. The new Bing & Edge: Learning from our first week. Bing Search Blog. 2023.
  5. Microsoft Bing. The new Bing & Edge: Updates to Chat. Bing Search Blog. 2023.

Further reading

Sources last verified 2026-10-12.