From 15af99990aa3037b2cdbafa3cf89a13644025be3 Mon Sep 17 00:00:00 2001 From: Jonah Schulte Date: Fri, 26 Dec 2025 18:33:16 -0500 Subject: [PATCH] feat: integrate push-all into autonomous-epic workflow - Each story now commits and pushes after completion - Auto-generated commit messages per story - Safety checks run before each push - Continues on push failures (doesn't halt entire epic) - All changes backed up to remote incrementally Ensures epic progress is saved to remote as work completes --- .../autonomous-epic/instructions.xml | 38 +++++++++++++++---- .../autonomous-epic/instructions.xml | 38 +++++++++++++++---- 2 files changed, 60 insertions(+), 16 deletions(-) diff --git a/src/modules/bmgd/workflows/4-production/autonomous-epic/instructions.xml b/src/modules/bmgd/workflows/4-production/autonomous-epic/instructions.xml index c86d64dd..790d8cac 100644 --- a/src/modules/bmgd/workflows/4-production/autonomous-epic/instructions.xml +++ b/src/modules/bmgd/workflows/4-production/autonomous-epic/instructions.xml @@ -250,14 +250,36 @@ Time: {{elapsed_time}} - - - Create git commit for this story: - Message: "feat(epic-{{epic_num}}): complete story {{current_story.key}} - {{story_title}}" - Include: All files changed during story development - - 📝 Committed: {{commit_hash}} - + + 📝 Running push-all to commit and push story changes... + + + Run push-all workflow with auto-accept mode: + - Safety checks run automatically + - Generate commit message based on story + - Commit with message: "feat(epic-{{epic_num}}): complete story {{current_story.key}} - {{story_title}}" + - Push to remote automatically + + ✅ Pushed to remote: {{commit_hash}} + + + + ⚠️ Push-all failed for story {{current_story.key}} + + Error: {{push_error}} + + Story is complete but not pushed to remote yet. + You can push manually later. + + + + 🛑 Halting due to push error (halt_on_error=true) + Update progress file with failure + HALT + + + Note: Story complete locally, push failed - continuing... + Increment {{success_count}} Add to progress file completed_stories list diff --git a/src/modules/bmm/workflows/4-implementation/autonomous-epic/instructions.xml b/src/modules/bmm/workflows/4-implementation/autonomous-epic/instructions.xml index c86d64dd..790d8cac 100644 --- a/src/modules/bmm/workflows/4-implementation/autonomous-epic/instructions.xml +++ b/src/modules/bmm/workflows/4-implementation/autonomous-epic/instructions.xml @@ -250,14 +250,36 @@ Time: {{elapsed_time}} - - - Create git commit for this story: - Message: "feat(epic-{{epic_num}}): complete story {{current_story.key}} - {{story_title}}" - Include: All files changed during story development - - 📝 Committed: {{commit_hash}} - + + 📝 Running push-all to commit and push story changes... + + + Run push-all workflow with auto-accept mode: + - Safety checks run automatically + - Generate commit message based on story + - Commit with message: "feat(epic-{{epic_num}}): complete story {{current_story.key}} - {{story_title}}" + - Push to remote automatically + + ✅ Pushed to remote: {{commit_hash}} + + + + ⚠️ Push-all failed for story {{current_story.key}} + + Error: {{push_error}} + + Story is complete but not pushed to remote yet. + You can push manually later. + + + + 🛑 Halting due to push error (halt_on_error=true) + Update progress file with failure + HALT + + + Note: Story complete locally, push failed - continuing... + Increment {{success_count}} Add to progress file completed_stories list