Repository navigation
Closed
Labels
area: backendsAgentBackend implementations and the seam they share.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-backend-claude-01: every packages/ui-backend-claude/tests file (99), audited in 45 clusters through all eight lenses (run th-20261110180830-ff27e0). The batch branch is test-health/e3855-ui-backend-claude-01, landing into epic/3855-test-health.
Scope
The batch's fixed findings, all in test code:
- cannot-fail (6 fixed, each with a killed mutation).
worker.test.ts: transcript export met a symlink and the test accepted any error (toThrow()). It now requires the alias refusal.confirm-archive.test.ts: the non-hosted archive confirmation accepted any hook output (toBeDefined), including a denial. It now requires the approved pass-through.subscription-billing.test.ts: the credential-free profile without a subscription accepted any violation text. It now pins the billing, the policy and the exact violation reason.subscription.test.ts: a missing settings report accepted any non-null refusal, including an empty one that callers read as no refusal. It now requires the named reason.worker-exhaustion.test.ts: "a host cancellation outranks a full state" asserted only that the exhaustion class was absent, so a success result passed. It now requires the cancelled outcome with its usage.worker-rtk.test.ts: every assertion ran in a loop over the probe's results, whose length was never pinned. The six modes are now required first.
- cost (1 fixed).
version-requirements.test.tswaited out the real 5 s SDK startup deadline. It now captures that one timer, asserts its 5000 ms registration and fires it at once.
Failure issues looked at, not reproduced, and commented: #1902 (worker.test.ts) and #3007 (output-staging-refusal.test.ts, transcript-prefix.test.ts).
Acceptance criteria
-
bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health --head <head>isok. - Every fixed cannot-fail finding has a killed mutation receipt, and the speed-up has before and after measurements with no failures.
- No test is removed or hidden: the gate's test count is unchanged.
- The batch merges into
epic/3855-test-health.
Metadata
Metadata
Assignees
Labels
area: backendsAgentBackend implementations and the seam they share.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 #3897, which merged into
epic/3855-test-healthascb37a7897(the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck andcheck:prpassed on the combined branch. The epic's two exhaustive runs ondc2439551, 42996974186 and 42997012467, then passed. 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.