feat: require a zero-error product typecheck and a test type-debt ratchet

Adds tsconfig.json (strict) over product code, fixes its remaining 90
diagnostics (type-only, interface corrections, and explicit narrowing),
and adds a typecheck job to the required free-tests aggregate running
bun run typecheck, the test-code ratchet (identity -> count baseline, fails
on new, repeated, or unlocked fixed diagnostics), and the lib/cso format
check. Reuses fixes from #2447 where they still applied.
This commit is contained in:
garrytan committed 2026-09-29 14:34:02 +00:00
1 parent 03e5911dba
commit 42e53413da
38 files changed
+1254 -62

No files matched your search

+4 -3
View File
@@ -144,9 +144,10 @@ wave"). Each was explicitly deferred with rationale, not dropped:
- **#2443 AskUserQuestion numbering redesign** — real mismatch (brief letters
vs host-rendered numbers), but a prompt-behavior redesign that shifts eval
baselines; needs its own PR with baseline refresh. Effort S.
- **#2447 typecheck infra** — tsconfig + repo-wide typecheck script + latent
type fixes. High-value, repo-wide blast radius, own PR with bake time.
Effort M. Re-derive on current main (several of its fixes landed since).
- ~~**#2447 typecheck infra**~~ — superseded: the audit fix wave (v1.91.8.0)
added `tsconfig.json`, `bun run typecheck` (zero product errors) and the
`typecheck:test` ratchet inside the required `free-tests` check, reusing
#2447's fixes where they still applied.
- **#2492 per-project Chromium profile** — needs an on-disk migration story
for the machine-wide profile default and SingletonLock scoping. Effort M.
- **#2286 `triggers:` frontmatter** — the Claude Code router never reads the