Claude Model Versioning: Pinning, Tiers and Release Planning

📚 Exam guide v1.1 (exams from 7 Dec 2026)🔄 Checked against official sources: 24 Nov 2026⏱️ 8 min read🎯 D5 Model Tier Selection and Release Planning · D2 Configuration and SDLC Integration

👋 In plain words: New Claude models arrive regularly. They are usually better, but “better on average” can still break your app on the cases you care about. This lesson shows you how to pin the model you use, test a new one against your own cases, and switch over without surprises, step by step, like any other dependency upgrade.

Advertisement

A model is a dependency, and model upgrades deserve the same discipline as library upgrades: pinned versions, a changelog review, a regression run and a staged rollout. In this lesson you will pin model IDs per environment, check what a new model changes in the API, run a side-by-side regression of an old and a new model on a golden set, read the result, and plan a canary rollout with a rollback.

📖 What You’ll Learn: You will be able to pin and configure Claude model IDs per environment, identify breaking changes between model versions, run a regression comparison, and plan a safe model rollout.

🔑 Key terms

  • Model ID: the exact string you send, such as claude-opus-5-5.
  • Pinning: fixing the model ID in configuration so it only changes when you decide.
  • Regression evaluation: running the same test cases on the old and new versions and comparing results.
  • Canary rollout: sending a small share of traffic to the new version first and watching it.
  • Deprecation / retirement: a model is announced for removal, then stops being served.

🪜 Step 1: Pin the model in configuration

Never scatter model IDs through code. Read them from configuration with one place to change, per environment:

📄 settings.py

import os

DEFAULTS = {
    "dev": {"model": "claude-opus-5-5", "effort": "medium"},
    "staging": {"model": "claude-opus-5-5", "effort": "medium"},
    "prod": {"model": "claude-opus-5-5", "effort": "medium"},
}


def model_config(env: str) -> dict:
    cfg = dict(DEFAULTS[env])
    cfg["model"] = os.environ.get("CLAUDE_MODEL_OVERRIDE", cfg["model"])  # for controlled experiments
    return cfg


for env in DEFAULTS:
    print(env, "->", model_config(env))

⌨️ Terminal

python settings.py

🖥️ Output

dev -> {'model': 'claude-opus-5-5', 'effort': 'medium'}
staging -> {'model': 'claude-opus-5-5', 'effort': 'medium'}
prod -> {'model': 'claude-opus-5-5', 'effort': 'medium'}
  • Log the model that actually answered (response.model) with every result, so you can tell which version produced a bad answer.
  • Changing the model is a configuration change: it goes through review and testing like code.
Advertisement

🪜 Step 2: Read what the new model changes

Before testing quality, check the API contract. Anthropic’s migration guides list breaking changes per model. Recent examples you have met in this course:

Change Example Symptom if ignored
Sampling parameters removed temperature rejected on newer models 400 errors
Thinking controls changed budget_tokens removed; disabled rejected on Opus 5.5 400 errors
Default effort changed Opus 5.5 defaults to medium (Opus 5 used high) Shorter or shallower answers, different cost
Forced tool choice removed tool_choice any/tool rejected on Opus 5.5 and Sonnet 5.5 400 errors
New tokenizer Opus 4.7 and later can use up to about 1.35× the tokens for the same text Higher cost, context limits reached sooner
Cache minimum changed 512-token minimum on the newest models vs 4,096 on some older ones Caching starts or stops working silently
⚠️ Watch out: Some changes do not raise errors: a different default effort, a new tokenizer or a changed caching minimum just shifts quality, cost or hit rates. Only measurement catches those.

🪜 Step 3: Build the regression set

Use your golden set (Lesson 15): real inputs with the expected answer or properties. Include easy cases, the edge cases you have fixed before, and safety cases:

📄 golden.py

GOLDEN = [
    ("Payment page returns 500 for every Visa card", "critical"),
    ("Typo on the About page", "minor"),
    ("Search returns no results for any query", "major"),
    ("Coupon applied twice when the user double-clicks Pay", "critical"),
    ("Footer link colour slightly off", "minor"),
]

🪜 Step 4: Run old and new side by side

Run the same cases through both models and compare:

📄 compare_models.py

import anthropic

from golden import GOLDEN

client = anthropic.Anthropic()
SYSTEM = ("Classify the bug severity as critical, major or minor. critical = money, data loss or security; "
          "major = a main flow is broken; minor = anything else. Reply with one word.")


def run(model: str) -> list[str]:
    answers = []
    for text, _ in GOLDEN:
        r = client.messages.create(model=model, max_tokens=10, system=SYSTEM,
                                   messages=[{"role": "user", "content": text}])
        answers.append(r.content[0].text.strip().lower())
    return answers


old, new = run("claude-opus-5"), run("claude-opus-5-5")
print(f"{'case':<55}{'expected':<10}{'old':<10}{'new':<10}")
for (text, expected), a, b in zip(GOLDEN, old, new):
    flag = "  <-- changed" if a != b else ""
    print(f"{text[:53]:<55}{expected:<10}{a:<10}{b:<10}{flag}")
score = lambda answers: sum(a == e for (_, e), a in zip(GOLDEN, answers))  # noqa: E731
print(f"old model: {score(old)}/{len(GOLDEN)}   new model: {score(new)}/{len(GOLDEN)}")

⌨️ Terminal

python compare_models.py

🖥️ Output (sample run)

case                                                   expected  old       new       
Payment page returns 500 for every Visa card           critical  critical  critical  
Typo on the About page                                 minor     minor     minor     
Search returns no results for any query                major     major     major     
Coupon applied twice when the user double-clicks Pay   critical  critical  major       <-- changed
Footer link colour slightly off                        minor     minor     minor     
old model: 5/5   new model: 4/5

The new model is not “worse”; it disagrees on one borderline case, a double charge, which your team defines as critical (money). That one case is exactly what a regression run is for. Typical fixes: tighten the definition in the prompt (“any wrong charge is critical”), add an example, then re-run before switching.

🎯 Exam focus: “Model Tier Selection and Release Planning” includes planning for behaviour change across model releases using regression evaluations. Scenario answers: pin the model, run the golden set on old and new, review differences (not just the score), fix prompts if needed, then roll out gradually. “Upgrade immediately because the new model is better” is a distractor.
Advertisement

🪜 Step 5: Roll out with a canary and a rollback

  1. Staging first: switch staging to the new model and run the full evaluation suite and integration tests.
  2. Canary in production: route a small share of traffic (for example 5%) to the new model using your configuration.
  3. Watch quality metrics (evaluation sample, user feedback), error rates (400s point to API changes), latency and cost per task.
  4. Expand in steps, or roll back by changing one configuration value.
  5. Record the decision: model, prompt version, evaluation results, date.

This helper decides which model a request uses for a percentage rollout, deterministically per user so each user gets a consistent experience:

📄 canary.py

import hashlib

STABLE, CANARY, CANARY_PERCENT = "claude-opus-5", "claude-opus-5-5", 5


def model_for(user_id: str) -> str:
    bucket = int(hashlib.sha256(user_id.encode()).hexdigest(), 16) % 100
    return CANARY if bucket < CANARY_PERCENT else STABLE


users = [f"user-{i}" for i in range(1000)]
canary_users = sum(model_for(u) == CANARY for u in users)
print(f"{canary_users} of {len(users)} users on {CANARY}")
print("user-42 always gets:", model_for("user-42"), model_for("user-42"))

⌨️ Terminal

python canary.py

🖥️ Output

40 of 1000 users on claude-opus-5-5
user-42 always gets: claude-opus-5 claude-opus-5
Advertisement

🪜 Step 6: Watch for deprecations

Anthropic announces deprecations and retirement dates for older models. Check the Models API (Lesson 5) and Anthropic’s model deprecation documentation regularly, and plan upgrades well before retirement dates rather than when requests start failing.

🌍 Real-world example: Ravi’s model upgrade

When Opus 5.5 arrived, Ravi’s team switched staging the same day but held production. The regression run found two changes: the new default effort made root-cause answers shorter, and one severity boundary moved. They set effort explicitly to high for root-cause analysis, added an example for double charges, re-ran the suite to 100%, and rolled out to 5%, then 50%, then all traffic over a week.

🧪 Practice Questions

Question 1. A new model is released with better benchmark scores. The team’s triage app uses a pinned older model. What should they do first?

  • A. Switch production immediately
  • B. Run their golden set on both models, review the differences, and fix prompts before a staged rollout
  • C. Wait until the old model is retired
  • D. Increase max_tokens
Show answer

Answer: B. Benchmarks are averages; only your own regression set shows how your cases change.

Question 2. After upgrading to Claude Opus 5.5, answers are shorter and less thorough, with no errors. Which cause should you check first?

  • A. The default effort level changed (medium on Opus 5.5)
  • B. The API key expired
  • C. Prompt caching broke
  • D. The tool schema is invalid
Show answer

Answer: A. Opus 5.5 defaults to medium effort. Set effort explicitly for routes that need deeper reasoning.

Question 3. Which two changes can alter cost or behaviour without any API error after a model upgrade? (Choose 2.)

  • A. A new tokenizer that produces more tokens for the same text
  • B. Sending temperature to a model that rejects it
  • C. A different minimum cacheable prompt length
  • D. Using budget_tokens on Opus 5.5
Show answer

Answer: A and C. Tokenizer and caching-minimum changes are silent; removed parameters produce 400 errors.

Question 4. What is the main purpose of a canary rollout for a model change?

  • A. Expose a small share of traffic first, watch metrics, and roll back cheaply if needed
  • B. Make the new model faster
  • C. Avoid running evaluations
  • D. Reduce token usage
Show answer

Answer: A. A canary limits the impact of unexpected behaviour changes while you observe real traffic.

📝 Assignment

  1. Task 1: Move every model ID in one of your projects into a single configuration module or file.
    ✅ Done when: a search for claude- in the code finds only that file.
  2. Task 2: Run compare_models.py with your own key on your golden set for two models.
    ✅ Done when: you have a table of differences and a decision note.
  3. Stretch: Add the canary function to your app and log response.model with every result for a day.
    ✅ Done when: you can report quality and cost per model from your logs.
Advertisement

❓ Frequently Asked Questions

🤔 How do I pin a Claude model version?

Use the exact model ID from Anthropic’s model list in your configuration, change it only through review, and log response.model with results.

🤔 How should I test a new Claude model before switching?

Run your regression (golden) set on the old and new models, review every difference, update prompts if needed, then roll out gradually.

🤔 What breaks when moving to a newer Claude model?

Possibly API parameters (sampling, thinking budgets, forced tool choice), and silently, defaults like effort, tokenization and caching minimums. Read the migration guide and measure.

🤔 What happens when a Claude model is retired?

Requests to a retired model stop working. Watch Anthropic’s deprecation notices and upgrade before the retirement date.

🏁 Summary

  • Treat the model like a dependency: pin it in configuration and log which model answered.
  • Read the migration notes for breaking and silent changes.
  • Run a side-by-side regression on your golden set and review the differences.
  • Fix prompts, then roll out through staging and a canary with a one-line rollback.
  • Track deprecations and upgrade before retirement.
📝 Test yourself: D5 Model Selection and Optimization practice test (20 random questions, 20 minutes), or browse all CCDV-F mock tests (3 full 70-question exams and 8 domain practice tests, with explanations).

Next, continue with Claude Prompt Caching: Single, Layered and Rolling Breakpoints.

🎬 Prefer video? Watch QA, automation and AI testing tutorials on the SQA Tools YouTube channel.

Independent study material by SQA Tools. Not affiliated with, endorsed by or sponsored by Anthropic. Claude is a trademark of Anthropic. Practice questions are original, not real exam content. Code outputs marked “sample run” come from running the exact code against a local stand-in for the Claude API, so real replies, IDs and token counts will differ. Exam facts checked against Anthropic’s official CCDV-F exam guide v1.1 on 24 Nov 2026.