How to Move Prompts Between Models Without Breaking Them
Twenty-three days before a model contract renews is not much time to learn which sentences in a prompt are load-bearing. At Clause Atlas, a contract-summary feature used by 61 law firms had been tuned against one vendor for 14 months, and nobody could say what would survive the move.
Prompts fail on a new model for boring reasons. A phrase that reliably triggered structured output stops working, a length instruction gets read as a suggestion, and a safety clause that was implicit in one vendor’s defaults is simply absent in another. This workflow finds those failures on a test set instead of in a customer’s inbox.
What Counts as a Clean Move
Delivery target: the Clause Atlas summary prompt running on a second model with no measurable loss in summary quality, a documented list of every change made to get there, and a rollback path that takes under ten minutes.
A move is clean when all of these hold:
- The same 40-contract test set produces summaries within 5 percent of the current quality score.
- Every output still parses into the same six fields, with no contract failing validation.
- No new hallucinated clause references appear in the failing cases.
- Every prompt change is recorded with the failure it fixed.
- One environment variable switches the traffic back to the old model.
That last item is not paranoia. A portability project that cannot be reversed in ten minutes will be reversed in a panic at 11pm, badly.
Freeze the Test Set Before You Touch the Prompt
The temptation is to start editing the prompt, because editing feels like progress. Resist it for one day. Without a frozen test set you cannot tell an improvement from a coincidence, and every later decision becomes a matter of taste.
Clause Atlas pulled 40 contracts from the previous quarter: 16 standard vendor agreements, 11 leases, 8 employment contracts, and 5 deliberately messy scans with redlines still visible. Each one already had a human-approved summary written by a paralegal, which became the reference answer.
Forty is enough to expose a systematic failure and small enough to grade in an afternoon. Nine clause types matter for scoring: termination, liability cap, indemnity, payment terms, renewal, governing law, assignment, confidentiality, and data handling.
Porting, Testing, Repairing
Step 1: Write the reference scores before any model runs
Grade the existing vendor’s output on the frozen set first. You need a baseline that includes its flaws, otherwise you will spend the migration chasing a quality level that never existed.
You are a legal operations reviewer scoring contract summaries.
For each of the 40 contracts below you have: the contract text, a paralegal
reference summary, and the current model's summary.
Score each summary from 1 to 5 on three dimensions:
- Clause accuracy: every stated term appears in the contract and is quoted correctly.
- Completeness: all nine tracked clause types are addressed or marked absent.
- Usability: a lawyer could act on it without opening the contract.
Also record, per contract, whether the summary invented any clause reference.
Return a table and a single weighted score out of 100.
Data: <paste contract, reference, and model summary per case>What this step gives you: a baseline score you can defend, usually lower than the team expects. Clause Atlas landed at 82 out of 100 with a 4.2 percent invented-reference rate, and that number became the bar the new model had to clear.
Step 2: Separate the spec from the vendor’s dialect
Read the working prompt and mark every sentence that exists because of one vendor’s quirks. Some will be obvious, like repeated reminders to output JSON. Others are invisible until you try to remove them.
Below is a production prompt written for one model vendor. Rewrite it as a
model-neutral specification.
Rules:
- Keep every requirement, but move it into one of four sections: role, task,
output contract, and refusal rules.
- Delete any sentence that references a specific vendor, model family, or
chat product.
- Replace formatting-by-example with an explicit schema description.
- Mark with a comment any requirement you had to interpret, so a human can
confirm it.
Do not shorten the prompt by dropping requirements. Length is not the goal.
Prompt: <paste the current prompt>What this step gives you: a neutral version plus a list of ambiguous requirements. That list is where most portability bugs live; if a requirement was never stated clearly, each model will guess differently and both guesses will look reasonable.
Step 3: Run the portability test blind
Run all 40 contracts through each candidate model with the neutral prompt, then strip the labels before grading. Knowing which model produced a summary changes how you read it, and not in a useful way.
I will give you 40 summaries per model, labelled only A, B, C, and D. You do not
know which model produced which.
Score every summary against the reference using the same three dimensions and
the same 100-point weighting as the baseline.
Then produce a failure taxonomy: group every case scoring below 4 into one of
these categories and count them.
- missed clause
- wrong clause value
- invented clause reference
- format violation
- length violation
- refusal on a benign contract
Do not recommend a model. Only score and count.What this step gives you: a score per model and a failure count by type. The taxonomy matters more than the total, because a model that fails on format can be fixed and a model that invents clauses usually cannot.
Step 4: Fix the failures that belong to the model
Work through the taxonomy in order of cost. Format and length failures are cheap to repair with explicit constraints. Missed clauses usually need the instruction moved, not repeated.
For each failure category below, propose the smallest prompt change that would
fix it on the target model, and state the risk of that change on the other
cases.
Failure counts on the target model: format violation 9, length violation 6,
missed clause 4, invented reference 2.
Constraints:
- Do not add examples unless the failure is a formatting failure.
- Do not exceed 40 added words per change.
- Any change that could affect the 30 passing cases must be tested against them
before adoption.
Current prompt section that governs output: <paste section>What this step gives you: a short change list, each tied to a counted failure. Adopt one change at a time and re-run the full set; two simultaneous edits teach you nothing about which one worked.
Step 5: Set the rollback gate
Shadow the new model on a slice of live traffic and pre-commit to the numbers that trigger a revert. Decide these while you are calm.
Write a cutover and rollback plan for moving contract summarisation from model
A to model B.
Include: the shadow traffic percentage and duration, the metrics watched, the
threshold that triggers automatic rollback, the person who can trigger it
manually, and the exact steps to revert.
Assume 61 customers, roughly 900 summaries a day, and a support team of two.
The plan must fit on one page and name the one metric that decides everything.What this step gives you: a one-page plan with a single deciding metric, plus a named human. On a legal product that metric is usually the rate of customer corrections per 100 summaries, not latency or cost.
The Migration Dossier
- The frozen 40-contract set with reference summaries and baseline scores.
- The neutral prompt, versioned, with a comment on every interpreted requirement.
- Blind scores for each candidate model and a failure count by category.
- A change log where every edit names the failure it fixed and the cases re-tested.
- A one-page cutover and rollback plan with thresholds and an owner.
- A short note for customers explaining what changed and what did not.
Migration Mistakes That Cost a Renewal
1. Testing on new contracts instead of old ones. Symptom: no reference answers, so every disagreement becomes a debate. Fix: freeze contracts that already have human-approved summaries, and do not add cases mid-test.
2. Porting the prompt and the parameters together. Symptom: quality drops and you cannot tell whether the prompt or the temperature caused it. Fix: move one variable at a time, starting with the prompt at matched settings.
3. Grading with the labels visible. Symptom: the model you expected to win wins. Fix: strip labels, shuffle order, and grade in one sitting.
4. Rewriting the whole prompt for the new model. Symptom: a prompt that scores well on the test set and behaves unpredictably on edge cases nobody wrote down. Fix: keep the neutral spec as the source of truth and apply small, counted fixes on top.
5. No rollback, only a launch date. Symptom: a bad week becomes a bad quarter because reverting means a deploy. Fix: put the model behind a flag and rehearse the revert once before you need it.
6. Treating a passing test set as proof of production safety. Symptom: the first unusual contract produces a confident, wrong summary. Fix: keep a refusal rule for unreadable documents and route those to a human. The grading harness in our prompt evaluation workflow is a good base for step three, and the schema-first approach in our JSON output guide removes most format failures before they reach a test. If invented references are your main risk, the guards in our anti-hallucination workflow are worth adding to the output contract rather than the task section.
Sources & Notes
The freeze, blind-grade, and rollback sequence is our own framing of standard migration practice, reviewed on 2026-11-03. Clause Atlas, its 61 customers, and the 82-point baseline are illustrative, and the contract mix described is representative rather than actual client material. Model behaviour differs by version and by API versus chat interface, so re-run the test set after any provider announces a model update. Nothing in this article is legal advice, and summaries produced by any model should be reviewed by a qualified lawyer before they are relied on.
