test: delete tests that only assert their own scaffolding

Merged
TH
2mo ago
+59-505

Summary

Follows the docs/agents/test-audit.md procedure over 10 read-only lanes. Deletes 505 test lines / adds 59 across 24 files; the only production change is un-exporting shouldResetDaemonAfterRequestTimeout, whose only caller is in-module.

Removed shapes: self-comparison (daemon closure traits vs the derive helper that produced them, MCP exposure rebuilt from the same filter, runtime facts intersected with CLI names from the same catalog, runner trait helpers looped against the table they read), a fixture restated as its own expectation, assertion-free composition probes, typeof rows beside the sibling that calls x, and the keyboard reader re-pinning the kernel's readSnapshotKeyboardBandFact table.

Each deletion was measured: plant the bug, prove a surviving test goes red. 8 candidate deletions were rejected because the mutant survived everything else — boot keep-hot, owner-cleanup composition, --update residue, package-gate probes, shutdown teardown parity, the restricted-by-default policy, and the screenshot flag arrays where a duplicate key is invisible to a membership scan. Six restored whole; two keep only their measured assertion.

Review restored the keyboard-seam routing proof (the reviewer's raw-forwarding mutant survived all 618 runner tests and tsc) and retitled 11 tests that promised more than their input exercises.

Validation

Head 1d546a3: 18/18 checks pass (36164799265). Locally check:affected --run green, test:unit 11388, apple-runner 618.

Both review-time reds are pre-existing, reproduced off this branch, and need separate fixes: a test-isolation defect in check:tmpdir-leaks:test, and fleet-wide iOS Smoke simctl openurl timeouts that also fail on main at this merge base (green here on attempt 3). Both explained in review comments.