---
title: "Model migration Stack"
url: https://stackassay.com/stacks/model-migration/
updated: 2026-12-01
publisher: Stack Assay
license: https://creativecommons.org/licenses/by/4.0/
---

# Model migration Stack

Sold by Stack Assay: weigh what follows with that in mind. Prices: https://stackassay.com/pricing/

Text and data under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): quote it with a link to the page.

Record how your own calls behave on the model you run, replay them on the one you must move to, get a go or no-go, and prove each fix before your product takes it.

Status: available. Measured as of 2026-12-01. Track: [Model migration](https://stackassay.com/tracks/model-migration.md). Latest version 0.3.2 (2026-12-02); upgrade with `npm i @stackassay/stack-model-migration@latest`.

|  | The category | This Stack |
| --- | --- | --- |
| What it is | Testing a production AI feature when the model under it is replaced, because its vendor retires the one you run or you choose a cheaper one. | A migration check that lives in your repository, as a `swap` command, a CI job and one local endpoint your product calls. It runs no code but its own and needs no Docker. |
| What it does | Sends your prompts to the new model and compares the answers with what you expect, usually once, often by eye or with a judge model. | Records the current model’s answers to your own calls, several trials a case, and keeps them in git. Runs each candidate on the same calls the same number of times, grades every answer with typed checks, and reports go, no-go or no verdict with each lost case named. Where a case is lost it proposes the fix, a changed request or a rewritten prompt, replays it, and accepts it only when the replay holds. One endpoint then answers your product by name while the model behind the name changes. |
| Why you need it | One pass rate hides the loss. In the lab, a retiring model and its named successor passed the same share of trials, 79.5% and 80.0%, while 8 cases were lost on every trial. One run of each model showed 5 to 9 losses on another pair where four trials showed 2. | A case counts as lost only when the old model passed every trial and the new one failed every trial. Cases the old model itself passes only sometimes are named as its noise, so nobody chases them. |
| What you are buying | An eval platform you host your traces on (Braintrust, LangSmith), a test runner now owned by a model vendor (Promptfoo), or a vendor’s own tool that rewrites prompts for its next model. | Source you can read, run with your own keys on OpenRouter, on a vendor’s own API (OpenAI, Anthropic, Gemini, Vertex AI) or on a gateway of your own. The baseline is plain text in your repo, graded again every time the report is built, so a check you write next month still grades the old model after it is gone. |
| Why now | Six widely used models from three vendors stop answering between 30 November 2026 and 14 January 2027. A study of 17,703 repositories found 82% of migrations land after the shutdown date, when the old model can no longer be asked anything. | Record the baseline first. After the retirement date, the old model’s answers are the one thing you cannot buy. Keep the baseline current and the next switch is one report. |
| Who it is for | Teams with an AI feature in production and a retirement notice in the inbox. | The engineer or lead who has to say the switch is safe and put a name to it, and wants the same check on every switch after this one. |

### One migration, start to finish

1. `swap capture` drafts a case from each distinct call in a log of your real requests. A case is the request as your product sends it and typed checks on the answer, such as its JSON fields, the tool called and its arguments, or a refusal.
2. `swap validate` proves the cases offline and free. Each expected answer passes its checks, and every wrong answer you list is caught.
3. `swap baseline` records the current model’s answers, four trials a case, as plain text you commit. Do this before the retirement date.
4. `swap assay` prints its estimate, runs a pilot call, then runs each candidate on the same cases and trials under a spend cap, metered from your provider’s own records.
5. The report says go, no-go or no verdict. It names each case lost on every trial and what it failed on, the cases that are only noise, and what a parser will meet, with cost and seconds a call before and after.
6. `swap adapt` answers a request the new model rejects or cuts off with one of three rules, which are no prefilled answer, a forced tool asked for in the instruction, and a raised reply limit. It replays the changed request and accepts the rule only when every trial passes.
7. `swap port` has a model you name rewrite the system prompt the lost cases share. The candidate answers every case that sends that prompt again, and the rewrite is accepted only when that replay is a go.
8. `swap serve` is one local endpoint in the OpenAI chat format. Your product sends a name, the config says which model answers it, and each accepted fix is applied on the way. `swap status` says which step you are on and the one next command.

### Defaults, each set by a measured result

| Default | Why | Experiment |
| --- | --- | --- |
| Four trials a side, and no verdict under three | One run of each model showed 5 to 9 cases lost where four trials showed 2, and two retiring models were unsteady on 16 of 100 cases. | https://stackassay.com/labs/migration/#one-run |
| A case is lost only when it fails every trial | A retiring model and its successor passed 79.5% and 80.0% of trials while 8 cases were lost on every trial. The average did not show it. | https://stackassay.com/labs/migration/#named-successor |
| The named successor is a candidate, never the default | Three of six successors that vendors name got a no-go on the lab’s 100 calls. | https://stackassay.com/labs/migration/#named-successor |
| A rewritten prompt is accepted only after every case is replayed on it | A rewrite shown the lost cases won back all 10 on every trial, and for one successor it failed another case the old model always passed. | https://stackassay.com/labs/migration/#prompt-port |
| A request rule is accepted only when every trial of the replay passes | Three successors rejected a prefilled answer on every trial. The three request rules, replayed, fixed all 8 breaks they answer. | https://stackassay.com/labs/migration/#request-breaks |
| The answer’s shape reported beside the verdict | Two retiring models fenced all 160 JSON answers and their successors mostly did not, where every check still passed. | https://stackassay.com/labs/migration/#shape-cost |

### Measured as an arm in its own lab

The lab’s records were made and graded by the Stack itself, so the arm checks its grading. A grader written for the lab from the suite’s checks alone, sharing no code with the Stack, graded all 4,400 stored answers again.

| Measure | Value | Experiment |
| --- | --- | --- |
| Answers graded the same by the lab’s own grader | 4,400 of 4,400 | https://stackassay.com/labs/migration/#stack-arm |
| Verdicts the lab’s own rule also reached | 6 of 6 | https://stackassay.com/labs/migration/#stack-arm |
| Named successors given a no-go | 3 of 6 | https://stackassay.com/labs/migration/#named-successor |
| Cases lost on every trial at the same pass rate | 8 of 100 | https://stackassay.com/labs/migration/#named-successor |
| Request breaks fixed by a rule on replay | 8 of 8 | https://stackassay.com/labs/migration/#request-breaks |
| Lost cases a rewritten prompt won back | 10 of 10 | https://stackassay.com/labs/migration/#prompt-port |

### Teams already doing this

Public accounts from companies that built this pattern themselves; figures as each source states them. These companies are not Stack Assay customers.

- **Tursio** (Enterprise search): Tursio was moved off two retired models in a year, and its old prompts failed on both successors. With the prompts unchanged, GPT-4-32k passed 100% of the regression tests, GPT-4.1 passed 98% and GPT-4.5-preview 97.3%, which broke its release pipeline. The paper reports that redesigned prompts recovered the reliability lost. Source: [arXiv, Prompt Migration: Stabilizing GenAI Applications with Evolving Large Language Models](https://arxiv.org/html/2507.05573v1), 2025-07-08.
- **Zapier** (Workflow automation): Zapier’s eval suite caught 22 regressions when it moved its Copilot to a faster model. Most scores had been at least 80% and the affected ones fell below it, with 22 regressions in the comparison the team inspected. The team found its prompts had become too tailored to the older model, relaxed them, changed how it asked for tools, and then adopted GPT-4o. Source: [AI Engineer, How Zapier Builds AI Products and Features With the Help of Braintrust](https://ai.engineer/talks/fOtTHWeU6B8-zapier-builds-ai-products-features-help-braintrust), 2024. From a talk Zapier gave with Braintrust, the eval tool it used, as written up by the event.
- **Asana** (Work management): Asana tested a successor model on its own unit tests and found a regression among the gains. The successor passed 78% of the unit tests against 59%, its tool use benchmark rose from 76% to 90%, and time to first token was about 67% lower. In most cases it also left the @-mention link references out of its answers, and Asana says a new model usually needs prompt work for that. Source: [Asana, Asana’s LLM testing playbook: our analysis of Claude 3.5 Sonnet](https://asana.com/inside-asana/llm-testing-claude-sonnet-analysis), 2024-07-01.

### What it needs

- Node 22 or later, on a laptop or a CI runner. No Docker
- A key for the model you run and for each candidate (OpenRouter, a vendor’s own API or your own gateway), with a credit limit
- A log of your real calls, or cases written by hand, or the worked support-desk example to start

### Set up, after `npm i`

```sh
npx swap init
npx swap validate
npx swap doctor
```
