Skip to content

feat(skills): test-audit skill, wired into adopt-project and new-project - #23

Merged
sneg55 merged 1 commit into
mainfrom
feat/test-audit-skill
Nov 17, 2026
Merged

sneg55 merged 1 commit into
mainfrom
feat/test-audit-skill

Conversation

@sneg55

@sneg55 sneg55 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What

  • New 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.md as scaffold.
  • references/ledger-template.md: the per-lane ledger shape.
  • adopt-project / ADOPT.md:
    • install the skill;
    • record a read-only test signal in the gap report;
    • add the authoring gate to starter-patterns.md;
    • list copied templates there;
    • offer the audit only after the adoption branch merges, never on it.
  • new-project / AGENT.md install it and write the same gate line.
  • Version 0.4.11.

Why

Adapted from openclaw's test-audit after running it on two real suites. Both runs used only its rubric and ledger marks. Changes from the original:

  • Links to openclaw-only tooling are removed.
  • The mutation check is now a hard rule.
  • The test-only-export scan, which both runs wrote by hand, now ships with the skill.
  • Starter templates are recognised as scaffold. Without this, one run would have deleted truncate-for-context.ts.

Test plan

  • bash tests/run.sh: all 14 files pass, including the new test-audit-finder.test.sh and the extended bootstrap-wiring.test.sh.
  • Wiring check mutated once (removed test-audit from ADOPT.md's skill list): red, then green after restoring.
  • Finder on two real repos: 0.7s and 0.6s.
  • Skill run by a fresh agent on a trap fixture. It caught the vacuous CSRF negative and the self-comparison, kept the migration source-read, flagged the starter template as scaffold, and stopped at the approval gate with no edits.
  • Control run with the original skill on the same fixture. It made the same judgement calls, but hit the dead openclaw links, had to find seams by hand, and did not flag the starter template.

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.
@sneg55
sneg55 merged commit 285af48 into main Nov 17, 2026
2 checks passed
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