58,592 motor policies, 45 prepared columns, a claim rate of 0.063968. The preparation
is a faithful port: the 2,000-row fixture regenerated from this study's own
prepare.py is byte-identical to the fixture the earlier study committed, which
is how the port knows it is modelling the same table and not merely a similar one.
Seventeen is_* equipment flags plus two more binary categoricals arrive as
the strings "Yes" and "No". Under this machine's pandas they
report a dtype of str, not object — so a check written as
dtype == "object" skips all nineteen and silently drops them from the model.
That cost an ancestor campaign about two hours. Every dtype check in this framework is a
value-pattern check for exactly that reason, and the clean-room auditor
re-confirmed it column by column here.
A separate auditor, in a fresh context, reading only the contract, the preparation script and the prepared table — never the lab notebook — ran the mechanized four-row leakage audit and failed row 3:
[OK] split-reproduces: kind=stratified reproduces deterministically from study.yaml (train=46873 development=5859 test=5860 rows)
[FAIL] duplicate-rows: 615 duplicated row-content hash(es) straddle partitions (train/development=297, train/test=310, development/test=32)
[OK] group-overlap: N/A — split kind is not 'group'
[OK] metric-direction[primary]: val_auc: contract direction 'higher' matches the canonical registry
[OK] constant-chance[primary]: val_auc=0.5000 for the constant predictor (chance anchor 0.5)
[OK] shuffled-chance[primary]: val_auc=0.5114 for the label-shuffled predictor (chance anchor 0.5)
5/6 checks passed: 1 FAIL — any FAIL is a BLOCKER at the DATA gate
Read the last two [OK] lines first: that is the negative
control, and it fired correctly. A constant predictor and a label-shuffled
predictor both score at chance. A pipeline that cannot score chance at chance cannot be
trusted with 0.664051.
Now the failure. 0.051203 of development rows and 0.053242 of sealed rows are byte-identical twins — all 45 columns, target included — of a row in training. The cause is structural: with 22 region codes, 11 vehicle models and 17 binary flags, the rating space is coarse enough that identical rows recur.
Both available fixes (dedupe, or a split grouped on the row-content hash) change
which rows are trained on, which destroys the one identity this port is built on
and repairs nothing about the number being reproduced. And for a rating model the
modelling unit is the cell, not the policy: two policies with identical rating
characteristics are supposed to be priced alike, and policy_id —
the only identifier of an individual policy — is dropped and crosses nothing.
So the gate was overridden on the record, the card still says NO-GO, and the risk was carried with a number attached. Every run from that point prints its AUC restricted to the evaluation rows with no twin among the rows it was fitted on. The measured answer, four rungs later: at most 0.001415 of AUC, and three of the four development rungs score higher without the twins. The same table also measured the earlier study's own validation partition — 0.052223 of it carried a training twin, and nobody had ever looked.