The code-review skills (bmad-code-review, gds-code-review) now independently
query Memtrace during reviews. Step 1 runs get_impact on modified symbols and
find_dead_code on modified files via memtrace-adapter.mjs with
--check-freshness --summarize. Step 2 Acceptance Auditor cross-references
structural data against the diff, raising decision_needed findings for
unhandled downstream dependencies and patch findings for dead code and high
blast radius.
FR12: Code Review Agent queries get_impact on PRs for downstream dependency audit
FR13: Code Review Agent executes find_dead_code to block orphaned code
9 files modified across source templates and installed copies.
Created memtrace-restart.mjs: cross-platform MCP server recovery script that terminates stale processes and verifies server operability via MCP initialize handshake. Added npm script memtrace:restart. Created bmad-memtrace-recovery skill. Includes 8 tests, all passing with 32/32 adapter regression.
Insert Dead Code Pitfall Validation substep (step 5) in bmad-dev-story
SKILL.md, after mathematical gate and before approve/reject gate.
Add Step 5c to bmad-quick-dev step-03-implement.md and step-oneshot.md.
Expand code-review Acceptance Auditors in bmad-code-review and
gds-code-review with Dead Code Validation Report ground-truth checks.
Include Ignored section rendering for FALSE_POS/GHOST entries.
- Create qa-memtrace.mjs - standalone Node.js script computing set
intersection of blast radius nodes vs test coverage, with 10s timeout
and MEMTRACE_MCP_ERROR_TIMEOUT token emission
- Create qa-memtrace.test.mjs with 10 automated test cases
- Integrate mathematical gate into bmad-dev-story step 5, bmad-quick-dev
step-03-implement and step-oneshot
- Expand bmad-code-review and gds-code-review Acceptance Auditors with
mathematical gate ground-truth checks
- Fix .gitignore to track .agents/skills/ and _bmad/scripts/memtrace/