feat(0.26.0): skills audit --require-tests gate (BRO-1411 slice 2)#73
Conversation
Skillify step 3 (unit tests on deterministic code), bstack-native. Adds a 6th
audit report 'Untested deterministic code' (correctness, vs the 5 hygiene
reports) + --require-tests flag that gates CI (exit 1 if any skill ships
scripts/*.{py,sh,mjs,js,ts} with no test file). Markdown-only skills exempt.
First real run over ~/broomva/skills: 19 skills ship untested deterministic
code — the bstack analog of GBrain's 6/40 dark-skills finding.
+4 hermetic tests (14/14). VERSION 0.25.0 -> 0.26.0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Need the big picture first? Review this PR in Change Stack to see what changed before going file by file. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR adds a new audit report (report 6) to the skills auditor that detects deterministic code shipped without test coverage, plus an optional ChangesUntested Code Detection and Gate
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What & why
Skillify step 3 (unit tests on deterministic code) — BRO-1411 slice 2, built bstack-native.
/checkiton Garry Tan's skillify essay surfaced thatbstack skills auditcovers hygiene (budget / duplicate / reachability) but never correctness of the skill layer. This adds the missing correctness report + a CI gate.Changes
scripts/*.{py,sh,mjs,js,ts}(or root-level code) with no test file (test_*.py,*_test.py,*.test.*,test_*.sh). Markdown-only skills exempt; test files don't count as code.--jsongainsuntested.--require-tests— escalates to a hard gate (exit 1 if any untested skill). Default stays exit 0 → informational, non-breaking; CI opts into enforcement.Validation (P11)
bash tests/skill-audit.test.sh→ 14/14 pass.~/broomva/skills: 19 skills ship deterministic code with no tests (investment-management×5 scripts,wealth-management×4,social-intelligence,alkosto-wait-optimizer, …) — the bstack analog of GBrain's "6/40 dark skills". Informational today; backlog candidates.Notes
bstack skills audit, not a new P-row.VERSION0.25.0 → 0.26.0.research/entities/concept/skillify.md.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
--require-testsflag that enforces test coverage requirements and returns a hard exit-code gate when violations are detectedTests