Repository navigation
test(ui-server): test-health batch e3855-ui-server-04 - #3925
Merged
schlessera merged 10 commits intoNov 11, 2026
Merged
Conversation
…entity Test-Health: th-20261110174252-07efe9#1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…empty selection Test-Health: th-20261110174252-07efe9#2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arsed result Test-Health: th-20261110174252-07efe9#8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…leep Test-Health: th-20261110174252-07efe9#38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ttle Test-Health: th-20261110174252-07efe9#46 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ption suites and wait for the Apify turn to settle Refs #2551 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Test-Health: th-20261110174252-07efe9#6
…ap adapter suite Refs #2551 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Test-Health: th-20261110174252-07efe9#41
…s settle Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Test-Health: th-20261110205147-d08fd8#0
…-health/e3855-ui-server-04
schlessera
marked this pull request as ready for review
November 10, 2026 21:19
…-health/e3855-ui-server-04
schlessera
marked this pull request as draft
November 10, 2026 21:51
schlessera
marked this pull request as ready for review
November 10, 2026 21:51
schlessera
marked this pull request as draft
November 10, 2026 22:16
This was referenced Nov 10, 2026
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3923
Closes #3009
Refs #2551
Refs #2924
Refs #2815
Refs #3485
What changed
Shard
e3855-ui-server-04of the #3855 push: 108packages/ui-servertest files audited in 47 clusters through all eight lenses (runsth-20261110174252-07efe9andth-20261110205147-d08fd8; a third plan returned nothing left). 11 test files change, nothing else. No test is removed: 80 tests before and after in the changed files, 363 assertion lines before, 364 after.storage-pressure: a recovery pair's start was only checked non-null, and an episode only truthy. It now pins the start to the first good observation and requires a UUID.storage-removal: twoevery()checks passed on an empty list, one over the review's files (a review that dropped a refused file passed) and one over boundary review calls. Both now pin non-empty contents.sync-runtime: the parser's positive control only required a non-null result. It now requires the exact parsed result.subscription-login,subscription-statusandws-scope-capsnow callrequireTurnFreeSpaceat their turn-running boundary. On a filled filesystem they fail withTurnFixtureFreeSpaceErrorinstead of an unrelated assertion. Boot-only cases insubscription-statusstay unchecked. The two ui-react suites are outside this shard.ws-apify(50 ms after the backend finished),ws-effort(10 ms before a parse error),ws-tool-resolution,ws-follow-up-queue(2) andws-pill-labels(4) each slept 10–25 ms before a positive assertion. Each now waits for the frame, receipt, label or turn state it asserts. Negative windows stay where they were.subscription-login,ws-apify) now compare values.Why this shape
Every fix stays inside its member files. Three findings needed something larger and are filed instead: #3876 moves
triage-eval.test.ts(all harness assertions) to the experiment tier, which changes discovery. #3921 listsws-conversation.test.ts's 56 calls to a 25 mssettle(), some of them positive settles; the file measured stable, and classifying all 56 with proof was larger than this pass. #2522 (already open) coversws-handoff's pisessionFactoryseam. 139 scanner signals were read and accepted, with the reason in the worksheets.Deferred, with evidence on each issue:
turn-egressfailedTURN_EGRESS_CONTACTED_HOST_STAYS(502) once in 5 shuffled measured runs, but 30 seeded random orders passed. That makes it a recurrence, not an attribution.storage-removal-workeris unaffected (1/1 under the env-scoped signing method, while the control fails 8/8).Proof
bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health --head b039d0f9a:ok, 8 commits, 11 files, 80 → 80 tests, 0 removed.0129244ad, all stable. After the change, every changed file ran 10 times (half shuffled), all stable with 0 failures. The host was shared, with load average 25–55.killed(6). Each one passes the case before the mutant, fails it on the named assertion with the mutant in place, and passes it again once restored:pressure.ts: recovery start+1, and a constant episode id.removal.ts: drop refused files from the review.removal-facts.ts: rename the review purpose.sync-result.ts: rewrite the parsed runner.session-run/budget.ts:91: removeabortController.abort(stops.budget), which failsBUDGET_HOST_ABORTS_ACTUAL_ADAPTER(ui-server: the host-token-fallback budget tests race a 200 ms adapter window against the worker commit #3009).ws-turn-budgetsran 20 times, 0 failures, under three loopingdd bs=1M count=256 conv=fsyncwriters.bwrap --tmpfsTMPDIR. With the call, each case fails withTurnFixtureFreeSpaceError, naming the brain, the available bytes, the 2147483648-byte floor and the TMPDIR remedy. Without it, on unchanged HEAD with the same tmpfs, each case shows its original signature:"cancelled"instead of"error", a null proof, andfree_space_floorwith cap 2147483648. The full table is on tests: attribute low-space failures in remaining running-turn fixtures #2551.{"version":1,"kind":"brain-check-pr-receipt","head":"b039d0f9a91513e359df1baee7305b2212c9b76c","base":"origin/epic/3855-test-health","mode":"focused","startedAt":"2026-11-10T21:45:48.265Z","finishedAt":"2026-11-10T21:46:26.890Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":15924.505227000005},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":135.24277199999779},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":81.15509700000257},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":21.436390000002575},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":22363.382451999998}]}Checklist
docs/reflect the change, or nothing documented moved.docs/decisions/provider-history.md): the provider-history guard passes, or nothing on a turn's path changed.Anything left open
draft-runtime,tracker-runtime) still need the prerequisite.ws-scope-capsonly as the source of a log line, and nothing changed for them.ws-conversation's settles.ws-revocation,ws-activity,ws-session-recoveryandws-observability) were audited by test structure and every scanner-signal site, not read line by line. Their accepted notes rest on the signal sites read; a later rotation pass should read them in full.🤖 Generated with Claude Code