diff --git a/.story_kit/work/2_current/70_story_server_owned_agent_completion_remove_report_completion_dependency.md b/.story_kit/work/2_current/70_story_server_owned_agent_completion_remove_report_completion_dependency.md new file mode 100644 index 0000000..0987d38 --- /dev/null +++ b/.story_kit/work/2_current/70_story_server_owned_agent_completion_remove_report_completion_dependency.md @@ -0,0 +1,27 @@ +--- +name: Server-owned agent completion: remove report_completion dependency +test_plan: approved +--- + +# Story 70: Server-owned agent completion: remove report_completion dependency + +## User Story + +As a developer using story-kit, I want the server to automatically run acceptance +gates and advance the pipeline when an agent process exits, so that the pipeline +does not stall when an agent forgets or fails to call `report_completion`. + +## Acceptance Criteria + +- [ ] When an agent process exits normally, the server automatically runs acceptance gates (uncommitted changes check + cargo clippy + tests) +- [ ] When acceptance gates pass on natural process exit, the agent status is set to `Completed` and the pipeline advances +- [ ] When acceptance gates fail on natural process exit, the agent status is set to `Failed` and the pipeline handles the failure appropriately +- [ ] `report_completion` is removed from the MCP tools list (agents no longer see or call it) +- [ ] The default agent prompt no longer instructs agents to call `report_completion` +- [ ] If a completion was already recorded before the process exits (legacy path), the server does not run gates a second time + +## Out of Scope + +- Removing the concept of a `CompletionReport` struct (still used internally) +- Changing the pipeline advancement logic itself +- Frontend changes diff --git a/.story_kit/work/4_merge/72_bug_story_creation_does_not_quote_yaml_special_characters_in_name.md b/.story_kit/work/2_current/72_bug_story_creation_does_not_quote_yaml_special_characters_in_name.md similarity index 100% rename from .story_kit/work/4_merge/72_bug_story_creation_does_not_quote_yaml_special_characters_in_name.md rename to .story_kit/work/2_current/72_bug_story_creation_does_not_quote_yaml_special_characters_in_name.md