Commit Graph

3 Commits

Author SHA1 Message Date
Magal ffb430ed99 feat(adapter): implement MCP query adapter with get_impact, list_repos, and find_dead_code (Stories 3.1-3.2)
- Add memtrace-adapter.mjs: standalone Node.js MCP client over stdio
  with 10000ms timeout, MEMTRACE_MCP_ERROR_TIMEOUT token,
  structured JSON output matching qa-memtrace.mjs contract
- Support --query get_impact (blast radius), --query find_dead_code
  (dead code detection with repo_id + file_path scoping),
  --query list_repos (index freshness)
- Add 14 automated tests: 9 CLI arg handling + 5 MCP integration
- Update dev-story SKILL.md step 5 to use adapter for blast radius
  and dead-code queries, with empty-results skip for pitfall validation
- Update quick-dev step-03-implement and step-oneshot workflows
- Extend code-review acceptance auditors with adapter usage verification
  and dead-code adapter check
- Fix raw memtrace_get_impact reference in SKILL.md (review patch)
2026-05-19 17:50:32 -03:00
Magal 7a9d66364a feat(workflows): integrate dead-code pitfall validation into dev and review workflows
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.
2026-05-19 14:27:03 -03:00
Magal 79b3f7d9dc feat(quality-gate): implement mathematical blocking quality gate (Phase 2)
- 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/
2026-05-19 14:00:56 -03:00