A customer support team updates the prompt behind its AI assistant. Before releasing the change to every customer, the team directs a small share of live requests to the new version.
A canary deployment is a release strategy in which a team exposes a new version of a model, prompt or AI agent to a limited share of production traffic, compares its performance and task outcomes against the current version, and expands or reverses the rollout according to predefined acceptance criteria.
How does a canary deployment work in AI systems?
The engineering team keeps the current version running while introducing the new version to a limited group of users or requests. Both versions handle production traffic, allowing the team to compare their behavior under real operating conditions before committing to a wider release.
The Google SRE Workbook describes this approach in its chapter on canarying releases. The authors explain how teams evaluate a limited deployment against a control group to determine whether a change should proceed.
For AI applications, the change may involve a different model, a revised prompt or an updated agent workflow. Teams use model versioning and configuration records to identify exactly which components each version uses and which configuration they need to restore if problems emerge.
What should teams measure during a canary deployment?
Traditional software releases often emphasize availability, error rates and response times. AI releases also require evidence that the new version performs the intended business task correctly.
Teams should establish acceptance criteria before exposing users to the new version. Relevant measures depend on the application and may include:
- Task accuracy: Whether the new version produces correct answers or decisions.
- Task completion: Whether an agent finishes the requested workflow.
- Business rules: Whether outputs respect the requirements of the intended task.
- Operational performance: Whether latency, errors and costs remain acceptable.
- Output quality: Whether responses contain unsupported claims or missing information.
Teams can incorporate agent evaluation into the release process to assess behavior beyond the availability of the underlying service. A successful technical response does not necessarily represent a successful business outcome.
How does a canary deployment differ from a shadow deployment?
A canary deployment allows selected users to receive outputs from the new version. In a shadow deployment, the team sends copies of production requests to the new version and does not return its responses to users.
Teams can use shadow testing to examine behavior before exposing users to a change. Canary testing then provides evidence about how the new version performs when users interact with its actual outputs.
When the new version fails to meet agreed criteria, the team redirects affected traffic to the previous version. A limited rollout reduces exposure to unexpected behavior, but teams still need a clear rollback procedure before the rollout starts and reliable evaluation data before expanding it.