Skip to content

fix(preflight): make the typecheck gate differential instead of unreachable - #401

Merged
BitHighlander merged 1 commit into
developfrom
fix/preflight-typecheck-baseline
Aug 5, 2026
Merged

fix(preflight): make the typecheck gate differential instead of unreachable#401
BitHighlander merged 1 commit into
developfrom
fix/preflight-typecheck-baseline

Conversation

@BitHighlander

Copy link
Copy Markdown
Collaborator

make preflight could not pass. Gate 6 required exactly zero type errors while the codebase carries a 636-error baseline, so every run ended in ❌ ISSUES FOUND no matter what.

That is worse than it sounds: a gate that always fails is a gate everyone learns to skip — and that is exactly how the stale submodule remotes survived. Gate 3 ("upstream behind") was comparing against frozen leftover refs with no configured remote and printing ✅ regardless, and nobody noticed because gate 6 had already failed the run. Both submodule remotes are fixed now, and with honest remotes gate 3 correctly reports hdwallet: 1 behind origin/master (cleared by #400).

Change

Gate 6 now compares against a committed .typecheck-baseline (636) and fails only on a regression, reporting how many errors the change adds. Coming in under baseline prints a nudge to lower the file. This matches how these errors are already judged in review — differentially, because tsc aborts on @types/minimatch and the absolute count is a known false green.

Verified locally: gate 6 now prints ✅ 636 errors, at or below baseline 636.

…chable

Gate 6 demanded exactly zero type errors while the codebase carries a
636-error baseline, so 'make preflight' could never print ALL GATES
PASSED. A gate that always fails is a gate everyone learns to ignore —
which is how the stale submodule remotes survived: gate 3 was silently
comparing against frozen refs and printing green, and nobody was reading
the output anyway because gate 6 had already failed the run.

Now it compares against a committed .typecheck-baseline and fails only on
a REGRESSION, reporting how many errors a change adds. Below baseline
prints a nudge to lower the file. This matches how the errors are
actually judged in review (differential, per the known false-green from
tsc aborting on @types/minimatch).
@BitHighlander
BitHighlander merged commit f5b7b71 into develop Aug 5, 2026
4 checks passed
@BitHighlander
BitHighlander deleted the fix/preflight-typecheck-baseline branch August 5, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant