From e59c7b79ed8eda52e1ff3ae85bcefe4b814b72dd Mon Sep 17 00:00:00 2001 From: sjennings Date: Sat, 20 Dec 2025 19:30:17 -0600 Subject: [PATCH] fix(bmgd): correct workflow-status filename and add sprint-planning update (#1172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(bmgd): add workflow status update to game-architecture completion The game-architecture workflow was not updating the bmgd-workflow-status.yaml file on completion, unlike other BMGD workflows (narrative, brainstorm-game). Changes: - Add step 4 "Update Workflow Status" to update create-architecture status - Renumber subsequent steps (5-8 → 6-9) - Add success metric for workflow status update - Add failure condition for missing status update * feat(bmgd): add generate-project-context workflow for game development Adds a new workflow to create optimized project-context.md files for AI agent consistency in game development projects. New workflow files: - workflow.md: Main workflow entry point - project-context-template.md: Template for context file - steps/step-01-discover.md: Context discovery & initialization - steps/step-02-generate.md: Rules generation with A/P/C menus - steps/step-03-complete.md: Finalization & optimization Integration: - Added generate-project-context trigger to game-architect agent menu - Added project context creation option to game-architecture completion step - Renumbered steps 6-9 → 7-10 to accommodate new step 6 Adapted from BMM generate-project-context with game-specific: - Engine patterns (Unity, Unreal, Godot) - Performance and frame budget rules - Platform-specific requirements - Game testing patterns * fix(bmgd): correct workflow-status filename and add sprint-planning update - Fix all BMGD workflows to reference bmgd-workflow-status.yaml instead of bmm-workflow-status.yaml - Add workflow-status update to sprint-planning workflow completion Affected workflows: - brainstorm-game (instructions.md, step-01-init.md, step-04-complete.md) - game-brief (instructions.md) - narrative (instructions-narrative.md, step-11-complete.md) - game-architecture (instructions.md) - sprint-planning (instructions.md) --------- Co-authored-by: Scott Jennings Co-authored-by: Brian --- .../1-preproduction/brainstorm-game/instructions.md | 6 +++--- .../brainstorm-game/steps/step-01-init.md | 2 +- .../brainstorm-game/steps/step-04-complete.md | 2 +- .../workflows/1-preproduction/game-brief/instructions.md | 6 +++--- .../2-design/narrative/instructions-narrative.md | 6 +++--- .../2-design/narrative/steps/step-11-complete.md | 2 +- .../3-technical/game-architecture/instructions.md | 6 +++--- .../4-production/sprint-planning/instructions.md | 9 +++++++++ 8 files changed, 24 insertions(+), 15 deletions(-) diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md index 2523b82b..f3a4602e 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md @@ -8,7 +8,7 @@ - Check if {output_folder}/bmm-workflow-status.yaml exists + Check if {output_folder}/bmgd-workflow-status.yaml exists No workflow status file found. Game brainstorming is optional - you can continue without status tracking. @@ -16,7 +16,7 @@ - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Parse workflow_status section Check status of "brainstorm-game" workflow Get project_level from YAML metadata @@ -85,7 +85,7 @@ - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Find workflow_status key "brainstorm-game" ONLY write the file path as the status value - no other text, notes, or metadata Update workflow_status["brainstorm-game"] = "{output_folder}/bmm-brainstorming-session-{{date}}.md" diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md index 6d21cbc9..6075aaa2 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-01-init.md @@ -58,7 +58,7 @@ Validate workflow readiness, check for workflow status tracking, and prepare for **Search for workflow status file:** -Check if `{output_folder}/bmm-workflow-status.yaml` exists. +Check if `{output_folder}/bmgd-workflow-status.yaml` exists. **If status file NOT found:** diff --git a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md index f25576a1..fce8662a 100644 --- a/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md +++ b/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/steps/step-04-complete.md @@ -123,7 +123,7 @@ Or type 'all' to see the complete document." **If not in standalone mode:** -Load `{output_folder}/bmm-workflow-status.yaml` and: +Load `{output_folder}/bmgd-workflow-status.yaml` and: - Update `brainstorm-game` status to the output file path - Preserve all comments and structure diff --git a/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md b/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md index 99c0102f..291a2952 100644 --- a/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md +++ b/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md @@ -12,7 +12,7 @@ -Check if {output_folder}/bmm-workflow-status.yaml exists +Check if {output_folder}/bmgd-workflow-status.yaml exists No workflow status file found. Game brief is optional - you can continue without status tracking. @@ -20,7 +20,7 @@ - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Parse workflow_status section Check status of "game-brief" workflow Get project_level from YAML metadata @@ -328,7 +328,7 @@ This brief will serve as the primary input for creating the Game Design Document - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Find workflow_status key "game-brief" ONLY write the file path as the status value - no other text, notes, or metadata Update workflow_status["game-brief"] = "{output_folder}/bmm-game-brief-{{game_name}}-{{date}}.md" diff --git a/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md b/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md index 793f5179..12cbe75c 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +++ b/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md @@ -12,7 +12,7 @@ ⚠️ CHECKPOINT PROTOCOL: After EVERY tag, you MUST follow workflow.xml substep 2c: SAVE content to file immediately → SHOW checkpoint separator (━━━━━━━━━━━━━━━━━━━━━━━) → DISPLAY generated content → PRESENT options [a]Advanced Elicitation/[c]Continue/[p]Party-Mode/[y]YOLO → WAIT for user response. Never batch saves or skip checkpoints. -Check if {output_folder}/bmm-workflow-status.yaml exists +Check if {output_folder}/bmgd-workflow-status.yaml exists No workflow status file found. Narrative workflow is optional - you can continue without status tracking. @@ -20,7 +20,7 @@ - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Parse workflow_status section Check status of "narrative" workflow Get project_level from YAML metadata @@ -558,7 +558,7 @@ Which would you like? - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Find workflow_status key "narrative" ONLY write the file path as the status value - no other text, notes, or metadata Update workflow_status["narrative"] = "{output_folder}/bmm-narrative-{{game_name}}-{{date}}.md" diff --git a/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md b/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md index 487279bf..9df3351f 100644 --- a/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md +++ b/src/modules/bmgd/workflows/2-design/narrative/steps/step-11-complete.md @@ -160,7 +160,7 @@ narrativeComplexity: '{{complexity}}' **If not in standalone mode:** -Load `{output_folder}/bmm-workflow-status.yaml` and: +Load `{output_folder}/bmgd-workflow-status.yaml` and: - Update `narrative` status to the output file path - Preserve all comments and structure diff --git a/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md b/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md index 1cde1f3b..20bb9a1f 100644 --- a/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +++ b/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md @@ -15,7 +15,7 @@ ⚠️ CHECKPOINT PROTOCOL: After EVERY tag, you MUST follow workflow.xml substep 2c: SAVE content to file immediately → SHOW checkpoint separator (━━━━━━━━━━━━━━━━━━━━━━━) → DISPLAY generated content → PRESENT options [a]Advanced Elicitation/[c]Continue/[p]Party-Mode/[y]YOLO → WAIT for user response. Never batch saves or skip checkpoints. -Check if {output_folder}/bmm-workflow-status.yaml exists +Check if {output_folder}/bmgd-workflow-status.yaml exists No workflow status file found. Decision Architecture can run standalone or as part of BMM workflow path. @@ -30,7 +30,7 @@ - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Parse workflow_status section Check status of "create-architecture" workflow Get project_level from YAML metadata @@ -662,7 +662,7 @@ Enforcement: "All agents MUST follow this pattern" Save document to {output_folder}/architecture.md - Load the FULL file: {output_folder}/bmm-workflow-status.yaml + Load the FULL file: {output_folder}/bmgd-workflow-status.yaml Find workflow_status key "create-architecture" ONLY write the file path as the status value - no other text, notes, or metadata Update workflow_status["create-architecture"] = "{output_folder}/bmm-architecture-{{date}}.md" diff --git a/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md b/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md index a045f599..ab959d2b 100644 --- a/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +++ b/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md @@ -177,6 +177,15 @@ development_status: 3. Agents will update statuses as they work 4. Re-run this workflow to refresh auto-detected statuses +Update workflow status upon completion + +Load the FULL file: {output_folder}/bmgd-workflow-status.yaml +Find workflow_status key "sprint-planning" +ONLY write the file path as the status value - no other text, notes, or metadata +Update workflow_status["sprint-planning"] = "{status_file}" +Save file, preserving ALL comments and structure including STATUS DEFINITIONS + +