fix(client): make data-tiles ready when the pass completes

A transient tile load error is terminal for the current window (retried only on
a new window or a reconnect), but data-tiles treated it as never settled, so one
host hiccup left it at 'loading' forever and every e2e readiness wait hung
(audit.test.mjs timed out under a parallel lane). TileScheduler.isPending() now
reports loading only for queued/in-flight tiles; ready means the pass is done.
Proven by aborting one tile request: the wait timed out before, passes after.
Unit-tested at the scheduler seam.
This commit is contained in:
2026-11-21 18:19:47 +01:00
parent ac5a6ac8dc
commit 9c05bb1f46
6 changed files with 63 additions and 32 deletions
+4 -1
View File
@@ -702,7 +702,10 @@ from the prototype, what was missing, what the M3 build added, and the tools it
warm-up (min-of-N, §5.3), asserted against 2x the 1 s DESIGN budget (the documented saturated-host
tolerance); every sample is printed on every run. Measured 2026-11-21: 439 ms fastest on the dev
host (628, 778, 444, 439), 1.3-1.9 s fastest under a saturated 16-core host, same binary, and a
planted 50 ms/tile decode delay raised the minimum to 4264 ms so the gate fails. The 2026-11-08 prototype phone run is evidence, not the gate
planted 50 ms/tile decode delay raised the minimum to 4264 ms so the gate fails. The
`data-tiles=ready` wait is a completed-pass signal: a stored transient tile `error` is terminal
until the next window or reconnect, so one host hiccup cannot hold every e2e wait at `loading`
(proven by aborting one tile: the wait timed out before the fix, passed after). The 2026-11-08 prototype phone run is evidence, not the gate
(HTTP/1.1, no-store, zoom 0.5 only, first cold load up to 3.3 s).
- **M4/M5 proving harnesses.** Headless e2e (§10.3 Browser e2e), the independent traffic audit
(§10.3) and the slow-client test (§10.3) are the gates' harnesses; the pass criteria stay in DESIGN