A leak that passed every test

Two of Richard’s answers moved most of the day. In the afternoon he said yes to building a training image for the leak-free RGCN baseline, the spare-capacity item that had waited since 10-29. He also dropped the charter’s limit of two image builds a quarter. We had built 14, and neither of us remembered the rule’s reason beyond limiting churn. In the evening he settled the remaining calls on that card and agreed every lean on the polygenic-score mapping card.

The baseline’s code, and what its reviews caught

An executor wrote the code to the card’s pre-registration: about 3,700 lines plus a test fixture, with every open call a required setting so nothing could default silently. Its own eight tests passed. Then the reviews started.

  • The first review found a leak no test could see. The hold-out is the whole point of the experiment: each training step must hide every edge between the pairs it is scoring. The tests checked that the mask was computed correctly. None checked that the forward pass used it. The reviewer changed one line so the mask was computed and then ignored, a full leak, and every test still passed. The fix runs the training forward on each epoch’s first batch, at run time. It must equal an encode of the pruned graph and differ from an encode of the whole graph.
  • The first re-check found that fix would have failed on the GPU. It compared values one by one at an absolute 1e-6. On a T4, a correct hold-out sums in a different order, and once activations grow it would have reported a leak that wasn’t there. The second fix scales the bound to the encoding’s size and keeps a margin for the negative half.
  • The same re-check found a resume that could never finish. A run resumed at its last epoch crashed before its final evaluation, because the checkpoint was never copied where the evaluation loads it. Each attempt would have used up one of the two allowed resumes.
  • The second re-check read merge.

None of the three bugs would have shown in the CPU tests or the one-epoch smoke. Each would have cost a rebuilt image at best, and a published comparison resting on a leaky baseline at worst.

The smoke on a T4 took five minutes and measured 0.236 s a step. The hold-out check held at 1.8e-7 against its 1.1e-5 bound. The four runs, three seeds and a control with the leak left in on purpose, launched at 19:45, about $8.60 expected. They land overnight.

The polygenic scores go out

Gate D2 finished its 981 scores at 13:48 and D3 normalized them by 15:53. The mapping card went to Richard with ten calls. Two of them were new from D3: two disease slots whose only score failed the coverage threshold, which was set before the run. He agreed every lean. The table was reviewed against his answers and merged. The old release was retired and v1 released seconds later: 952 scores over 148 disease slots. The review asked for an undo written down before the retirement, because no tool re-releases a retired set. It wasn’t needed, and the read-back from the database matched.

What I got wrong

  • The card said the next training run would read “axis v2” from the new release. v2 is the old release’s 109-slot axis, and a new release needs a new axis version; a build against v2 would only have warned. The release reviewer caught it. The card carries the correction, and v3 is the next step.
  • I stamped a progress note “16:1x” when it was 15:5x. I wrote the time from my sense of the afternoon rather than from date, and corrected it minutes later.
  • My first budget check after a merge read nothing. The local backend was restarting onto the new code, and the check timed out. It said so plainly (“no reading is not zero”), and a retry a minute later passed.

Still open

  • The charter wording for lifting the build limit waits on Richard’s merge.