Commit Graph

1361 Commits

Author SHA1 Message Date
Alex Verkhovsky 05ddc2d29b
fix(dev): allow full project-context usage with conflict precedence (#1220) 2026-01-03 09:14:09 +08:00
Jonah Schulte de4a19c95e cleanup: Remove narrative docs, workflows are self-documenting 2026-01-02 19:40:16 -05:00
Jonah Schulte 343e029250 feat(validation): Add progress tracker for resumable validation runs
Enables resume capability for long-running validation (4-6 hour runs)
2026-01-02 19:21:26 -05:00
Jonah Schulte 73b8190e7b feat(validation): Add comprehensive story validation system with Haiku agents
VALIDATION WORKFLOWS (6 total):
- validate-story: Quick task checkbox validation
- validate-story-deep: Deep code verification with Haiku agent
- validate-all-stories: Batch quick validation
- validate-all-stories-deep: Comprehensive platform audit
- validate-epic-status: Per-epic validation
- validate-all-epics: All epics validation

VALIDATION SCRIPTS (4 total):
- sprint-status-updater.py: Compare story files vs sprint-status.yaml
- task-verification-engine.py: Python-based task verification
- llm-task-verifier.py: LLM-powered verification (alternative)
- add-status-fields.py: Add Status field to stories

HAIKU AGENT APPROACH:
- One agent per story (not per task - avoids 99% overhead)
- Agent reads actual code with Glob/Read tools
- Verifies stubs vs real implementation
- Checks multi-tenant, error handling, tests
- Evidence-based verification (line numbers, code snippets)

COST OPTIMIZATION:
- Haiku: $0.15/story vs Sonnet: $1.80/story (92% savings)
- Full platform: $76 vs $920 (saves $844)
- Batching: 5 concurrent agents (prevents overload)

CAPABILITIES:
- False positive detection (checked but code missing)
- False negative detection (unchecked but code exists)
- Code quality review (TODOs, stubs, missing features)
- Status recommendation (done/review/in-progress)
- Automated status updates

DOCUMENTATION:
- HOW-TO-VALIDATE-SPRINT-STATUS.md
- SPRINT-STATUS-VALIDATION-COMPLETE.md
- Slash command docs in .claude-commands/

USE CASES:
- Weekly: Quick validation (free, 5 sec)
- Pre-done: Deep story check ($0.15, 2-5 min)
- Pre-launch: Full audit ($76, 4-6h)
- Quality sweep: Phase 3 comprehensive validation

Enables bulletproof production confidence for any BMAD project.
2026-01-02 19:20:11 -05:00
Jonah Schulte afaba40f80 feat(workflows): Add --epic and --mode flags to sprint-status-updater.py
- Add --epic flag to filter validation to specific epic (e.g., epic-1)
- Add --mode flag with 'validate' and 'fix' options
- Filter logic extracts epic number and matches story file prefixes
- Enables per-epic validation for validate-all-epics workflow

Part of: validate-all-epics workflow infrastructure
2026-01-02 17:46:27 -05:00
Jonah Schulte 04ad0b5019 fix: use epic-specific tracking files for parallel epic processing
- Change tracking file from `.autonomous-epic-progress.yaml` to
  `.autonomous-epic-progress-epic-{{epic_num}}.yaml`
- Prevents race conditions when multiple epics run in parallel
- Each epic now maintains isolated tracking state
- Updates: README.md, instructions.xml (4 locations), workflow.yaml

Resolves issue where parallel epic processing would stomp on
shared tracking file causing data loss and synchronization issues
2026-01-01 14:15:18 -05:00
Brian Madison c748f0f6cc paths for workflow and sprint tatus files fixed 2026-01-01 21:20:14 +08:00
Andaman Lekawat 4142972b6a
fix: standardize variable naming from {project_root} to {project-root} (#1217)
Fixed inconsistent variable naming in workflow instruction files across
CIS, BMGD, and BMM modules. The standard variable format uses hyphens
({project-root}) not underscores ({project_root}).

Affected files:
- CIS: problem-solving, innovation-strategy, design-thinking, storytelling
- BMGD: brainstorm-game, narrative, create-story checklist
- BMM: excalidraw diagrams, create-story checklist

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-01 21:14:21 +08:00
Murat K Ozcan cd45d22eb6
docs: chose your tea engagement (#1228)
* docs: chose your tea engagement

* docs: addressed PR comments

* docs: made refiements to the mermaid diagram

* docs: wired in test architect discoverability nudges

---------

Co-authored-by: Brian <bmadcode@gmail.com>
2026-01-01 19:06:55 +08:00
Jonah Schulte eecff22f91 feat: add anti-skip safeguards and verification to implementation workflows
- Add YOLO mode clarification: auto-approve prompts only, NOT skip steps
- Add mandatory story creation verification (file exists, 4kb+ size)
- Add quality requirements for create-story output
- Add sprint-status tracking updates
- Harden autonomous-epic, create-story, and story-pipeline workflows
- Ensure stories contain required sections (Tasks, Acceptance Criteria, Dev Notes)
2026-01-01 02:52:48 -05:00
Jonah Schulte 387c42178e Merge upstream/main: sync with 6.0.0-alpha.22 release 2026-01-01 00:31:12 -05:00
Nick Pirocanac a297235862
fix: *code-review is picking up non-application files (#1232)
Co-authored-by: Nick Pirocanac <nick.pirocanac@rtktickets.com>
2026-01-01 13:22:51 +08:00
Brian Madison d8b13bdb2e agents all indicate hasSidecar true or false, validation requires it, agent builder and validator and editor use the field. Added a better brownfield doc 2025-12-31 21:30:19 +08:00
lkrysik 8699d7d968
Mixed line endings (Windows CRLF problem) (#1222)
Co-authored-by: lukasz.krysik <lukasz.krysik@effem.com>
2025-12-31 14:44:53 +08:00
Brian Madison 8b92e5ee59 Release 6.0.0-alpha.22
Major features:
- Unified Agent Workflow: Create/Edit/Validate consolidated into single workflow
- Agent Knowledge System: Comprehensive data file architecture for agent building
- Deep Language Integration: All sharded workflows support language choice
- Core Module Documentation: New docs for brainstorming, party mode, advanced elicitation
- BMAD Core Concepts: New documentation structure for agents, workflows, modules
- Create-Tech-Spec Sharded: Converted to sharded format with orient-first pattern

466 files changed, 12,983 insertions(+), 12,047 deletions(-)
2025-12-31 03:06:16 +08:00
Brian Madison 9f53d896b7 agent-workflow create edit validate consolidation 2025-12-31 02:58:03 +08:00
Brian Madison b46409e71d agent create workflow overhaul to use data files efficiently. updated and created separate user guides for the create agent workflow along with general concept docs of what an agent and workflow are in regards to0 bmad generally. 2025-12-30 22:44:38 +08:00
Brian Madison 8cffd09fb7 agent build intel complete 2025-12-30 17:46:29 +08:00
Brian Madison 2b89ee1302 agent build data optimized 2025-12-30 14:19:00 +08:00
Brian Madison b72c810a1f bmb agent knowledge streamline in progress 2025-12-30 12:34:54 +08:00
Jonah Schulte 1541274e57 fix: update package scope to @jonahschulte for npm publishing 2025-12-29 10:48:37 -05:00
Brian Madison 484990de50 all sharded progressive workflows integrate language choice deeply with each step biased towards configured language. Tested with Spanish and Pirate Speak, worked really well. 2025-12-29 19:35:20 +08:00
Brian Madison b8836ced24 another inquirer default addition missed, maybe this will fix windows issues also 2025-12-29 15:56:00 +08:00
Brian Madison c7fcf16eae fix install for alpha instruction in the readme 2025-12-29 15:45:38 +08:00
Jonah Schulte 0ff7099af7 feat: add smart batching to super-dev-pipeline for repetitive work
Add intelligent task grouping that automatically detects and batches
similar low-risk tasks while maintaining full validation discipline.

KEY INNOVATION:
Smart batching is NOT vibe coding - it's systematic pattern detection
with batch validation and automatic fallback to individual execution.

PROBLEM SOLVED:
- One-task-at-a-time is too slow for repetitive work
- 100 package installations × 2min = 200 minutes (unnecessarily slow)
- Pattern: Add package → install → build is repeated 100 times identically

SMART BATCHING SOLUTION:
- Step 2: Detect batchable patterns in pre-gap analysis
- Step 3: Execute similar tasks together, validate as batch
- Fallback: If batch fails, revert to one-at-a-time for that batch
- Safety: High-risk tasks NEVER batched

BATCHABLE PATTERNS (low risk):
- Package installations (validated by build)
- Module registrations (validated by TypeScript)
- Code deletions (validated by tests)
- Import updates (validated by build)

NON-BATCHABLE (individual execution):
- Business logic (varies per case)
- Security code (high risk)
- Data migrations (irreversible)
- Novel patterns (unproven)

TIME SAVINGS:
- Example: 100-task story with 80 batchable + 20 individual
- Without batching: 100 × 2min = 200 minutes
- With batching: 5 batches × 10min + 20 × 2min = 90 minutes
- Savings: 110 minutes (55% faster!)

FEATURES ADDED:
- Pattern detection in step-02-pre-gap-analysis.md
- Batch execution in step-03-implement.md
- Batching configuration in workflow.yaml
- Smart batching documentation in workflow.md and README.md

SAFETY MECHANISMS:
- Conservative pattern detection (default to individual)
- Explicit validation strategy per batch
- Automatic fallback if batch fails
- High-risk tasks never batched
- All quality gates still enforced

VERSION:
- super-dev-pipeline: 1.0.0 → 1.1.0 (smart batching added)

INSTALLATIONS:
- craftedcall: Updated with smart batching
- usmax-nda: Updated with smart batching

This solves the velocity problem while maintaining anti-vibe-coding discipline!
2025-12-28 23:49:53 -05:00
Brian Madison 529d4a8c95 doc fixes 2025-12-29 09:36:54 +08:00
Brian Madison f0520c39d9 fix wording in create-epics-and-stories doc discovery continuation 2025-12-29 09:25:56 +08:00
Brian Madison ff0517f4d0 workflow-status phase paths corrected with current reality 2025-12-29 09:25:56 +08:00
Jonah Schulte efce6a9d85 fix: update autonomous-epic description to reference super-dev-pipeline 2025-12-28 12:31:46 -05:00
Jonah Schulte 7feab0e233 docs: update all documentation for super-dev-pipeline
Updated documentation to accurately reflect current state:

KEY CHANGES:
1. super-dev-pipeline is now the production workflow (not story-pipeline)
2. Corrected token estimates (40-60K vs 65% claim for story-pipeline)
3. Updated autonomous-epic v2.0 description
4. Clarified workflow purposes and use cases

DOCUMENTATION UPDATED:
- INTEGRATION-NOTES.md
  * Updated to focus on super-dev-pipeline as production solution
  * Explained evolution: story-pipeline → brownfield problem → super-dev-pipeline
  * Workflow comparison table shows all three options
  * Task-based completion explained
  * Anti-vibe-coding enforcement detailed

- PR-STORY-PIPELINE.md
  * Renamed focus to super-dev-pipeline (the actual deliverable)
  * Updated all metrics to 50% savings (not 65%)
  * Added problem statement about brownfield
  * Explained adaptive implementation

- autonomous-epic/README.md
  * Updated to reference super-dev-pipeline
  * Corrected token estimates (40-60K per story)
  * Updated time estimates (2-5 hrs small, 5-10 hrs medium, 10-20 hrs large)
  * Example session shows super-dev-pipeline steps

KEY POINTS CLARIFIED:
- super-dev-pipeline: Production (greenfield + brownfield, 40-60K tokens)
- story-pipeline: Greenfield only (25-30K tokens, 65% savings)
- super-dev-story: Legacy (100-150K tokens, allows vibe coding)

- autonomous-epic v2.0 uses super-dev-pipeline by default
- Task-based completion (not status-based)
- Anti-vibe-coding enforcement via step-file architecture
- Works for real-world scenarios (most work is brownfield!)

All documentation now consistent and accurate.
2025-12-28 12:23:55 -05:00
Jonah Schulte d4b8246bd9 feat: add super-dev-pipeline for brownfield + anti-vibe-coding enforcement
Create new super-dev-pipeline workflow that solves critical issues:
1. Works for BOTH greenfield AND brownfield development
2. Uses step-file architecture to prevent vibe coding at high token counts
3. Adaptive implementation (TDD for new, refactor for existing)
4. All quality gates with disciplined execution

PROBLEM SOLVED:
- story-pipeline assumes greenfield (ATDD doesn't work for brownfield)
- super-dev-story allows vibe coding when tokens >100K
- Need workflow that handles real-world scenarios (most work is brownfield!)

NEW WORKFLOW: super-dev-pipeline
- 7 step files with mandatory sequences
- Detects greenfield vs brownfield automatically
- Pre-gap analysis validates against existing code
- Adaptive implementation methodology
- Post-validation catches false positives
- Code review finds 3-10 issues
- Anti-vibe-coding enforcement

STEPS:
1. Init - Load story, detect development mode
2. Pre-gap - Validate tasks against codebase (critical for brownfield!)
3. Implement - Adaptive (TDD for new, refactor for existing)
4. Post-validate - Verify completion vs reality
5. Code review - Adversarial (3-10 issues)
6. Complete - Commit + push
7. Summary - Audit trail

BENEFITS:
- Works for greenfield AND brownfield
- 40-60K tokens per story (vs 100-150K for orchestration)
- Prevents vibe coding even at 200K+ tokens
- All super-dev quality gates preserved
- Step-file discipline from story-pipeline

AUTONOMOUS-EPIC UPDATED:
- Now uses super-dev-pipeline instead of story-pipeline
- Handles create-story separately for backlog stories
- More realistic token estimates (40-60K vs 25-30K)
- Updated time estimates

FILES ADDED:
- src/modules/bmm/workflows/4-implementation/super-dev-pipeline/* (14 files)
- .claude-commands/super-dev-pipeline.md
- ~/.codex/prompts/bmad-super-dev-pipeline.md

FILES MODIFIED:
- autonomous-epic/instructions.xml (use super-dev-pipeline)
- autonomous-epic/workflow.yaml (updated settings)

INSTALLATIONS:
- craftedcall: super-dev-pipeline + updated autonomous-epic
- usmax-nda: super-dev-pipeline + updated autonomous-epic

This is the production-ready solution for autonomous epic processing!
2025-12-28 12:09:06 -05:00
Luke Finch b509fb9a1e
bump version to 6.0.0-alpha.21 and enhance stdin handling for Windows in CLI (#1200) 2025-12-28 22:09:22 +08:00
Brian Madison e0090e5602 more docs migrations 2025-12-28 21:13:44 +08:00
Brian Madison 8d679b177b advanced elicitation moved to workflows folder. core module extensive documentation added. 2025-12-28 19:44:55 +08:00
Jonah Schulte 2f539ee4d0
Merge pull request #1 from jschulte/feature/autonomous-epic-processing
feat: integrate story-pipeline with autonomous-epic for 65% token savings
2025-12-27 23:02:56 -05:00
Jonah Schulte a14ab30b40 docs: add comprehensive PR description for story-pipeline integration 2025-12-27 23:01:05 -05:00
Jonah Schulte 9d69f378fe feat: prepare package for npm distribution as @jschulte/bmad-method
- Renamed package to @jschulte/bmad-method (scoped package)
- Updated version to 6.0.0-alpha.22
- Updated repository URL to jschulte/BMAD-METHOD
- Added .npmignore to exclude dev files
- Enhanced description to mention story-pipeline

This allows users to install via:
  npx @jschulte/bmad-method install
2025-12-27 22:57:45 -05:00
Jonah Schulte 747ba512aa feat: add BMAD Guide skill for automatic Claude Code installation
Integrates the bmad-guide skill into BMAD installation process to help
Claude stay on track with BMAD methodology.

Features:
- Phase navigation and workflow selection guidance
- Project level detection (0-4) for routing to correct workflows
- Common mistakes prevention (skipping phases, manual coding)
- Emergency recovery procedures when off track
- Quick reference tables and troubleshooting

Implementation:
- Created resources/skills/ directory with bmad-guide.md (428 lines)
- Added installBmadGuideSkill() to ClaudeCodeSetup class
- Skill auto-installs to ~/.claude/skills/ during setup
- Available globally across all BMAD projects
- Updated installation documentation

Usage:
- Automatic: Skill is installed when running npx bmad-method install
- Manual access: /bmad-guide command in any project
- Optional: Add BMAD Method config to ~/.claude/CLAUDE.md for automatic invocation

Benefits:
- Prevents Claude from jumping straight to coding without workflows
- Ensures proper phase progression
- Guides workflow selection based on project level
- Self-corrects when going off track
2025-12-27 22:06:37 -05:00
Jonah Schulte ee68b027fc Merge remote-tracking branch 'upstream/main' into feature/autonomous-epic-processing 2025-12-27 21:17:07 -05:00
Jonah Schulte c5afd8906f feat: integrate story-pipeline with autonomous-epic for 65% token savings
This commit integrates the story-pipeline workflow (PR #1194) with autonomous-epic
and adds post-implementation validation to catch false positives.

MAJOR CHANGES:
1. Merged story-pipeline workflow from upstream PR #1194 (20 files, 4,564 additions)
2. Added post-validation step (step-05b) between implementation and code review
3. Integrated story-pipeline as the default workflow for autonomous-epic
4. Replaced super-dev-story with story-pipeline in batch mode

NEW FEATURES:
- Post-implementation validation (step-05b-post-validation.md)
  * Verifies completed tasks against actual codebase
  * Catches false positives (tasks marked done but not implemented)
  * Re-runs implementation if gaps found
  * Uses Glob/Grep/Read to verify file existence and completeness

BENEFITS:
- Token efficiency: 25-30K per story (vs 100-150K with super-dev-story)
- 65% token savings per story, 75% savings per epic
- All super-dev-story quality gates PLUS post-validation
- Checkpoint/resume capability for long stories
- Batch mode for fully unattended execution

ARCHITECTURE:
- autonomous-epic orchestrates epic-level processing
- story-pipeline handles single-story lifecycle (9 steps including 5b)
- Role-switching in same session (vs separate workflow calls)
- Single session per story = massive token savings

TIME ESTIMATES (updated):
- Small epic (3-5 stories): 2-4 hours (was 3-6 hours)
- Medium epic (6-10 stories): 4-8 hours (was 6-12 hours)
- Large epic (11+ stories): 8-16 hours (was 12-24 hours)

FILES MODIFIED:
- autonomous-epic/instructions.xml (integrated story-pipeline)
- autonomous-epic/workflow.yaml (updated settings, removed super-dev choice)
- story-pipeline/* (20 new files from PR #1194)
- story-pipeline/steps/step-05-implement.md (points to step-05b)
- story-pipeline/workflow.md (added step 5b to map and gates)
- story-pipeline/workflow.yaml (added step 5b definition)
- story-pipeline/templates/*.yaml → *.yaml.template (renamed to avoid linting)

FILES ADDED:
- story-pipeline/steps/step-05b-post-validation.md (NEW)
- INTEGRATION-NOTES.md (comprehensive documentation)

TESTING:
- PR #1194 validated with real User Invitation system story
- 17 files, 2,800+ lines generated successfully
- Context exhaustion recovery tested

See INTEGRATION-NOTES.md for full details.

Co-authored-by: tjetzinger (story-pipeline PR #1194)
2025-12-27 12:53:35 -05:00
Brian Madison ea421adbf9 create and edit workflow minor fixes 2025-12-27 21:35:39 +08:00
Brian Madison 2a8a4388a9 v4 detection cleanup 2025-12-27 20:31:12 +08:00
Brian Madison d4a94df29a doc cleanup round 1 2025-12-27 18:29:35 +08:00
Jonah Schulte 949a8c3236 feat: add planning-time gap analysis and parallel execution enhancements
- Add create-story-with-gap-analysis workflow for verified codebase scanning at planning time
- Fix autonomous-epic to support parallel execution (no auto-branch creation)
- Fix autonomous-epic and super-dev-story to auto-accept gap analysis in autonomous mode
- Fix push-all to support targeted file commits (safe for parallel agents)
- Update dev-story and super-dev-story to pass auto_accept_gap_analysis parameter
- Add explicit autonomous mode instructions to workflows

Breaking changes: None - all enhancements are backward compatible
2025-12-27 02:29:46 -05:00
Brian Madison 949cf64d3b workflow status, init and phase 4 items aligned with planning_artifacts and implementation_artifacts for discovery and output 2025-12-27 10:59:44 +08:00
Brian Madison aba9d11c88 quick flow updates to aid discovery and implementation 2025-12-27 10:40:23 +08:00
Alex Verkhovsky 208f27dcdb
refactor: convert create-tech-spec to sharded workflow with orient-first pattern (#1185)
* refactor: convert create-tech-spec to sharded workflow with orient-first pattern

* docs: reposition deep exploration isolation guideline within universal code investigation section

* docs: Update terminology from 'Requirement Delta' to 'Problem Statement' in step-02-investigate.md context.

* Update src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-04-review.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/steps/step-01-understand.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-27 09:43:59 +08:00
Jonah Schulte 5b3f3479c8 refactor: use invoke-workflow for orchestration
- super-dev-story now invokes dev-story, code-review, push-all
- autonomous-epic now invokes create-story, super-dev/dev-story
- Eliminated code duplication (690→283, 419→208 lines)
- Clean sequential step numbering (1,2,3,4,5)
- ~1,200 lines removed through proper orchestration

Makes workflows maintainable and follows DRY principles
2025-12-26 20:26:30 -05:00
Jonah Schulte 15af99990a feat: integrate push-all into autonomous-epic workflow
- Each story now commits and pushes after completion
- Auto-generated commit messages per story
- Safety checks run before each push
- Continues on push failures (doesn't halt entire epic)
- All changes backed up to remote incrementally

Ensures epic progress is saved to remote as work completes
2025-12-26 18:33:16 -05:00
Jonah Schulte 356dd48f49 feat: add push-all workflow as standalone command
- New /push-all workflow for commit and push with safety
- Can be used anywhere (not just in super-dev-story)
- Comprehensive safety checks (secrets, API keys, large files)
- Smart commit message generation (conventional commits)
- Handles push failures (rebase, upstream, auth)
- Registered in Dev and SM agent menus
- Also integrated into super-dev-story Step 11

Applies to both BMM and BMGD modules
2025-12-26 18:32:00 -05:00