diff --git a/.story_kit/work/1_upcoming/67_story_server_drives_pipeline_as_state_machine.md b/.story_kit/work/1_upcoming/67_story_server_drives_pipeline_as_state_machine.md index 8b1a4b6..64cbcba 100644 --- a/.story_kit/work/1_upcoming/67_story_server_drives_pipeline_as_state_machine.md +++ b/.story_kit/work/1_upcoming/67_story_server_drives_pipeline_as_state_machine.md @@ -16,7 +16,8 @@ As a Story Kit user, I want the server to automatically advance stories through - [ ] If script/test fails (non-zero), the server restarts the coder with failure output - [ ] When the QA agent completes, the server runs script/test in the worktree — if non-zero, restarts the QA agent with failure output - [ ] If script/test passes after QA, the server moves the story to work/4_merge/ and starts the mergemaster -- [ ] When the mergemaster completes successfully, the server moves the story to work/5_archived/ and cleans up the worktree +- [ ] When the mergemaster completes, the server runs script/test on master — if non-zero, restarts the mergemaster with failure output +- [ ] If script/test passes after merge, the server moves the story to work/5_archived/ and cleans up the worktree - [ ] Agents no longer need to call move_story_to_merge, request_qa, or any pipeline-advancing MCP tools — the server handles all transitions - [ ] The completion handler in agents.rs reacts to AgentStatus::Completed and triggers the next stage