Sub topic 18
Assessing MLOps Maturity and Choosing Next Steps
What this chapter covers and what it assumes
This chapter assumes you have read the earlier chapters on the lifecycle, reproducibility, experiment tracking, registries, pipelines, CI/CD, monitoring, drift and retraining. It does not teach those practices again. It shows how to look at a team's current practices, place them on a maturity scale, and pick the one practice to adopt next.
A maturity level describes how much of the lifecycle runs without manual effort and how reliably it does so. It does not measure model quality. A team at a low level can ship an excellent model once. A team at a high level can ship a poor model, but it will notice and fix the problem faster.
A three-level working model
Several vendors publish maturity models. They differ in naming and in the number of levels, but they share one progression. This chapter uses three levels. Treat them as a ruler for conversation, not as a certification.
| Level | Name | How a model reaches production | Typical signs |
|---|---|---|---|
| 0 | Manual | A data scientist trains in a notebook and hands over a file or a script. | No tracked runs, no registry, no monitoring. Retraining happens when someone remembers. |
| 1 | Automated training | A pipeline runs data validation, training, evaluation and registration on demand or on a schedule. | Tracked experiments, a registry, release criteria in code. Deployment of the pipeline itself is still manual. |
| 2 | Automated delivery | Changes to code, data or configuration trigger tests and a pipeline run, and a passing model is deployed by a staged rollout. | CI/CD for code, data and models, production monitoring, drift-triggered retraining, audit trail. |
Levels are cumulative. Level 2 assumes the tracking, versioning and validation of Level 1. Skipping ahead usually fails. A deployment pipeline that ships unversioned models only automates the creation of irreproducible results.
Assessing a team: ask about practices, not tools
Owning a tool is not the same as using a practice. A team may run an MLflow server and still log nothing from half its experiments. Assess by asking concrete questions and requiring evidence.
For each lifecycle stage, ask one question that has a checkable answer:
- Data: Can you name the exact dataset version behind the model in production?
- Features: Is the feature code used in training the same code used in serving?
- Reproducibility: Can someone else rebuild the production model from a tagged commit and get the same metrics, within an agreed tolerance?
- Tracking: Are parameters, seed and metrics recorded for every run, not just the good ones?
- Evaluation: Is the release criterion written as code or configuration, rather than decided in a meeting?
- Registry: Does the registry record which run, data and code produced each model version?
- Pipelines: Can the full train-evaluate-register sequence run without a person typing commands?
- CI/CD: Do tests run automatically on every change to code, data schema and model?
- Deployment: Can you roll back to the previous model version in minutes?
- Monitoring: Do you see input data, predictions and, when labels arrive, quality?
- Retraining: Is there a defined trigger, or does retraining depend on someone noticing?
Score each answer as no, partly or yes. The pattern matters more than the total. A column of "yes" for training and "no" for monitoring tells you where the risk sits.
Turning answers into a score
A simple scoring script keeps the assessment repeatable. The same questions asked each quarter show progress and prevent a one-time opinion from becoming the record.
STAGES = [
"data_versioning",
"feature_consistency",
"reproducibility",
"experiment_tracking",
"release_criteria",
"model_registry",
"pipeline_automation",
"ci_cd",
"rollback",
"monitoring",
"retraining_trigger",
]
SCORES = {"no": 0, "partly": 1, "yes": 2}
# Stages that define each level. A level is reached only if all of them are "yes".
LEVEL_1 = {
"data_versioning",
"reproducibility",
"experiment_tracking",
"release_criteria",
"model_registry",
"pipeline_automation",
}
LEVEL_2 = LEVEL_1 | {
"feature_consistency",
"ci_cd",
"rollback",
"monitoring",
"retraining_trigger",
}
def assess(answers):
missing = [s for s in STAGES if s not in answers]
if missing:
raise ValueError(f"missing answers: {missing}")
def reached(required):
return all(answers[s] == "yes" for s in required)
level = 2 if reached(LEVEL_2) else 1 if reached(LEVEL_1) else 0
weakest = [s for s in STAGES if answers[s] == "no"]
partial = [s for s in STAGES if answers[s] == "partly"]
total = sum(SCORES[answers[s]] for s in STAGES)
return {
"level": level,
"score": f"{total}/{2 * len(STAGES)}",
"gaps": weakest,
"partial": partial,
}
team = {
"data_versioning": "yes",
"feature_consistency": "partly",
"reproducibility": "yes",
"experiment_tracking": "yes",
"release_criteria": "yes",
"model_registry": "yes",
"pipeline_automation": "partly",
"ci_cd": "no",
"rollback": "no",
"monitoring": "no",
"retraining_trigger": "no",
}
print(assess(team))Running it prints:
{'level': 0, 'score': '12/22', 'gaps': ['ci_cd', 'rollback', 'monitoring', 'retraining_trigger'], 'partial': ['feature_consistency', 'pipeline_automation']}The team scores 12 of 22 points but sits at Level 0, because pipeline automation is only partial. The rule that a level needs every required practice to be fully in place is deliberate. It stops a high total from hiding a missing foundation.
Choosing the next step
Once you know the gaps, resist the urge to fix all of them. Choose one practice using three criteria.
- Dependency. Does another practice require this one? Versioning and tracking come before pipelines. Pipelines come before retraining triggers. The concept graph of this tutorial follows the same order.
- Risk. What does the gap cost today? A fraud model with no monitoring can lose money silently. An internal report model that is retrained by hand twice a year has a low cost of failure.
- Effort. A registry can be adopted in days. A feature store may take months. Prefer a small step that removes a real risk.
Applied to the team above, the pipeline is partly automated, so finishing it is the dependency-driven choice. Monitoring is the highest-risk gap. A reasonable plan is to finish the pipeline first, because retraining triggers need it, and add basic input monitoring in parallel, because it is cheap and needs only logged feature values.
Common errors in maturity work
- Chasing the top level for its own sake. Level 2 is not the goal for every project. A model retrained once a year on a stable dataset may be well served by Level 1 with a documented manual deployment.
- Counting tools as practices. Buying an orchestrator does not create a pipeline. Check the evidence: run logs, registry entries, test results.
- Assessing the team once. Practices decay. A pipeline that nobody has run for six months often fails on the first attempt. Repeat the assessment on a schedule.
- Ignoring the cost of automation. Every automated step needs maintenance, tests and an owner. Automate steps that repeat often or fail expensively.
- Treating levels as a ranking of teams. The scale compares a project with its own earlier state. Different projects carry different risks, so the same level means different things for each.
Working a worked case end to end
Suppose a team runs a churn model. Training happens in a notebook. Data comes from a weekly export that is overwritten. A model file is copied to a server by hand. Nobody has checked its accuracy since launch.
- Assessment: data versioning no, reproducibility no, tracking no, registry no, monitoring no. The team is at Level 0.
- Foundation step: snapshot the weekly export under a date-stamped name and log the snapshot name, seed and metrics for each run. This is the pattern from the experiment-tracking chapter and needs a day or two.
- Next step: add a release gate such as the
should_promotefunction and register each passing model with its run reference. - Then: wrap training in a scheduled pipeline, and log predictions so a drift check can compare live feature values with the training reference.
- Only after that: add automated tests on every change and a staged rollout.
Each step leaves the team better off even if the effort stops there. That property is the best test of a good plan: no step depends on a later one to be useful.
Exercises
Exercise
A team scores "yes" on data versioning, reproducibility, experiment tracking, release criteria and registry, but "no" on pipeline automation, CI/CD, monitoring and retraining triggers. Using the three-level model in this chapter, which level is the team at, and which practice should it adopt next? Give your reasoning with the dependency, risk and effort criteria.
Show answer
The team is at Level 0, because Level 1 requires pipeline automation to be fully in place and it is "no". The next practice is pipeline automation. It is a dependency of retraining triggers and CI/CD, and the team already has the versioning, tracking and release criteria that a pipeline needs, so the effort is moderate. Monitoring is a high-risk gap and can be started in parallel if the cost is low, but it should not replace the pipeline as the main goal.
Exercise
Why does the scoring script require every stage of a level to be "yes", rather than using a total score threshold such as 16 of 22?
Show answer
A total threshold lets strong practices hide a missing foundation. A team could reach 16 points with no versioning at all and still be labeled Level 1, although automation built on unversioned data cannot be reproduced. Requiring every stage in a level to be fully in place makes the level a statement about the foundation, and the separate score shows overall progress.