Commit Graph

1323 Commits

Author SHA1 Message Date
Murat K Ozcan eeebf152af
docs: tea editorial review (#1313)
* docs: tea editorial review

* fix: addressed nit pick
2026-01-13 02:27:25 +08:00
Alex Verkhovsky d419ac8a70
feat: add editorial review tasks for structure and prose (#1307)
* feat: add editorial review tasks for structure and prose

Add two complementary editorial review tasks:

- editorial-review-structure.xml: Structural editor that proposes cuts,
  reorganization, and simplification. Includes 5 document archetype models
  (Tutorial, Reference, Explanation, Prompt, Strategic) for targeted evaluation.

- editorial-review-prose.xml: Clinical copy-editor for prose improvements
  using Microsoft Writing Style Guide as baseline.

Both tasks support humans and llm target audiences with different principles.

* fix: add content-sacrosanct guardrail to editorial review tasks

Both editorial review tasks (prose and structure) were missing the key
constraint that reviewers should never challenge the ideas/knowledge
themselves—only how clearly they are communicated. This restores the
original design intent.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: align reader_type parameter naming across editorial tasks

Prose task was using 'target_audience' for the humans/llm optimization
flag while structure task correctly separates 'target_audience' (who
reads) from 'reader_type' (optimization mode). Aligns to reader_type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-13 00:20:04 +08:00
Murat K Ozcan 568249e985
Merge pull request #1309 from forcetrainer/main
docs: comprehensive documentation overhaul with style guide expansion
2026-01-12 06:04:45 -06:00
forcetrainer c0f6401902 docs: add token usage FAQ and fix broken links
- Add "Why does BMad use so many tokens?" FAQ explaining design tradeoff
  (decision quality over code velocity)
- Fix stale anchor #adversarial-review-general → #adversarial-review
- Remove link to archived customize-workflows.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 00:31:54 -05:00
forcetrainer e535f94325 docs: comprehensive style guide update with reference and glossary standards
Style Guide Additions:
- Add Reference Structure section with 6 document types (Index, Catalog,
  Deep-Dive, Configuration, Glossary, Comprehensive)
- Add Glossary Structure section with table-based format leveraging
  Starlight's right-nav for navigation
- Include checklists for both new document types

Reference Docs Updated:
- agents/index.md: Catalog format, universal commands tip admonition
- configuration/core-tasks.md: Configuration format with admonitions
- configuration/global-config.md: Table-based config reference
- workflows/index.md: Minimal index format
- workflows/core-workflows.md: Catalog format
- workflows/document-project.md: Deep-dive with Quick Facts admonition
- workflows/bmgd-workflows.md: Comprehensive format, removed ~30 hr rules

Glossary Rewritten:
- Converted from 373 lines with ### headers to 123 lines with tables
- Right nav now shows 9 categories instead of 50+ terms
- Added italic context markers (*BMGD.*, *Brownfield.*, etc.)
- Alphabetized terms within categories
- Removed redundant inline TOC

All Docs:
- Remove horizontal rules (---) per style guide
- Remove "Related" sections (sidebar handles navigation)
- Standardize admonition usage
- Archive deleted workflow customization docs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 00:23:05 -05:00
forcetrainer e465ce4bb5 docs: fix year typo in README (2025 -> 2026)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 12:01:37 -05:00
forcetrainer 9d328082eb Merge upstream/main 2026-01-11 11:46:30 -05:00
Alex Verkhovsky d4f6642333
fix: add missing review menu and HALT to quick-spec step 4 (#1305)
Step 4 was missing a structured menu at the spec review checkpoint.
This caused agents to skip past the approval step without waiting for
explicit user confirmation.

Added:
- Review menu with [y] Approve, [c] Changes, [q] Questions, [a] Advanced Elicitation, [p] Party Mode
- Explicit HALT instruction
- Menu handling section

This aligns step 4 with the menu-driven pattern used in steps 1-3.

Fixes #1304

Also fixes pre-existing prettier issue in src/modules/cis/module.yaml.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 17:04:52 +08:00
forcetrainer 9f85dade25 docs: capitalize support section descriptions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:28:29 -05:00
forcetrainer 5870651bad docs: enhance README free/open source messaging and support section
- Expand tagline: "No gated Discord", "empowering everyone"
- Add emojis and stronger CTAs to Support section
- Consolidate star/subscribe asks into Support section

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:24:58 -05:00
forcetrainer eff826eef9 docs: add open source philosophy and support options to README
- Add "100% free and open source" tagline at top
- Update YouTube line with upcoming master class/podcast
- Add "Help us grow" CTA for stars and subs
- Add new "Support BMad" section with donation and speaking info

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 00:18:34 -05:00
Brian Madison 0a3cc1d12c release: bump to v6.0.0-alpha.23 2026-01-11 13:16:49 +08:00
Brian c3b7e98241
Workflow Creator and Validator Tools with Sub Process Support and PRD Validation Step now available!
* critical file issues in prd refactor resolved caught using the BMB workflow validator!!
* subprocess optimization and path violation checks in the workflow validator, along with fixes to the BMM PRD workflow
* standardize workflow and PRD step markdown formatting
- Improve consistency across workflow validation steps
- Standardize PRD innovation step structure
* Workflow Validation Max Parallel Mode POC
* prd trimodal compliant
* correct PRD completion suggested next steps
2026-01-11 11:13:38 +08:00
Murat K Ozcan 2f98f9130a
docs: add TEA design philosophy callout and context engineering glossary entry (#1303) 2026-01-11 09:23:25 +08:00
Alex Verkhovsky c18904d674
refactor: rename create-tech-spec to quick-spec for QuickFlow branding (#1290) 2026-01-10 11:33:00 +08:00
Murat K Ozcan 3e3c92ed3e
docs: expand TEA documentation with cheat sheets, MCP enhancements, a… (#1289)
* docs: expand TEA documentation with cheat sheets, MCP enhancements, and API testing patterns

* docs: update TEA fragment counts and fix playwright-utils code examples

* docs: addressed PR review concerns

* docs: update TEA MCP configuration link to point to documentation site
2026-01-10 02:55:57 +08:00
forcetrainer 12d3492e0c
Add link auditor, reorganize documentation, and README update (#1277)
* feat: add link auditor tools and fix broken docs links

- Add audit-doc-links.js to scan docs for broken links with auto-resolution
- Add fix-doc-links.js to apply suggested fixes (dry-run by default)
- Remove stale "Back to Core Concepts" breadcrumb links
- Update BMad acronym to "Breakthrough Method of Agile AI Driven Development"
- Update README links to docs.bmad-method.org
- Simplify upgrade callout in getting-started tutorial

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: reorganize docs structure and archive v4 tutorial

- Remove unused section index files (tutorials, how-to, explanation, reference)
- Move getting-started-bmadv4.md to _archive
- Update quick-start-bmgd.md to remove archived file reference
- Update upgrade-to-v6.md
- Update astro.config.mjs for new structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: ignore underscore directories in link checker

Update check-doc-links.js to skip _archive, _planning, and other
underscore-prefixed directories when validating links.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: add v4 users section to README

Add links to v4 documentation archive and upgrade guide for users
migrating from previous versions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: convert docs to site-relative links and add validation tools

- Convert all relative links (./  ../) to site-relative paths (/path/)
- Strip .md extensions and use trailing slashes for Astro/Starlight
- Add fix-doc-links.js to convert relative links to site-relative
- Add validate-doc-links.js to check links point to existing files
- Remove old audit-doc-links.js and check-doc-links.js
- Update build-docs.js to use new validation script
- Add npm scripts: docs:fix-links, docs:validate-links
- Update style guide with validation steps

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: standardize acronym to BMad across documentation

Replace incorrect "BMAD" with correct "BMad" in text and frontmatter
while preserving "BMAD-METHOD" in GitHub URLs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: fix BMad acronym and remove draft README

- Correct acronym to "Breakthrough Method of Agile AI Driven Development"
- Remove unused README-draft.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: standardize BMad acronym in README

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: standardize FAQ format across all FAQ pages

- Add TOC with jump links under "## Questions"
- Use ### headers for questions (no Q: prefix)
- Direct answers without **A:** prefix
- Remove horizontal rules and "Related Documentation" sections
- End each FAQ with issue/Discord CTA
- Update style guide with new FAQ guidelines
- Delete redundant faq/index.md (sidebar handles navigation)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use repo-relative links with .md for GitHub compatibility

Convert all documentation links to repo-relative format (/docs/path/file.md)
so they work when browsing on GitHub. The rehype plugin strips /docs/ prefix
and converts .md to trailing slash at build time for Astro/Starlight.

- Update rehype-markdown-links.js to strip /docs/ prefix from absolute paths
- Update fix-doc-links.js to generate /docs/ prefixed paths with .md extension
- Convert 217 links across 64 files to new format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: handle /docs/ prefix in link validator

Update resolveLink to strip /docs/ prefix from repo-relative links
before checking if files exist.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: restore FAQ index page

Re-add the FAQ index page that was accidentally deleted, with
updated repo-relative link format.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Alex Verkhovsky <alexey.verkhovsky@gmail.com>
2026-01-10 02:55:33 +08:00
Phil 677a00280b
feat: refactor Cursor IDE setup to do command generation and cleanup instead of rules (#1283)
* feat: refactor Cursor IDE setup to do  command generation and cleanup instead of rules

- Added support for command generation in the Cursor IDE setup, including the creation of a new commands directory.
- Implemented cleanup for old BMAD commands alongside existing rules.
- Integrated TaskToolCommandGenerator for generating task and tool commands.
- Updated logging to reflect the number of agents, tasks, tools, and workflow commands generated during setup.

* style: adjust constructor formatting and update command path in Cursor IDE setup

- Reformatted the constructor method for consistency.
- Updated the command path syntax in the Cursor IDE setup to use a more standard format.

* fix: update Cursor command paths in documentation

- Changed the command path for Cursor IDE setup from `.cursor/rules/bmad/` to `.cursor/commands/bmad/` in both installers.md and modules.md.
- Updated file extension references to use `.md` instead of `.mdc` for consistency.
2026-01-09 16:39:32 +08:00
Jonah Schulte bfd40d53eb docs: add enterprise GitHub Issues integration plan
Comprehensive plan for transforming BMAD into enterprise team coordination
platform supporting 5-15 parallel developers.

Key features:
- Story-level locking (prevents duplicate work)
- Smart cache (97% API reduction, 27x faster reads)
- Real-time progress visibility for Product Owners
- GitHub Issues as source of truth
- Zero merge conflicts through centralized coordination

Implementation: 6-8 weeks for complete system, 4-6 weeks for MVP
Risk: Low-Medium (building on proven migrate-to-github patterns)
ROI: Eliminates duplicate work, 40% PO-Dev friction reduction

Plan includes:
- 3-tier architecture (GitHub + Cache + Git)
- 4 implementation phases
- 26 new files, 5 modified files (~5,840 lines)
- Comprehensive verification strategy
- Reliability guarantees (atomic, verified, resumable)
2026-01-08 14:57:40 -05:00
Jonah Schulte f36cf88cff Merge branch 'test/comprehensive-coverage-phase1' 2026-01-08 14:33:41 -05:00
Jonah Schulte 66628930f4 feat: add GitHub Issues migration tool with production-grade reliability
Implements /migrate-to-github (trigger: MIG) with 8 reliability mechanisms:
1. Idempotent, 2. Atomic, 3. Verified, 4. Resumable, 5. Reversible,
6. Previewed (dry-run default), 7. Resilient (retry), 8. Fail-safe

Files created:
- migrate-to-github/workflow.yaml
- migrate-to-github/instructions.md
- migrate-to-github/RELIABILITY.md

Files modified:
- sm.agent.yaml: Added MIG menu item
2026-01-08 13:56:46 -05:00
Jonah Schulte 5e841f9cac test: add comprehensive test coverage for file operations, dependency resolution, and transformations
Implement Vitest testing framework with 287 new tests achieving 80%+ overall coverage for previously untested critical components.

Coverage achievements:
- file-ops.js: 100% (exceeded 95% target)
- xml-utils.js: 100%
- config.js: 89% (exceeded 85% target)
- yaml-xml-builder.js: 86% (close to 90% target)
- dependency-resolver.js: 81%, 100% functions

New test coverage:
- 126 tests for file operations (254+ file system interactions)
- 74 tests for dependency resolution (multi-pass, circular detection)
- 69 tests for YAML/XML transformations (persona merging, XML generation)
- 37 tests for configuration processing (placeholder replacement, validation)
- 18 tests for XML utilities (special character escaping)

Infrastructure improvements:
- Add Vitest 4.0.16 with V8 coverage provider
- Create test helpers for temp directories and fixtures
- Configure ESLint for ES module test files
- Update npm scripts for test execution and coverage
- Maintain 100% backward compatibility with existing tests

Critical scenarios tested:
- Data loss prevention in syncDirectory() with hash/timestamp comparison
- Circular dependency handling in multi-pass resolution
- XML special character escaping to prevent injection
- Unicode filename and content handling
- Large file streaming (10MB+) for hash calculation

All 352 tests (65 existing + 287 new) passing with zero flaky tests.
2026-01-08 11:46:12 -05:00
Jonah Schulte 2496017a5b fix(batch-super-dev): Add comprehensive file discovery for DOT and HYPHEN notation
Problem:
- Workflow failed to find story files using DOT notation (story-20.9.md)
- Only checked hyphen patterns (20-9.md, story-20-9.md)
- Caused false "file missing" errors for existing stories

Solution:
- Parse story_key to extract epic_num and story_num
- Try 6 patterns in priority order:
  1. story-{epic}.{story}.md (DOT, no suffix)
  2. story-{epic}.{story}*.md (DOT with suffix, glob)
  3. {epic}-{story}.md (HYPHEN, no prefix)
  4. {epic}-{story}*.md (HYPHEN with suffix)
  5. story-{story_key}.md (literal with prefix)
  6. {story_key}.md (literal)
- Use Glob tool for wildcard matching
- Explicit examples for each pattern

Impact:
- Correctly finds story-20.9-megamenu-navigation.md
- Handles both naming conventions automatically
- No more false missing file errors

Tested with: Stories 20.9, 20.10, 20.11 (all found correctly)
2026-01-08 08:08:38 -05:00
Q00 d19cca79d2
fix: resolve ERR_REQUIRE_ESM by using dynamic import for inquirer (#1278)
Inquirer v9+ is ESM-only, causing ERR_REQUIRE_ESM when loaded via
require() in CommonJS. Convert all require('inquirer') calls to
dynamic import('inquirer') across 8 CLI files.

Fixes #1197
2026-01-08 15:42:22 +08:00
Jonah Schulte 73f4bd701b Merge branch 'main' of github.com:jschulte/BMAD-METHOD 2026-01-07 23:03:10 -05:00
Jonah Schulte 36e9933690 chore: bump version to 6.1.0-alpha.4
Version bump for revalidation and ghost feature detection features.

New in alpha.4:
- Story/epic revalidation workflows (verify checkbox accuracy)
- Ghost feature detector (find orphaned code with no stories)
- Both features production-ready
- Agent menus updated with RVS, RVE, GFD triggers
- .gitignore updated to exclude exported conversation files

Ready for npm publish.
2026-01-07 23:02:26 -05:00
Jonah Schulte 5ea139d7be fix(batch-super-dev): Apply agent limitation patches to Step 2.5
- Update instructions.md Step 2.5 to explicitly halt when story
  creation/regeneration is needed (agents cannot invoke workflows)
- Add clear user guidance with manual action steps
- Add manual_actions_required tracking to batch summary (Step 5)
- Update README.md with Critical Prerequisites section
- Create scripts/validate-all-stories.sh for pre-batch validation

This addresses the root cause where batch-super-dev told agents to
"Invoke workflow: /create-story-with-gap-analysis" which is not
possible in batch mode. Agents now gracefully skip invalid stories
and provide clear instructions for manual intervention.

Follows recommendations from BMAD-WORKFLOW-IMPROVEMENTS.md
2026-01-07 21:09:06 -05:00
Jonah Schulte 7f3b62eb98 Merge branch 'main' of github.com:jschulte/BMAD-METHOD 2026-01-07 21:00:24 -05:00
Jonah Schulte 80ec065117 docs(batch-super-dev): Document agent limitations and fix workflow issues
Issue discovered in platform project batch execution:
- Attempted to batch-regenerate 14 skeleton stories
- Agents cannot invoke /create-story-with-gap-analysis workflow
- Batch execution requires pre-generated BMAD stories

ROOT CAUSE:
- Agents cannot execute slash commands (user CLI only)
- Agents cannot invoke other BMAD workflows autonomously
- Story creation requires interactive user input

IMPROVEMENTS:
1. AGENT-LIMITATIONS.md - Clear documentation of what agents can/cannot do
2. WORKFLOW-PATCH-STEP-2.5.md - Fix for batch-super-dev Step 2.5
3. BMAD-WORKFLOW-IMPROVEMENTS.md - Complete analysis and recommendations

KEY LESSON:
Batch-super-dev is for EXECUTION, not CREATION.
Story generation must happen before batch execution.

Files:
- src/modules/bmm/workflows/4-implementation/batch-super-dev/AGENT-LIMITATIONS.md
- src/modules/bmm/workflows/4-implementation/batch-super-dev/WORKFLOW-PATCH-STEP-2.5.md
- BMAD-WORKFLOW-IMPROVEMENTS.md
- src/modules/cis/module.yaml (prettier formatting)
2026-01-07 20:58:53 -05:00
Jonah Schulte 2f04fbcd39 feat: add ghost feature detector (reverse gap analysis)
WHO YOU GONNA CALL? 👻 GHOST-FEATURE-BUSTERS!

Implements reverse gap analysis to find "orphaned code" - functionality
that exists in the codebase but has no corresponding story documentation.

Use Case:
"Find functionality that doesn't exist in any story (was vibe coded or
magically appeared) and propose backfilling stories" - User

FEATURE: /ghost-features (trigger: GFD)
---------------------------------------
Scans codebase and cross-references with ALL stories to find orphans:

1. Codebase Scan:
   - React/Vue/Angular components
   - API endpoints (Next.js, NestJS, Express)
   - Database tables (Prisma, TypeORM, migrations)
   - Services and business logic modules
   - Ignores tests, build artifacts, node_modules

2. Cross-Reference with Stories:
   - Check if component mentioned in any File List
   - Check if API mentioned in any Task/AC
   - Check if table mentioned in any story
   - Mark as DOCUMENTED if found, ORPHAN if not

3. Severity Classification:
   - CRITICAL: APIs, auth, payment (security-critical)
   - HIGH: Components, DB tables, services (significant features)
   - MEDIUM: Utilities, helpers
   - LOW: Config files, constants

4. Backfill Story Generation:
   - Analyze orphan code to understand functionality
   - Generate story draft documenting existing implementation
   - Mark most tasks as [x] (already exists)
   - Add tasks for missing tests/docs
   - Suggest epic assignment based on functionality

5. Epic Organization:
   - Option A: Create "Epic-Backfill" for all orphans
   - Option B: Distribute to existing epics
   - Option C: Leave in backlog

Output:
- Orphaned features list (by severity and type)
- Documentation coverage % (what % of code has stories)
- Backfill stories created (if requested)
- Comprehensive report (ghost-features-report-{timestamp}.md)

Usage:
```bash
# Detect orphans in entire sprint
/ghost-features

# Detect orphans in Epic 2
/ghost-features epic_number=2 scan_scope=epic

# Detect and create backfill stories
/ghost-features create_backfill_stories=true

# Full codebase scan
/ghost-features scan_scope=codebase
```

Files Created:
- detect-ghost-features/workflow.yaml: Reverse gap analysis config
- detect-ghost-features/instructions.md: 8-step detection + backfill process

Files Modified:
- sm.agent.yaml: Added GFD (Ghost Feature Detector) menu item

Benefits:
- Prevents "ghost features" from accumulating
- Documents vibe-coded functionality
- Maintains story-code parity
- Enables accurate sprint planning (know what actually exists)
- Makes codebase auditable (every feature has a story)
- Catches manual code additions that bypassed story process
2026-01-07 20:37:19 -05:00
Jonah Schulte 1031b1cd21 feat: add story/epic revalidation with gap filling
Implements user-requested revalidation capability to verify checkbox accuracy.

Use Case:
"I am uncertain about the real status of some stories and epics that I've
worked on and would love a re-check" - User

FEATURE: /revalidate-story
-------------------------
Clears all checkboxes and re-verifies each item against codebase:

1. Clear Phase:
   - Uncheck all boxes in ACs, Tasks, DoD
   - Start from clean slate

2. Verification Phase:
   - For each item: search codebase with Glob/Grep
   - Read files to verify actual implementation (not stubs)
   - Check for tests and verify they pass
   - Re-check verified items: [x] verified, [~] partial, [ ] missing

3. Gap Reporting:
   - Report what exists vs what's documented
   - Calculate accuracy (before % vs after %)
   - Identify over-reported (checked but missing) and under-reported (exists but unchecked)

4. Gap Filling Mode (optional):
   - Implement missing items
   - Run tests to verify
   - Commit per gap or all at once
   - Re-verify after filling

Token Cost Analysis:
- Verify-only: ~30-45K tokens (just scan and report)
- Verify-and-fill (10% gaps): ~35-55K tokens
- Verify-and-fill (50% gaps): ~60-90K tokens
- Compare to full re-implementation: ~80-120K tokens
- Savings: 40-60% when gaps <30%

FEATURE: /revalidate-epic
------------------------
Batch revalidation of all stories in an epic using semaphore pattern:

- Maintain pool of N concurrent workers
- As worker finishes → immediately start next story
- Constant concurrency until all stories revalidated
- Epic-wide summary with health score
- Stories grouped by completion %

Usage:
```bash
# Verify only
/revalidate-story story_file=path/to/story.md

# Verify and fill gaps
/revalidate-story story_file=path/to/story.md fill_gaps=true

# Revalidate entire epic
/revalidate-epic epic_number=2

# Revalidate epic and fill all gaps
/revalidate-epic epic_number=2 fill_gaps=true max_concurrent=5
```

Files Created:
- revalidate-story/workflow.yaml: Story revalidation config
- revalidate-story/instructions.md: 10-step revalidation process
- revalidate-epic/workflow.yaml: Epic batch revalidation config
- revalidate-epic/instructions.md: Semaphore pattern for parallel revalidation

Files Modified:
- dev.agent.yaml: Added RVS and RVE menu items
- sm.agent.yaml: Added RVS and RVE menu items

Next: Reverse gap analysis (detect orphaned code with no stories)
2026-01-07 20:33:18 -05:00
Jonah Schulte 0d66a28cfe chore: bump version to 6.1.0-alpha.3
Version bump after alpha.2 was published to npm.

Changes in alpha.3:
- Semaphore pattern for parallel execution (20-40% faster)
- Git commit queue eliminates lock file conflicts
- Minimum 3-task requirement prevents invalid stories
- All features production-tested and ready
2026-01-07 20:13:39 -05:00
Jonah Schulte 90010f8ef9 feat(batch-super-dev): add git commit queue + stricter story validation
Addresses two critical production issues discovered during real usage:

ISSUE #1: Git Lock File Conflicts in Parallel Mode
----------------------------------------------------
Multiple parallel agents trying to commit simultaneously caused:
- .git/index.lock conflicts
- "Another git process is running" errors
- Required manual intervention to resolve

SOLUTION: Git Commit Queue with File-Based Locking
- Workers acquire .git/bmad-commit.lock before committing
- Automatic retry with exponential backoff (1s → 30s)
- Stale lock cleanup (>5 min old locks auto-removed)
- Timeout protection (max 5 min wait, then HALT)
- Serializes commits while keeping implementations parallel
- Zero user intervention needed

Implementation:
- super-dev-pipeline/step-06-complete.md: Added commit queue logic
- super-dev-pipeline/step-06a-queue-commit.md: NEW documentation file
- .gitignore: Added .git/bmad-commit.lock

ISSUE #2: 0-Task Stories Classified as COMPLEX
-----------------------------------------------
Real example from production:
- "11-4-classes-workshops-advanced": 0 tasks, high-risk keywords
- Classified as COMPLEX (risk keywords triggered it)
- Proceeded to implementation → agent had nothing to do → failed

SOLUTION: Minimum 3-Task Requirement
- Step 2.5 validation now rejects stories with <3 tasks
- Step 2.6 complexity scoring marks <3 tasks as INVALID
- INVALID stories filtered out before user selection
- Clear error message directs user to /validate-create-story

Validation Rules:
- 0-2 tasks: INVALID (stub/incomplete)
- 3 tasks: Minimum valid (MICRO threshold)
- 4-15 tasks: STANDARD
- 16+ tasks: COMPLEX

Implementation:
- batch-super-dev/instructions.md:
  - Step 2.5: Added <3 task check with detailed error message
  - Step 2.6: Added INVALID classification for <3 tasks
  - End of Step 2.6: Filter INVALID stories before selection
- batch-super-dev/README.md: Documented validation rules
- CHANGELOG.md: Comprehensive documentation of both features

Impact:
- Commit queue: Eliminates 100% of git lock file conflicts
- Story validation: Prevents wasted tokens on incomplete stories
- Combined: Production-ready parallel batch processing
2026-01-07 20:10:49 -05:00
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
Jonah Schulte 2c84b29cb6 fix(batch-super-dev): Fix conditional questions + add 'Mend the Gap' context
PROBLEM 1: Confusing Conditional Question Logic
- Step 3.5 asked BOTH questions (Sequential/Parallel AND agent count) simultaneously
- User selects Sequential but still had to answer 'how many agents?'
- LLM misinterpreted agent count answer and launched parallel agents incorrectly

FIX 1: Split into Proper Conditional Flow
- First <ask>: Sequential or Parallel? (required)
- Second <ask>: ONLY if Parallel selected, ask agent count (conditional)
- Sequential mode now skips agent count question entirely
- Matches proper workflow.xml semantics (one <ask> = one response)

PROBLEM 2: Missing Use Case Context
- Workflow didn't explain it's primarily for gap analysis/reconciliation
- LLM didn't understand 'Sequential' means process in THIS session (not background)
- Missing mental model: verify existing → build gaps → check boxes → done

FIX 2: Add 'Mend the Gap' Header with Use Case Guide
- Added description: gap analysis + reconciliation workflow
- Explained 3 modes: Reconciliation (most common), Greenfield, Brownfield
- Clarified Sequential = in-session processing (not background agents)
- Added simple mental model for LLM understanding

IMPROVEMENT 3: Safety Limit on Parallel Agents
- Added 10-agent maximum (prevents resource exhaustion)
- 'all' option caps at min(story_count, 10)
- Added warning when count capped

RESULT:
- Sequential mode works as intended (no confusion)
- Parallel mode asks for agent count (conditional)
- LLMs understand primary use case (gap analysis)
- Safety limits prevent runaway agent spawning
- Proper workflow.xml conditional flow

Resolves: Execution mode confusion that caused incorrect parallel agent launches
2026-01-07 19:54:26 -05:00
Alex Verkhovsky 8e165b9b57
chore: enable CodeRabbit auto-review on new PRs (#1276) 2026-01-08 07:59:30 +08:00
Alex Verkhovsky 67b70288a6
docs: update README links to new documentation site (#1274) 2026-01-08 07:58:53 +08:00
Jonah Schulte c7c81b2f95 docs: update CHANGELOG with continuous tracking feature
Added comprehensive documentation for v1.3.0 continuous sprint-status tracking:
- Real-time progress dashboard updates after every task
- CRITICAL enforcement with HALT on failure
- Progress format examples (X/Y tasks, Z%)
- Benefits and backward compatibility notes
- Files modified list
2026-01-07 17:30:06 -05:00
Jonah Schulte 4eb889642d feat: add continuous sprint-status tracking with task-level progress
Implements requirements #1 and #2: stronger enforcement + progress tracking

REQUIREMENT #1: Stronger Enforcement
- dev-story Step 8 now MANDATES sprint-status.yaml update after EVERY task
- Previously: Updated only at story start (step 4) and end (step 9)
- Now: Updated after EACH task completion with CRITICAL + HALT enforcement
- Validation: Re-reads file to verify update persisted, HALTs on failure

REQUIREMENT #2: Progress Tracking
- Extended sprint-status.yaml format with inline progress comments
- Format: "story-key: in-progress  # X/Y tasks (Z%)"
- Real-time visibility into story progress without opening story files
- Automatically updated by dev-story and batch-super-dev reconciliation

Progress Comment Format:
- in-progress: "# 3/10 tasks (30%)"
- review: "# 10/10 tasks (100%) - awaiting review"
- done: "#  COMPLETED: Brief summary"

Benefits:
- Sprint-status.yaml becomes a real-time progress dashboard
- No need to open individual story files to check progress
- Immediate visibility when stories stall (same % for days)
- Enables better sprint planning and resource allocation

Files Modified:
- dev-story/instructions.xml (BMM + BMGD): Added mandatory task-level updates
- sprint-status/instructions.md (BMM + BMGD): Added progress parsing/display
- batch-super-dev/step-4.5-reconcile-story-status.md: Added progress to reconciliation
- docs/HOW-TO-VALIDATE-SPRINT-STATUS.md: Documented new format and enforcement

Breaking Change: None (backward compatible with old format)
- Old entries without progress comments still work
- New entries automatically add progress
- Gradual migration as stories are worked
2026-01-07 17:28:52 -05:00
Jonah Schulte f860077202 chore: bump version to 6.1.0-alpha.2
Republish version after alpha.1 was already published to npm.
No functional changes from alpha.1.

Changes:
- package.json: 6.1.0-alpha.1 → 6.1.0-alpha.2
- package-lock.json: updated to reflect new version
- CHANGELOG.md: added alpha.2 entry
2026-01-07 16:59:21 -05:00
Jonah Schulte 7f77f0cc7e docs: update CHANGELOG for v6.1.0-alpha.1 release
Added comprehensive changelog entry for v6.1.0-alpha.1 including:
- Complexity-based routing feature details
- Token optimization metrics (50-70% for micro, 90% for bailouts)
- All 6 critical fixes from multi-agent review
- Documentation updates
- Validation results

Also updated package-lock.json to reflect new version.
2026-01-07 16:56:30 -05:00
Jonah Schulte fca4cd9db1 chore: bump version to 6.1.0-alpha.1
Version bump reflects new complexity-based routing feature:
- MINOR version bump (6.0 → 6.1) for new feature
- Reset alpha counter (alpha.22 → alpha.1) for new series
- Updated description to mention complexity-based routing

Changes in 6.1.0:
- Complexity-based routing (micro/standard/complex)
- Token savings: 50-70% for micro stories
- Smart pipeline selection with risk keyword scoring
- Early bailout checks
- Multi-agent review integration
2026-01-07 16:42:18 -05:00
Jonah Schulte 1dd5e6b0c3 docs: update README-changes.md with v1.3.0 complexity routing feature
Updated documentation to include:
- Complexity-based routing overview
- MICRO/STANDARD/COMPLEX classification algorithm
- Risk keyword scoring system
- Token savings (50-70% for micro stories, 90% for early bailouts)
- Integration with super-dev-pipeline and batch-super-dev
- Latest commit information (9bdf4894)
2026-01-07 16:38:59 -05:00
Jonah Schulte 9bdf489438 fix: resolve critical complexity routing issues from multi-agent review
Fixes 6 critical issues discovered in multi-agent code review:

1. **Parameter propagation** - CRITICAL FIX
   - Added complexity_level parameter to super-dev-pipeline invocations
   - Fixed both sequential and parallel execution paths
   - Without this, complexity routing was completely non-functional

2. **Keyword matching rules** - CRITICAL FIX
   - Defined explicit matching algorithm in workflow.yaml
   - Case insensitive, word boundary matching, exact strategy
   - Added keyword variants (auth -> authentication, authorize, etc.)
   - Scan locations: story_title, task_descriptions, subtask_descriptions

3. **Threshold decision tree** - CRITICAL FIX
   - Rewrote overlapping logic to be mutually exclusive
   - Priority order: COMPLEX → MICRO → STANDARD
   - Prevents stories from matching multiple categories

4. **Task counting method** - CRITICAL FIX
   - Defined method: "top_level_only" (ignore subtasks)
   - Added documentation with examples
   - Eliminates ambiguity in complexity scoring

5. **max_files implementation** - FIX
   - Added file_count ≤ 5 check to MICRO classification
   - Previously extracted but never used (dead code)

6. **Version synchronization** - FIX
   - Updated super-dev-pipeline to v1.3.0 (was 1.2.0)
   - Matches batch-super-dev version for consistency

Impact: These fixes make complexity routing actually functional. The original
implementation computed complexity but never passed it to the pipeline,
rendering the entire feature non-operational.
2026-01-07 16:34:44 -05:00
Jonah Schulte e5ede9ec3f feat: add complexity-based routing and pipeline optimizations (v1.3.0)
Phase 1 & 2 improvements to reduce token waste and improve robustness:

1. Complexity scoring in batch-super-dev (step 2.6)
   - Score stories as micro/standard/complex based on task count + risk keywords
   - Micro (≤3 tasks, low risk): lightweight path
   - Standard: full pipeline
   - Complex (≥16 tasks or high-risk): enhanced validation

2. Lightweight path for micro stories
   - Skip pre-gap analysis (step 2) for micro complexity
   - Skip code review (step 5) for micro complexity
   - Estimated 50-70% token savings on simple stories

3. Smart batching clarification
   - Fixed contradictory instructions in step-03-implement.md
   - Default: one task at a time
   - Exception: batch low-risk patterns (package installs, imports)

4. Gap analysis optimization
   - dev-story skips step 1.5 if recent gap analysis exists (<24h)
   - Added skip_gap_analysis flag for pre-validated stories

5. Early bailout pre-flight check (step 4.5)
   - Bail early if story already complete (all tasks checked)
   - Bail if no tasks found (malformed story)
   - Bail if missing required sections
   - Saves tokens on stories that don't need processing

6. Multi-agent review integration (step 5)
   - For complex stories: recommend /multi-agent-review
   - Provides architecture, security, and performance review
   - Dynamic agent selection based on changed files
2026-01-07 16:20:34 -05:00
Jonah Schulte 7c1051b017 refactor: remove autonomous-epic in favor of batch-super-dev
- Remove autonomous-epic workflow from BMM and BMGD modules
- Remove agent menu entries for autonomous-epic
- Update workflow references to use batch-super-dev
- Add README-changes.md documenting fork customizations
- Remove outdated SPRINT-STATUS-SYNC-GUIDE.md

batch-super-dev is the superior approach with proactive story
validation, auto-creation of missing stories, and smart reconciliation.
2026-01-07 16:00:32 -05:00
Jonah Schulte 9df7939225 Merge upstream/main: Diataxis docs restructure + Astro migration
Resolves conflict by accepting upstream deletion of
docs/bmad-core-concepts/installing/index.md (moved to
docs/how-to/installation/)
2026-01-07 14:50:08 -05:00
Jonah Schulte b517a8b1d0 Add batch-super-dev workflow with auto-installation and quality gates
Features:
- Interactive batch selector for processing multiple ready-for-dev stories
- 5-layer quality gate system (pre-gap, post-validation, reconciliation, code review, sprint-status sync)
- Smart story reconciliation (auto-updates checkboxes based on Dev Agent Record)
- Anti-vibe-coding enforcement (verifies files exist, tests pass, implementations aren't stubs)
- Story validation & auto-creation (validates 12 BMAD sections, creates missing stories)
- Auto-generates /batch-super-dev and /super-dev-pipeline slash commands on installation

Platform Support:
- Claude Code: Auto-creates .claude-commands/batch-super-dev.md
- Windsurf: Auto-creates slash commands for cross-compatibility

Workflow Location:
- Source: src/modules/bmm/workflows/4-implementation/batch-super-dev/
- Installed: _bmad/bmm/workflows/4-implementation/batch-super-dev/

Quality Gates:
1. Pre-gap analysis validates story completeness
2. Post-implementation validation verifies every task (anti-vibe-coding)
3. Smart reconciliation updates checkboxes based on evidence
4. Multi-agent code review finds issues before commit
5. Python script validates sprint-status.yaml accuracy
2026-01-07 12:12:13 -05:00
Brian Madison 5c76657732 Add CNAME file 2026-01-07 18:18:12 +08:00
Brian Madison 7bf05c9d9d fix missing scripts from installation, and add ability to exclude workflows from being added as commands in tools, the first being the example workflow meant just for workflow example to the workflow builder 2026-01-07 16:21:25 +08:00