Skip to content
Agent Factory
Library
Building4 min readReviewed Aug 2026

Migrate to a New Model Without Breaking Production

What changes when the model changes, how to shadow it on real traffic, and how to keep an eval set meaningful across the switch.

Better is not the same as compatible

A stronger model can still break your agent, because your agent is fitted to the old one. Prompts that worked partly because the previous model over-followed instructions will slip. Formats that parsed reliably may gain a preamble. None of that shows up in a benchmark comparison.

So treat a model change as a change to your product rather than a dependency bump. It alters behaviour across every path at once, which is a category of change you would normally stage carefully and watch closely.

The corollary is that you cannot evaluate a migration by trying a few prompts by hand. Impressions from a handful of inputs are exactly the evidence least able to detect a regression in the tail, and the tail is where your incidents live.

What actually changes

Tool calling first. How eagerly tools get called, how arguments get formatted, whether calls come in parallel, and how the model behaves when a tool errors. This is where most migrations break, and the breakage looks like an application bug rather than a model change.

Then output discipline: structured output that parsed every time may acquire commentary around it, and enums may gain a plausible sixth value. Then refusals, which shift in both directions and can quietly start declining legitimate work in a regulated domain.

Then the numbers. Latency per call, tokens produced for the same task, and therefore cost per completed task. A model with a cheaper headline rate can be more expensive in practice if it takes more steps or writes more words to reach the same place.

6 more sections in this article

  • Freeze the baseline before touching anything
  • Shadow it on real traffic
  • Keeping the eval set meaningful
  • Cut over behind a flag
  • Deprecation runs on someone else's schedule
  • Worked example: the ticket triage agent

This is Pro content

Get Agent Factory Pro - a one-time payment for lifetime access to full articles, complete build prompts, and everything new.

Use it

The parts of the library that put this article to work.

Published 18 August 2026. Last reviewed 17 August 2026. We re-read this library on a schedule and date every article, so you can see for yourself how current it is.