Skip to content

ui-backend-claude: test-health batch e3855-ui-backend-claude-01 #3894

Closed

Description

@schlessera

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.ts waited 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> is ok.
  • 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.

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: backends
    on Nov 10, 2026
  3. added
    priority: p1
    on Nov 10, 2026
  4. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3897, which merged into epic/3855-test-health as cb37a7897 (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendspriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions