# Resize coalescing: BOCPD vs the rate heuristic (2026-10-19) Commit `5df1d6d7 (working tree dirty)`, seed `104372001701892`, final-apply budget 40 ms. Generated by `scripts/resize_storm_differential_e2e.sh`; rerun it to regenerate this file. Both detectors are driven over **identical** event schedules on a virtual clock, so these numbers measure the detectors and not the machine. `frames_during_drag` counts `ApplyResize` actions before the last event — the repaints coalescing exists to avoid. `final_apply_latency_ms` is the time from the last event until the resize settles on its size — what coalescing costs. | Pattern | frames during drag (heur → bocpd) | final apply ms (heur → bocpd) | regime transitions (heur → bocpd) | posterior decided | verdict | |---|---|---|---|---|---| | `burst_50` | 6 → **6** | 33 → **33** | 1 → 2 | 49 | EQUAL | | `burst_200` | 26 → **26** | 24 → **24** | 1 → 2 | 199 | EQUAL | | `sweep_80x24_to_200x60` | 10 → **10** | 40 → **40** | 1 → 2 | 39 | EQUAL | | `oscillate_10` | 4 → **4** | 52 → **36** | 1 → 2 | 19 | EQUAL | | `mixed_100` | 25 → **25** | 45 → **29** | 1 → 11 | 88 | EQUAL | | `pathological_50` | 20 → **20** | 51 → **19** | 4 → 18 | 30 | EQUAL | The *posterior decided* column is the validity check: it counts decisions BOCPD made in the bocpd run. A zero would mean the bocpd column had silently fallen back to the heuristic, making every verdict here a comparison of the heuristic against itself. The heuristic-only runs record zero BOCPD decisions, as `without_bocpd()` requires. ## Verdict **BOCPD is not worse on any of the 6 patterns.** Better on 0, equal on 6, and every pattern settles within the 40 ms budget. The default stands. ## Reading the numbers A pattern where both detectors draw the same number of frames is not a failure of the experiment: the hard deadline and the latest-wins rule do most of the work on schedules that never leave one regime, and the detector only decides how long to hold. The patterns that separate them are the ones that change regime mid-storm. Replay exit status: 0 (0 = every check passed).