From 2e6e9af33b681c060bc80afe7dfeb6aee9d1e125 Mon Sep 17 00:00:00 2001 From: Alex Verkhovsky Date: Sat, 24 Jan 2026 21:58:41 -0800 Subject: [PATCH] fix(workflow): make workflow.xml format-agnostic with explicit lookup order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix party-mode bug: reference workflow.md (actual file) not workflow.yaml - Introduce {workflow_config_file} variable with explicit lookup order: workflow.md (preferred) → workflow.yaml (legacy) → error if neither - All subsequent references now use the clean variable pattern - Supports transition period where both .yaml and .md formats coexist Co-Authored-By: Claude Opus 4.5 --- src/core/tasks/workflow.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/tasks/workflow.xml b/src/core/tasks/workflow.xml index 137b6dd5..29480f06 100644 --- a/src/core/tasks/workflow.xml +++ b/src/core/tasks/workflow.xml @@ -19,7 +19,8 @@ - Read workflow.yaml from provided path + Locate workflow config file from provided path: check for workflow.md first (preferred), then workflow.yaml (legacy). If neither exists, halt with error. Store resolved path in variable: {workflow_config_file} + Read {workflow_config_file} Load config_source (REQUIRED for all modules) Load external config from config_source path Resolve all {config_source}: references with values from config @@ -81,7 +82,7 @@ Continue to next step - Start the party-mode workflow {project-root}/_bmad/core/workflows/party-mode/workflow.yaml + Start the party-mode workflow {project-root}/_bmad/core/workflows/party-mode/workflow.md @@ -138,11 +139,11 @@ Intelligently load project files (whole or sharded) based on workflow's input_file_patterns configuration - Only execute if workflow.yaml contains input_file_patterns section + Only execute if {workflow_config_file} contains input_file_patterns section - Read input_file_patterns from loaded workflow.yaml + Read input_file_patterns from {workflow_config_file} For each pattern group (prd, architecture, epics, etc.), note the load_strategy if present @@ -226,7 +227,7 @@ • This is the complete workflow execution engine • You MUST Follow instructions exactly as written • The workflow execution engine is governed by: {project-root}/_bmad/core/tasks/workflow.xml - • You MUST have already loaded and processed: {installed_path}/workflow.yaml + • You MUST have already loaded and processed {workflow_config_file} • This workflow uses INTENT-DRIVEN PLANNING - adapt organically to product type and context • YOU ARE FACILITATING A CONVERSATION With a user to produce a final document step by step. The whole process is meant to be collaborative helping the user flesh out their ideas. Do not rush or optimize and skip any section.