Commit Graph

5 Commits

Author SHA1 Message Date
Caleb cdc92d0d90 feat(scripts): port memory-safe execution and reliability improvements from revive-dev
Sync functional improvements developed in revive-dev into BMAD-METHOD
fork while preserving repo-specific paths:

- Add memory-safe Claude helpers (run_claude_to_file, read_phase_tail)
  that pipe output to temp files instead of bash variables, preventing
  GB-scale RAM usage during long epic executions
- Add kill_orphaned_test_processes() to clean up zombie jest/vitest/
  playwright/pytest processes between stories and on exit
- Replace per-call `env -u CLAUDECODE` with global `unset CLAUDECODE`
  at script start for cleaner nested session support
- Port metrics resume/accumulation logic that restores counters from
  existing YAML on resumed runs and accumulates duration
- Add log truncation between stories (64KB cap) to prevent unbounded
  log growth across multi-story runs
- Add log persistence and cleanup trap to epic-chain.sh
- Revert regression-gate.sh test commands to direct execution (matching
  revive-dev pattern)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 11:52:39 -05:00
Caleb a58fb564d1 feat(scripts): add env isolation, incremental logging, and test timeouts
- Wrap all Claude CLI subprocess calls with `env -u CLAUDECODE` to prevent
  parent env var interference with child processes (17 sites across 7 files)
- Add `flush_log_to_repo()` to epic-execute.sh for incremental log persistence
  after each story completes or fails (prevents log loss on interruption)
- Add portable `run_with_timeout` utility to utils.sh and wrap all test
  invocations in epic-execute.sh and regression-gate.sh with configurable
  timeout (default 120s via REGRESSION_TEST_TIMEOUT)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 05:19:53 -06:00
Caleb 03e0cc63d5 merge: sync with upstream/main (v6.0.0-Beta.8)
Merge 217 upstream commits covering:
- Module restructuring: src/modules/ flattened to src/
- BMB, BMGD, CIS modules moved to separate repos
- Installer migrated from inquirer to @clack/prompts
- Workflow simplification and new naming conventions
- Docusaurus to Astro/Starlight docs migration
- CodeRabbit AI review integration
- Cross-file reference validator
- Non-interactive install support
- Kiro IDE support

Conflict resolutions:
- sm.agent.yaml: kept fork's EE/EC/UV/CR menu items, took upstream's CC description
- uat-validator.agent.yaml: moved to src/bmm/agents/, removed unsupported webskip field

Path updates for new structure:
- scripts/*.sh: src/modules/bmm/ → src/bmm/
- CLAUDE.md: updated module paths and removed references to extracted modules
- docs: fixed broken links, added Astro frontmatter to fork docs files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 14:09:21 -06:00
Caleb 15b7bb1ae6 feat: implement UAT validation with self-healing fix loop
Add complete UAT validation workflow implementation:

- scripts/uat-validate.sh: Core UAT validation script with scenario
  classification, automated execution, and self-healing fix loop
- scripts/epic-execute.sh: Add metrics instrumentation for story
  execution tracking (init, update, finalize metrics)
- scripts/epic-chain.sh: Integrate UAT gate after each epic with
  configurable blocking mode, and add report generation phase

New workflow step documentation:
- step-01-load-uat.md: UAT document loading and parsing
- step-02-classify-scenarios.md: Scenario classification logic
- step-03-execute-scenarios.md: Automated scenario execution
- step-04-evaluate-gate.md: Gate evaluation and fix loop
- step-05-report-results.md: Metrics and signal output

Key features:
- Gate modes: quick (automatable only), full (+ semi-auto), skip
- Self-healing: spawns fresh Claude context for targeted fixes
- Metrics: YAML files track execution stats and UAT results
- Signals: parseable output for orchestration (UAT_GATE_RESULT, etc.)
- Handoffs: include UAT status and fix context references

Also fixes lint/format issues in pre-existing files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 19:24:18 -06:00
Caleb 66186e1438 feat: add epic-execute and epic-chain workflows
Add two new implementation workflows for the Scrum Master agent:
- epic-execute: Sequential story execution with isolated dev/review phases
- epic-chain: Multi-epic execution with dependency detection

Includes orchestration scripts and SM agent menu items.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 11:24:21 -06:00