Review QA knowledge base stats, prune stale entries, show learning metrics.
/qa-learn [prune]
prune clears out entries that no longer earn their keep/qa-learn
What you’ll see: a structured table of knowledge-base metrics — incident counts (covered vs. uncovered), promoted test files, bug patterns, coverage gaps, and the adversarial challenger’s hit rate (attacks that found real issues / total attacks).
/qa-learn # show stats — read-only
/qa-learn prune # remove stale entries and report what was pruned
Default (stats):
.claude/qa-knowledge/incidents/, split into covered (regression test exists) vs. uncovered..claude/qa-knowledge/promoted-tests/ — generated scenarios that earned a permanent place in the suite.bug-patterns.md) and coverage gaps (coverage-gaps.md).challenger-log.md — how often adversarial QA attacks actually found issues.prune mode (modifies the knowledge base — it reports exactly what was removed):
.claude/qa-knowledge/, with a report of what was pruned| Problem | Fix |
|---|---|
QA knowledge base not initialized |
Run /qa commit or /qa full first — the knowledge base accumulates from QA runs |
| All counts are zero | The KB exists but nothing has been learned yet — normal for a fresh project; counts grow as QA runs catch bugs and gaps |
| Pruned something you wanted to keep | Prune only touches covered/stale entries by rule — re-log anything still relevant with /qa-incident |