Why production prompts get versioned and model IDs get pinned
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Prompts are behavior-defining code, so version them for diffs, review, and rollback; pin model IDs so a silent provider update can't change behavior you never touched.
Imagine a recipe that the whole kitchen cooks from. Change one line — 'a pinch of salt' to 'a spoonful' — and every plate that goes out tastes different. You'd want that recipe saved with a history, so you can see what changed and go back if dinner gets worse. Now imagine the oven secretly gets swapped for a hotter model overnight. Even with the same recipe, the food comes out different and you don't know why. Pinning the model is like keeping the exact same oven, so the only thing that ever changes is what you chose to change.
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.
Spend 4-6 minutes connecting both practices to one idea — attribution — so you can explain why versioned prompts and pinned models are the prerequisite for debugging any LLM quality shift.
| Practice | Floating / unversioned | Versioned + pinned |
|---|---|---|
| Prompt change | Edited live, no diff | Reviewed diff, instant rollback |
| Model behavior | Provider can change it silently | Fixed until you upgrade deliberately |
| Quality regression | Mysterious drift, hard to attribute | Traced to a specific version |
| A/B testing | Hard — inputs aren't pinned | Clean — you control each version |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling a floating model alias like a 'latest' tag in production, so the provider can update the model under you and shift behavior you never changed.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.