Bridging Python Model Registries Into an Approval Workflow

Tim Kleinloog 6 min read

MLflow knows which Git commit, dataset version and hyperparameter set produced a model artifact. It holds the training metrics, the evaluation results on a held-out set and the full experiment history. What it cannot say is whether anyone with the authority to approve that artifact reviewed it before it went into regulated production. That gap comes from how institutions connect ML tooling to governance duties, not from MLflow's design.

Weights and Biases, DVC and most other Python model management tools share the limit. They handle artifact versioning, experiment tracking and reproducibility. Approval chains, sign-off and the documentation that deployment into an EU AI Act, DORA or CRR3 context demands sit outside their scope.

What Registries Give You

A well-maintained MLflow registry offers a versioned artifact store with provenance. Each model version carries the run ID linking back to the experiment, the artifact URI pointing at the serialised file, the training dataset reference when logging was done properly, and any custom tags the team added. The transition states (Staging, Production, Archived) provide a light workflow.

For an ML platform team that is a large step up from unversioned files in object storage or hardcoded paths in deployment scripts. For a compliance team it supplies a technical audit trail worth citing in model documentation. The artifact hash confirms that what was approved is what got deployed, which is a useful assurance.

What Registries Do Not Give You

An MLflow transition from Staging to Production is a state change. A Python call, a CI/CD step or a click in the UI can trigger it. Nothing requires an authorised reviewer to sign off, nothing checks that a validation record exists, and nothing emits an approval event with a timestamp and an attributable identity.

The Act's conformity assessment for high-risk systems expects the deployment decision to trace to a human with the right authority. SR 11-7 validation principles ask for production approval to be documented apart from the development record. DORA treats the deployment itself as an ICT change that belongs in change management.

None of this fights MLflow. It calls for a process layer above the registry rather than inside it.

The Approval Status Gap

The integration most teams reach for is treating the transition state as a proxy for approval: a model in Production is assumed to have been approved. The state change is not an approval event. A developer with write access can move a version to Production, and the registry has no way of knowing whether governance was followed.

A more defensible pattern uses the registry for what it does well, artifact storage and versioning, and keeps approval as an external record tied explicitly to the model version ID. That record should carry the model name, version, artifact hash, approval date, approver identity and role, validation report reference and any conditions. The Production transition should depend on the record existing.

A Practical Bridge Pattern

In practice the bridge can be a webhook or event trigger on the registry state change. A version moved to Staging signals readiness for review. The trigger opens a governance request in the workflow system, attaches the version metadata and routes it to the right validation team. Their sign-off updates the workflow with status and conditions and writes a custom tag back to the registry version.

This keeps the registry as the artifact source of truth while adding an audit trail that holds up externally. The implementation detail that matters is making the write-back the authoritative source of the approval tag, rather than a manual step someone forgets when a deadline closes in.

Governance Metadata Fields to Carry on Every Model Version

Whichever integration route you take, these fields should be on every registered model version before it can move to production:

  • Intended use case and regulatory classification (high-risk under EU AI Act or not)
  • Training data period and source reference
  • Model card URI or direct link to the documentation record
  • Validation report reference and approver identity
  • Monitoring configuration reference (drift thresholds, alert routing)
  • Explainability method and baseline artifact location

MLflow's schema does not include them natively, but custom tags and metadata cover it. The build process should reject a registration that lacks them, instead of leaving them optional and skipping them when a team is in a hurry.

Keeping Registry and Governance Layer in Sync

The synchronisation problem grows. A model retrained quarterly with two production versions live at once, each with its own validation history, produces a tangled state on both sides. The registry shows four versions under two model names. Governance shows six validation records across three approval cycles. Correlating them by hand for a regulator asking for a model's full history is error-prone.

The mitigation is to use the model version identifier as the primary key across registry, workflow, monitoring and audit log. Every record about a version carries that key. Building the discipline from day one is cheap; retrofitting it across a registry holding two years of versions is not.

Not a Replacement Argument

None of this makes MLflow or its peers the wrong choice for ML teams. For artifact versioning and experiment reproducibility they are well suited. The point is that they were built for a different problem, and compliance teams should not hand them obligations they were never designed to carry. Registry and governance layer do complementary jobs, and the engineering task is making them interoperate without duplicating data or building synchronisation debt.

Back to Blog

Ready to govern your models?

See how Deeploy keeps the file current

Start with one model and watch the evidence build as the work happens.

Request Access See How It Works