Sub topic 5
Approval Workflows and Separation of Duties
Assume you understand model training, evaluation, deployment, Git, CI/CD, and the purpose of a model registry. This chapter shows how to turn a model release into a controlled decision instead of an unchecked pipeline step.
Why approvals need structure
A model can pass its accuracy tests and still be unsafe to release. Its training data may be unsuitable, its intended use may have changed, or its monitoring plan may be missing. An approval workflow records who reviewed these questions and who accepted the remaining risk.
Separation of duties means that one person cannot request and approve the same release. The requester prepares the release. A model owner checks technical quality. A risk or compliance reviewer checks intended use, controls, and evidence. For a high-risk system, include the roles required by your organization and applicable regulation.
A useful approval record includes:
| Field | Purpose |
|---|---|
| Model and version | Identifies the exact artifact being approved |
| Requested by | Records who started the promotion |
| Required roles | Defines which reviews are needed |
| Decision and timestamp | Shows what each reviewer decided and when |
| Evidence references | Links to tests, lineage, documentation, and risk assessments |
An approval is meaningful only when it refers to an immutable model version and its associated evidence. A later change to the model, data, code, or intended purpose should invalidate the approval.
Promotion gates in a model registry
A registry can represent stages such as development, staging, approved, and production. A promotion gate checks automated evidence first, then waits for the required human approvals.
REQUIRED_ROLES = {"model_owner", "risk_reviewer"}
def can_promote(approvals: list, requested_by: str) -> bool:
"""Allow promotion only if every required role has approved
and no approval came from the person who requested the release."""
approved_roles = {
a["role"]
for a in approvals
if a["decision"] == "approved" and a["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")) # FalseIn production, also reject duplicate or revoked approvals, require the correct model version, and store the decision in an append-only audit trail. Do not treat a displayed registry label as proof that the required checks occurred.
Connecting approvals to EU AI Act evidence
For systems covered by the EU AI Act, approval records can support technical documentation, risk management, human oversight, logging, and quality processes. They do not replace those controls. Map each required review to evidence, such as an evaluation report, data-quality assessment, monitoring plan, or human-oversight procedure. Keep the mapping explicit so an auditor can trace an obligation to a control and then to a stored record.
Exercise
Alice requested a release and approved it as model owner. Bob approved it as risk reviewer. Should the workflow promote the release?
Show answer
No. Alice's approval must not count because the requester cannot approve the same release. A different model owner must approve it.