Model Registry & Stage Transitions
Promote models through Staging/Production with approvals and version lineage.
In plain words
A model registry is a catalogue of your trained models with notes on how each was made, and a label that says which one is currently live so you can switch back easily.
Think of it like…
A pharmaceutical batch record. Each batch (version) has a serial number, ingredients (data), process (code and parameters) and test results; a batch is released to the market only after sign-off, and if a problem appears the previous released batch can be put back on the shelf immediately.
Where you’ve seen it
Each weekly retrain registers a new version of churn from the MLflow run, so version 12 carries its run_id, data_version=v3, git_sha, the model signature (inputs and outputs), the evaluation metrics and the training dataset hash. The pipeline sets the alias challenger on v12 and runs the promotion checklist automatically: AUC at least the champion's minus 0.005, no slice (region, contract) down more than 2 points, fairness gap at most 5 points, p95 latency at most 50 ms, artefact at most 500 MB, a signature compatible with the serving contract and a passing golden-sample test. v12 then runs as a shadow and canary (see the rollout lesson). After sign-off from the model owner (recorded with user and timestamp), the alias champion moves from v11 to v12; v11 gets the tag previous-champion and stays registered and loadable. The serving service resolves models:/churn@champion at startup and polls every 60 seconds, so a promotion or a rollback reaches all pods in about a minute without a redeploy. Rollback is a single alias move back to v11, which is also how a bad model is recovered during an incident. The team keeps the last three versions warm (artefacts cached, signatures verified) and archives older ones after 90 days, keeping metadata forever for audits. Every transition is logged: who, when, from which version to which, why and the checklist results. Permissions separate duties: training pipelines can register and set challenger; only release owners can move champion; viewers have read access. A model card stored with each version records intended use, training data summary, metrics by slice, fairness results, known limitations and the owner. A dashboard lists models, their champion versions, age and last evaluation date, and a weekly check flags any champion older than 90 days or lacking a recent evaluation. Over a year weekly retrains produce about 52 versions; the registry keeps them organised, and queries such as "which version served on 2026-10-14?" are answered from the transition log in seconds.
Words you’ll hear
- Registered model / version
- A named model and its numbered, immutable snapshots.
- Alias
- A movable label such as champion that points to a specific version.
- Stage transition
- Moving a version between lifecycle stages like Staging and Production.
- Lineage
- The links from a model version to its run, data, code and metrics.
Visual diagram
Theory & deep dive
What a registry stores and how lifecycle works
A registered model is a named entity; each version is an immutable snapshot of a trained artefact with metadata: the run ID and parameters, data version (a DVC hash or table snapshot), code commit, metrics (overall and by slice), signature (input and output schema), environment (library versions) and a model card (intended use, limitations, fairness results). This lineage lets you answer "what produced the model serving today?" and reproduce it. A lifecycle describes where a version is in its journey. Classic registries used named stages (None, Staging, Production, Archived) with stage transitions; newer designs prefer aliases (champion, challenger) and tags (validation_status=passed), which are more flexible: multiple environments, canaries and per-region champions don't fit a single linear stage.
Deployment code should reference an alias or version URI (models:/churn@champion), never a file path. That decouples releases from code deploys: promoting means moving the alias, and serving instances pick it up on their next refresh (every 60 seconds in the example). Keep versions immutable; if you need a change, register a new version. Retain the artefacts of at least the last few versions so rollback is instant, and archive old versions by policy while keeping metadata for audit.
churn v12 · run_id 7ac1… · data v3 (dvc 4f1c…) · git 9be3c1 · AUC 0.868, slices min −1.4 pts · p95 38 ms · 470 MB · signature: 12 features → probability · aliases: challenger → champion (2026-11-20 09:12, approved by ml-lead) · previous champion v11.
Gates, approvals, audit and operations
Promotion gates make transitions objective: non-inferior performance on a frozen set (for example AUC at least the champion's minus 0.005), no slice regression beyond 2 points, a fairness gap within a stated limit, latency and size budgets, a signature compatible with the serving contract and a golden-sample test that loads the artefact in a clean environment. Pair automation with human approval for high-impact models; the approver and timestamp are recorded. Use shadow and canary steps (see the rollout lesson) before the alias moves fully. Separate permissions: pipelines may register versions and set challenger, only release owners may move champion, auditors have read access.
Operations: poll or subscribe for alias changes so serving picks up promotions and rollbacks within about a minute; cache the last three versions so a rollback needs no download; log every transition (who, when, from, to, reason, checklist results) so you can answer "which version served on 2026-10-14?"; review stale champions (older than 90 days or without a recent evaluation) weekly; and archive old versions after a retention period while keeping their metadata. With weekly retraining there are about 52 versions a year, so naming and tagging conventions matter. Keep the registry portable by using standard model formats and exporting metadata, and make sure the registry itself is backed up and access-controlled, because it is the source of truth for what runs in production.
10:02 alert: conversion proxy drops 4%. 10:05 release owner sets alias champion → v11 (one API call). 10:06 pods poll the registry and reload v11 (about 60 s). 10:07 metrics recover. Transition log: v12 → v11 by ops-oncall, reason 'conversion drop', checklist link attached.
How it works, step by step
Step 1 of 41. Register with lineage
Register each trained model with run, data version, code commit, signature, metrics and a model card.
- Versions
- immutable
When to use it & trade-offs
What it is
A model registry is the system of record for trained models: each registered model (such as churn) has numbered versions, each version linked to its lineage (the training run, parameters, data version, code commit and metrics) and metadata (signature, description, owner, approval status). Versions move through a lifecycle: candidate, staging, production, archived. Older registry designs used fixed stages (Staging, Production, Archived) with stage transitions; newer tooling, including recent MLflow versions, favours flexible aliases (for example champion and challenger) and tags, because they map better to real workflows. Deployment systems ask the registry for "the churn model with alias champion", so promotion and rollback are metadata changes, not file copies, and every change is audited.
Why it matters: Without a registry, the model in production is whatever file someone copied last, and nobody can say which data or parameters produced it, who approved it or what to roll back to. A registry separates the question "which model is serving?" from deployment code, enforces gates before promotion, records approvals for audits and makes rollback a matter of seconds. It's also where compliance, reproducibility and collaboration meet.
When to reach for it
- Promoting weekly retrained models with objective gates
- Audits that require lineage and approval history
- Instant rollback by moving an alias
When to avoid or be careful
- Pointing deployments at file paths instead of registry aliases
- Promoting without recorded approval and checklist results
- Deleting the previous champion's artefact immediately
Ways to track what is deployed
Strengths: Lineage; fast rollback; permissions and history.
Watch out: Another system to run and keep authoritative.
Strengths: Simple and cheap.
Watch out: No metadata, approvals or audit trail.
Strengths: Easy to understand.
Watch out: Rigid for canaries and multiple environments.
Interview signals & numbers to know
When this topic comes up
- “How do you promote a model to production safely?”
- Stages versus aliases
- What lineage a model version should carry
- How rollback works
- Who may move the champion alias
Benchmarks & rules of thumb
- ≈ 1 minute
- alias poll interval and rollback time in the example
- last 3
- versions kept warm for instant rollback
- ≈ 52
- model versions per year with weekly retraining
Common mistakes & follow-ups
Common interview mistakes
- Overwriting a version instead of registering a new one.
- Skipping lineage, so no one can reproduce the production model.
- Letting any pipeline job move the production alias.
Likely interviewer follow-ups
- How would you handle different champions per region?
- What would you log for each transition?
- How do you stop an unreviewed model reaching production?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Model Registry & Stage Transitions with data science interview Q&A and hands-on practice.