chore: remove dead bins; extend the stale-ref scan to docs (the 36-release gap)

bin/chrome-cdp, bin/gstack-open-url, and bin/gstack-platform-detect were
referenced only by an audit test and CHANGELOG history — dead weight that
the stale-ref scanner should police, which required removing them FIRST.
The scanner now also sweeps docs/, README.md, and USING_GBRAIN_WITH_GSTACK
— the deliberate exclusion that let a dead command survive ~36 releases as
a command-not-found instruction. Scan is green on the extended surface.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-14 13:19:24 -07:00
co-authored by Claude Fable 5
parent 8c75496391
commit b81d72d059
5 changed files with 6 additions and 117 deletions
+6
View File
@@ -88,6 +88,12 @@ const SCAN_PATHS = [
'review/SKILL.md.tmpl',
'ship/SKILL.md.tmpl',
'test/',
// Fork port wave 2: docs were deliberately excluded and that exact gap let
// a dead command (gstack-brain-init) survive ~36 releases as a
// command-not-found instruction. Docs are user-facing surface; scan them.
'docs/',
'README.md',
'USING_GBRAIN_WITH_GSTACK.md',
];
function grepRefs(pattern: string): string[] {