From 95b5c9ad74b752258a971478821292aa47f5eefa Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 25 Feb 2026 15:55:08 +0000 Subject: [PATCH] story-kit: create 190_story_auto_select_available_agent_for_stage_in_start_agent --- ...vailable_agent_for_stage_in_start_agent.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .story_kit/work/1_upcoming/190_story_auto_select_available_agent_for_stage_in_start_agent.md diff --git a/.story_kit/work/1_upcoming/190_story_auto_select_available_agent_for_stage_in_start_agent.md b/.story_kit/work/1_upcoming/190_story_auto_select_available_agent_for_stage_in_start_agent.md new file mode 100644 index 0000000..2f6edd6 --- /dev/null +++ b/.story_kit/work/1_upcoming/190_story_auto_select_available_agent_for_stage_in_start_agent.md @@ -0,0 +1,20 @@ +--- +name: "Auto-select available agent for stage in start_agent" +--- + +# Story 190: Auto-select available agent for stage in start_agent + +## User Story + +As a supervisor starting an agent on a story, I want start_agent to automatically pick an available (idle) agent for the requested stage so that work isn't queued behind a busy agent when another one of the same role is free. + +## Acceptance Criteria + +- [ ] Add a method to query available (not running) agents filtered by stage/role +- [ ] start_agent without an explicit agent_name picks the first idle agent matching the stage instead of always picking the first configured one +- [ ] If all agents for the stage are busy, the story is queued as it is today +- [ ] Existing behaviour when agent_name is explicitly provided is unchanged + +## Out of Scope + +- TBD