Repository navigation
feat(skills): test-audit skill, wired into adopt-project and new-project - #23
Merged
Merged
Conversation
Adapted from openclaw's test-audit after running it on two real suites. Both runs used only its rubric and ledger marks and had to tell agents to skip links to openclaw-only tooling, so this version drops those, makes the mutation check a hard rule for every new or repaired assertion, and ships the test-only-export finder both runs wrote by hand. The finder flags agent-starter foundation templates as scaffold, because one run nearly deleted truncate-for-context.ts as dead code. adopt-project installs the skill, reports a read-only test signal, adds the authoring gate to starter-patterns.md, and offers the audit only after the adoption branch merges: pruning tests mid-adoption weakens the suite every Tier 3 step is checked against.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
skills/test-audit/: an authoring gate for every new or changed test, and a read-only-first audit workflow (ledger with R/F/C/D marks, then owner decisions, then apply with mutation proof, then one serial full-suite run).scripts/find-test-only-exports.py: stdlib finder for production exports that only tests reference (TS/JS and Python). It flags agent-starter foundation templates and files named in.claude/rules/starter-patterns.mdasscaffold.references/ledger-template.md: the per-lane ledger shape.starter-patterns.md;Why
Adapted from openclaw's
test-auditafter running it on two real suites. Both runs used only its rubric and ledger marks. Changes from the original:truncate-for-context.ts.Test plan
bash tests/run.sh: all 14 files pass, including the newtest-audit-finder.test.shand the extendedbootstrap-wiring.test.sh.test-auditfrom ADOPT.md's skill list): red, then green after restoring.