When an agent process exits normally, the server now automatically runs acceptance gates (uncommitted changes check + cargo clippy + tests) and advances the pipeline based on results. This replaces the previous model where agents had to explicitly call report_completion as an MCP tool. Changes: - Add run_server_owned_completion() free function in agents.rs that runs gates on process exit, stores a CompletionReport, and advances pipeline - Wire it into start_agent's spawned task (replaces simple status setting) - Remove report_completion from MCP tools list and handler (mcp.rs) - Update default_agent_prompt() to not reference report_completion - Update all agent prompts in project.toml (supervisor, coders, qa, mergemaster) to reflect server-owned completion - Add guard: skip gates if completion was already recorded (legacy path) - Add 4 new tests for server-owned completion behavior - Update tools_list test (26 tools, report_completion excluded) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
11 KiB
11 KiB