adl.modelops · ADL 0.5.1 Model Ops
Every model version earns its way to production.
ML model release management where candidates train only on steward-approved datasets, evaluation pass/fail flags must agree mathematically with recorded metric values and thresholds, reviewers can approve only after accuracy, fairness, and safety suites pass with zero failures, production promotion requires a completed canary and explicit superseding of any live version, running canaries over their error budget halt automatically every 15 minutes, and every production rollback requires four-eyes approval from a second SRE.
dataset (registered → steward approve → deprecated) · model → candidate (trained [approved dataset] → evaluations [accuracy · fairness · safety · latency · robustness; passedMatchesTheNumbers] → reviewer approve | reject → canary → rollout [traffic %, errorBudget; 15m auto-halt over budget] → complete | halt → promote [supersede prior production] → superseded | rolled_back → retire) · rollback (requested → second-SRE approve | reject → execute)
Why Model Ops Exists
ML platform teams ship fraud classifiers, search rankers, support summarizers, embedders, demand forecasters, computer-vision detectors, and trust-and-safety filters on weekly cadences. In most stacks, the rules that matter most — “never train on unreviewed PII,” “never waive fairness or safety,” “never jump past a canary to 100%,” and “never let one person roll back production unreviewed” — live scattered across CI scripts, wiki checklists, and Slack threads that anyone with deployment credentials or an API token can bypass.
In Model Ops, those release gates are compiled directly into the Kalos API server from backend/domain.yaml:
- Approved training data in, honest evaluations recorded: No
candidatecan be created unless its referenceddatasetisapprovedby asteward(trainOnlyOnApprovedData). EveryevaluationvalidatespassedMatchesTheNumberson write so a metric worse than its threshold (higher_betterorlower_better) can never be recorded aspassed: true. - Mandatory accuracy, fairness, and safety before traffic: Moving a candidate from
trainedtoapprovedis restricted to[reviewer, admin]and guarded byapproveOnlyEvaluated, which queries PostgreSQL to confirmaccuracy,fairness, andsafetysuites are all present and zero evaluations of any suite (latencyandrobustnessincluded) failed. - Self-halting canaries, unambiguous production lineage, and four-eyes rollbacks: Traffic rollouts open only for candidates in
canary(canaryOnlyForCanaries). Every 15 minutes,haltCanariesOverBudgetautomatically transitions any running rollout witherrorRate > errorBudgettohalted. Promotion requires acompletedrollout (productionNeedsACompletedCanary) and zero other versions of thatmodelinproduction(oneProductionVersionPerModel), while rolling a live model back requires arollbackapproved by someone other thanrequestedBy(fourEyesOnRollbacksandrollBackOnlyUnderAnApprovedRollback).
The entire release platform — 6 audited resources, 5 RBAC roles, 4 coordinated state machines, 1 mathematical field-consistency validator, 7 cross-resource AEL rejection rules, 3 declarative views, a 15-minute error-budget circuit breaker, and transition history timelines — runs from a single ADL 0.5.1 suite (adl.modelops) on Kalos and PostgreSQL.
Inside the 10-Model, 25-Candidate Live Registry
Every record and transition in seeds/seed.yaml (generated deterministically by seeds/gen_seed.py) executes under privileges: user as the actual role-scoped actor (steward1, mle1, reviewer1, sre1, or sre2). Across 10 model families, 12 versioned datasets, 25 candidates, 121 evaluations, 22 canary rollouts, and 10 rollbacks, every governance path is live and inspectable:
- 8 Active Production Models & Clean Retirements:
card-fraud-score 1.1.0,catalog-search-ranker 1.1.1,comment-toxicity-filter 1.4.0,doc-embedder 1.1.1,home-feed-recs 5.0.0,store-demand-forecast 2.0.1,support-ticket-summarizer 2.0.1, andweld-defect-detector 3.2.0serve production traffic, while 8 prior1.0.0,1.1.0, and2.0.0versions stand cleanlyretiredafter superseding or hotfix rollbacks. - 3 Canary Candidates & 1 Halted Tokenizer Regression:
weld-defect-detector 3.3.0(5% traffic,1.1%error rate vs2.0%budget, 92 ms p95) andsubscriber-churn 2.1.0(10% traffic,0.6%vs2.0%budget, 41 ms p95) are actively running inliveCanaries;card-fraud-score 1.2.0has completed its 10% canary (0.7%vs2.0%) and waits for1.1.0to be superseded; andcomment-toxicity-filter 1.5.0passed all 5 offline suites only to spike to a4.6%error rate (3×its1.5%budget) within 20 minutes at 5% traffic — halting its rollout and leaving1.4.0untouched in production. - 2 Fairness Failures (
failingEvaluations) & 1 Approved Queue: Bothhome-feed-recs 5.1.0(rejected byreviewer1: “Group gap 0.071 against a 0.05 threshold.”) anddelivery-eta 4.1.0(still intrained, blocked byapproveOnlyEvaluated) failfairness(max_group_gap = 0.0710 > 0.0500), whilesupport-ticket-summarizer 2.1.0sitsapprovedawaiting canary launch. - 10 Four-Eyes Rollbacks & 12 Governed Datasets: Five production rollbacks were approved by
sre2and executed ahead of2.0.1/1.1.1hotfixes; two (delivery-eta 4.0.0andsubscriber-churn 2.0.1) standapprovedandrolled_backawaiting retirement; one (home-feed-recs 5.0.0) wasrejectedbysre2after tracing the error spike to an upstream outage; and two (card-fraud-score 1.1.0andweld-defect-detector 3.2.0, both requested bysre1) wait forsre2’s independent sign-off. Meanwhile,support-call-transcripts 2026-11(containsPii: true, 118,000 rows) waits inregisteredforsteward1, andcompleted-deliveries 2025-06isdeprecated.
How ADL Enforces Model Risk & Release Governance
When an AI safety board, model-risk auditor, or SRE lead inspects backend/domain.yaml, five declarative mechanisms guarantee that every invariant holds regardless of client or caller:
- Steward-gated training corpora (
trainOnlyOnApprovedData): Creating acandidateevaluatessome(query('dataset', { id: $record.dataset }), d => d.status != 'approved'), rejecting both unreviewedregisteredPII corpora (support-call-transcripts 2026-11) anddeprecatedexports (completed-deliveries 2025-06) before training lineage can be polluted. - Self-verifying evaluation math & mandatory suites (
passedMatchesTheNumbers&approveOnlyEvaluated): Everyevaluationcheckspassed == ((direction == 'higher_better' && value >= threshold) || (direction == 'lower_better' && value <= threshold))on ingestion, andcandidate.approveverifies viaquery('evaluation', ...)thataccuracy,fairness, andsafetyexist on the candidate with zeropassed: falserows across all suites. - State-locked canary traffic & 15-minute circuit breaking (
canaryOnlyForCanaries&haltCanariesOverBudget):rollout.createrejects any candidate whose status is notcanary, while the declarativehaltCanariesOverBudgetschedule scansstatus == 'running' && errorRate > errorBudgetevery 15 minutes and firesrollout.haltautomatically. - Completed-canary proof & single-version production (
productionNeedsACompletedCanary&oneProductionVersionPerModel):candidate.promoterequires at least onecompletedrollout on that candidate and zero existingproductioncandidates for$record.model, forcing explicitsupersedetransitions and clean version handoffs. - Four-eyes production rollback control (
fourEyesOnRollbacks&rollBackOnlyUnderAnApprovedRollback): Onrollback.approve, Kalos checks$record.approver == $record.requestedBy(422 "A different SRE must approve this rollback."), andcandidate.rollBackrefuses to pull a production version unless anapprovedorexecutedrollback exists for that candidate.
Zero Sign-Up · Live Kalos Sessions
Sit at a Bench and Try It Live
Each card below signs directly into a real role-scoped JWT session on the production Kalos backend so you can test role queues, transitions, and server refusals immediately.
mlengineer as mle1 ML Engineer
Register candidates against steward-approved datasets, test why training on unapproved PII dataset support-call-transcripts 2026-11 returns HTTP 422, record evaluation metrics validated by passedMatchesTheNumbers, request rollbacks, and retire superseded versions.
Launch mle1 bench ↗reviewer as reviewer1 Model Reviewer
Inspect accuracy, fairness, safety, latency, and robustness suites across trained candidates, test the live HTTP 422 fairness refusal on delivery-eta 4.1.0 (0.071 group gap vs 0.05 threshold), or reject failing candidates with a mandatory reason.
Launch reviewer1 bench ↗steward as steward1 Data Steward
Review registered PII dataset support-call-transcripts 2026-11 (118,000 rows containing customer names and phone numbers), audit steward attribution across 10 approved warehouse corpora, and deprecate superseded dataset exports.
Launch steward1 bench ↗sre as sre1 Primary Release SRE
Monitor live running canaries against error budgets, test why promoting subscriber-churn 2.1.0 mid-canary or card-fraud-score 1.2.0 before superseding 1.1.0 returns HTTP 422, and verify why sre1 cannot approve sre1's own rollback requests.
Launch sre1 bench ↗sre as sre2 Second Approver SRE
Act as the independent second pair of eyes on the 2 pending production rollback requests (card-fraud-score 1.1.0 and weld-defect-detector 3.2.0) submitted by sre1, or inspect why home-feed-recs 5.0.0's rollback was rejected after tracing a spike upstream.
Launch sre2 bench ↗Production Interface Walkthrough
Inside Model Ops — Screen by Screen
Captured directly from the live Kalos deployment. Click any screenshot to inspect full resolution or jump straight to that screen in the running application.
Declarative Server Enforcement
What the Kalos Server Refuses — Whoever Asks
These invariants live in the ADL domain definition, not in client-side UI JavaScript. Every REST request is checked by Kalos before touching PostgreSQL, and any violation returns a structured error naming the rule.
| Attempted Operation | Enforced ADL Rule / Guard | Regulatory Alignment |
|---|---|---|
| Register a model candidate trained on a registered or deprecated dataset not approved by a data steward | trainOnlyOnApprovedData | Training data provenance & PII stewardship |
| Record an evaluation whose passed boolean disagrees with its metric value, threshold, and direction | passedMatchesTheNumbers | Tamper-proof evaluation metric integrity |
| Approve a candidate missing accuracy, fairness, or safety evaluations — or with any failed evaluation suite | approveOnlyEvaluated | Mandatory AI safety, fairness & quality gating |
| Promote a candidate to production without a completed canary rollout on record | productionNeedsACompletedCanary | Progressive delivery & blast-radius control |
| Promote a candidate while another version of the same model family is still in production | oneProductionVersionPerModel | Unambiguous single-active-version lineage |
| Open a traffic-bearing canary rollout for a candidate that has not been approved and moved into canary | canaryOnlyForCanaries | State-machine-governed traffic routing |
| Approve a production rollback request as the same SRE or engineer who requested it | fourEyesOnRollbacks | Four-eyes production change control |
| Transition a production model version to rolled_back without an approved or executed rollback record | rollBackOnlyUnderAnApprovedRollback | Audited incident & rollback authorization |
Domain Footprint
ADL Suite Inventory
Resources (6)
datasetmodelcandidateevaluationrolloutrollback RBAC Roles (5)
mlengineerreviewerstewardsreadmin Declarative Views (3)
promotionPipelinefailingEvaluationsliveCanaries