fix: ensure absolute path resolution for monorepo context checks

This commit is contained in:
sno 2026-02-18 09:28:17 +01:00
parent a023178c0c
commit 5ae2cad5a3
20 changed files with 21 additions and 21 deletions

View File

@ -24,11 +24,11 @@ Load and read full config from {main_config} and resolve basic variables.
2. **Wait for Input.** 2. **Wait for Input.**
3. **Process Input:** 3. **Process Input:**
- **Case: CLEAR**: - **Case: CLEAR**:
- Delete file: `_bmad/.current_project` - Delete file: `{project-root}/_bmad/.current_project`
- Output: "✅ Project context cleared. Artifacts will go to root `_bmad-output/`." - Output: "✅ Project context cleared. Artifacts will go to root `_bmad-output/`."
- **Case: Path Provided**: - **Case: Path Provided**:
- **Sanitize:** Remove leading `/` or `_bmad-output/` if present in the input. - **Sanitize:** Remove leading `/` or `_bmad-output/` if present in the input.
- Write file: `_bmad/.current_project` with content `<sanitized_path>` - Write file: `{project-root}/_bmad/.current_project` with content `<sanitized_path>`
- Output: "✅ Project context set to: `<sanitized_path>`. Artifacts will go to `_bmad-output/<sanitized_path>/`." - Output: "✅ Project context set to: `<sanitized_path>`. Artifacts will go to `_bmad-output/<sanitized_path>/`."
### 3. Verification ### 3. Verification

View File

@ -52,7 +52,7 @@ This uses **step-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -21,7 +21,7 @@ main_config: '{project-root}/_bmad/bmm/config.yaml'
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -21,7 +21,7 @@ main_config: '{project-root}/_bmad/bmm/config.yaml'
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -51,7 +51,7 @@ This uses **step-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -51,7 +51,7 @@ This uses **step-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`
- `project_name`, `output_folder`, `planning_artifacts`, `user_name` - `project_name`, `output_folder`, `planning_artifacts`, `user_name`

View File

@ -51,7 +51,7 @@ This uses **step-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -30,7 +30,7 @@ This uses **micro-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -51,7 +51,7 @@ This uses **step-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -16,7 +16,7 @@
<step n="1" goal="Load story and discover changes"> <step n="1" goal="Load story and discover changes">
<check if="_bmad/.current_project exists"> <check if="{project-root}/_bmad/.current_project exists">
<action>Read content as project_suffix</action> <action>Read content as project_suffix</action>
<action>Override output_folder to {project-root}/_bmad-output/{project_suffix}</action> <action>Override output_folder to {project-root}/_bmad-output/{project_suffix}</action>
</check> </check>

View File

@ -8,7 +8,7 @@
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -9,7 +9,7 @@
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -7,7 +7,7 @@
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`
<critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml</critical> <critical>You MUST have already loaded and processed: {project-root}/_bmad/bmm/workflows/4-implementation/sprint-status/workflow.yaml</critical>

View File

@ -84,7 +84,7 @@
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -255,7 +255,7 @@ Detailed exhaustive analysis of specific areas:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`
- Related code and reuse opportunities - Related code and reuse opportunities

View File

@ -100,7 +100,7 @@ Your choice [1/2/3]:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`
json, etc.) json, etc.)

View File

@ -30,7 +30,7 @@ This uses **micro-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -23,7 +23,7 @@ Check project for existing test framework:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project exists`. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -37,7 +37,7 @@ This uses **micro-file architecture** for disciplined execution:
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`

View File

@ -30,7 +30,7 @@ This uses **micro-file architecture** with **sequential conversation orchestrati
Load and read full config from {main_config} and resolve basic variables. Load and read full config from {main_config} and resolve basic variables.
**Monorepo Context Check:** **Monorepo Context Check:**
1. Check if `_bmad/.current_project` exists. 1. Check if `{project-root}/_bmad/.current_project` exists.
2. If it exists, read its content as `{project_suffix}` and override output folder: 2. If it exists, read its content as `{project_suffix}` and override output folder:
- `output_folder`: `{project-root}/_bmad-output/{project_suffix}` - `output_folder`: `{project-root}/_bmad-output/{project_suffix}`