story-kit: create 150_bug_qa_2_agent_never_auto_assigned_because_pipeline_stage_only_matches_exact_qa

This commit is contained in:
Dave
2026-02-24 14:34:22 +00:00
parent ca535f54ec
commit 68eede6a85

View File

@@ -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