brokersemantics: make gap bands exclude the rung beside them
Commit
The timing tolerance was a flat +500ms/-40ms, wider than the spacing between adjacent fixture delays — so the bands accepted the very explanations they were meant to rule out. Ladder rungs sat at 150/400/700: the band around 150ms reached 650ms and the band around 400ms reached 900ms, so a server serving each wait one rung late (the COR-1255 off-by-one) produced 400/700/700/700/700 against wants of 150/400/700/700/700 and every assertion passed. The NakWithDelay cases were worse: a stretched delay of 800ms and a bare rung of 900ms are 100ms apart, so a broker that ignored the request and served the ladder was indistinguishable from one that stretched it. Both of the suite's sharpest findings were ungated.
assertGap now takes the rival delays — adjacent rungs, the bare AckWait, the un-stretched request — narrows the band to half the nearest rival's distance, and names the rival an observation landed on when it fails, so a red test reads as "it served rung 1, not rung 0". A fixture whose delays sit closer than minRivalMargin fails outright rather than being asserted loosely: the values are what have to change, since widening the band is how the assertion stops working. That guard caught one of my own rivals while writing this (a halved AckWait, 100ms from its expectation).
Fixture delays are respread so the rivals are separable: ladder rungs at 100/500/1100, and the Nak ladder at 700/2200 with a 50ms request. The stretched delay's distance to the bare rung1 is |request - rung0| and to rung0 is |request + rung1 - 2*rung0|, so both terms had to be sized deliberately; these leave 325ms on each. The ladder case that used to cover indexing and the tail repeat together is split, since one rung per wait and a repeated last rung reject different mutations. MaxDeliver comes down where the longer rungs would otherwise have slowed the suite, and the wall clock is unchanged.
Proven by mutation, each expectation replaced with the rival's timing and the real broker contradicting it: the off-by-one ladder, a ladder-only NakWithDelay, and a tail that falls back to the first rung all go red.
doc.go's "Fixtures that cannot fail" records this as the fourth fixture review has caught here gating nothing, and states the timing rule: an expected value being right is not enough, the tolerance has to be narrower than the distance to the next plausible explanation.
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01WNGoni5q31iGD4KoWvFJ93 Entire-Checkpoint: 90f0fde81f1a