Skip to content
mentoor

Topic 2 of 6 · 3 min read

Pinned snapshots vs moving model aliases

Goal: Choose between a pinned snapshot and an alias for a production feature and justify it in config.

A pinned snapshot is a model id that always names the same fixed model. An alias is a name that points at whatever the provider currently recommends, so it can change under you. Production features should call snapshots. Alias use belongs in experiments.

Check yourself · 1 of 3

A provider's docs say its dated ids are fixed snapshots and its other names are aliases. Which id is pinned?

Choose one answer

Why it matters

Providers publish both forms, and the naming differs by provider. OpenAI has long listed dated ids such as gpt-4o-2024-08-06 next to an alias such as gpt-4o that points at one of them. Older Claude models did the same: claude-haiku-4-5-20251001 is a snapshot and claude-haiku-4-5 its alias. Newer Claude ids such as claude-opus-5 carry no date but are still fixed snapshots, so a missing date does not prove a name moves. The provider's model ids page settles it. When the provider moves the alias, your feature runs on a different model the next morning with no deploy, no review and no test run. Your own logs will show no change in your code, which makes the cause hard to find.

How to choose

  1. Production features with a test set: pin. You tested one version. Calling the same version tomorrow keeps that result.
  2. Prototypes and personal tools: alias is fine. You want the newest model and a surprise costs little.
  3. Features that must always run on a supported model: pin, and track the retirement date. A snapshot is eventually retired. Pinning does not mean forgetting; it means you choose the day you move.
  4. Check what a provider promises. Read the model page and the deprecation page. Some aliases are documented to move, others are not, and some providers say how many days of notice you get before a snapshot is removed.

Before and after

Before, the model name is buried in the call:

resp = client.chat(model="vendor-model-latest", messages=msgs)

After, the choice is a visible, reviewed config value with a reason:

# models.yaml
summarise_ticket:
  model: vendor-model-2026-08-14   # pinned: eval set ran on this snapshot on 2026-09-12
  retire_check: 2026-12-15         # re-read the deprecations page by this date
  candidate: vendor-model-latest   # alias used only in the nightly canary job

Changing model: is now a pull request with a test report attached, and the nightly canary tells you when the alias has moved to something worth testing.

What goes wrong

  • Alias in production. Quality or cost shifts overnight and nobody can say why.
  • Pinned and forgotten. The snapshot is retired, requests start failing, and the fix is rushed with no test time.
  • One model string copied across ten files. The upgrade becomes a search and replace, and one file is missed.
  • Mixed ids. Some services use the alias and others the snapshot, so two features that should match give different answers.

Examples

A nightly canary on the alias

A job runs the golden test set every night against the alias and the pinned id. When the alias scores higher than the pin for five nights in a row, an engineer opens a switch plan. The product keeps calling the pin until the plan is approved.

One place for the id

A codebase had the same model string in 14 files. After the fix there is one MODEL_FOR map keyed by feature. The upgrade diff is three lines and the review is about the test report, not about hunting for strings.

Key points

  • A snapshot id always names the same fixed model; an alias is a name the provider can repoint, and the provider's docs say which is which.
  • Production features with a test set should call pinned snapshots so results stay the same between deploys.
  • Keep the model id in one config value with a note about when it was tested and when to re-check retirement.
  • Pinning delays surprises but not retirement, so record the shutdown date next to the pin.
  • Use aliases for prototypes and canary jobs where a surprise is cheap.

Common mistakes

  • Using the alias in production because it is shorter and "always up to date".
  • Pinning a snapshot and never writing down when it will be retired.
  • Scattering model ids through the code instead of one reviewed config.
  • Assuming every provider's unversioned name behaves like an alias; read the provider's model page to check.

Check yourself · 2 of 3

Your nightly eval has not changed, but yesterday's score dropped 5 points. The code calls an unversioned model name. What should you check first?

Choose one answer

Check yourself · 3 of 3

A production feature uses a snapshot that was tested in September. What is the most useful thing to record beside the model id in config?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic