From 994f2516871f31745bbdbdae11af4314fa0ff054 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sat, 25 Oct 2025 10:44:46 -0500 Subject: [PATCH] workflow phase 4 only has single sprint planning item in it now --- .../bmm/workflows/workflow-status/README.md | 19 +++--- .../workflow-status/init/instructions.md | 9 --- .../workflows/workflow-status/instructions.md | 7 -- .../paths/brownfield-level-0.yaml | 27 +------- .../paths/brownfield-level-1.yaml | 32 +--------- .../paths/brownfield-level-2.yaml | 36 +---------- .../paths/brownfield-level-3.yaml | 59 +---------------- .../paths/brownfield-level-4.yaml | 63 +----------------- .../workflow-status/paths/game-design.yaml | 64 +------------------ .../paths/greenfield-level-0.yaml | 25 +------- .../paths/greenfield-level-1.yaml | 34 +--------- .../paths/greenfield-level-2.yaml | 44 +------------ .../paths/greenfield-level-3.yaml | 53 +-------------- .../paths/greenfield-level-4.yaml | 55 +--------------- 14 files changed, 33 insertions(+), 494 deletions(-) diff --git a/src/modules/bmm/workflows/workflow-status/README.md b/src/modules/bmm/workflows/workflow-status/README.md index 616a1981..05735ecc 100644 --- a/src/modules/bmm/workflows/workflow-status/README.md +++ b/src/modules/bmm/workflows/workflow-status/README.md @@ -70,8 +70,6 @@ PROJECT_LEVEL: 2 FIELD_TYPE: greenfield CURRENT_PHASE: 2-Planning CURRENT_WORKFLOW: prd -TODO_STORY: story-1.2.md -IN_PROGRESS_STORY: story-1.1.md NEXT_ACTION: Continue PRD NEXT_COMMAND: prd NEXT_AGENT: pm @@ -79,9 +77,9 @@ NEXT_AGENT: pm Any agent can instantly grep what they need: -- SM: `grep 'TODO_STORY:' status.md` -- DEV: `grep 'IN_PROGRESS_STORY:' status.md` - Any: `grep 'NEXT_ACTION:' status.md` +- Any: `grep 'CURRENT_PHASE:' status.md` +- Any: `grep 'NEXT_COMMAND:' status.md` ## Project Levels @@ -140,7 +138,7 @@ The init workflow intelligently detects: ``` Agent: workflow-status -Result: "TODO: story-1.2.md, Next: create-story" +Result: "Current: Phase 2 - Planning, Next: prd (pm agent)" ``` ### New Project Setup @@ -208,12 +206,17 @@ Instead of complex if/else logic: Other workflows read the status to coordinate: -- `create-story` reads TODO_STORY -- `dev-story` reads IN_PROGRESS_STORY - Any workflow can check CURRENT_PHASE +- Workflows can verify prerequisites are complete - All agents can ask "what should I do?" -The status file is the single source of truth for project state and the hub that keeps all agents synchronized. +**Phase 4 (Implementation):** + +- workflow-status only tracks sprint-planning completion +- After sprint-planning, all story/epic tracking happens in the sprint plan output file +- Phase 4 workflows do NOT read/write workflow-status (except sprint-planning for prerequisite verification) + +The status file is the single source of truth for Phases 1-3 and the hub that keeps all agents synchronized. ## Benefits diff --git a/src/modules/bmm/workflows/workflow-status/init/instructions.md b/src/modules/bmm/workflows/workflow-status/init/instructions.md index f30c1479..7eb36299 100644 --- a/src/modules/bmm/workflows/workflow-status/init/instructions.md +++ b/src/modules/bmm/workflows/workflow-status/init/instructions.md @@ -154,15 +154,6 @@ Is that correct? (y/n or tell me what's different) phase_2_complete phase_3_complete phase_4_complete -ordered_story_list = "[]" -todo_story -todo_title -in_progress_story -in_progress_title -completed_story_list = "[]" -backlog_count -done_count -total_stories Ready to create your workflow status file? (y/n) diff --git a/src/modules/bmm/workflows/workflow-status/instructions.md b/src/modules/bmm/workflows/workflow-status/instructions.md index e068b082..99a569d4 100644 --- a/src/modules/bmm/workflows/workflow-status/instructions.md +++ b/src/modules/bmm/workflows/workflow-status/instructions.md @@ -77,13 +77,6 @@ Parse these fields: **Phase:** {{CURRENT_PHASE}} **Current Workflow:** {{CURRENT_WORKFLOW}} -{{#if CURRENT_PHASE == "4-Implementation"}} -**Development Queue:** - -- TODO: {{TODO_STORY}} - {{TODO_TITLE}} -- IN PROGRESS: {{IN_PROGRESS_STORY}} - {{IN_PROGRESS_TITLE}} - {{/if}} - ## 🎯 Your Options {{#if CURRENT_WORKFLOW != "complete"}} diff --git a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml index 6c9458a7..0a0189b9 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-0.yaml @@ -44,32 +44,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - note: "Include existing code context" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - -story_naming: "story-.md" -story_example: "story-fix-auth-bug.md" -max_stories: 1 -brownfield_note: "Ensure changes align with existing patterns" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml index 65b3c121..5a4bf7ee 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml @@ -48,37 +48,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - story_loop: "for_each_story" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - note: "Include existing code context" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - -story_naming: "story-.md" -story_example: "story-add-auth.md, story-update-dashboard.md" -max_stories: 10 -brownfield_note: "Ensure changes align with existing patterns and architecture" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml index 45839217..d5671f07 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml @@ -66,41 +66,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - story_loop: "for_each_story" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - note: "Include existing code context" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - -story_naming: "story-.md" -story_example: "story-user-dashboard.md, story-api-integration.md" -max_stories: 15 -brownfield_note: "Balance new features with existing system stability" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml index 5ff400ac..8f7ef32b 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml @@ -85,64 +85,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - epic_loop: "for_each_epic" - epic_iteration: - setup_workflows: - - id: "tech-spec" - required: true - agent: "architect" - command: "tech-spec" - note: "Must respect existing patterns" - - story_loop: "for_each_story_in_epic" - story_workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - note: "Heavy emphasis on existing code context" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - note: "Ensure no breaking changes" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - note: "Check integration points" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - - completion_workflows: - - id: "integration-test" - required: true - agent: "dev" - command: "integration-test" - - id: "retrospective" - required: true - agent: "sm" - command: "retrospective" - -story_naming: "story-..md" -brownfield_note: "All changes must integrate seamlessly with existing system" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml index 750392f7..1f7565fc 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-4.yaml @@ -79,68 +79,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - epic_loop: "for_each_epic" - epic_iteration: - setup_workflows: - - id: "tech-spec" - required: true - agent: "sm" - command: "tech-spec" - note: "JIT per epic - creates stories considering existing code" - - story_loop: "for_each_story_in_epic" - story_workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - note: "Extensive existing code context required" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - note: "Rigorous review for enterprise changes" - - id: "integration-test" - optional: true - agent: "dev" - command: "integration-test" - note: "Test integration with existing systems" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - - completion_workflows: - - id: "retrospective" - required: true - agent: "sm" - command: "retrospective" - note: "Critical for enterprise-scale learning" - -story_naming: "story-..md" -story_example: "story-1.1.md, story-2.3.md" -epic_structure: "JIT tech-specs per epic create stories" -enterprise_note: "Maintain system stability while implementing major changes" -brownfield_note: "Extensive regression testing and backward compatibility required" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml b/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml index 0c756f61..d92e6852 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/game-design.yaml @@ -62,72 +62,12 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - note: "Implementation varies by game complexity" - level_based_implementation: - level_0_1: - story_loop: "for_each_story" - workflows: - - id: "create-story" - required: true - agent: "sm" - - id: "story-context" - required: true - agent: "sm" - - id: "dev-story" - required: true - agent: "dev" - - id: "story-done" - required: true - agent: "dev" - level_2_4: - feature_loop: "for_each_feature" - feature_workflows: - - id: "tech-spec" - optional: true - agent: "architect" - note: "Per major feature" - story_loop: "for_each_story_in_feature" - story_workflows: - - id: "create-story" - required: true - agent: "sm" - - id: "story-context" - required: true - agent: "sm" - - id: "validate-story-context" - optional: true - agent: "sm" - - id: "dev-story" - required: true - agent: "dev" - - id: "review-story" - recommended: true - agent: "dev" - - id: "story-done" - required: true - agent: "dev" - feature_completion: - - id: "playtest" - required: true - agent: "game-designer" - command: "playtest" - - id: "retrospective" - optional: true - agent: "sm" - -story_naming: - level_0_1: "story-.md" - level_2_4: "story-..md" -story_examples: - - "story-player-movement.md" - - "story-inventory-1.md" - - "story-combat-system-3.md" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" special_considerations: - "Iterative playtesting throughout development" diff --git a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml index 27ce26fb..22fdc077 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-0.yaml @@ -37,30 +37,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - -story_naming: "story-.md" -story_example: "story-fix-login.md" -max_stories: 1 + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml index 6bc60819..5864f144 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml @@ -41,39 +41,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - story_loop: "for_each_story" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - -story_naming: "story--<n>.md" -story_example: "story-oauth-integration-1.md" -max_stories: 3 + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml index 1e75bc4c..fbd5af70 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml @@ -70,49 +70,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - story_loop: "for_each_story" - workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - epic_completion: - - id: "retrospective" - optional: true - agent: "sm" - command: "retrospective" - note: "After each epic completes" - -story_naming: "story-<epic>.<story>.md" -story_example: "story-1.1.md, story-2.3.md" -epic_structure: "Numbered epics with numbered stories" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml index e36fb3f4..73999b70 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-3.yaml @@ -65,58 +65,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - epic_loop: "for_each_epic" - epic_iteration: - setup_workflows: - - id: "tech-spec" - required: true - agent: "architect" - command: "tech-spec" - note: "JIT per epic - creates stories for that epic" - - story_loop: "for_each_story_in_epic" - story_workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - - completion_workflows: - - id: "retrospective" - recommended: true - agent: "sm" - command: "retrospective" - -story_naming: "story-<epic>.<story>.md" -story_example: "story-1.1.md, story-2.3.md" -epic_structure: "JIT tech-specs per epic create stories" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status" diff --git a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml index a0d3b151..3bde6fee 100644 --- a/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +++ b/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml @@ -67,60 +67,9 @@ phases: - phase: 4 name: "Implementation" required: true - phase_initialization: + workflows: - id: "sprint-planning" required: true agent: "sm" command: "sprint-planning" - note: "Initialize sprint tracking - run once when entering Phase 4" - epic_loop: "for_each_epic" - epic_iteration: - setup_workflows: - - id: "tech-spec" - required: true - agent: "architect" - command: "tech-spec" - note: "JIT per epic - creates stories for that epic" - - story_loop: "for_each_story_in_epic" - story_workflows: - - id: "create-story" - required: true - agent: "sm" - command: "create-story" - - id: "story-context" - required: true - agent: "sm" - command: "story-context" - - id: "validate-story-context" - optional: true - agent: "sm" - command: "validate-story-context" - - id: "story-ready" - optional: true - agent: "sm" - command: "story-ready" - - id: "dev-story" - required: true - agent: "dev" - command: "dev-story" - - id: "review-story" - optional: true - agent: "dev" - command: "review-story" - - id: "story-done" - required: true - agent: "dev" - command: "story-done" - - completion_workflows: - - id: "retrospective" - required: true - agent: "sm" - command: "retrospective" - note: "Critical for enterprise-scale learning" - -story_naming: "story-<epic>.<story>.md" -story_example: "story-1.1.md, story-2.3.md" -epic_structure: "JIT tech-specs per epic create stories" -enterprise_note: "Rigorous validation and reviews required at scale" + note: "Creates sprint plan with all stories - subsequent work tracked in sprint plan output, not workflow-status"