gstack/retro
Sholto McNeilage f181fd3a4b fix(retro): language-agnostic test detection + anti-fabrication guard
The retro generator's test-counting commands only matched JS/TS files
(grep '\.(test|spec)\.'), returning 0 for Python (test_*.py), Terraform
(*.tftest.hcl), and Bats (*.bats) suites. Combined with a repo-wide total
count, the contradiction ('N total tests, 0 added') led the model to
fabricate a non-existent 'bootstrap commit' to reconcile the numbers.

- Commands 10/12/13: language-agnostic TEST pattern; split tests ADDED
  (--diff-filter=A) from TOUCHED; command 10 uses git ls-files.
- New Step 1.5 plausibility guard: per-commit figures must come from
  'git show --shortstat <hash>'; no invented bootstrap/foundation
  narrative; reconcile count contradictions by re-checking, not narrating.
- Applied to both SKILL.md.tmpl (source) and SKILL.md (runtime).
- regression-retro-test-detection.test.ts locks in both invariants.

Note: SKILL.md line 1 'name: gstack-retro' is pre-existing install-time
prefix drift (skill_prefix:true), not part of this fix.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 11:16:17 +10:00
..
SKILL.md fix(retro): language-agnostic test detection + anti-fabrication guard 2026-06-18 11:16:17 +10:00
SKILL.md.tmpl fix(retro): language-agnostic test detection + anti-fabrication guard 2026-06-18 11:16:17 +10:00