Chapter 1 of 6
1
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
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
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.
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
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
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
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
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
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
- ML pipeline field card
- ML pipeline agent recipe
- Data analytics field card
- Google, Practitioners guide to MLOps, May 2021
- Google Cloud, MLOps continuous delivery and automation pipelines
- Mitchell et al., Model Cards for Model Reporting, FAT* 2019
- scikit-learn, data leakage
- scikit-learn, cross-validation
- Fowler, deployment pipeline