Repository navigation
Closed
Labels
area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Milestone
Description
Context
Test-health push #3855, shard e3855-ui-sdk-01: every packages/ui-sdk/tests file (125), audited in 61 clusters through all eight lenses (run th-20261110163657-5bcc9a). The batch branch is test-health/e3855-ui-sdk-01, landing into epic/3855-test-health.
Scope
The batch's fixed findings, all in test code:
- cannot-fail (13 fixed, each with a killed mutation).
- Seven files gated every assertion behind
if (ok && message.type === X), so a parse returning another frame type passed silently. They now assert the discriminant first:activity-schemas,server-schemas,message-source,client-environment,turn-failure,scope-contract,retry-protocol. - Bare
toThrow()now names the refusal inturn-temp-tool(100-path bound),maintenance-temp-budget(byte validation, which an oversized allowance had let the budget check mask),worker-state-mount(state/scratch overlap) andnative-brain-manager(delta completion refusals). share-target"honors a custom path" counted one answer without checking which path answered.coastlinelong-linenot.toThrow()now asserts the two endpoints kept.
- Seven files gated every assertion behind
- nondeterminism (2 fixed).
maintenance-temp-budgetadmitted on the host-wide default ledger under/tmp, shared by every process of the user. It flaked 2 of 10 baseline runs and now uses a private ledger per test and per child.egress-proxyslept 1 ms before reading a record the proxy writes on response close. It now polls for the record.
- cost (1 fixed).
share-target's hanging-store case spent the real 5 s store deadline. It now reaches the deadline on a fake clock and also checks nothing answers at 4 999 ms: 5.35 s to 0.35 s. - failure-issues (1 fixed). ui-sdk: clean owned-prune fixture roots when source transformation refuses #2466, the owned-prune tick fixture allocating its root before the transform that may refuse.
- hygiene (22 fixed). Boolean
some/every/includes/startsWithchecks now compare values. One misleading test name was renamed.
Out of scope
Product code, timeouts, shard rules and workflows. These were filed instead: #3857 (turn-temp walk limit and setup deadline seams), #3858 (the delegated-cgroup proof never runs in CI), #3871 (lint for the type-guard form).
Acceptance criteria
bun scripts/test-health.ts batch verify --base origin/epic/3855-test-healthisok.- The pull request's hosted
proofpasses on its head.
Verification
The batch pull request's check:pr receipt and hosted run.
Contract impact
None.
Metadata
Metadata
Assignees
Labels
area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 11, 2026
Delivered by #3873, which passed its
proofon its own head and merged intoepic/3855-test-healthasccb189320(the push in #3855). GitHub does not applyClosesfor a pull request into a non-default branch, so I'm closing this by hand. The change reachesmainwith the epic's single landing pull request.