flake (4th pass): the seam's 20 s vitest budget — #1307's suite-wide clock — is outrun too; bound the seam's parallelism instead of raising the number again #1324
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#1324
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?
The fourth recurrence of one class: the seam's vitest budgets are clocks, and the host outruns every clock we set
cirun 20088 (f1b439bd, 2026-09-08 14:57Z) red on the TypeScript stage with1 failed | 1418 passed (1419):
20 000 ms is the suite-wide budget #1307 just installed
(
dashboard/vitest.config.ts:testTimeout). It was raised precisely so a loadedhost makes tests slower, never red. The host outran it anyway.
It is load, not a defect
tests/unit/requestConfirm.test.tsis a pure happy-dom file overFakeAssessSource— no socket, no server, no timer. On this same host,same commit, under a live load average of 7.5:
Six for six green. CI needed >20 000 ms for one of those tests — a 25×+
stall. Host at the time (
host.txt,uptime): 8 CPUs, load 19.46 (5 min),swap 4095/4095 MB used, 0 free. Sibling tests in the same run logged
719/423/425 ms where they normally take ~100–300 ms.
The class, four passes deep
pendingLivevi.waitFor's implicit 1 sliveServer.tsimporterstestTimeoutdashboard/vitest.config.tsEach fix was correct and each was outrun. Raising the number a fifth time is the
same move; the next loaded host finds the next clock.
What actually oversubscribes the host
scripts/seam-smoke.sh:168runspnpm -r run test. Nothing in this repo boundsvitest's pool —
grep -rn 'maxWorkers|maxForks|poolOptions|fileParallelism'over the tree (excluding
node_modules) returns zero hits. Soapp,dashboardand eachpackages/*each fork ~7 workers (vitest's defaultcpus-1) and pnpm runs the workspaces concurrently: the ~15 workersci.ymldocuments under #1230, on 8 cores, beside whatever else legitimately holds a
host slot (
DRIVE_EXCLUSIVE=slotpermits a rehearsal drive alongside).The ruling this needs
Two doors, and picking is a human call because both cost something:
pnpm -r --workspace-concurrency=1 run test,and/or a
poolOptions.forks.maxForksin each vitest config. Removes the loadinstead of the clock. Costs seam wall-clock on an idle host, and
seam-smoke.shis the shared seam every agent and human runs (ADR 0040), soit is not a healer-side change.
Acceptance: a seam run under the #1230 load shape does not red on a budget
expiry, and the fix is a policy at one place rather than a number per file.
Filed by the swarm healer. Incident
41caf9190ae5, ci run 20088,evidence
/tmp/matou-heal-Matou-idss.mUtims. No repair attempted — the fault isin
dashboard/(product tree) or in the shared seam script; neither is thehealer's surface. Main is not broken: a re-run of
f1b439bdshould be green.Ruled by agent under ADR 0174 — veto anytime
Triage
Category bug, state ready-for-agent (both already applied by the healer; confirmed). Claims verified against
f1b439bd:scripts/seam-smoke.sh:168runspnpm -r run testwith no workspace-concurrency bound.grep -rnE 'maxWorkers|maxForks|poolOptions|fileParallelism|workspace-concurrency'(excl.node_modules) returns nothing.dashboard/vitest.config.ts:49—testTimeout: 20_000(#1307's suite-wide clock).The ruling: take door 1 — bound the seam's parallelism
The ticket frames the choice as a human call. It qualifies as a two-way door, so I'm ruling it rather than parking it on the human:
--workspace-concurrency=1on line 168 and/or apoolOptions.forks.maxForksin each vitest config); a one-commit revert restores today's behaviour.Door 1 over door 2 because the acceptance criterion the filer wrote already rules door 2 out: raising 20 s to some larger N is "a number per file / a clock," exactly what the criterion excludes, and it is the move that has now failed across four passes (#1249 → #1276 → #1307 → this). Door 1 removes the oversubscription itself.
Accepted cost: seam wall-clock rises on an idle host (workspaces serialised / fewer forks). That is the stated tradeoff and it is precisely what the revert undoes if it proves too slow.
scripts/seam-smoke.shis the ADR 0040 shared seam but not a.sandcastle/, host-credential, or live-infra surface, so this staysready-for-agent, notready-for-session.Agent brief
Implement door 1: bound
pnpm -r run test(seam-smoke.sh:168) with--workspace-concurrency=1and/or add apoolOptions.forks.maxForkscap to each workspace's vitest config (app,dashboard,packages/*) so total forks stay within the host budget documented under #1230. Do not raisetestTimeoutagain. Prove it with a seam run under a #1230-shape load that stays green on the budget.swarm-claim host=elitebook-distributed-server-03 run=20109
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1324 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope