Skip to content

chore(sdlc): ROADMAP #236 bloat-hunt — hooks, tests, ROADMAP archive#440

Merged
BaseInfinity merged 1 commit into
mainfrom
fable-bloat-hunt-236
Jul 7, 2026
Merged

chore(sdlc): ROADMAP #236 bloat-hunt — hooks, tests, ROADMAP archive#440
BaseInfinity merged 1 commit into
mainfrom
fable-bloat-hunt-236

Conversation

@BaseInfinity

Copy link
Copy Markdown
Owner

Summary

Fable-led audit + Prove-It (TDD mutation-tested) pass across the three ROADMAP #236 categories not yet exercised, time-boxed to Fable's free-inclusion window (closes 2026-07-07).

  • (b) hook noise audit — fixed a real invisible-nudge bug (codex-review-stop-check.sh wrote to stderr on exit 0, which Claude Code never surfaces), fixed a real dual-role-hook regression risk (tdd-pretool-check.sh's hardcoded /src/ pattern via a new SDLC_TDD_SRC_PATTERN env override, keeping the CLI-distributed template generic), deleted goal-confidence-check.sh (unproven, no cited incident), trimmed precompact-seam-check.sh 256→101 lines (removed untested self-heal branch), quieted two other hooks' unproven nudges.
  • (c) test redundancy pass — consolidated overlapping assertions across 10 test files, deleted tests/test-degradation-detection.sh outright (428 lines, fully superseded), and found+fixed a real latent bug as a byproduct: test_ci_max_turns_sufficient was defined twice in test-workflow-triggers.sh, and the shadowed original was vacuous (always passed regardless of ci.yml content).
  • (f) ROADMAP archive cut — split ROADMAP.md (326 lines/182 rows) into a trimmed active table + new ROADMAP_ARCHIVE.md (85 fully-resolved rows + 5 release-history sections), with 3 new mutation-verified regression tests proving no row was silently dropped or duplicated.

Cross-model reviewed with Codex (xhigh): round 1 found a real gate bypass in codex-gate-check.sh — a quoted config value containing a space, passed to a -c flag ahead of the commit subcommand, broke the structural detection regex. Fixed and mutation-verified. Round 2 CERTIFIED 10/10.

Test plan

  • All 58 tests/test-*.sh files pass (bash tests/test-<name>.sh exit 0 each)
  • Every hook fix/trim/deletion backed by a mutation-verified test (RED against old/broken behavior, GREEN after fix)
  • 3 new ROADMAP row-completeness regression tests, mutation-verified
  • .claude/settings.json re-validated as JSON after edits
  • Codex cross-model review round 2: CERTIFIED 10/10

Fable-led audit + Prove-It (TDD mutation-tested) pass across the three
categories ROADMAP #236 flagged as not yet exercised:

(b) hook noise: fixed codex-review-stop-check.sh delivering its Stop-hook
nudge via stderr (invisible on exit 0 per CC hook-delivery semantics);
fixed tdd-pretool-check.sh's hardcoded /src/ pattern missing this repo's
own hooks/cli/.github/workflows source dirs via a new SDLC_TDD_SRC_PATTERN
env override (keeps the CLI-distributed template generic); deleted
goal-confidence-check.sh entirely (no cited incident, unproven value);
trimmed precompact-seam-check.sh 256->101 lines (removed the untested
.reviews/handoff.json self-heal branch); silenced model-effort-check.sh's
unset-effort nagging; removed sdlc-prompt-check.sh's unfired #195
effort-bump detector; added 24h-cached CC-version checking to
instructions-loaded-check.sh.

(c) test redundancy: consolidated overlapping assertions across 10 test
files; deleted tests/test-degradation-detection.sh outright (428 lines,
fully superseded, 5 tests relocated into test-doc-consistency.sh); found
and fixed a latent bug as a byproduct — test_ci_max_turns_sufficient in
test-workflow-triggers.sh was defined twice, and the original (shadowed)
definition was vacuous, always passing regardless of ci.yml content.

(f) ROADMAP archive cut: split ROADMAP.md (326 lines / 182 rows) into a
trimmed active table plus new ROADMAP_ARCHIVE.md holding 85 fully-resolved
rows and 5 fully-archived release-history sections; added 3 row-completeness
regression tests to test-doc-consistency.sh (mutation-verified) proving no
row was silently dropped or duplicated.

Cross-model reviewed (Codex xhigh, review_id 236-bloat-hunt-bcf-2026-07-06):
round 1 found a real gate bypass in codex-gate-check.sh (a quoted flag value
containing a space, e.g. git -c user.name="A B" commit, broke the
git/commit structural match) — fixed and mutation-verified; round 2
CERTIFIED 10/10. All 58 test files pass.
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