chore(deps): upgrade vitest to 5
Summary
Vitest 4.1.11 → 5.0.4. The local @vitest/coverage-v8 patch is gone: upstream now carries a module's script wrapper offset through the merge of worker coverage files instead of letting read order decide it (vitest-dev/vitest#10506, #10643), so the patch, its patchedDependencies entry and the cases pinning dist/wrapper-lengths.js delete. The converter defect is not fixed upstream — 5.0.4 pulls ast-v8-to-istanbul ^1.0.7, still publishing a negative implicit-else count — so that patch is retaken with pnpm patch.
Breaking changes: test.sequential removed (14 sites → { concurrent: false }); inline projects inherit root globalSetup; coverage.exclude matches without picomatch contains, so four file-kind patterns became root-free. Node and Vite in CI already satisfy v5.
Two latent races surfaced, each fixed at its owner: the legacy-daemon fixture published info.json with a bare writeFileSync while callers wait on existsSync, and open names events.ndjson from a queued append, so asserting its existence needed the store's flushEvents. 17 files, 831 lines excluding pnpm-lock.yaml.
Validation
Clean-clone install --frozen-lockfile passes pnpm's default 24 h policy, no exclusions added. At 4ebc7505: test:coverage, check:coverage-crap --all and blocking --base, check:coverage-changed --base, check:affected --run, typecheck, lint, format, layering and gate-manifest all exit 0.
Over the 1,730 files both versions measure, coverage moves at most 0.01 pt. The map holds main's 1,730 plus two sources main itself added, none lost, zero impossible counters, no Unscored, no function at or above 30 in the report-only lane. test:coverage wall clock 248 s / 265 s on v4 to 212 s / 199 s under one lock.