MLOps
MLOps as a Control System
Understand MLOps as the discipline that keeps an ML-enabled decision system observable, reproducible, governable, and recoverable over time.
By the end you can
- Define MLOps as an operating discipline for complete ML systems rather than a deployment toolchain
- Map the feedback loops connecting data, code, models, decisions, telemetry, and human operators
- Distinguish model performance from service reliability and product effectiveness
- Identify the ownership boundaries required to operate an ML system safely
The model is the smallest part of the operational problem
A model can be statistically strong and still fail as a service. On 2 November 2021 Zillow Group announced it would wind down the business its pricing model existed to run. Zillow Offers bought houses at algorithmically set prices. That quarter carried a write-down of inventory of approximately $304 million in the Homes segment, because homes had been bought above what the company itself later estimated they would resell for. The wind-down would cut roughly 25% of Zillow Group's workforce.
Rich Barton, co-founder and CEO of Zillow Group, gave the reason in the release itself: “We've determined the unpredictability in forecasting home prices far exceeds what we anticipated and continuing to scale Zillow Offers would result in too much earnings and balance-sheet volatility.” The annual filing to the SEC records the same decision in the flat language of an audited document: “On November 2, 2021, we made the determination to wind down Zillow Offers operations within the Homes segment.”
Nothing in that outcome was an outage. Prices were produced, delivered, and acted on. What failed was everything wrapped around the prediction. How much capital a price commitment put at risk. How fast the business scaled on the strength of it. How quickly anyone could tell that forecast error had stopped being a metric and become a balance-sheet problem.
MLOps begins where a notebook ends. It coordinates the evidence, software, infrastructure, people, and policies that make a prediction usable in a real process. The aim is not maximal automation. It is controlled change with visible consequences — and, as $304 million of written-down inventory shows, a stop condition that someone is authorised to pull.
Case
Five percent model, ninety-five percent everything else
Most of a working ML system is not learning anything. Google engineers put a number on how small the learning part is: a mature system "might end up being (at most) 5% machine learning code and (at least) 95% glue code". Sculley and his co-authors wrote that sentence twice, word for word — once in a 2014 workshop paper on technical debt in machine learning, and again in the conference paper that followed it in 2015.
The 2015 paper makes the same point as a picture. Its central figure is captioned "Only a small fraction of real-world ML systems is composed of the ML code, as shown by the small black box in the middle. The required surrounding infrastructure is vast and complex." That small black box is the part everybody talks about. This lesson is about the rest of the figure.
Visual
The operating surface of an ML system
The visible endpoint rests on several layers, and they fail independently. The decision contract fixes who uses the output, what action follows, and which errors are unacceptable. The learning assets are the datasets, labels, features, code, parameters, prompts, and evaluation suites. The delivery machinery is the pipelines, registries, release gates, runtime contracts, and rollback paths. The operational evidence is the logs, metrics, traces, quality measurements, incidents, and audit records. The human organization is the owners, reviewers, on-call responders, approvers, and downstream consumers.
The cases in this lesson are useful because each one broke in a different layer while the others held. Zillow Offers failed in the decision contract: the price was computed and honoured, and the exposure it created was the problem. Knight Capital Americas failed in the delivery machinery on 1 August 2012, when new code reached seven of eight servers. The commercial risk-prediction algorithm dissected by Obermeyer and colleagues failed in the learning assets, because the label it was trained on was health care costs rather than illness. The Epic Sepsis Model at Michigan Medicine failed in the operational evidence, where an AUC of 0.63 was measured only years after deployment, by an outside team. Ofqual's 2020 standardisation model failed in the human organization, where the reversal came four days after results were issued.
No single dashboard watches five layers at once. That is why the map has to be drawn before the tools are chosen.
- 01
Decision contract
Who uses the output, what action follows, and which errors are unacceptable.
- 02
Learning assets
Datasets, labels, features, code, parameters, prompts, and evaluation suites.
- 03
Delivery machinery
Pipelines, registries, release gates, runtime contracts, and rollback paths.
- 04
Operational evidence
Logs, metrics, traces, quality measurements, incidents, and audit records.
- 05
Human organization
Owners, reviewers, on-call responders, approvers, and downstream consumers.
Example
One outage, five different failure domains
On 1 August 2012 Knight Capital Americas deployed new RLP code to its SMARS order-routing system. Every server stayed up. The firm lost over $460 million in 45 minutes. How it happened is not a matter of opinion: the SEC set it out in an order against the firm on 16 October 2013. Five separate domains failed, and each is recognisable in an ML system.
- Routing and mutable assets: the new code did not reach the whole fleet. The SEC's order says it plainly: “During the deployment of the new code, however, one of Knight's technicians did not copy the new code to one of the eight SMARS computer servers.”
- Configuration logic: the deployment repurposed a flag that had previously activated retired "Power Peg" code. A value that meant one thing on the seven updated servers meant something else on the eighth.
- Blast radius: while processing 212 retail orders, the router obtained over 4 million executions in 154 stocks for more than 397 million shares in 45 minutes. The input volume was ordinary. The output volume was not.
- Evidence and review gap: the SEC found that Knight had no written code-deployment procedures and no requirement for a second technician to review deployment. Nothing between the change and the market checked whether the change was complete.
- Outcome: Knight lost over $460 million, and the order imposed a $12,000,000 civil money penalty. The loss and the sanction are two measurements of the same missing control.
Comparison
Three notions of success that must not be collapsed
A single dashboard rarely proves that an ML product is healthy. The Epic Sepsis Model shows the three notions coming apart inside one deployed system.
Service health held throughout. The model was live across US hospitals, scoring patients and firing alerts inside the electronic health record. Nothing about its availability was in question.
Model quality was a separate matter, and it took an outside team to measure it. Wong and colleagues studied 27,697 patients and 38,455 hospitalizations at Michigan Medicine, with sepsis in 2,552 of them — 6.6%, reported as 7% in the abstract. They found an AUC of 0.63 (95% CI, 0.62-0.64). Their conclusion, published in JAMA Internal Medicine in 2021, does not hedge: “This external validation cohort study suggests that the ESM has poor discrimination and calibration in predicting the onset of sepsis.”
Product outcome is the third measurement, and it is the one about workflow capacity. The alerting threshold was a score of 6, chosen by the hospital's own operations committee and inside the 5-8 range the model's developer suggested. At that threshold the model alerted on 18% of all hospitalizations, 6,971 of 38,455. Sensitivity was 33%. It did not identify 1,709 patients with sepsis, 67% of them. Clinicians would still have to evaluate 8 patients to identify one who developed sepsis. A second, independent group reached the same shape of conclusion elsewhere: across 145,885 encounters in 2023 at two county emergency departments, reported in JAMIA Open in 2024, sensitivity was 14.7% and positive predictive value 7.6% within a 6-hour window.
A service-health dashboard would have been green for the whole of that. Discrimination is one measurement. Alert burden on the people who must respond is another. Neither is inferable from uptime.
Service health
The system responds within its availability and latency objectives.
- Requests complete
- Dependencies remain reachable
- Resource limits are respected
- Example: p99 latency stays below 250 ms
Model quality
Outputs retain the statistical behavior required for the task.
- Discrimination and calibration hold
- Important slices remain stable
- Abstention behaves as designed
- Example: recall at review capacity remains above target
Product outcome
The surrounding workflow creates the intended benefit without unacceptable harm.
- Users act on the output
- Operational capacity is sufficient
- Harms and appeals are tracked
- Example: retention outreach improves net renewal
Four loops run at different speeds
The serving loop converts current inputs into outputs within seconds or milliseconds. The monitoring loop aggregates telemetry over minutes or hours, while the learning loop may retrain weekly. Governance and product review often move more slowly still.
The gap between those clocks is measurable in the cases above. Knight Capital Americas' serving loop did its damage in 45 minutes on 1 August 2012; the governance loop closed with the SEC's order on 16 October 2013. The Epic Sepsis Model served predictions in real time, and the AUC of 0.63 that described their quality was published in 2021, by researchers outside the vendor. Zillow Group's pricing loop ran continuously; the correction was a single decision recorded on 2 November 2021, against approximately $304 million of inventory already bought.
A reliable design names these clocks explicitly. Otherwise a fast service can go on making a degraded decision for days, or for years, because the only useful label arrives after the operational damage.
Key idea
Automation can hide the owner
A pipeline that retrains, validates, promotes, and deploys automatically may appear mature. It is unsafe if nobody owns the target definition, the release threshold, the affected population, or the stop condition.
A commercial risk-prediction algorithm used at scale in US health systems shows what an unowned target definition costs. It was working as specified. It was biased anyway, because it predicted health care costs rather than illness, and unequal access to care makes cost a poor stand-in for how sick someone is. Obermeyer and colleagues dissected it in Science on 25 October 2019, across 6,079 self-identified Black and 43,539 self-identified White patients — 11,929 and 88,080 patient-years. Patients above the 97th percentile of risk score are automatically identified for enrolment in the care management programme. The authors simulated an algorithm with no predictive gap between Black and White patients, and the share of Black patients among those auto-identified rose from 17.7% to 46.5%.
No threshold was miscalibrated and no server was down. A label had been chosen, nobody owned the choice, and the automation faithfully executed it at the 97th percentile every day.
On that same date, 25 October 2019, two New York regulators wrote jointly to David S. Wichmann, CEO of UnitedHealth Group Incorporated, about Optum's Impact Pro. The signatories were Linda A. Lacewell of the New York State Department of Financial Services and Howard A. Zucker of the Department of Health. Their letter leaves no room: “These discriminatory results, whether intentional or not, are unacceptable and are unlawful in New York.” It went to a person, because accountability has to.
Automation removes manual steps. It does not remove accountability. Each transition needs a named decision owner and a record of the evidence used.
A system without explicit ownership is not autonomous; it is unattended.
Analogy
MLOps is air-traffic control, not aircraft manufacturing
Air-traffic control and aircraft manufacturing are two different professions, and MLOps sits on the control side of that line. Building a capable aircraft resembles training a model. Flying it safely also takes routes, weather reports, separation rules, people talking to one another, incident procedures, and someone with the authority to ground a flight.
Ofqual's 2020 standardisation model for English A levels is what that last authority looks like when it is actually used. The model was not a rogue system. It left the calculated grade equal to the school's centre assessment grade for 59% of entries, raised it for just over 2%, and lowered it for 39%. Grades were issued on 13 August 2020. Four days later, on 17 August 2020, Ofqual's chair, Roger Taylor, announced that students would instead receive their centre assessment grade or the moderated grade, whichever was higher. The whole population affected, and the reversal, are on the public record.
The review afterwards did not turn on the statistics. The Office for Statistics Regulation, part of the UK Statistics Authority, examined all four UK regulators' models in March 2021. Its foreword reaches the verdict a control layer exists to prevent: “None of the planned approaches to awarding grades were able to command public confidence.”
Several correct local actions can still combine into an unsafe global state. That is the reason a control layer exists at all. Software assets, though, can be copied, rerouted, and updated far faster than physical aircraft, so version control and automated evidence have to carry the weight that tail numbers and maintenance logs carry in aviation.
Operational maturity comes from coordinated visibility and authority, not from the sophistication of one component.
Steps
Draw the first operating map
Use this exercise before selecting tools or platforms, and test each step against a case that has already failed there.
Start with the decision: write the action that changes because the model exists. For Zillow Offers that action was buying a house at a stated price. That is why the failure arrived as approximately $304 million of written-down inventory rather than as a metric regression.
Trace every input: record sources, clocks, transformations, and availability conditions. The Epic Sepsis Model's inputs were fine. What nobody had traced was the evidence path, which is why the AUC of 0.63 was measured at Michigan Medicine by an outside team in 2021 rather than by the deployment itself.
Mark every mutable asset: model versions, configuration, policies, thresholds, and routing rules. Knight Capital Americas had eight SMARS order-routing servers and a repurposed flag. The SEC found no written code-deployment procedures and no requirement for a second technician to review deployment.
Add evidence paths: show where service, data, model, and outcome signals are produced. The sepsis alert threshold of 6 was set by a hospital operations committee, inside a developer-suggested 5-8 range. The number that determined alerts on 18% of hospitalizations lived in a committee minute, not in the model.
Assign owners and recovery actions: name who can stop, roll back, repair, or retire each component. Ofqual's chair could reverse a national grading model on 17 August 2020, four days after results. Ask who holds that authority for your system, and whether they could exercise it within four days.
1. Start with the decision
Write the action that changes because the model exists.
2. Trace every input
Record sources, clocks, transformations, and availability conditions.
3. Mark every mutable asset
Include model versions, configuration, policies, thresholds, and routing rules.
4. Add evidence paths
Show where service, data, model, and outcome signals are produced.
5. Assign owners and recovery actions
Name who can stop, roll back, repair, or retire each component.
The standard for the rest of this path
Every later lesson asks the same three questions: What can change? What evidence makes that change acceptable? How does the team recover when the assumption fails?
These are not an author's framework. In the United States they are law for one class of ML system. Congress added section 515C to the Federal Food, Drug, and Cosmetic Act in 2022. Under it, a supplemental application “shall not be required for a change to a device ... if such change is consistent with a predetermined change control plan” the agency has approved. A manufacturer may therefore change a model without a new submission — but only by having declared in advance what could change and how it would be checked.
The FDA issued the final guidance on those plans for AI-enabled device software on 4 December 2024. Its summary sets out the same three questions in order: “This guidance recommends that a PCCP describe the planned AI-DSF modifications, the associated methodology to develop, validate, and implement those modifications, and an assessment of the impact of those modifications.”
Tools matter only after those questions have concrete answers. A registry, orchestrator, or dashboard cannot supply the missing product contract.
Sculley and his co-authors named the effect that makes this hard. They call it the CACE principle: “Changing Anything Changes Everything”. It applies to input signals, and equally to hyper-parameters, learning settings, sampling methods, convergence thresholds and data selection, because “No inputs are ever really independent.” That is why the three questions above — and the plan the FDA requires — are asked of the whole system rather than of the model.
Key takeaways
- MLOps operates a complete decision system, not a model artifact in isolation: Zillow Group's prices were computed and honoured, and the failure still arrived as approximately $304 million of written-down inventory.
- Serving, monitoring, learning, and governance loops move on different clocks — 45 minutes of Knight Capital Americas routing on 1 August 2012, and an SEC order on 16 October 2013.
- Service health, model quality, and product outcomes require separate evidence: the Epic Sepsis Model was live and responsive, scored an AUC of 0.63, and alerted on 18% of hospitalizations at a sensitivity of 33%.
- Every mutable asset needs versioning, ownership, and a recovery path; the SEC found Knight had no written code-deployment procedures and no requirement for a second technician to review deployment.
- Automation accelerates decisions but does not transfer accountability to software — a cost-based target auto-enrolled patients above the 97th percentile, and correcting it would move the Black share identified from 17.7% to 46.5%.
- A useful operating map begins with the real-world action changed by the model, and names who may stop it, as Ofqual's chair did on 17 August 2020, four days after results were issued.