qa(idle-poll): assert zero background reqs in a 55s idle window #12

Merged
shad merged 1 commits from qa/idle-poll-strict-zero into main 2026-06-15 00:25:13 +00:00
1 Commits
Author SHA1 Message Date
canvas-bot f97f5d2788 qa(idle-poll): assert zero background reqs in a 55s idle window
build-and-publish / test (pull_request) Has been cancelled
build-and-publish / image (pull_request) Has been cancelled
Previous audit allowed up to 5 requests in a 30s window — generous,
hid real regressions. Tighten:

- 5s settle after each scene becomes interactive (covers the burst
  of mount-time fetches every scene legitimately fires)
- 55s observation window after settle, sized to fit between two
  consecutive 60s topbar badge polls
- MAX_REQ_PER_WINDOW = 0; any /api/* or /internal/* request during
  the window fails the assertion

This is the operator-experience contract: when you stop typing,
canvas stops fetching.
2026-06-15 04:24:51 +04:00