ML model governance from approval to retirement
Write the approval evidence, retention rules, audit trail and ownership plan for a model through to its retirement.
By Invicly Tech, , in AI and Machine Learning with Python. About 11 minutes to read.
In short
Governance means someone can always answer: who approved this model, on what evidence, what data it uses, how long that data is kept, who owns it today and when it will be retired. It turns the artifacts you already make, such as tracked runs, model cards and monitoring dashboards, into a record that survives staff changes and audits. Frameworks such as the NIST AI Risk Management Framework give a shared structure.
Think of it like this: Governance is the logbook of an aircraft: every inspection, repair and owner is written down until the plane is retired.
Explained simply
Governance sounds like paperwork, but it answers practical questions. Who said this model could go live? What did they look at? Which data does it use, and are we allowed to keep that data? Who do we call when it misbehaves? When will we switch it off? If nobody can answer, the model is a risk.
Much of the evidence already exists if you followed the earlier modules: tracked runs, evaluation by slice, a model card, a monitoring plan and a rollback plan. Governance gathers these into an approval pack, records the sign-off and keeps them linked to the model version.
Privacy and retention matter because models use and produce data. Training data, prediction logs and labels may include personal information. You need rules for what is stored, for how long, who can see it and when it is deleted, in line with laws such as the GDPR and with what users agreed to.
Every model also needs owners and an end date. People change jobs, so ownership is reviewed regularly. Retirement is planned from the start: what replaces the model, how users are told, which records are archived and which data is deleted.
Press Play on a diagram to walk through it one step at a time.
- 1Proposal
Purpose, owner, risk level
- 2Development
Tracked runs, data licences
- 3Approval
Evidence pack and sign-off
- 4Operation
Monitoring, incidents, reviews
- 5Retirement
Switch off, archive, delete data
- Identity
- Name and purpose
- Registered model and live version
- People
- Business owner
- Technical owner
- Approver
- Risk
- Risk level
- Affected groups
- Personal data used
- Operations
- Monitoring plan link
- Rollback plan link
- Last incident
- Dates
- Approved on
- Next review
- Planned retirement or review trigger
In depth
The approval evidence pack
An approval pack is the set of documents a reviewer reads before a model goes live. Keep it short and linked to the exact registered model version. It usually includes the model card with purpose, intended users and known limits; evaluation results against the baseline, broken down by important slices; a fairness review for groups the model could affect; the data sources with licences and any personal data noted; the prediction contract; the monitoring plan with thresholds and owners; and the rollback and fallback plan.
Scale the depth to the risk. A model that ranks internal help articles needs less than one that affects credit, hiring or health. Record who approved, when and any conditions, such as a review after 90 days.
- Model card and intended use
- Evaluation by slice against baseline
- Fairness and privacy review
- Data sources and licences
- Monitoring, rollback and fallback plans
Privacy and retention policies
Start with data minimisation: collect and keep only what the model needs. For each data type, set a retention period and a reason. Training snapshots might be kept for the life of the model plus a period for audits. Raw prediction logs with personal fields might be kept for a short window, then reduced to aggregates or pseudonymised by replacing identifiers with tokens.
Plan for deletion requests. If someone asks for their data to be erased, you need to find it in training sets, feature stores and logs. Decide in advance whether a deletion means retraining, and document that choice. Limit access to raw data by role, and log who accessed it. Check the rules that apply to you with your privacy or legal team; this article cannot give legal advice.
- Needed to reproduce and audit
- Keep for model life plus audit period
- Access limited to the ML team
- Delete when the model is retired and period ends
- Needed for monitoring and labels
- Keep raw rows only for a short window
- Pseudonymise or aggregate afterwards
- Exclude fields the model does not need
- Contain no raw personal data
- Keep with approvals for the audit period
- Store in the registry with access control
- Archive at retirement
Keeping an audit trail
An audit trail lets you trace any decision back to its source. Each prediction log row holds the model version. Each registered version links to the MLflow run that created it. The run holds parameters, metrics, the dataset digest and Git commit. The approval record names the approver and the evidence they saw. Registry changes, such as moving the champion alias, are recorded with who and when.
Make the trail hard to change: write logs to append-only storage, protect the registry with access control, and keep approvals in a system with history, such as tickets or pull requests. Test the trail now and then: pick a random prediction from last month and try to reach the approval record within minutes.
- Prediction to model version
- Version to run, data digest and commit
- Version to approval and approver
- Alias moves logged with user and time
Ownership and retirement
Assign two named owners for each production model: a business owner accountable for how predictions are used, and a technical owner accountable for health, monitoring and incidents. Keep these in a model inventory, a simple list of every model in production with its owners, risk level, version, data sources and next review date. Review the inventory on a schedule and when people leave.
Retire a model when it is replaced, when its use case ends, when it can no longer meet its thresholds or when its data rights expire. A retirement plan says how traffic moves to the replacement or fallback, how users are told, which artifacts and approvals are archived for the audit period, and which data is deleted. Afterwards, mark the version as retired in the registry so nobody redeploys it by accident.
Learn it in 5 short steps
About 30m each. Track them with a timer in your plan.
- 1Collect approval evidence~30m
- 2Set privacy and retention policies~30m
- 3Keep an audit trail~30m
- 4Assign ownership~30m
- 5Plan model retirement~30m
Key points
- Approval evidence should include the model card, evaluation by slice, fairness checks, a data licence record and a rollback plan.
- Retention rules say how long training data, prediction logs and artifacts are kept, and they must respect privacy law and consent.
- An audit trail links each prediction to a model version, and each version to its run, data and approver.
- Every production model needs a named business owner and a technical owner, reviewed when people change roles.
- Retirement is planned in advance: a replacement or fallback, a date, archived records and deleted data.
Key terms
Tap a card to flip it. 0/5 known
Examples
Linking approval to a registered version
Your churn model version 8 passed its gates. Step 1: put the model card, slice evaluation and monitoring plan in the repository and open a pull request for review. Step 2: the approver signs off in the pull request. Step 3: record the approval on the model version as tags, including the approver and a link to the review. Now anyone looking at version 8 in the registry can find who approved it and on what evidence.
from mlflow import MlflowClient
client = MlflowClient()
tags = {
"approved_by": "jane.doe@contoso.com",
"approved_on": "2026-11-20",
"evidence": "https://git.example.com/ml/churn/pull/142",
"risk_level": "medium",
"next_review": "2027-02-20",
}
for key, value in tags.items():
client.set_model_version_tag("churn", "8", key, value)Planning the retirement of an old model
A rule-plus-model pricing helper is being replaced by a new service. Step 1: set a retirement date and confirm the replacement has passed its own approval. Step 2: move traffic gradually and confirm the old endpoint gets no calls for two weeks. Step 3: archive the model card, approvals and final metrics. Step 4: delete prediction logs and training snapshots once the audit period ends. Step 5: tag the version as retired and remove its aliases.
from mlflow import MlflowClient
client, name, ver = MlflowClient(), "pricing-helper", "5"
client.set_model_version_tag(name, ver, "status", "retired")
client.set_model_version_tag(name, ver, "retired_on", "2026-12-01")
client.set_model_version_tag(name, ver, "replaced_by", "pricing-service v2")
for alias in client.get_registered_model(name).aliases:
client.delete_registered_model_alias(name, alias)Quick reference
- Approval pack: model card, slice evaluation, fairness, data licences, monitoring and rollback plans
- Link every approval to an exact registered model version
- Set a retention period and reason for training data, logs and artifacts
- Audit trail: prediction to version to run to data digest to approver
- Two named owners per model: business and technical
- Keep a model inventory with risk level and next review date
- Plan retirement at launch: replacement, archive, data deletion, registry status
- NIST AI RMF functions: Govern, Map, Measure, Manage
Common mistakes
- Treating approval as a one-time event and never reviewing the model again.
- Keeping prediction logs with personal data forever because nobody set a retention period.
- Owners listed as a team alias or a person who left, so nobody acts on alerts.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
List the people and dates you would record in a model inventory entry for a churn model.
- Exercise 2medium
Write retention rules for training snapshots, raw prediction logs and aggregated monitoring metrics for a model that uses customer ids.
- Exercise 3hard
Run a trace drill: given a prediction id from your log, write the steps (and code where useful) to reach the approval record.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Is ML governance only for large companies?
- No. Even a small team benefits from knowing who approved a model, what data it uses and how to roll it back. Scale the depth to the risk: a lightweight checklist is often enough for low-risk models.
- What is a model card?
- A short document that describes a model's purpose, training data, evaluation results, limitations and owners. It helps reviewers and users understand when the model should and should not be used.
- Is the NIST AI Risk Management Framework mandatory?
- No. It is a voluntary framework from the US National Institute of Standards and Technology. Many organisations use it as a structure, alongside any laws that apply to them.
- When should a model be retired?
- When it is replaced, when its use case ends, when it can no longer meet its performance thresholds, or when the rights to its data expire. Plan the steps before launch.