Status: done (2026-11-10) Priority: 2 Size: S Design ref: docs/gates.md; QUESTIONS.md, VB-261 Goal: VB-261 (docs/gates.md, rows 22 to 26, and section 2, Noise): these already report; they gain the common record so a residual is read over time, and the noise that tells a residual from run-to-run spread (VB-227: the whole step varied 146 to 211 ms a day; VB-201: 8 women in 204). Acceptance criteria:
tools/bench.js appends a target record for each budget line and each system’s share, with the share of the whole step in the same run beside the ms; its drift flag stays.tools/bench.js or a small tool), reporting median and range and calling a residual inside the range of “before” noise (VB-227’s method).tools/bands.js and tools/marriage-demography.js append target records, with the standard error over seeds as their noise.HEAD; the reader shows them. npm test; golden unchanged.tests/lib/targets.js: target() takes extra fields kept in the record (a share, the per-seed values, the before range).tools/bench.js --record: after a run, one record per budget line with a limit (bench/medium-ref/mean, longest-step, moving-round, meetings,
save, load, gzip) and one per system share (bench/medium-ref/share/<system>, ms a day against its budget), each with the share of the
whole step in the same run (share, shareOfDay, wholeMs); noise runs, n 1 (a single run’s spread is unknown). The drift flag is unchanged.tools/bench-paired.js (new, --help): before and after checkouts (default both this one), alternated, 3 runs each, each in a fresh
process of that checkout’s own tools/bench.js --fixture; median and range of both sides for the mean, longest and p99 step, ms a living
pawn-day and every system’s share of the whole step; noise when the after median lies in the before range, else faster or slower.
--record appends the mean and the longest step with noise kind paired (the before range). Timings are never pass or fail.tools/bands.js: after the full runs, one record per band and run (bands/<band>/<run>), the mean over the seeds against the band’s range,
noise twice the standard error over the seeds (se, per-seed values and inBand in the record). --record appends them.tools/marriage-demography.js: seeds now run one per core; prints three TARGET lines (demography/marriages-per-year, first-marriage-age,
never-married) against docs/bench/demography-reference.json (the means of 12 seeds at 756c693, written by --make-reference), within 5%,
5% and 2 points; noise twice the standard error over the seeds; --record appends them.node tools/bands.js --record (3.3 minutes, 0 errors): 28 of 50 in, 22 out. As targets over seeds: hungry-households out on all three runs
(populous 0.981, founders 0.682, heirs 0.931 against 0.3), hunger-deaths noise on populous (0.081) and founders (0.093) and out on heirs (0.172)
against 0.02, population noise on heirs (0.889 against 1), the rest in. These are the known residuals (docs/gates.md, row 22).node tools/marriage-demography.js 1..12 --make-reference --record: marriages 6.053 a year, first-marriage age 21.26, never-married 3.08%
of women 45 to 54; all in, residual 0 (they are the reference, so this run only starts the series).node tools/bench.js --record: mean 244 ms a day (target 200), longest step 133 ms (60), save 543 ms (500), load 393 ms, gzip 4.77 MB. The
previous bench in the history read 163 ms and 42 ms: the machine is shared and the same code varies by half; hence paired runs.node tools/bench-paired.js (this checkout against itself, 3 each, alternated): mean 252 (196..283) before, 272 (249..321) after: noise;
longest step 115 (71..177) against 121 (59..378): noise. Of the shares of the whole step, three were called slower or faster by about a
point (talk 23.2 vs 23.5, idle strolls 18.3 vs 18.8, meetings 0.50 vs 0.70) although the code is identical: three runs give a range too
narrow to call a share. Follow-up (no task made): five runs for shares, or a floor of one point on the before range.npm test: 88 scripts passed; 2 targets out (scaling.routeRefresh, scaling.roundPairs), as on main. node tests/golden.js: matches. Build current.