Design an eval framework that tells you whether a production prompt survives a model migration (Claude 4.7 to 5.0, or Claude to GPT-5.5). What do you measure and what's the gate?
You're the MLOps engineer responsible for upgrading the LLM behind a production assistant. You need to migrate from Claude Opus 4.7 to either Claude Opus 5.0 (same family, new generation) or GPT-5.5 (different vendor). Design the evaluation framework that tells you whether the production prompt will survive the migration as-is. Cover: what goes into the golden set, what measurement axes you score, how you handle adversarial cases, what cost and latency you track, what the gate criterion looks like, and what the rollout pattern is if the eval passes.
Three-bucket golden set (representative, adversarial, regression-fix), five axes with per-metric retention + CIs, gate at 95%+ plus zero new false refusals, flag-rolled rollout with auto-rollback.
Imagine you are about to switch suppliers for a part that goes into your product. The right way to decide is not to try one part and call it good. You build a test bench with three kinds of tests: typical cases, the cases that broke last time, and the cases that are designed to be sneaky. You measure five things on each test: does the part fit, does it last, does it pass safety, does it cost less, does it work fast. You only switch if the new part passes every test within tight tolerances. Then you switch slowly on a small fraction of products first and watch the real-world data. That is what a portability eval framework is for prompts.
Detailed answer & concept explanation~9 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: three-bucket golden set + five orthogonal axes + per-metric retention with CIs + pre-registered gate criterion + axis-specific adaptation playbook + flag-rolled rollout + same-family vs cross-vendor distinction.
Real products, models, and research that use this idea.
- Cursor's engineering posts describe running the same coding prompts against Claude Opus 4.7 and GPT-5.5 on a golden code-edit set, reporting per-metric retention, and routing each request to the model that wins on the specific axis the request needs.
- Perplexity's stack runs a side by side eval suite for Claude and GPT-5.5 on its production search prompts, tags every call with the model snapshot, and rolls migrations behind feature flags with auto-rollback on metric regression.
- Anthropic's eval cookbook and OpenAI's Evals framework both ship reference implementations of golden set based portability evals with bootstrap CIs and CI integration; Braintrust and Langfuse layer prompt versioning on top.
- Notion AI's documented migration from Claude Sonnet 4.x to a multi-model router including Gemini 3.1 Flash used a three-bucket golden set and per-metric retention to decide which traffic slices were safe to route to each model.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you build the adversarial slice when you do not yet know which cases will be tricky on the new model?
QWhat is the right LLM-as-judge configuration for cross-model evals to avoid judge bias?
QWhen the eval surfaces a 10-point drop on format compliance, what is the iteration cycle?
QHow do you decide between a single-model migration and a multi-model router?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Trusting a passing aggregate eval on the representative slice while the adversarial slice quietly regresses, then shipping a migration that breaks the long tail of edge cases that the average user never hits but the high-value users do.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.