Skip to content

test: land the test-health push (#3855): 35 batches across the whole suite - #3979

Merged
schlessera merged 307 commits into
mainfrom
epic/3855-test-health
Nov 11, 2026
Merged

schlessera merged 307 commits into
mainfrom
epic/3855-test-health

Conversation

@schlessera

@schlessera schlessera commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Closes #1242
Closes #1630
Closes #2466
Closes #2758
Closes #2769
Closes #3009
Closes #3859
Closes #3860
Closes #3866
Closes #3869
Closes #3872
Closes #3874
Closes #3879
Closes #3882
Closes #3890
Closes #3891
Closes #3894
Closes #3896
Closes #3900
Closes #3903
Closes #3905
Closes #3907
Closes #3910
Closes #3912
Closes #3916
Closes #3918
Closes #3920
Closes #3923
Closes #3924
Closes #3927
Closes #3929
Closes #3931
Closes #3933
Closes #3935
Closes #3937
Closes #3940
Closes #3941
Closes #3944
Closes #3947
Closes #3949
Closes #3960
Refs #3855

The test-health push of epic #3855 lands on main: 35 batches, one per shard, which together audit the whole suite. This is a merge commit, so each batch stays one revertable commit on main (Merge #N into the test-health epic, or a squash for the first nine).

What changed

Test code only, plus examples added to the rules in docs/process/test-authoring.md. In numbers, from bun scripts/test-health.ts report --profile push:

Measure Value
Files audited 1732 of 1835. 93.4% of the rotation is now audited at its current content
Findings 2999: 635 fixed, 40 filed, 108 deferred, 2216 accepted with reasons
Tests fixed that could not fail 203
Mutations killed 268
Tests made deterministic 77
Local seconds saved per run of the changed files 106.5
Test declarations in changed files 5362 → 5365. 4 removed, each declared with its obligation map
Executed assertions in changed files 60226 → 60327

It also fixes six existing test issues, each with its own failing-first or mutation receipt in its batch PR: #1242, #1630, #2466, #2758, #2769 and #3009. The receipt for #2758 is on the issue.

Each batch PR has the details: its clusters, worksheets, mutation receipts, baselines and gate result.

How it was integrated

Shake-out

  • First pair on da8b092b: 42989870737 and 42989908207. Both runs failed the same two cases, each in a file a batch had changed, and main passes both. I dropped those two clusters by restoring their files from main, and voided them in the ledger, so their files go back into the rotation:
  • Then I merged origin/main into the epic.
  • Second pair on dc2439551, the tree here before the last main merge: 42996974186 and 42997012467. Both passed.

Proof

  • bun scripts/test-health.ts batch verify --base origin/main --head HEAD --net-only returned ok: 252 commits, 484 files, tests 5303 → 5306, assertions 22418 → 22530, 40 removed against 4 declared (the others are obligation-mapped merges and overlap removals). No proof-system change, and no new skip or retry.
  • NODE_OPTIONS=--max-old-space-size=12288 bun run typecheck: exit 0.
  • After the shake-out, main gained 0f6296a79, the tracker-runtime fix for incident ci: main red at 40dbae0a2f33: packages/ui-react/tests/tracker-runtime.test.ts #3973. I merged it into the epic, giving 77b3493a6; tracker-runtime.test.ts auto-merged with its batch change. The gate on that head is still ok (tests 5304 → 5307), and the typecheck still passes.
  • main then gained 3c44ac6fc (fix(ui-react): refuse unsupported safety history selections #3977), which I merged in as f4592132c. The gate is unchanged and the typecheck passes.
  • Waiting for the lease, the epic took in main once more (9dcb03da7, giving 10537b89c), as a clean merge of commits that main had already proved. This PR's exact-head proof then passed on 10537b89c.
  • bun run check:pr --base origin/main on f4592132c:
{"version":1,"kind":"brain-check-pr-receipt","head":"f4592132cd95bc62d236c649c4af9ba3310da9b0","base":"origin/main","mode":"focused","startedAt":"2026-11-11T12:29:24.130Z","finishedAt":"2026-11-11T12:30:48.148Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":10612.167981},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":113.98355900000024},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":132.2601770000001},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":28.04943600000115},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":73051.265239}]}

Checklist

  • Focused local preflight/behavioral receipts and complete selected hosted proof passed; actual head/base/job checkout evidence is in Proof.
  • Acceptance criteria from the issue are all met, or the gap is named below.
  • The PR and completed/advanced issues have verified release milestones under docs/process/github.md.
  • A changeset is included, or this changes nothing a consumer can see.
  • No personal data anywhere in the diff — the leakage gate covers the whole tree.
  • The integration contract index or relevant component is updated in this same commit, or nothing in the machine surface moved.
  • Docs under docs/ reflect the change, or nothing documented moved.
  • A fail-closed guard added or changed answers the proportionate-containment checklist in this body, or no guard changed.
  • Provider history stays append-only (docs/decisions/provider-history.md): the provider-history guard passes, or nothing on a turn's path changed.

🤖 Generated with Claude Code

schlessera and others added 30 commits November 10, 2026 20:07
… waiting it out

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test-Health: th-20261110180830-ff27e0#8
…d values

Test-Health: th-20261110185519-f622c2#1
…t instead of a 15 ms sleep

Test-Health: th-20261110184656-6654f8#5
…context and graph tests

Test-Health: th-20261110184656-6654f8#6
Cases asserted absolute job and sandbox counts in brains other cases share,
so a shuffled order failed them. Each now compares with the count taken just
before its own run.

Test-Health: th-20261110163736-83b662#15
…ytes test

Test-Health: th-20261110184656-6654f8#8
…in the history removal test

Test-Health: th-20261110184656-6654f8#9
…sion storage tests

Test-Health: th-20261110184656-6654f8#10
Test-Health: th-20261110180640-b26dac#8
Also print values in the document-page and graph-profiles collection checks.

Test-Health: th-20261110163736-83b662#16
…ant-surface posture tests

Test-Health: th-20261110184656-6654f8#12
… origin

Test-Health: th-20261110163814-571eb3#36
…boot failures

Test-Health: th-20261110163814-571eb3#38
…compare

Test-Health: th-20261110163814-571eb3#41
…ot image, split the mixed-versions case

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Test-Health: th-20261110163713-d24921#0
…ke real-socket frame checks print what they saw

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Test-Health: th-20261110163713-d24921#5
…mpare charged turns per reservation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Test-Health: th-20261110163713-d24921#6
…ter's arrival

Refs #3829

Test-Health: th-20261110180640-b26dac#10
…its unconfirmed state

Test-Health: th-20261110182050-6072af#3
…edges

Test-Health: th-20261110182050-6072af#19
…roves none saves later

Test-Health: th-20261110182050-6072af#20
…0 ms

Test-Health: th-20261110182050-6072af#27
…s world

Test-Health: th-20261110182050-6072af#29
…on an empty list

Test-Health: th-20261110185519-f622c2#2
… checks print their values

Test-Health: th-20261110185519-f622c2#3
…tial state

Test-Health: th-20261110182050-6072af#48
schlessera and others added 13 commits November 11, 2026 09:42
… instead of the suite timeout

Test-Health: th-20261110184656-6654f8#1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of the suite timeout

Test-Health: th-20261110184656-6654f8#5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both exhaustive runs on the epic (42989870737, 42989908207) failed desktop-navigation.pointer.tsx "acts run the palette's handlers, mid-turn" (Add opens mid-turn: expected false to be true) in every rail project; main passes it.

Test-Health: th-20261110190028-150ab8#22

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both exhaustive runs on the epic (42989870737, 42989908207) failed storage-pane.layout.tsx "List-only drill restores the parent row" (expected <div data-bk-button> to be undefined); main passes it.

Test-Health: th-20261110195347-f9b8db#2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera schlessera added this to the 0.45.0 milestone Nov 11, 2026
@schlessera schlessera added the type: test Coverage, harness or proof work with no behaviour change. label Nov 11, 2026
@uploads-sh

uploads-sh Bot commented Nov 11, 2026

Copy link
Copy Markdown

No uploads on this PR yet

This PR changes UI files (packages/ui-kit/stories/agents/LaneChart.stories.tsx, packages/ui-kit/stories/blocks/CodeBlock.stories.tsx, packages/ui-kit/stories/blocks/LinkPreviewCard.stories.tsx and 98 more). Screenshots help reviewers see what changed.

  • From the CLI: uploads put before.png after.png --pr 3979
  • From an agent: ask it to attach screenshots with uploads.sh
  • By hand: drag images into the PR description and they're imported automatically
Tips for agents

Label each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one put per shot:

uploads put after.png --pr 3979 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 3979 --app ios --screen "Chat" --state after

No CLI? With the Uploads MCP, call sign_upload_url for files on disk (or put) with repo, pr: 3979 and the same screen, state and caption fields.

This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with uploads list --pr 3979. More in the github-screenshots skill or the agent docs.

Workspace admins can turn this comment off in Settings → GitHub · docs

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