Skip to content
ORBIT

Chapter 5 of 6

Ship and watch

Read test once for the official evaluation. Pack a named bundle beside a previous version that still answers. Watch writes daily files and starts a new version id — never a silent weight update.

Operating rule

My operating rule: never retune on test residuals, never promote without a previous version that still answers, and never update weights in place from a monitor alert.

Checked 29 Oct 2026ML pipeline field card

Test once

After validation clears, load the frozen test ids. Transform with the train preprocessor — no refit. Score once. Write test_report.json: decision metric, baseline on the same rows, ten-bin calibration when scores are probabilities, time buckets and any segment_columns. Apply the threshold frozen on the single validation read; do not search thresholds or features on test.

Baseline on this path is oldest past-due first. The gate is clearing min_metric and beating that baseline on ranking quality. That is not a measured lift, and it is not evidence that calling caused payment. Clear → model_card status passed (operational evidence, not live ownership). Miss → rejected and stop. Re-fitting on the same test residuals is not a loop — it spends the holdout.67

LOADED ONLY NOWFrozen test idssplit_ids.parquetTrain preprocessor, no refitpreprocess.joblibValidation-cleared candidatemodel.joblibThreshold frozen on validationval_metrics.jsonSTAGE 7 · OFFICIAL TESTScore onceREPORTSDecision metricOldest-first, same invoicesTen-bin calibrationTime buckets and segments≥ min_metric?Beats oldest-first?Segments ≥ floor?yespassedtest_report.jsonmodel_card.jsonServe as a candidate. Notlive.norejectedmodel_card.jsonOldest-first stays live.Stop.no tuning on test residuals
LOADED ONLY NOWFrozen test idssplit_ids.parquetTrain preprocessorpreprocess.joblibCandidatemodel.joblibFrozen thresholdval_metrics.jsonSTAGE 7 · OFFICIAL TESTScore onceREPORTSDecision metricOldest-first, same invoicesTen-bin calibrationTime buckets and segments≥ min_metric?Beats oldest-first?Segments ≥ floor?yesnopassedtest_report.jsonmodel_card.jsonServe as a candidate.Not live.rejectedmodel_card.jsonOldest-first stays live.Stop.No tuning on test residuals.
Figure 1. Official test contract. Writes test_report.json and model_card.json. No invented lift.

Serve with a previous version

Pack preprocess.joblib, model.joblib, feature_spec.json, and the version id into bundle/<version>/. Signature test: one known training row matches name-for-name and type-for-type. Missing required feature → hard error, no silent fill. Previous live way on this path is oldest-past-due-first — one action restores it alone.

Fowler’s deployment pipeline builds confidence through staged checks before production. Google’s Practitioners guide mentions progressive delivery; I take the staged cutover, not a cloud product. model_card passed plus a packed bundle make a candidate with operational validity. It is not live until the governance sheet is approved and cutover promotes it.314

1Technical passIt runs and can bereversed.2AuthorizationA person accepts thenamed use.3PromotionCutover movesownership.CANDIDATEpassedbundle/<version>/Signature matches.Missing feature → error.PARALLEL SCORINGScores beside liveOwns nothing. Monitor filesstill written.GOVERNANCE GATESheet for the named useChapter 6 · stage 10held → stays parallelapprovedLIVE · AT CUTOVEROwns the list orderlivePREVIOUS LIVE · STILL CALLABLEKept loadedFirst release: oldest past-due first.rollbackone actionPassing one lane does not pass the next.passed is technical evidence; approved is permission; live is ownership.
1Technical passIt runs and can be reversed.2AuthorizationA person accepts the named use.3PromotionCutover moves ownership.CANDIDATEpassedbundle/<version>/Signature matches. Missing feature → error.PARALLEL SCORINGScores beside liveOwns nothing. Monitor files still written.GOVERNANCE GATESheet for the named useChapter 6 · stage 10heldapprovedLIVE · AT CUTOVEROwns the list orderliverollback · one actionPREVIOUS LIVE · STILL CALLABLEKept loadedFirst release: oldest past-due first.Passing one lane does not pass the next.
Figure 2. Technical pass, authorization, promotion: three lanes. Held keeps parallel-only; rollback restores the previous live way in one action.

Run the version just verifiedName what the version may do

Watch returns as a new version

Google’s Practitioners guide describes continuous monitoring as watching the effectiveness and efficiency of a deployed model, including decay such as data and concept drift. Continuous training is repeatedly executing the training pipeline when new data or code arrives. On this card those meet as Watch: write monitor/<date>.json and name the stage to re-enter.

Signals and actions follow the agent recipe: required-feature missing → stop this version, fall back to oldest-first, re-enter Features; feature PSI above the written line → keep current owner, re-enter Prepare with a live sample; score PSI with stable features → mature labeled cohort read before any refit; label metric worse than test by more than monitor_margin → new split on newer mornings. PSI and monitor_margin defaults in this recipe (0.25 and 0.05) are operating thresholds with owners and review actions — not universal laws.

Monitor never updates weights in place. The next model is always a new version id.126

monitor/<date>.jsonwritten daily, against the training distribution in the bundleSIGNALTHRESHOLDIMMEDIATE ACTIONNEXT STAGERequired featuremissingmissing rate > 0Stop this versionRequests error. Oldest-first answers.4FeaturesRepair the feature contractFeature driftfeature PSI > 0.25Keep currentCurrent version keeps the list.2QualityRe-profile a live sampleScore drift, featuresstablescore PSI > 0.25Keep currentNo refit first.7Test, mature cohortFourteen-day labels firstMature-cohortoutcomes worsebelow test by > 0.05Roll backOldest-first until a new version cutsover.5New splitNewer mornings; new idAll clearEvery signal under its line: write monitor/<date>.json and stay.Monitor never updates weights in place. Every next model is a new version id.PSI 0.25 and monitor_margin 0.05 are this recipe’s operating defaults, each with an owner, not universal laws.
monitor/<date>.jsonwritten daily, against the training distributionRequired feature missingWhen missing rate > 0Stop this versionRequests error. Oldest-first answers.4Next: FeaturesFeature driftWhen feature PSI > 0.25Keep currentCurrent version keeps the list.2Next: QualityScore drift, features stableWhen score PSI > 0.25Keep currentNo refit first.7Next: Test, mature cohortMature-cohort outcomes worseWhen below test by > 0.05Roll backOldest-first until a new version cuts over.5Next: New splitAll clearWrite monitor/<date>.json and stay.Monitor never updates weights in place. Every next modelis a new version id.PSI 0.25 and monitor_margin 0.05 are this recipe’s operatingdefaults.
Figure 3. Signal, threshold, immediate action, next stage. Monitor never refits in place; oldest-first answers while a version is stopped or rolled back.

When a draft is cheap

A generated serving stub can reorder every morning’s list with no oldest-first fallback, no signature test, and a silent retrain on a schedule. Ship and watch still applies.

Done for operations means test_report and model_card say passed, signature tests pass, and the previous version remains callable. Done for the decision also needs the governance sheet approved.6

Name what the version may do

References

  1. Google, Practitioners guide to MLOps, May 2021
  2. Google Cloud, MLOps continuous delivery and automation pipelines
  3. Fowler, deployment pipeline
  4. SDLC field card
  5. ML pipeline field card
  6. ML pipeline agent recipe
  7. scikit-learn, cross-validation