Chapter 5 of 6
5
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
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
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
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