The source is sklearn.datasets.load_iris, restricted to the two species
that overlap — setosa is trivially separable and is out of scope by design. The raw
loader hands back exactly 100 flowers, 50 of each species, 4 measurement columns; that
identity is asserted on the RAW load, not the prepared table, so a lawful data-gate row
drop can never manufacture a false refutation of it (prediction P0). Every column is a
genuine float64 centimetre measurement — sepal length, sepal width,
petal length, petal width, ranges 4.9–7.9, 2.0–3.8,
3.0–6.9, 1.0–2.5 — and the target is a genuine
integer 0/1, not a disguised string boolean. That is a rare, cleanly-typed result, and it
was still checked in full by printing every column's sorted value set rather than trusted
because the table “looked clean”: the mandatory value-pattern check exists
precisely because dtype == "object" has silently hidden a categorical column
before in this framework's own history.
The mechanized four-row leakage audit (python -m kleinlib.leakage) failed
its duplicate-row check on the unmodified 100-row table:
[FAIL] duplicate-rows: 1 duplicated row-content hash(es) straddle partitions (train/development=1, train/test=0, development/test=0)
The hard pair contains one exact-duplicate row: two virginica flowers, identical on
all four measurements at (5.8, 2.7, 5.1, 1.9). Under the declared stratified
split, seed 20260904, the two copies land on opposite sides of the
train/development boundary — one in training, one in development. That is exactly
the leakage mechanism the data-gate protocol names: a memorization-capable challenger
(knn5 most directly) can score the development copy correctly for free off a
byte-identical training twin, in precisely the paired comparisons this study's predictions
are decided on.
The fix was made entirely inside prepare.py, with no edit to
study.yaml: drop the duplicate's second copy, deterministically, before the
table is written. A true duplicate carries zero information beyond its twin, so the fix
costs nothing. prepare.py was re-run, the table re-profiled, the split
re-drawn, and the audit re-run clean:
[OK] split-reproduces: kind=stratified reproduces deterministically from study.yaml (train=49 development=25 test=25 rows)
[OK] duplicate-rows: no duplicate row content straddles partitions
[OK] group-overlap: N/A — split kind is not 'group'
12/12 checks passed: clean
The realized table is 99 rows, not the round 100 several contract
documents describe in prose — a direct, deterministic consequence of dropping one
duplicate. The split realizes 49 training / 25 development / 25 sealed
flowers (development and test both land exactly on the intended 25, preserving the
exchangeability the study's paired floors depend on), per-class counts train
{versicolor 25, virginica 24}, development {versicolor 13, virginica 12}, test
{versicolor 12, virginica 13}. Class balance shifted from an exact 50/50 to 50 versicolor
/ 49 virginica — a positive rate of 49.49% — because the dropped
duplicate was virginica; negligible at this scale, and no registered prediction's
arithmetic depends on the literal row count.
Does this copy of the table differ from Fisher's own? The UCI mirror
of iris is documented to contain transcription errors relative to the original. An
independent fetch and cell-by-cell diff against sklearn's bundled copy found
exactly three cell differences across two rows — both setosa. Zero
differences anywhere in the 100 versicolor/virginica rows this study actually models: the
hard pair is byte-identical between the two sources.
Does the negative control fire correctly? A constant predictor and a
label-shuffled predictor both score at chance on all three tracks
(constant-chance val_auc=0.5000; shuffled-chance
between 0.4391 and 0.5192), inside the tool's default margin. A
pipeline that could not score chance at chance could not be trusted with a perfect score
either.
GO. One blocker was found, by a mechanized and unconditional check,
and fixed with a one-row, zero-information deletion that touched no line of
study.yaml. Every remaining item is a WARN or NOTE: the small-n
design is already the subject of this study's own bootstrap and headroom machinery; the
realized 49-row training partition is a documented, arithmetically inert deviation from
the contract's round-number prose; the UCI discrepancy touches nothing in the rows this
study models. This card's ruling was reached without opening a single file from the
earlier study that examined the same species pair.