You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(pm): name the ratchet invocation CI runs in dispatch-gates' test-file entry (#8611)
* fix(pm): name the ratchet invocation CI runs in the dispatch-gates test-file entry
The convention entry for a change that adds a test file emitted
check:type-check-coverage with a rationale that describes the TEST_DEBT
ratchet — a half only check:type-check-debt (--re-measure) runs. A dev
seat that ran the named command in good faith reported green while the
ratchet had never run locally; CI then found four new type errors.
Both invocations are now emitted, each stating the question it answers,
and the ratchet line carries its built-closure prerequisite inline with
the exact build command lint.yml runs before that step — an unexplained
throw on a cold worktree reads as "not applicable to me".
Fixes#8545
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WuTtyckQa1VcXwgd52JpN
* docs(pm): correct check-dispatch-gates' header on comment masking, and fix the sweep count
The header justified its unquoted repo paths with "watch-hint extraction
... does not skip comments". extractWatchHints has opened with
maskComments since #8478, and that function's docblock names this file as
the specimen it retires — so the file carrying the workaround was still
explaining it as live behaviour.
Measured with extractWatchHints, every repo path in the header rewritten
into backticks: 1 hint today (the module-body constant, the same hint the
file ships with) against 10 under the pre-masking extractor. Comment
masking alone accounts for it. The incident is kept as history, the
section now says the convention is no longer required, and the rule that
survives is stated: a module-body literal is what masking cannot reach.
The separate-gate-file argument gets today's numbers too — 4 hints, not
49, and three of them are directory bases wide enough to keep the
decision standing on narrower grounds.
Fixes#8604
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WuTtyckQa1VcXwgd52JpN
---------
Co-authored-by: Claude <noreply@anthropic.com>
why: "TEST_DEBT ratchets a package's test-layer type errors, so a new test file that does not typecheck cleanly moves it",
769
+
why: "the STRUCTURAL half: a package whose test files sit outside every tsc program accounting for it must carry a TEST_DEBT entry, so a new test file no tsconfig reaches moves this one. It re-measures no count — the ratchet is the invocation below",
770
+
},
771
+
{
772
+
name: 'check:type-check-debt',
773
+
why: "the RATCHET half, and the invocation CI runs for it: `--re-measure` re-runs tsc per ledger entry and fails when a count drifts up, so a new test file that does not typecheck cleanly moves it. Needs the workspace closure BUILT — on an unbuilt worktree it refuses outright, and that throw means NOT MEASURED, never `not applicable to me`. Build first, exactly as lint.yml does: pnpm exec turbo run build --filter=./packages/* --filter=./packages/*/* (quote the filter values for your shell)",
0 commit comments