Sub topic 6
Promotion Gates in a Model Registry
Prerequisites and working model
This chapter assumes you understand the ML lifecycle, Git and CI/CD, basic Python, and the purpose of a model registry. A model registry stores model versions, metadata, evaluation results, and lifecycle stages such as development, staging, and production.
A promotion gate is a rule that must pass before a model moves to the next stage. Gates turn governance requirements into checks that a deployment pipeline can enforce. They should evaluate both technical evidence and organizational approval.
For example, a production gate might require:
- The model passed the agreed evaluation tests.
- The training data snapshot and code commit are recorded.
- A model owner approved the release.
- A risk reviewer approved the release.
- The person who requested promotion did not approve their own request.
- Required documentation and human-oversight instructions exist.
Separation of duties
Separation of duties means that one person should not control every step of a sensitive release. The requester may prepare the release, but independent roles should approve it. This reduces the chance that schedule pressure or a hidden defect results in an unreviewed deployment.
The gate should check roles, decisions, and identities. Checking only for two approval records is weak because the same person could submit both records, or an approval could later be changed from rejected to approved without an audit event.
REQUIRED_ROLES = {"model_owner", "risk_reviewer"}
def can_promote(approvals: list, requested_by: str) -> bool:
approved_roles = {
approval["role"]
for approval in approvals
if approval["decision"] == "approved"
and approval["approver"] != requested_by
}
return REQUIRED_ROLES <= approved_roles
approvals = [
{"approver": "alice", "role": "model_owner", "decision": "approved"},
{"approver": "bob", "role": "risk_reviewer", "decision": "approved"},
]
print(can_promote(approvals, requested_by="carol")) # True
print(can_promote(approvals, requested_by="alice")) # FalseRegistry evidence and EU AI Act preparation
A promotion record should identify the exact model version, data snapshot, code commit, evaluation report, intended purpose, risk tier, oversight method, and approvals. Store these values with immutable or tamper-evident audit events.
For systems that fall under high-risk obligations in the EU AI Act, this evidence can support requirements such as risk management, technical documentation, logging, human oversight, and accuracy, robustness, and cybersecurity. A registry does not prove compliance by itself. It provides traceable evidence that your controls ran and that responsible people reviewed the result.
Common failure modes
- A gate checks the latest model rather than the exact version being promoted.
- Approval records lack timestamps, roles, or identities.
- Automated tests pass, but documentation or oversight checks are skipped.
- Emergency releases bypass gates without a reason, expiry time, and later review.
- The registry says “production” while the serving system runs a different artifact.
Exercise
Alice requested promotion and approved as model owner. Bob approved as risk reviewer. Should the model pass the gate?
Show answer
No. Alice's approval must not count because the requester cannot approve their own release. A separate eligible approver must provide the model-owner approval.