The data story

Twenty thousand rows, eight standard-normal features, one binary label. Six features enter the true log-odds; x7 and x8 enter nothing at all, and they are there so the study can watch a high-capacity model spend budget on columns that carry no signal. The positive rate is 24.115%, and the contract splits the table 60/20/20 into 12000 training rows, 4000 development rows, and 4000 rows that stay sealed until the very last run.

The value-pattern check — the one the data gate never skips, because pandas cannot tell a Yes/No column from any other string column by dtype alone — found eight honest floats and a genuine binary integer. No sentinels, no numbers-in-strings, no string-encoded booleans. On synthetic data that is unsurprising; running it anyway is the point, because the day you skip it is the day it would have mattered.

Where the truth lives, and where it must not

prepare.py computes the true log-odds for every row and writes them to data/prepared/truth.json — and only there. Joining that column into the feature table would be perfect target leakage: the model would be handed the answer. The clean-room audit checked exactly this, in a fresh context on a different model, reading only the contract, the preparation script and the prepared table — never the lab notebook, whose hopes and priors are what make a leak look plausible.

The two controls

Before trusting any verdict the pipeline was checked in both directions. Most studies do this and never name it; naming it is half the teaching.

The gate ruled GO with two warnings carried forward rather than argued away: a 24% positive rate, and a development partition of only four thousand rows — which is what makes the noise floor wide, and therefore what makes the headroom close early. Both warnings landed in the arithmetic, not in a claim.