diff --git a/docs/handoffs/chicorytv-issue-queue.md b/docs/handoffs/chicorytv-issue-queue.md index 34875742f..879c02611 100644 --- a/docs/handoffs/chicorytv-issue-queue.md +++ b/docs/handoffs/chicorytv-issue-queue.md @@ -148,3 +148,17 @@ HARD CONSTRAINTS: - **CI VM test timeouts**: heavy-render web tests (100+ item grids) need explicit vitest timeouts (e.g. 15s) — the CI VM hit the 5s default on a test that runs in ~1s locally (run 686). Bump per-test, don't raise the global default. +- **Concurrency tests need a negative control + a stress loop, not a single round** (2026-07-11, + #231): a one-shot `Barrier(N)` + `Task.WhenAll` "exactly one winner" test did NOT catch a + deliberately non-atomic check-then-set flag on this Mac — the load→store window is too narrow to + collide when threads release once. It green-lit broken code. Fix: hammer the race over many rounds + (N worker threads × ~20k rounds, two Barriers per round: acquire → validate one-winner → reset), + and ALWAYS prove non-vacuous by temporarily breaking the primitive and watching the test fail. + Cheap (sub-second) and deterministic-enough. Same discipline as #12's negative control. +- **Before deleting a "workaround", check it isn't serving a SECOND purpose** (2026-07-11, #232): + an issue said "remove the SPA `PENDING_GRACE_TICKS` grace-tick workaround now the API is honest". + The grace ticks did double duty — compensating the lying-200 (now genuinely obsolete) AND + absorbing the inherent queue→observed-active lag / fast-completion race (still needed). Removing + wholesale wedged the scan button disabled-until-reload for short scans; both fork + Codex caught + it. Keep a bounded version, re-scoped honestly. When an issue says "delete X", enumerate every + behavior X provided before deleting.