From db22ab222978009330288a054fa74c102cbd0fd6 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 27 Mar 2026 15:30:33 +0000 Subject: [PATCH] storkit: create 415_refactor_split_agents_pool_mod_rs_into_submodules --- ...plit_agents_pool_mod_rs_into_submodules.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .storkit/work/1_backlog/415_refactor_split_agents_pool_mod_rs_into_submodules.md diff --git a/.storkit/work/1_backlog/415_refactor_split_agents_pool_mod_rs_into_submodules.md b/.storkit/work/1_backlog/415_refactor_split_agents_pool_mod_rs_into_submodules.md new file mode 100644 index 00000000..72955a4d --- /dev/null +++ b/.storkit/work/1_backlog/415_refactor_split_agents_pool_mod_rs_into_submodules.md @@ -0,0 +1,29 @@ +--- +name: "Split agents/pool/mod.rs into submodules" +--- + +# Refactor 415: Split agents/pool/mod.rs into submodules + +## Current State + +- TBD + +## Desired State + +Refactor the monolithic server/src/agents/pool/mod.rs (2407 lines) into focused submodules within the pool/ directory. + +## Acceptance Criteria + +- [ ] types.rs contains StoryAgent, PendingGuard, AgentInfo, composite_key, and related helper structs +- [ ] lifecycle.rs contains start_agent, stop_agent, wait_for_agent and their unit tests +- [ ] worktree.rs contains create_worktree, get_project_root, find_active_story_stage and their unit tests +- [ ] query.rs contains list_agents, available_agents_for_stage, get_log_info, subscribe, drain_events and their unit tests +- [ ] process.rs contains kill_all_children, kill_child_for_key, ChildKiller registry methods and their unit tests +- [ ] test_helpers.rs contains inject_test_agent and its variants (4 methods) +- [ ] mod.rs contains AgentPool struct, new(), and re-exports all public types +- [ ] Unit tests live in their respective module files, not in a separate tests module +- [ ] No public API changes — all existing imports continue to work + +## Out of Scope + +- TBD