sprint status helpers, remove workflow integration from phase 4 items in prep of using sprint-planning status

This commit is contained in:
Brian Madison
2025-10-21 22:25:26 -05:00
parent 71330b6aac
commit abaa24513a
28 changed files with 1555 additions and 893 deletions

View File

@@ -8,86 +8,39 @@
<workflow>
<critical>This workflow is run by SM agent AFTER user reviews a drafted story and confirms it's ready for development</critical>
<critical>NO SEARCHING - SM agent reads status file TODO section to know which story was drafted</critical>
<critical>Simple workflow: Update story file status, move story TODO → IN PROGRESS, move next story BACKLOG → TODO</critical>
<critical>Simple workflow: Update story file status to Ready</critical>
<step n="1" goal="Get TODO story from status file">
<step n="1" goal="Locate story and update status">
<invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
<param>mode: data</param>
<param>data_request: next_story</param>
</invoke-workflow>
<action>If {{story_path}} explicitly provided → use it</action>
<action>Otherwise list story-\*.md files from {{story_dir}}, sort by modified time</action>
<ask>Select the drafted story to mark as Ready, or enter path:</ask>
<check if="status_exists == false OR todo_story_id == ''">
<output>❌ No status file or no TODO story found.
This workflow requires an active status file with a TODO story.
Run `workflow-status` to check your project state.</output>
<action>Exit workflow</action>
</check>
<action>Use extracted story information:</action>
- {{todo_story_id}}: Story to mark ready
- {{todo_story_title}}: Story title
- {{todo_story_file}}: Story file path
- {{status_file_path}}: Status file to update
</step>
<step n="2" goal="Update the story file status">
<action>Read the story file: {story_dir}/{todo_story_file}</action>
<action>Read the story file: {{story_path}}</action>
<action>Extract story ID and title from the file</action>
<action>Find the "Status:" line (usually at the top)</action>
<action>Update story file:</action>
- Change: `Status: Draft`
- Change: `Status: Draft` or similar
- To: `Status: Ready`
<action>Save the story file</action>
</step>
<step n="3" goal="Update status file - move story TODO → IN PROGRESS">
<step n="2" goal="Confirm completion to user">
<invoke-workflow path="{project-root}/bmad/bmm/workflows/workflow-status">
<param>mode: update</param>
<param>action: start_story</param>
</invoke-workflow>
<output>**Story Marked Ready for Development, {user_name}!**
<check if="success == false">
<output>⚠️ Failed to update status: {{error}}</output>
<output>Story file was updated, but status file update failed.</output>
</check>
✅ Story file updated: `{{story_file}}` → Status: Ready
<check if="success == true">
<output>Status updated: Story {{in_progress_story}} ready for development.</output>
<check if="next_todo != ''">
<output>Next TODO: {{next_todo}}</output>
</check>
</check>
**Story Details:**
</step>
<step n="4" goal="Confirm completion to user">
<action>Display summary</action>
**Story Marked Ready for Development, {user_name}!**
✅ Story file updated: `{{todo_story_file}}` → Status: Ready
✅ Status file updated: Story moved TODO → IN PROGRESS
{{#if next_story}}✅ Next story moved: BACKLOG → TODO ({{next_story_id}}: {{next_story_title}}){{/if}}
{{#if no_more_stories}}✅ All stories have been drafted - backlog is empty{{/if}}
**Current Story (IN PROGRESS):**
- **ID:** {{todo_story_id}}
- **Title:** {{todo_story_title}}
- **File:** `{{todo_story_file}}`
- **ID:** {{story_id}}
- **Title:** {{story_title}}
- **File:** `{{story_file}}`
- **Status:** Ready for development
**Next Steps:**