LLM Model Deprecation Is a Clinical Change. Run the Migration Like One.

LLM model deprecation in clinical AI: pin model IDs per feature, gate evals per field, shadow then canary, cut over by day 30, and keep a change record.

Clint JohnsonPublished 10 min read

Key takeaways

  • Plan LLM migrations around 60 days of notice and about one year of useful life per model, not the vendor's stated policy.
  • Gate a model swap on case-level flips in doses, codes, identifiers and abstention, never on a blended eval score.
  • Cut over by day 30 of the notice window, because rollback disappears the day the old model retires.

When a vendor retires the model behind a clinical feature, that is not a library upgrade. It's a clinical change you didn't schedule. The vendor sets the calendar, and it will happen to you several times a year.

In Three Hard Truths About LLMs in Production I wrote that your target model will be deprecated. I meant it as a cost you plan for, not a surprise. A cost that keeps coming back needs a process. I run model swaps the way I'd run a schema migration on a patient table: an inventory, a gate, a staged rollout and a written record. If you treat a swap like a dependency bump, a clinician will be the one who tells you what regressed.

Most of the process sits on pieces I've already written about. The override and edit rates I use for drift monitoring in clinical AI are where the migration golden set comes from. The audit logs I described for MedScrub and eSpiral in the FHIR MCP server post are where the model version has to be recorded. A migration adds a deadline and a rollback window to those pieces. It doesn't need a new stack.

How much notice you get before an LLM model is retired

Less than you think.

Anthropic gives at least 60 days' notice to customers with active deployments. Every retirement notice it posted in 2026 came in at 60 to 62 days. There were four through early November: Feb 19, Apr 14, Jun 5 and Sep 30. Sonnet 4.5 got 61 days, from Sep 30 to a tentative Nov 30 retirement. Lifetimes are short too. claude-opus-4-1-20250805 retired exactly 365 days after its snapshot date.

OpenAI's stated policy is at least 6 months for generally available models, 3 months for specialized variants, and as little as 2 weeks for previews. Then on Oct 14 2026 it announced that gpt-4o-2024-08-06, gpt-4o-mini-2024-07-18, gpt-4.1-2025-04-14 and others would shut down Jan 14 2027. That's 92 days. The page doesn't explain the gap.

There's one more trap. Anthropic's dates cover only Anthropic-operated platforms. Bedrock and Google-managed Claude set their own retirement schedules, so if you call the same model through two clouds you can face two deadlines.

My planning numbers are 60 days of notice and about one year of useful life per model. A vendor's policy page states an intent. It doesn't guarantee anything. Size the process for the shortest window you've actually seen.

Model version pinning: one inventory row per feature

Every feature that touches a patient record calls an exact, pinned model ID. No aliases on any of those paths. I don't make an exception for "it's just a summary."

"No aliases" needs a definition per vendor:

  • Claude: pre-4.6 names like claude-sonnet-4-5 are convenience pointers that resolve to the newest snapshot. From 4.6 on, dateless IDs like claude-sonnet-4-6 are fixed snapshots.
  • OpenAI: -latest names are their own short-lived models. chatgpt-4o-latest lasted 91 days from notice to shutdown.
  • Previews: keep them away from patients. OpenAI itself doesn't recommend preview models for business-critical workloads unless you can migrate on short notice.

The inventory has one row per feature, not per vendor. Columns: feature, workflow, sites, vendor, platform, exact model ID, fine-tune base model, shutdown date, owner.

Normalize IDs across platforms. The same model is claude-sonnet-4-5-20250929 on the Claude API and anthropic.claude-sonnet-4-5-20250929-v1:0 on Bedrock. Track fine-tune bases too, because fine-tuned GPT-4 series models follow their base model's shutdown schedule.

Don't build the inventory by hand. Anthropic's Console Usage page exports a CSV broken down by API key and model. OpenAI's models endpoint returns a shutdown_date field. Run a check in a nightly job, and make a failed check page someone so it can't fail silently:

import os, requests

# alert() and load_inventory() are stubs: wire them to your pager
# and to your feature -> pinned model ID table.
try:
    r = requests.get("https://api.openai.com/v1/models",
                     headers={"Authorization": f"Bearer {os.environ['OPENAI_API_KEY']}"},
                     timeout=30)
    r.raise_for_status()
except requests.RequestException as e:
    alert(f"Model shutdown check failed: {e}")
    raise

shutdowns = {m["id"]: m.get("shutdown_date") for m in r.json()["data"]}

for row in load_inventory():
    date = shutdowns.get(row.model_id)
    if date:
        alert(f"{row.feature} ({row.model_id}) shuts down {date}. Owner: {row.owner}")

Pinning doesn't freeze behavior. Anthropic fixes the weights for each model ID, but it says the serving infrastructure can still change what you observe on an unchanged ID: the router, the safety classifiers, the sampling logic. Pinning tells you which model you're on. It doesn't tell you the model is behaving. Keep drift monitoring running between retirements.

How to evaluate a replacement LLM: gate per field, not on a blend

The golden set for a migration comes from clinician overrides. These are the cases where a clinician corrected a dose, a code or an identifier, plus the cases where the model answered when it should have said "not documented." For each one you already know the right answer, and you know it matters. If you don't have a set like this yet, start with the honest guide to LLM evals.

Run the old and new model on the same inputs. Then ignore the blended score. I don't trust a blend for a migration. A candidate that writes cleaner summaries can gain points overall while dropping a dose, and the average will report that as an improvement.

Gate on case-level flips per field. A case that passed on the old model and fails on the new one, in a safety-critical field, blocks cutover until a person reads it. A case missing from the candidate run counts as a flip. Report the per-field pass-rate delta next to the flips:

CRITICAL = ["dose", "code", "identifier", "abstention"]

def migration_gate(baseline, candidate):
    """baseline/candidate: {case_id: {field: passed_bool}}"""
    blocks = []
    for case_id, old in baseline.items():
        new = candidate.get(case_id, {})
        for field in CRITICAL:
            if old.get(field) and not new.get(field):
                blocks.append((case_id, field))
    return blocks  # empty means the critical gates pass

def pass_rate_delta(baseline, candidate):
    n = len(baseline)
    rate = lambda runs, f: sum(runs.get(c, {}).get(f, False) for c in baseline) / n
    return {f: rate(candidate, f) - rate(baseline, f) for f in CRITICAL}

The delta shows the trend. The flips show which patient-shaped cases you need to read.

Abstention gets its own gate. A new model that confidently fills in a value the old one declined to guess will score better on most rubrics. In a chart, that's worse.

Capture baseline outputs on day one of the notice. Anthropic says deprecated models are likely to be less reliable than active ones. If you wait three weeks, your baseline may be slipping while you compare against it.

What breaks when you migrate to a new LLM version

Your validators will break. Good. That's what they're for.

Some breaks are hard failures in the request itself. Anthropic removed temperature, top_p and top_k in API version 2026-10-21, and sending them now returns a 400. On Claude 4.7 and later, non-default values error even on earlier API versions. If your requests set temperature: 0 for reproducibility, that line now fails.

Tools can vanish too. When OpenAI retired codex-mini-latest, it also dropped the legacy local shell tool, which only worked with that model.

The quieter breaks are format and tool-call drift:

  • JSON with a new key order or an extra wrapper.
  • Tool arguments typed differently.
  • Codes with stray whitespace or different casing.

The change record should name every validator that failed on the candidate, with its fix. I won't ship a migration that went green because someone loosened a validator, unless the record says who approved the change and why. Loosening a check is a clinical decision, not a build fix.

Shadow mode, canary and a rollback that expires

Run in shadow first. The candidate processes live traffic, and its outputs are stored but never shown. Compare them to the current model and to what clinicians actually did. Count every regression you find here. These are the cheap ones.

Then canary by site and by workflow, one at a time, behind a flag that switches back to the old model ID.

Here's the part teams miss: your rollback expires. It exists only until the old model retires. Cut over on day 55 of a 60-day window and you have five days to roll back. After that the old ID returns errors, and "rollback" means an emergency migration to some third model.

I want cutover done by day 30. Day 45 leaves room for one canary. Day 30 leaves half the window, which is enough for a failed canary, a second candidate through shadow, and a rollback period that still means something.

OpenAI says some customers can arrange dedicated capacity through sales to keep access past a shutdown date. That's an escape hatch, not a plan. If your clinical roadmap depends on a sales call, ask the build-vs-buy question out loud. I cover when it's worth leaving the frontier API in When to Look Beyond Standard LLMs.

Check the replacement's own lifecycle before you commit to it. Anthropic lists claude-haiku-4-5-20251001 as the recommended replacement for the retired Haiku 3 and Haiku 3.5. When the page was retrieved on Nov 10 2026, it showed that model as Active with a tentative retirement "not sooner than" Oct 15 2026, a date already past. If you migrate onto a model near the end of its own window, you'll do the work twice.

Every output names the model that wrote it

FHIR R4's Provenance.agent.who can reference a Device. The AI Transparency on FHIR January 2026 publication defines Device.type codes that mark a Device as AI or an LLM.

Use one Device per model version. A new model gets a new Device, never an edit to the old one. Copy the exact type system and code from the IG. The placeholders below show where they go:

{
  "resourceType": "Device",
  "id": "llm-claude-sonnet-4-6",
  "type": {
    "coding": [{
      "system": "<Device type CodeSystem from the AI Transparency IG>",
      "code": "<LLM code from the IG>"
    }]
  },
  "deviceName": [{ "name": "claude-sonnet-4-6", "type": "model-name" }],
  "version": [{ "value": "claude-sonnet-4-6" }]
}

With this in place, when someone asks which notes came from the old model and which from the new one, you answer with a query instead of digging through logs. Pair it with the audit trail that ties chart reads to a model run, which I covered in SMART Backend Services for AI Agents. Publish the version where users can see it too, as in shipping a versioned AI model card under HTI-5.

A change record you write once (borrowed from FDA's PCCP)

FDA finalized its PCCP guidance for AI-enabled device software functions on Dec 4 2024. A summary of the guidance describes three components: a Description of Modifications, a Modification Protocol and an Impact Assessment. That structure comes from a secondary source, so check FDA's own text before you cite it anywhere formal.

Many LLM documentation and coding tools aren't regulated devices. I'm borrowing the structure, not claiming the requirement applies. It's the right shape for this job. Here's a filled-in record for a hypothetical feature on Sonnet 4.5, using the real notice dates:

SectionEntry
Modificationclaude-sonnet-4-5-20250929 to claude-sonnet-4-6, discharge-summary draft feature, Claude API only
Notice windowNotice Sep 30 2026, retirement Nov 30 2026 (61 days, tentative)
BaselineOld-model outputs captured on Sep 30 against golden set version N
GatesZero unreviewed flips on dose, code, identifier, abstention
ValidatorsEach one that failed on the candidate, with its fix and approver
ShadowLive traffic, outputs stored, never shown
Canary orderOne site and one workflow at a time, flag back to the old ID
Rollback triggerAny post-release flip on a critical field
Cutover deadlineOct 30 2026 (day 30)
ImpactPer-field pass-rate deltas, regressions caught in shadow vs after release
ProvenanceNew Device resource for claude-sonnet-4-6

Write the protocol once. On the next notice, you fill in the blanks instead of calling a meeting.

Two rules for the numbers across migrations. Measure notice-to-cutover as a share of the notice window, because vendors give different floors and raw days don't compare. And any dose, code or identifier regression that gets past shadow gets a postmortem.

The vendor sets the deadline. You decide whether it's a fire drill or a Tuesday.

Questions people ask

How much notice do LLM vendors give before retiring a model?

Anthropic gives at least 60 days, and its 2026 notices ran 60 to 62 days. OpenAI states at least 6 months for generally available models, 3 months for specialized variants and as little as 2 weeks for previews, but its Oct 2026 GPT-4 series notice gave 92 days.

Does pinning an LLM model version guarantee the same output?

No. Anthropic fixes the weights for each model ID but says serving infrastructure like the router, safety classifiers and sampling logic can still change observable behavior. You still need drift monitoring between retirements.

How should I evaluate a replacement LLM before migrating?

Run the old and new model side by side on a golden set built from clinician overrides. Block cutover on any case that passed on the old model and fails on the new one for doses, codes, identifiers or abstention, and report the per-field pass-rate delta instead of a blended score.

When should I cut over to a new LLM model?

By day 30 of the notice window, after shadow mode and a canary by site and workflow. That leaves half the window for a failed canary and a second candidate, and rollback only works until the old model retires.