The template is the fix, not the directory

A bare mktemp ignores $TMPDIR on macOS. Setting TMPDIR therefore looks like a fix and changes nothing. Toggle both.

conditions

  

Why two earlier sweeps of this class both "succeeded"

sweepscoped bycoveredreal
#3550directory (.github/)partbin/ too
this PR, 1st passregex dialect (grep -E '\s')3076
this PR, shippedwhole tree, one dialect7676

ERE has no \s, so the scan matched nothing useful and reported a 76-file surface as 30 — including the very file being fixed. Both sweeps reported success. A gate that scans the whole tree in one dialect is the only thing that can claim coverage.

Measured, on the test that was failing

before9 pass / 5 fail 6 denials
after14 pass / 0 fail 0 denials
Six sightings in one day: count-hooks.sh, run-all-tests.sh, two tests/ci/ scripts written to catch this class, test-dead-generation-guard.sh, and pre-commit's hardcoded /tmp actionlint log.