Sub topic 1
Why ML Needs Its Own Governance
Prerequisites
This chapter assumes that you understand the basic ML lifecycle: training, evaluation, deployment, and monitoring. You should also be comfortable with Git and CI/CD pipelines, able to read basic Python, and familiar with a model registry or experiment tracker.
Governance is more than change control
Software governance controls who can change code, approve releases, and access production systems. These controls remain important for machine learning (ML), but they do not cover the whole risk.
An ML system learns behavior from data. A change to the training data, feature definitions, labeling rules, model architecture, or decision threshold can change production outcomes even when the serving code stays the same. The system is also probabilistic. The same input pattern can produce an uncertain prediction, and performance can change as real-world data changes.
ML governance is the set of policies, roles, and technical controls used to manage these risks. It answers questions such as:
- Which data and code produced this model?
- Who reviewed the evaluation results?
- Which model version made this decision?
- What evidence justified its release?
- Who can pause or retire it when monitoring finds harm?
An ordinary deployment record might show that commit abc123 reached production. An ML audit record should also identify the model artifact, training-data snapshot, evaluation report, approval decisions, and relevant configuration.
Why an audit trail matters
An audit trail is a chronological record of important events. For ML, useful events include training runs, dataset changes, evaluation results, approvals, deployments, rollbacks, and incidents. Each event should have a timestamp, actor, action, object or model version, and references to supporting evidence.
The goal is not to record every low-level system event forever. The goal is to preserve enough reliable evidence to reconstruct important decisions and investigate failures.
| Governance question | Evidence to retain |
|---|---|
| Why was version 2.4.0 released? | Evaluation report, reviewer approvals, and release record |
| Which data trained it? | Immutable dataset snapshot and lineage reference |
| Which model made a prediction? | Model version and inference log |
Governance connects engineering to accountability
Approval workflows provide a controlled decision point. Separation of duties means that the person requesting a promotion does not provide the only approval. For example, a model owner can review technical quality while a risk reviewer checks intended use, limitations, and safeguards.
The EU AI Act adds a risk-based legal framework for many AI systems placed on or used in the European Union. The obligations depend on factors such as the system’s purpose, risk classification, and the organization’s role. Engineering controls such as versioned artifacts, automatic logs, documented evaluations, and review gates help produce evidence for those obligations. They do not replace legal analysis.
Exercise
A model is retrained on new data, but the serving code and API remain unchanged. Should the release receive a new governance record? Why?
Show answer
Yes. The training data can change model behavior, so the new model version needs its own lineage, evaluation results, approvals, and deployment record.