sprint status story location relative

This commit is contained in:
Brian Madison 2025-10-21 18:41:40 -05:00
parent 1b1947d240
commit 949d818db8
4 changed files with 76 additions and 44 deletions

View File

@ -1,21 +1,26 @@
# Sprint Status - Generated 2025-10-20 # generated: 2025-10-21
# Project: MyPlantFamily # project: MyPlantFamily
# Project Key: MyPlantFamily # project_key: MyPlantFamily
# Language: English # tracking_system: file-system
# # story_location: {project-root}/docs/stories
# TRACKING SYSTEM:
# ================
# System: file-system
# Story Location: /Users/brianmadison/dev/BMAD-METHOD/docs/stories
#
# STATUS DEFINITIONS: # STATUS DEFINITIONS:
# ================== # ==================
# Epic Status: # Epic Status:
# Epic: backlog → contexted # - backlog: Epic exists in epic file but not contexted
# - contexted: Epic tech context created (required before drafting stories)
#
# Story Status: # Story Status:
# Story: backlog → drafted → ready-for-dev → in-progress → review → done # - backlog: Story only exists in epic file
# - drafted: Story file created in stories folder
# - ready-for-dev: Draft approved and story context created
# - in-progress: Developer actively working on implementation
# - review: Under SM review (via review-story workflow)
# - done: Story completed
#
# Retrospective Status: # Retrospective Status:
# Retrospective: optional → completed # - optional: Can be completed but not required
# - completed: Retrospective has been done
# #
# WORKFLOW NOTES: # WORKFLOW NOTES:
# =============== # ===============
@ -24,6 +29,12 @@
# - SM typically drafts next story after previous one is 'done' to incorporate learnings # - SM typically drafts next story after previous one is 'done' to incorporate learnings
# - Dev moves story to 'review', SM reviews, then Dev moves to 'done' # - Dev moves story to 'review', SM reviews, then Dev moves to 'done'
generated: 2025-10-21
project: MyPlantFamily
project_key: MyPlantFamily
tracking_system: file-system
story_location: "{project-root}/docs/stories"
development_status: development_status:
# Epic 1: Foundation & Core Plant Management # Epic 1: Foundation & Core Plant Management
epic-1: backlog epic-1: backlog

View File

@ -56,12 +56,12 @@ development_status:
**Story file detection:** **Story file detection:**
- Check: `{story_location}/{story-key}.md` (e.g., `stories/1-1-user-authentication.md`) - Check: `{story_location_absolute}/{story-key}.md` (e.g., `stories/1-1-user-authentication.md`)
- If exists → upgrade status to at least `drafted` - If exists → upgrade status to at least `drafted`
**Story context detection:** **Story context detection:**
- Check: `{story_location}/{story-key}-context.md` (e.g., `stories/1-1-user-authentication-context.md`) - Check: `{story_location_absolute}/{story-key}-context.md` (e.g., `stories/1-1-user-authentication-context.md`)
- If exists → upgrade status to at least `ready-for-dev` - If exists → upgrade status to at least `ready-for-dev`
**Preservation rule:** **Preservation rule:**
@ -79,37 +79,54 @@ development_status:
<step n="4" goal="Generate sprint status file"> <step n="4" goal="Generate sprint status file">
<action>Create or update {status_file} with:</action> <action>Create or update {status_file} with:</action>
**File Header:** **File Structure:**
```yaml ```yaml
# Sprint Status - Generated {date} # generated: {date}
# Project: {project_name} # project: {project_name}
# Project Key: {project_key} # project_key: {project_key}
# Language: {document_output_language} # tracking_system: {tracking_system}
# # story_location: {story_location}
# TRACKING SYSTEM:
# ================
# System: {tracking_system}
# Story Location: {story_location}
#
# STATUS DEFINITIONS: # STATUS DEFINITIONS:
# ================== # ==================
# Epic Status: # Epic Status:
# Epic: backlog → contexted # - backlog: Epic exists in epic file but not contexted
# - contexted: Epic tech context created (required before drafting stories)
#
# Story Status: # Story Status:
# Story: backlog → drafted → ready-for-dev → in-progress → review → done # - backlog: Story only exists in epic file
# - drafted: Story file created in stories folder
# - ready-for-dev: Draft approved and story context created
# - in-progress: Developer actively working on implementation
# - review: Under SM review (via review-story workflow)
# - done: Story completed
#
# Retrospective Status: # Retrospective Status:
# Retrospective: optional → completed # - optional: Can be completed but not required
``` # - completed: Retrospective has been done
#
# WORKFLOW NOTES:
# ===============
# - Epics should be 'contexted' before stories can be 'drafted'
# - Stories can be worked in parallel if team capacity allows
# - SM typically drafts next story after previous one is 'done' to incorporate learnings
# - Dev moves story to 'review', SM reviews, then Dev moves to 'done'
**Development Status Section:** generated: { date }
project: { project_name }
project_key: { project_key }
tracking_system: { tracking_system }
story_location: { story_location }
```yaml
development_status: development_status:
# All epics, stories, and retrospectives in order # All epics, stories, and retrospectives in order
``` ```
<action>Write the complete sprint status YAML to {status_file}</action> <action>Write the complete sprint status YAML to {status_file}</action>
<action>CRITICAL: For story_location field, write the variable value EXACTLY as defined in workflow.yaml: "{project-root}/docs/stories"</action>
<action>CRITICAL: Do NOT resolve {project-root} to an absolute path - keep it as the literal string "{project-root}/docs/stories"</action>
<action>CRITICAL: Metadata appears TWICE - once as comments (#) for documentation, once as YAML key:value fields for parsing</action>
<action>Ensure all items are ordered: epic, its stories, its retrospective, next epic...</action> <action>Ensure all items are ordered: epic, its stories, its retrospective, next epic...</action>
</step> </step>

View File

@ -1,17 +1,13 @@
# Sprint Status Template # Sprint Status Template
# This is an EXAMPLE showing the expected format # This is an EXAMPLE showing the expected format
# The actual file will be generated with all epics/stories from your epic files # The actual file will be generated with all epics/stories from your epic files
#
# Generated: {date} # generated: {date}
# Project: {project_name} # project: {project_name}
# Project Key: {project_key} # project_key: {project_key}
# Language: {document_output_language} # tracking_system: {tracking_system}
# # story_location: {story_location}
# TRACKING SYSTEM:
# ================
# System: {tracking_system}
# Story Location: {story_location}
#
# STATUS DEFINITIONS: # STATUS DEFINITIONS:
# ================== # ==================
# Epic Status: # Epic Status:
@ -38,6 +34,13 @@
# - Dev moves story to 'review', SM reviews, then Dev moves to 'done' # - Dev moves story to 'review', SM reviews, then Dev moves to 'done'
# EXAMPLE STRUCTURE (your actual epics/stories will replace these): # EXAMPLE STRUCTURE (your actual epics/stories will replace these):
generated: 05-06-2-2025 21:30
project: My Awesome Project
project_key: jira-1234
tracking_system: file-system
story_location: "{project-root}/docs/stories"
development_status: development_status:
epic-1: contexted epic-1: contexted
1-1-user-authentication: done 1-1-user-authentication: done

View File

@ -24,7 +24,8 @@ variables:
# Tracking system configuration # Tracking system configuration
tracking_system: "file-system" # Options: file-system, Future will support other options from config of mcp such as jira, linear, trello tracking_system: "file-system" # Options: file-system, Future will support other options from config of mcp such as jira, linear, trello
story_location: "{config_source}:dev_story_location" # File path for file-system, Future will support URL for Jira/Linear/Trello story_location: "{project-root}/docs/stories" # Relative path for file-system, Future will support URL for Jira/Linear/Trello
story_location_absolute: "{config_source}:dev_story_location" # Absolute path for file operations
# Source files (file-system only) # Source files (file-system only)
epics_location: "{output_folder}" # Directory containing epic*.md files epics_location: "{output_folder}" # Directory containing epic*.md files