Skip to content
ORBIT

Orbit handbooks · Volume 05

Models that stay relevant

Preparestages 1–4Fitstages 5–6Shipstages 7–8Watchstage 9The decision
Preparestages 1–4Fitstages 5–6Shipstages 7–8Watchstage 9The decision
Four arcs on one road to the decision. Watch returns as a new version id, not a silent overwrite.

A model stays relevant when the pipeline can refuse it, promote it, watch it, and roll it back without silent overwrite.

Chapter 1 of 6

What good looks like

Good looks like a model that can stay in a workflow: reproducible from files, rejectable at a gate, promotable as a named version, monitorable in production, and reversible to a previous version that still answers.

Operating rule

My operating rule: freeze the test ids before any fit, fit every transform on train only, clear an inner bar before validation is read, read the test set once for the official evaluation, keep the previous version callable, and start a new version id when live evidence fails — never overwrite the live weights in place.

Checked 29 Oct 2026ML pipeline field card

The destination

The end state is not a notebook that once scored well. It is a decision brief that names who acts and what the score may change, a pipeline that leaves files the next stage can refuse, a named bundle beside a previous version that still answers, and a monitor that starts a new run when live evidence fails.

A new training run does not automatically replace the live model. passed is operational evidence; approved enables promote to live; held keeps parallel-only. Rollback restores the previous live way. Continuous training, when it happens, is a new version id — never a silent overwrite of live weights.45

CANDIDATEbundle/<version>/Test cleared. Versionedand packed.passedGOVERNANCE GATESheet for thenamed useOwner accepts orrefuses.approvedpromote at cutoverLIVE VERSIONOwns thelist orderliveWATCHMonitor dailywritesmonitor/<date>.jsonheldParallel onlyScores beside live.Owns nothing.kept loadedPREVIOUS LIVEStill callableFirst release:oldest-past-due-firstInvestigateHoldRoll backNew versionrestoreNew training run → new version id → candidateLive weights are never overwritten in place.
CANDIDATEbundle/<version>/Test cleared. Versioned and packed.passedGOVERNANCE GATESheet for the named useOwner accepts or refuses.approvedheldLIVE VERSIONOwns the list orderliveParallel onlyScores besidelive. Ownsnothing.WATCHMonitor dailywrites monitor/<date>.jsonInvestigateHoldRoll backNew versionrestorePREVIOUS LIVE · STILL CALLABLEFirst release: oldest-past-due-firstNew run = new version id. Live weightsare never overwritten in place.
Figure 1. Release and rollback. A passed candidate clears approved beside live; Watch may promote a new id or restore the previous live way.

Four arcs

Google’s Practitioners guide to MLOps (May 2021) names seven integrated processes: ML development, training operationalization, continuous training, model deployment, prediction serving, continuous monitoring, and data and model management. I use that lifecycle as the map. I do not copy Google’s product stack.

On this card the same work is four arcs. Prepare covers profile, quality, outliers, and features. Fit covers the freeze, train, tune, and validation. Ship covers the one official test read, versioning, and serving. Watch covers continuous monitoring and a controlled return. Stage contracts below name the files each arc must leave.452

Preparestages 1–41Profile2Quality3Outliers4FeaturesLEAVESA table Fit can trustFitstages 5–65SplitTrainTuneValidate6LEAVESOne validation-cleared candidateShipstages 7–87Test once8ServeLEAVESA passed, versionedbundleWatchstage 99Monitor dailyLEAVESDaily evidence, or a newversionWatch re-enters as a new version id, never in place
Preparestages 1–41Profile2Quality3Outliers4FeaturesLeaves: a table Fit can trustFitstages 5–65Split6Train6Tune6ValidateLeaves: one validation-cleared candidateShipstages 7–87Test once8ServeLeaves: a passed, versioned bundleWatchstage 99Monitor dailyLeaves: daily evidence, or a new versionWatch re-enters as a new version id
Figure 2. Four arcs on one spine — the chapter’s principal map. Watch returns as a new version id.

One decision

One synthetic illustration runs through this book. A collections supervisor orders today’s call list for open invoices that are already past due. The score may change who is called first. It does not replace credit policy, auto-dial, or the controller’s offer of more time — that offer stays on Data that drives decisions.

Decision timestamp: this morning’s list cut. Row: one open overdue invoice as of that cut. Action the ranking informs: placing a call (an operational event after the score; not a feature). Prediction target: whether that invoice is paid within fourteen days of the cut. The call event and the payment outcome are separate. The score ranks invoices; it does not estimate the causal effect of placing a call.

Oldest-past-due-first stays the baseline and the callable fallback. Historical labels were produced under whatever contact policy was then in force, so offline ranking metrics gate order quality relative to that baseline under that regime — they do not prove that calling caused payment.

DECISION BRIEFCall-order illustration · syntheticDecisionWho is called first on today’s open overduelist.OwnerCollections supervisor who owns the order.RowOne open overdue invoice at this morning’scut.TargetPaid within fourteen days of the cut.BaselineOldest-past-due-first. Stays callable onrefuse or rollback.A blank line stops the work.TARGET AND ACTION ARE SEPARATEfourteen-day outcome windowmorning cut+14 days1231AT THE CUT · MODELScore ranks the listPredicts the target: paid within fourteen days.2AFTER THE SCORE · WORKFLOWSupervisor places callsAn operational act: not a feature, not the label.3WINDOW CLOSES · OUTCOMELabel is readPaid by day fourteen: yes or no.
DECISION BRIEFCall-order illustration · syntheticDecisionWho is called first on today’s openoverdue list.OwnerCollections supervisor who owns theorder.RowOne open overdue invoice at thismorning’s cut.TargetPaid within fourteen days of the cut.BaselineOldest-past-due-first. Stays callableon refuse or rollback.A blank line stops the work.TARGET AND ACTION ARE SEPARATEfourteen-day outcome windowmorning cut+14 days1231AT THE CUT · MODELScore ranks the listPredicts the target: paid within fourteen days.2AFTER THE SCORE · WORKFLOWSupervisor places callsAn operational act: not a feature, not the label.3WINDOW CLOSES · OUTCOMELabel is readPaid by day fourteen: yes or no.
Figure 3. Decision brief for the call-order illustration. Blank lines stop the work. No amount is a collected result.

Choose the workName the decisionFeatures that holdFit without spending the holdout

Evaluation boundary

Four controls keep the evaluation honest. They are related; none substitutes for another. Median label delay sizes the embargo; it is never proof that labels are mature.

Label maturity: a row may enter train, validation, or test only when the fourteen-day outcome window has closed and the outcome is available. Window still open, or label missing, means immature — keep it out. Temporal embargo: separate train|validation and validation|test by label_delay_days (median delay on matured rows from Prepare) so late labels from an earlier morning do not leak into a later set; apply the same rule at both boundaries. Entity leakage: the same invoice — and related rows that share the entity key at decision time — must not appear in more than one partition. Baseline: the candidate must beat oldest-past-due-first on the metric named in task.json, on the same frozen rows.28

1 · LABEL MATURITY, ROW BY ROWextract dateMaturedeligibleWindow still openimmature · excludedOutcome missing?immature · excludedcutfourteen-day outcome windowMedian label delay never proves a row is mature.2 · MATURED ROWS IN DECISION-TIME ORDERdecision time: older → newer morningsTrainValidationTest · frozenfits the candidatesone scored readids hashed · read once in Shipembargo = label_delay_days at both boundariesrows of invoice A stay together in traina later copy is dropped, not splitWidths show roles, not a measured share of rows.FOUR CONTROLS · NONE SUBSTITUTES FOR ANOTHERMaturityWindow closed and outcomeavailable.Embargolabel_delay_days at bothboundaries.EntityOne entity key in one partition.BaselineBeat oldest-past-due-first onthe same frozen rows.
1 · LABEL MATURITY, ROW BY ROWextract dateMaturedeligibleWindow still openexcludedOutcome missing?excludedcutfourteen-day outcome windowMedian label delay never proves a row is mature.2 · MATURED ROWS, OLDER → NEWERTrainVal.Testembargo gapsRows of invoice A stay in one partition.A later copy is dropped, not split.Test ids are hashed and read once in Ship.Widths show roles, not a measured share of rows.FOUR SEPARATE CONTROLSMaturityWindow closed and outcome available.Embargolabel_delay_days at both boundaries.EntityOne entity key in one partition.BaselineBeat oldest-past-due-first on the same frozen rows.
Figure 4. Evaluation boundary. Maturity, embargo, entity split, and baseline are four gates — not one.

Fit without spending the holdout

How to read this with the card

The ML pipeline field card is the map of the spine. The agent recipe at the same path is the same pipeline as machine-checkable stages and filenames. These chapters are how a person operates the work, and how I refuse a green training run that skipped a gate.

Data that drives decisions owns one number (Ask, Grain, Truth, Use). Software that stays in use owns one software change. This book starts when the artifact is a model trained from a table and that model will be used in a decision. If the decision brief is missing, return to Name the decision before any profile runs.123

Name the decision

Stage contracts

Inside the arcs the agent recipe defines nine stages. Each stage consumes named inputs, writes named outputs, and clears a pass line before the next stage starts. Filenames below are the recipe’s contracts — not a claim that a live repo already holds them.

task.json is required before stage 1: label column, entity key, decision-time column, metric, baseline, and min_metric. Optional quarantine_rate_max defaults to 0.05 in this recipe; that default is an operating threshold for this card, not a universal law. A different dataset needs its own written threshold and owner. Validation metrics are written in Fit. The official test report and model card are written when test is read once in Ship. The bundle is the promotable package; the model card status is not a substitute for the governance sheet on Name what the version may do.278

1ProfilePREPAREINraw table, task.jsonOUTprofile.jsonPASSEvery column has exactly one role;label and decision time are set.A role change re-runs stages 2–9.2QualityPREPAREINprofile.json, raw rowsOUTquality.json,quarantine.parquetPASSMatured labels 100% valid; keyunique; clock clean; quarantine ≤quarantine_rate_max.New quarantine or maturity countsre-run 3–9.3OutliersPREPAREINkept matured rowsOUToutlier_policy.jsonPASSEvery numeric feature has a policyand a touch-rate.New quarantine returns to 2; a policychange re-runs 4–9.4FeaturesPREPAREINkept matured rows,outlier_policy.jsonOUTfeature_spec.jsonPASSKept features are decision-timeand fit_on: train; drops keep areason.A spec change re-runs 6–9.5SplitFITINmatured rows,label_delay_daysOUTsplit_ids.parquetPASSMatured only; embargo at bothboundaries; entities disjoint; testhash stored.A new split discards the old test idsunread and re-runs 6–9.6TrainFITINtrain and validation ids,feature_spec.jsonOUTpreprocess.joblib,model.joblib,val_metrics.jsonPASSInner bar cleared, then onevalidation read clears (val_reads =1). Else blocked.A new model re-runs 7–9.7TestSHIPINfrozen test ids,validation-clearedcandidateOUTtest_report.json,model_card.jsonPASSAt least min_metric and beats thebaseline: passed. Else rejected.Never retune on test. A change needs anew split.8ServeSHIPINpassed model_card,preprocess, model, specOUTbundle/<version>/PASSSignature matches; a missingfeature errors; previous live idrecorded.Any changed artifact is a new versionid.9MonitorWATCHINlive requests, the bundle’straining distributionOUTmonitor/<date>.jsonPASSAll clear: stay. Otherwise name thestage to re-enter.Re-enters 2, 4, 5, or 7 as a new version.Never in-place weights.Filenames are this recipe’s contracts, not a claim that a repository already holds them.
1ProfilePREPAREINraw table, task.jsonOUTprofile.jsonPASSEvery column has exactly one role; label anddecision time are set.A role change re-runs stages 2–9.2QualityPREPAREINprofile.json, raw rowsOUTquality.json, quarantine.parquetPASSMatured labels 100% valid; key unique; clockclean; quarantine ≤ quarantine_rate_max.New quarantine or maturity counts re-run 3–9.3OutliersPREPAREINkept matured rowsOUToutlier_policy.jsonPASSEvery numeric feature has a policy and atouch-rate.New quarantine returns to 2; a policy changere-runs 4–9.4FeaturesPREPAREINkept matured rows,outlier_policy.jsonOUTfeature_spec.jsonPASSKept features are decision-time and fit_on:train; drops keep a reason.A spec change re-runs 6–9.5SplitFITINmatured rows, label_delay_daysOUTsplit_ids.parquetPASSMatured only; embargo at both boundaries;entities disjoint; test hash stored.A new split discards the old test ids unread andre-runs 6–9.6TrainFITINtrain and validation ids,feature_spec.jsonOUTpreprocess.joblib, model.joblib,val_metrics.jsonPASSInner bar cleared, then one validation readclears (val_reads = 1). Else blocked.A new model re-runs 7–9.7TestSHIPINfrozen test ids, validation-clearedcandidateOUTtest_report.json, model_card.jsonPASSAt least min_metric and beats the baseline:passed. Else rejected.Never retune on test. A change needs a new split.8ServeSHIPINpassed model_card, preprocess,model, specOUTbundle/<version>/PASSSignature matches; a missing feature errors;previous live id recorded.Any changed artifact is a new version id.9MonitorWATCHINlive requests, the bundle’straining distributionOUTmonitor/<date>.jsonPASSAll clear: stay. Otherwise name the stage tore-enter.Re-enters 2, 4, 5, or 7 as a new version. Neverin-place weights.Filenames are this recipe’s contracts, not a claim that arepository already holds them.
Figure 5. Nine-stage contracts. Each card is a filename, a pass line, and what a re-run invalidates.

One stage, worked

Quality (stage 2) shows the contract shape. Inputs are the profiled table and task.json domains. Outputs are quality.json and quarantine.parquet. Transforms are not fitted here; imputation rules are only planned for train later. Immature invoices (window open or outcome unavailable) are excluded here; label_delay_days is written on matured rows only — Prepare’s maturity job, not Fit’s embargo or freeze.2

BEFORE · RAW ROWS AT THE CUTsix synthetic invoices; no amountsAFTER · THREE DESTINATIONSROWWINDOWLABELCHECKAclosedpaidvalidDclosedpaidlatest copyBopen—window openEclosedunknownoutcome missingCclosed“maybe”illegal labelDclosedpaidolder duplicateQUALITY CHECKSValidityUniquenessClockCompletenessMaturityno imputationprofile.jsonMature · keptWindow closed, outcome valid. Fit freezes these later.Immature · excludedWindow open or outcome missing. Counted, not labeled.QuarantineIllegal label; older copy of a key.quarantine.parquetquarantine rateQuarantine rate ≤ quarantine_rate_max?task.json · this recipe’s default is 0.05yesquality.jsoncounts, label_delay_days → OutliersnoStop. Do not impute past it.
BEFORE · RAW ROWS AT THE CUTsix synthetic invoices; no amountsROWWINDOWLABELCHECKAclosedpaidvalidDclosedpaidlatest copyBopen—window openEclosedunknownoutcome missingCclosed“maybe”illegal labelDclosedpaidolder duplicateQUALITY CHECKSValidity · Uniqueness · Clock ·Completeness · MaturityUses profile.json roles. No imputation.AFTERMature · keptWindow closed, outcome valid. Fit freezes theselater.Rows: A (valid), D (latest copy)Immature · excludedWindow open or outcome missing. Counted, notlabeled.Rows: B (window open), E (outcome missing)QuarantineIllegal label; older copy of a key.quarantine.parquetRows: C (illegal label), D (older duplicate)Quarantine rate ≤ quarantine_rate_max?task.json · this recipe’s default is 0.05yesnoquality.jsonCounts andlabel_delay_days. Next:Outliers.StopDo not impute past thegate.
Figure 6. Stage 2 contract on the call-order path. Quarantine_rate_max defaults to 0.05 in this recipe.

Prepare the table

Three kinds of validity

A green fit answers only the first gate. Operational packaging answers the second. Whether the supervisor should change the list is the third — and it is not ranking performance alone.

For the call-order illustration, decision value also weighs operational capacity, payment outcomes under the contact policy in force, unwanted contacts, and the consequences of changing call order. Where causal improvement cannot be established from offline data, say so on the governance sheet. Pipeline gates do not invent that evidence.69

Candidate from Fitval_reads = 11GATE 1 · STAGES 5–7Model validityIs the evaluationtrustworthy?CHECKSMatured rows; embargo on both sidesEvery transform fitted on train onlyval_reads = 1; test read onceREADSval_metrics.jsontest_report.jsonnoblockedat validationrejectedat testNever served.yespassedEvidence the evaluation holds. Not permission to own the list.2GATE 2 · STAGE 8Operational validityCan it run, and bereversed?CHECKSSignature matches name for nameA missing feature errors; no silent fillPrevious live version stays callableREADSbundle/<version>/nodo not promoteFix the bundle and re-runServe. Live is untouched.yescandidatePacked and reversible. May score in parallel.3GATE 3 · STAGE 10Decision valueShould it own the callorder?CHECKSCapacity, payments, unwanted contactsRisk of changing who is called firstCausal limits written, not assumedREADSgovernance sheetnoheldParallel only. Scoresbeside live; owns nothing.yesapprovedFor the named use. Still not live until cutover.↑ pipeline evidence↓ governance, for a named useLIVE · PROMOTED AT CUTOVEROwns today’s call order. The previous live version stays callable.liveClearing one gate does not clear the next.A green fit answers Gate 1 only. passed is not approved, and approved is not live.
Candidate from Fitval_reads = 11GATE 1 · STAGES 5–7Model validityIs the evaluation trustworthy?Matured rows; embargo on both sidesEvery transform fitted on train onlyval_reads = 1; test read onceval_metrics.jsontest_report.jsonnoblockedat validationrejectedat testNever served.yespassedNot yet live2GATE 2 · STAGE 8Operational validityCan it run, and be reversed?Signature matches name for nameA missing feature errors; no silent fillPrevious live version stays callablebundle/<version>/nodo not promoteFix the bundle and re-run Serve.Live is untouched.yescandidateParallel only3GATE 3 · STAGE 10Decision valueShould it own the call order?Capacity, payments, unwanted contactsRisk of changing who is called firstCausal limits written, not assumedgovernance sheetnoheldParallel only. Scores besidelive; owns nothing.yesapprovedCutover next↑ pipeline evidence↓ governance, for a named useLIVE · AT CUTOVERliveOwns today’s call order. The previous liveversion stays callable.Clearing one gate does not clear the next.passed is not approved, and approved is not live.
Figure 7. Three validity gates in order: model, operational, decision value. Each stop names its status; clearing one gate does not clear the next.

Ship and watchName what the version may do

When a draft is cheap

A generated training script can look complete and still have spent the holdout, fitted the imputer on the full table, treated “called and paid” as one label, or used a median embargo while immature rows still sat in test. The destination, the arcs, the evaluation boundary, and the stage contracts still apply.

This holds when a draft is cheap: a green fit is not done until test_report and model_card say passed, the bundle keeps a previous live way callable, the governance sheet is approved, and cutover has promoted the candidate to live for the named use.

References

  1. ML pipeline field card
  2. ML pipeline agent recipe
  3. Data analytics field card
  4. Google, Practitioners guide to MLOps, May 2021
  5. Google Cloud, MLOps continuous delivery and automation pipelines
  6. Mitchell et al., Model Cards for Model Reporting, FAT* 2019
  7. scikit-learn, data leakage
  8. scikit-learn, cross-validation
  9. Fowler, deployment pipeline