plans/prompts/wave_3/pr_golden_suite.md
Implement the "Golden single-window characterization suite" from plans/cleanup-state-machines.md ("Verification strategy → Single-window protection"). The plan wins over this prompt. This is test-only — zero production changes — and it MUST merge before B1 or any audit-rewiring PR touches a production flow, because its entire value is capturing behavior BEFORE rerouting begins.
Scope — a named collection (e.g. src/tests/golden_single_window/ or the repo's convention for suites), mostly assembled from assertions that already exist scattered across suites, promoted and gap-filled:
Requirements: deterministic (fake clocks/IdSources per the kernel test kit); each assertion documents which future rewiring PR it protects (router / invalidation channel / fan-out / pagehide split / tab schema); CI runs it in the normal unit/integration pass; a one-line note in the plan's Single-window protection section marks it landed with the PR number.
Verify: typecheck, full test run, lint; confirm the suite fails loudly when one baseline is deliberately broken (temporarily flip one assertion to prove signal, then restore). Branch cleanup-golden-suite; /pr-push; update plan status.