diff --git a/.story_kit/work/1_upcoming/150_bug_qa_2_agent_never_auto_assigned_because_pipeline_stage_only_matches_exact_qa.md b/.story_kit/work/1_upcoming/150_bug_qa_2_agent_never_auto_assigned_because_pipeline_stage_only_matches_exact_qa.md new file mode 100644 index 0000000..f29f9bb --- /dev/null +++ b/.story_kit/work/1_upcoming/150_bug_qa_2_agent_never_auto_assigned_because_pipeline_stage_only_matches_exact_qa.md @@ -0,0 +1,35 @@ +--- +name: "qa-2 agent never auto-assigned because pipeline_stage only matches exact qa" +--- + +# Bug 150: qa-2 agent never auto-assigned because pipeline_stage only matches exact qa + +## Description + +server/src/agents.rs line 154: pipeline_stage() matches qa exactly but qa-2 falls through to Other. Fix: change line 156 from exact match to starts_with, same as coders: + +Current: + qa => PipelineStage::Qa, + +Fix: + name if name.starts_with(qa) => PipelineStage::Qa, + +Also update the test at line 3542 to cover qa-2. + +## How to Reproduce + +1. Have multiple items in 3_qa/ +2. qa agent gets assigned to one +3. qa-2 never gets assigned to the others + +## Actual Result + +qa-2 is never auto-assigned. pipeline_stage(qa-2) returns PipelineStage::Other instead of PipelineStage::Qa. + +## Expected Result + +qa-2 should be recognized as a QA agent and auto-assigned to items in 3_qa/. + +## Acceptance Criteria + +- [ ] Bug is fixed and verified