diff --git a/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md b/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md index a14e5df8..2fdec9f5 100644 --- a/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md +++ b/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md @@ -51,86 +51,14 @@ This workflow helps you "mind the gap" between story requirements and codebase r - - Present execution mode options to user - - -╔═══════════════════════════════════════════════════════════════════╗ -║ BATCH SUPER-DEV: Execution Mode Selection ║ -╚═══════════════════════════════════════════════════════════════════╝ - -⚕️ HOSPITAL-GRADE CODE STANDARDS ACTIVE ⚕️ -Lives are at stake. All code must meet safety-critical reliability standards. - -Choose execution mode: - -[I] INTERACTIVE CHECKPOINT MODE (Recommended for oversight) - - After each story completes, pause for your review - - You approve before proceeding to next story - - Allows course correction if issues detected - - Best for: Critical features, new team members, complex epics - -[A] FULLY AUTONOMOUS MODE (Maximum quality, zero interaction) - - Process all selected stories without pausing - - ENHANCED quality standards (even more rigorous than interactive) - - Hospital-grade code verification at every step - - NO shortcuts, NO skimping, NO corner-cutting - - Best for: Well-defined stories, experienced implementation - -⚠️ AUTONOMOUS MODE = HIGHER QUALITY, NOT LOWER -In autonomous mode, quality standards are ENHANCED because there's no -human oversight in the loop. Every decision is double-checked. - -QUALITY >> DURATION. We prioritize correctness over speed. - -Which mode? [I/A]: - - - Read user input - - - Set execution_mode = "interactive_checkpoint" - -✅ Interactive Checkpoint Mode Selected - -After each story implementation: -- Full quality report displayed -- You approve before next story begins -- Allows real-time oversight and intervention - - - - - Set execution_mode = "fully_autonomous" - -⚕️ Fully Autonomous Mode Selected - HOSPITAL-GRADE STANDARDS ENFORCED - -Quality enhancements for autonomous mode: -✅ Double validation at each step -✅ Comprehensive error checking -✅ Detailed audit trail generation -✅ Zero-tolerance for shortcuts -✅ Hospital-grade code verification - -Processing will continue until ALL selected stories complete. -NO human interaction required until completion. - -QUALITY OVER SPEED: Taking time to ensure correctness. - - Activate hospital_grade_mode = true - Set quality_multiplier = 1.5 - - - Store execution_mode for use in subsequent steps - - - + Read {sprint_status} file Parse metadata: project, project_key, tracking_system Parse development_status map - Filter stories with status = "ready-for-dev" + Filter stories with status = "ready-for-dev" OR "backlog" Exclude entries that are epics (keys starting with "epic-") or retrospectives (keys ending with "-retrospective") + Group by status: ready_for_dev_stories, backlog_stories Further filter stories to only include those starting with "{filter_by_epic}-" @@ -140,17 +68,19 @@ QUALITY OVER SPEED: Taking time to ensure correctness. Sort filtered stories by epic number, then story number (e.g., 1-1, 1-2, 2-1, 3-1) Store as: ready_for_dev_stories (list of story keys) - - ✅ No ready-for-dev stories found. + + ✅ No available stories found (ready-for-dev or backlog). All stories are either in-progress, review, or done! -Run `/bmad:bmm:workflows:sprint-status` to see current status. +Run `/bmad_bmm_sprint-status` to see current status. Exit workflow + + Combine both lists: available_stories = ready_for_dev_stories + backlog_stories - + Read comment field for each story from sprint-status.yaml (text after # on the same line) For each story, verify story file exists using COMPREHENSIVE naming pattern detection: @@ -193,30 +123,43 @@ Run `/bmad:bmm:workflows:sprint-status` to see current status. Mark stories as: ✅ (file exists), ❌ (file missing), 🔄 (already implemented but not marked done) -## 📦 Ready-for-Dev Stories ({{count}}) +## 📦 Available Stories ({{count}}) {{#if filter_by_epic}} **Filtered by Epic {{filter_by_epic}}** {{/if}} +{{#if ready_for_dev_stories.length > 0}} +### Ready for Dev ({{ready_for_dev_stories.length}}) {{#each ready_for_dev_stories}} -{{@index}}. **{{key}}** {{file_status_icon}} +{{@index}}. **{{key}}** {{file_status_icon}} {{sprint_status}} {{#if comment}}→ {{comment}}{{/if}} {{#if file_path}} File: {{file_path}}{{/if}} {{/each}} +{{/if}} + +{{#if backlog_stories.length > 0}} +### Backlog ({{backlog_stories.length}}) +{{#each backlog_stories}} +{{@index}}. **{{key}}** {{file_status_icon}} [BACKLOG] + {{#if comment}}→ {{comment}}{{/if}} + {{#if file_path}} File: {{file_path}}{{else}} Needs story creation{{/if}} +{{/each}} +{{/if}} --- **Legend:** - ✅ Story file exists, ready to implement - 🔄 Already implemented, just needs status update - ❌ Story file missing, needs creation first +- [BACKLOG] Story needs gap analysis before implementation **Total:** {{count}} stories available **Max batch size:** {{max_stories}} stories - + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔍 VALIDATING STORY FILES @@ -458,7 +401,7 @@ Run `/bmad:bmm:workflows:sprint-status` to see status. - + ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📊 SCORING STORY COMPLEXITY @@ -580,7 +523,7 @@ Run /create-story or /validate-create-story to create proper story files, then r - + **Select stories to process:** @@ -627,14 +570,83 @@ Only the first {{max_stories}} will be processed. ## 📋 Selected Stories ({{count}}) {{#each selected_stories}} -{{@index}}. {{key}} +{{@index}}. {{key}} {{#if is_backlog}}[BACKLOG - needs story creation]{{/if}} {{/each}} **Estimated time:** {{count}} stories × 30-60 min/story = {{estimated_hours}} hours - + + +╔═══════════════════════════════════════════════════════════════════╗ +║ BATCH SUPER-DEV: Execution Mode Selection ║ +╚═══════════════════════════════════════════════════════════════════╝ + +⚕️ HOSPITAL-GRADE CODE STANDARDS ACTIVE ⚕️ +Lives are at stake. All code must meet safety-critical reliability standards. + + + +**Choose execution mode:** + +[I] INTERACTIVE CHECKPOINT MODE (Recommended for oversight) + - After each story completes, pause for your review + - You approve before proceeding to next story + - Allows course correction if issues detected + - Best for: Critical features, new team members, complex epics + +[A] FULLY AUTONOMOUS MODE (Maximum quality, zero interaction) + - Process all selected stories without pausing + - ENHANCED quality standards (even more rigorous than interactive) + - Hospital-grade code verification at every step + - NO shortcuts, NO skimping, NO corner-cutting + - Best for: Well-defined stories, experienced implementation + +⚠️ AUTONOMOUS MODE = HIGHER QUALITY, NOT LOWER +In autonomous mode, quality standards are ENHANCED because there's no +human oversight in the loop. Every decision is double-checked. + +QUALITY >> DURATION. We prioritize correctness over speed. + +Which mode? [I/A]: + + + Read user input + + + Set execution_mode = "interactive_checkpoint" + +✅ Interactive Checkpoint Mode Selected + +After each story implementation: +- Full quality report displayed +- You approve before next story begins +- Allows real-time oversight and intervention + + + + + Set execution_mode = "fully_autonomous" + +⚕️ Fully Autonomous Mode Selected - HOSPITAL-GRADE STANDARDS ENFORCED + +Quality enhancements for autonomous mode: +✅ Double validation at each step +✅ Comprehensive error checking +✅ Detailed audit trail generation +✅ Zero-tolerance for shortcuts +✅ Hospital-grade code verification + +Processing will continue until ALL selected stories complete. +NO human interaction required until completion. + +QUALITY OVER SPEED: Taking time to ensure correctness. + + Activate hospital_grade_mode = true + Set quality_multiplier = 1.5 + + **How should these stories be processed?** @@ -739,6 +751,22 @@ Enter number (2-10) or 'all': ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + + 📝 Story {{story_key}} is in BACKLOG - creating story file with gap analysis... + + Invoke workflow: /bmad:bmm:workflows:create-story-with-gap-analysis + Parameters: story_key={{story_key}}, epic={{epic_num}} + + + ❌ FAILED: Could not create story {{story_key}} + Increment failed counter + Add story_key to failed_stories list + Continue to next story if continue_on_failure==true + + + ✅ Story file created: {{story_key}} + + Invoke workflow: /bmad:bmm:workflows:super-dev-pipeline Parameters: mode=batch, story_key={{story_key}}, complexity_level={{story_key}}.complexity.level