Plan shards by estimated process wall time
Commit
With twelve shards and weights divided by a global overlap, run 42840857648 finished in 479 s but its shards were still uneven: macOS test steps took 69 to 163 s around a mean of 108. Dividing a parallel root's elapsed by a constant is wrong where it matters: a parallel phase can end no sooner than its longest root, so a shard holding one 64 s parallel sweep and little else takes 64 s, not 31.
The planner now estimates each test process as serial elapsed plus the larger of its longest parallel root and its parallel elapsed over the runner's parallelism, and gives each root, slowest first, to the shard that would finish soonest with it. Against that run's evidence the model predicts process times within 1.4 s on macOS and 2.2 s on Windows on average, where the constant divisor missed by 4.5.
Weights files record raw elapsed again, mark the roots that paused for t.Parallel(), and carry the parallelism fitted to the measured process times. Both are regenerated from that run. A weights file without the new fields plans every root as serial, which is the previous longest-processing-time-first behaviour.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com