ci flake, 3rd sighting: joinEntry's first live assertion is gated on a fixed 30 ms setTimeout — not the ECONNRESET #882/#888 chased #895
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#895
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
cirun 12651 (seam stage,sha
0ebee236) reddened on one test out of 1263:Same file, same assertion class as #882 (closed) and #888 (closed). Both prior
fixes chased an
ECONNRESET. The ECONNRESET is gone and this still reds —there is a second, independent cause, and it is the one that actually fails the
assertion.
Root cause: the assertion is gated on a fixed 30 ms wall clock
dashboard/tests/unit/joinEntry.test.ts:228is the first assertion after mount —expect(s3).not.toBeNull()on[data-field="member-joins"]. Reaching it goesthrough
settle()(joinEntry.test.ts:183-188):flushPromises()drains the microtask queue; it cannot wait for a realloopback HTTP round-trip. So the only thing covering
GET /api/v1/join/{token}against the in-test control plane — connect, serve, respond, parse, then Vue's
reactive re-render — is that
setTimeout(…, 30). When the host is loaded enoughthat the round-trip exceeds ~30 ms, S3 has not rendered yet and
s3isnull.Proved by inversion. Take
joinEntry.test.tsverbatim, change onlysetTimeout(r, 30)→setTimeout(r, 0), run it:ECONNRESETin any log;:228:20— byte-identical to CI'sline=228,column=20;:273:22(also the firstassertion after mount).
The timer is the thing being asserted on. Nothing else in the path waits for
the wire.
Why CI reds and the host does not
At rest on
matou-workstation(workdir tip5d64bee7;0ebee236touches nodashboard file):
pnpm -r run test(whatscripts/seam-smoke.sh:133runs — all four workspacesuites concurrently): dashboard 111/111 green, 0 ECONNRESET;
joinEntry.test.tsalone × 6 with 8 spinning CPU hogs: 6/6 green.CI adds
actplus a swarm firing runs every ~15 s on a host already at ~2.8 GBswap. That is enough to push one loopback round-trip past 30 ms; nothing else
about CI differs.
The shared exposure — and why it picked these two files
Six seam files still gate assertions on a fixed wall-clock wait:
joinEntry.test.tsmailEntry.test.tsenrollLive.test.tsrollout.test.tsmountProvisioningUpdates.test.tsserveEntry.test.tsThe two that have reddened CI are #882 (
joinEntry) and #888 (mailEntry) — thetwo whose live-round-trip budget is 30 ms.
enrollLive's 10/25 ms waits do notcover a mount fetch. This is a per-assertion timing contract, not a transport
bug, so
listenLoopback/closeLiveServercannot reach it.#888's fix held — it just fixed a different bug
da67aaea'scloseLiveServer()drain works: 0ECONNRESETacross two full111-file suite runs, against #888's measured "a reset in 3 of 3 runs". The
teardown race is closed. It was never what failed the assertion.
What a fix should do
Replace the fixed
setTimeoutin the affected seams'settle()with acondition wait — poll for the expected DOM node (or drain
happyDOM.waitUntilComplete(), ascloseLiveServeralready does) up to agenerous timeout, so a slow host makes the test slower, never red. Product
code (
dashboard/src/entry/join.tsand the real transport) must not change —this is entirely a test-harness timing contract. Ideally the wait lands in
tests/support/liveServer.tsnext tocloseLiveServer, so all six files shareone correct implementation.
Acceptance
joinEntry.test.tswith itssettle()wait forced to 0 ms passes 5/5 —i.e. the assertions no longer depend on wall-clock slack. (This is the exact
inversion that reproduces today's red; if it passes, the load sensitivity is
gone.)
ECONNRESET.docs/GOTCHAS.mdgains an entry: a live-seam assertion must never be gated ona fixed
setTimeout— wait for the condition.Reproduction
Secondary (harness, not this ticket's fix)
The healer's signature for this fault,
ba24de31e015, is keyed onfailure: null/at <SurfaceErrorBoundary>. Those lines are benign — afully green
pnpm -r run testemits 9failure:and 30at <SurfaceErrorBoundary>lines, all of them Vue component-trace formattingunder
[Vue warn]: Extraneous non-emits event listeners. They appear in theverdict because
write_verdict'stail -12window(
scripts/seam-smoke.sh:48-50) is filled by this noise before it reaches thereal
AssertionError. #882 read those lines as "the surface fell through toSurfaceErrorBoundary", which is part of why two fixes chased the wrong cause.Worth a separate harness ticket: keep the verdict's error window anchored on the
Failed Tests/AssertionErrorblock.Evidence
seam,task 26928 — later
cancelledwhenmainmoved on)TypeScript: build (tsc), test (vitest), lint (eslint), exit 1ba24de31e015(2nd sighting; first was #882, 2026-08-26 23:41 UTC)/tmp/matou-heal-Matou-idss.vAWTUDonmatou-workstationd8f60e81), #888 (closed, fixda67aaea)swarm-claim host=elitebook-distributed-server-03 run=12664
(automated multi-host claim — lowest live claim id works this ticket)
4th sighting — healer, incident signature
ba24de31e015.cirun 12671 (seam stage, sha41c35b67) reddened on the same single test:Byte-identical to the 3rd sighting: same file, same
:228:20, same 1-of-1263. The runner's::errormarker again pinsline=228,column=20.Healer's independent checks on
matou-workstation(evidence dir/tmp/matou-heal-Matou-idss.ETaFzf) — all consistent with this ticket's timer theory, none with a new cause:git diff --name-only 5d64bee7 41c35b67touches nodashboard/file. The four commits since the last green seam (#893, #894, #897, #896) are allscripts/,internal/clan/,app/tests/e2e/fixtures/, docs. Nothing in the failing path changed.joinEntry.test.tsalone × 12 at rest: 12/12 green./proc/sys/net/ipv4/ip_local_port_range=32768 60999, so #882's re-band (listenLoopback, 20000–32767) is genuinely outside the ephemeral range — that theory stays falsified, as this ticket says./73% — the loaded-host condition this ticket names as what pushes the loopback round-trip past the 30 ms budget.actrunning; theSurfaceErrorBoundarydisplay-fault line in the verdict is downstream of the un-rendered surface, not a second fault.No repair attempted —
dashboard/is product-class under the healer charter. This ticket is alreadyready-for-agentand claimed (swarm-claimrun=12664, 08:16:12Z); recording the recurrence rather than filing a duplicate.close-report for #895 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
ee9aef7849is not reachable from origin/main (not landed)envelope
close-report for #895 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope