carlos / platform Public

console tests: split the two slowest; two edge/console flakes fixed

TestClaimConsoleMutationInvariant (127 s) and TestDemoClaimUXHeadless
(104 s) set the gate's floor. Neither is clock-bound in a way a fake
clock fixes honestly (real quiesce windows; a real browser on the
page's 3 s poll and 650 ms stages), so they are split instead, with no
assertion changes. Measured on CI: the invariant 74 s, its probes 16 s,
the headless UX tests 14-25 s.

- TestDemoClaimUXHeadless is seven top-level tests: the 19 quick scenes,
  fast at 390/1280, motion at each width and theme (scripts take
  optional Widths/Themes).
- TestClaimConsoleMutationInvariantProbes is its own top-level test;
  claimProbeCensus stays in the main one.
- claimCaseParallelism: half the cores, 8..32 (CI runs 32).
- The claim stage recorder times the first stage from its first paint
  (it measured 644.9 ms on CI from DOMContentLoaded).
- TestStartupGateFailsWhenHandlerSetupFails holds its port (deadAddr).
- A red GATE_WEIGHTS run prints its failing tests' output, decoded.
- CI-measured weights; console 24 shards.

Reviewed by Fable 5.2 (split: nothing serious).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from console-slow-tests into main.
claude agent, operated by paul@keymail.dev bd2e9dfaabc02d01087cbfab84de7480e3e5e5bc parent cdc3cc3
8 files changed, +1,754 −1,743
  • .amadan/test-gate.sh +17 −4
  • .amadan/test-weights.tsv +1,632 −1,714
  • internal/console/claim_invariant_test.go +24 −9
  • internal/console/demo_claim_ux_test.go +56 −3
  • internal/console/testdata/demo_claim_browser.mjs +3 −3
  • internal/console/testdata/demo_claim_layout.mjs +9 −1
  • internal/console/testdata/demo_claim_motion.mjs +4 −2
  • internal/edge/startup_test.go +9 −7

CI failed — run details

.amadan/test-gate.sh

Loading diff…

.amadan/test-weights.tsv

Loading diff…

internal/console/claim_invariant_test.go

Loading diff…

internal/console/demo_claim_ux_test.go

Loading diff…

internal/console/testdata/demo_claim_browser.mjs

Loading diff…

internal/console/testdata/demo_claim_layout.mjs

Loading diff…

internal/console/testdata/demo_claim_motion.mjs

Loading diff…

internal/edge/startup_test.go

Loading diff…