Builds that wouldn't repeat
Training twice gave two different models. I traced it to ties in DuckDB window functions and duplicate ranking rows in an ASOF join. A total-order tie-break now gives byte-identical marts.
A model that prices professional tennis matches, the warehouse under it, and the things that broke on the way. Built in 2026 with AI coding agents I direct.
That beats both simple rules, but only by 0.8 points over ELO, which is inside the margin of error. A good rating system carries most of the signal in tennis. What the model adds is a probability that means what it says, and section 05 shows that.
AUC 0.717 · log loss 0.615 · Brier 0.214. The holdout was touched once, for this report.
Every pair below was priced by the real model before this page loaded. Nothing runs on a server.
Fourteen players: the top twelve by ELO on the date below, plus João Fonseca and Learner Tien. Each match is priced as a quarterfinal played that day, so real rest and recent workload count. A long layoff or a heavy fortnight moves the number. Bars are the model's own feature attributions in log-odds, grouped.
Most of the work is in getting the data right. The model is a few hundred lines; the pipeline that feeds it honest features is most of the repo.
Shuffling matches into train and test would let 2024 results teach the model about 2023. Every split here is a block of calendar time, and the test block comes last.
Sort the 4,278 holdout matches into ten equal bins by predicted probability, then check how often the predicted side actually won. A calibrated model sits on the diagonal.
I also fit an isotonic calibrator on 2024, the usual next step. On the holdout it made things slightly worse (Brier 0.214051 against 0.213985 raw), so the model ships its raw probabilities and the report says why.
Gain is how much each feature improved the model's splits during training. ELO leads by a distance. The surface ELO, which I built as its own rating chain for each surface, comes second.
Training twice gave two different models. I traced it to ties in DuckDB window functions and duplicate ranking rows in an ASOF join. A total-order tie-break now gives byte-identical marts.
A rebuild renumbered the matches, but one downstream table kept the old IDs, so a backtest joined to the wrong matches and looked far better than it was. Every build is now stamped, and a mismatch blocks the read.
A full code audit raised 25 findings. One was real: outcome labels could be reached through the views meant to hide them. Fixed.
In June the upstream repo disappeared. The pinned snapshot stays the only training data. New results come from a second source through the 8-check gate, which matched the snapshot on 99.4% of 5,792 overlapping matches against a 99% floor I set before the first pull.
Warehouse Copilot is a read-only MCP server with 7 tools. Every query is parsed down to a single SELECT, checked against a default-deny table allowlist, capped at 1,000 rows and 5 seconds, and logged. Label-stripped views keep match outcomes out of reach.
A 24-question gold regression gate runs through the same governed path as a blocking Dagster check, so a build that changes the gold answers or trips the guardrails can't ship. Three rounds of adversarial agent review closed 17 bypasses.
On August 31 the model priced four US Open second-round matches and logged them before play. All four have settled, and the favourite won each one. Four matches is an anecdote, not a result. The ledger and the drift report are there for when the count is big enough to mean something.