|
| 1 | +name: squad-routing |
| 2 | +description: | |
| 3 | + Evaluates Squad's work routing — given real user prompts, does the agent |
| 4 | + route to the correct squad member based on routing.md rules? |
| 5 | +type: capability |
| 6 | +config: |
| 7 | + timeout: 3m |
| 8 | +environment: |
| 9 | + skills: |
| 10 | + - ../../packages/squad-cli/src/cli/skills |
| 11 | + files: |
| 12 | + - src: fixtures/team.md |
| 13 | + dest: .squad/team.md |
| 14 | + - src: fixtures/routing.md |
| 15 | + dest: .squad/routing.md |
| 16 | + - src: fixtures/agents/lead/charter.md |
| 17 | + dest: .squad/agents/lead/charter.md |
| 18 | + - src: fixtures/agents/developer/charter.md |
| 19 | + dest: .squad/agents/developer/charter.md |
| 20 | + - src: fixtures/agents/tester/charter.md |
| 21 | + dest: .squad/agents/tester/charter.md |
| 22 | + - src: fixtures/agents/scribe/charter.md |
| 23 | + dest: .squad/agents/scribe/charter.md |
| 24 | +scoring: |
| 25 | + threshold: 0.7 |
| 26 | +stimuli: |
| 27 | + - name: Routes bug fix to developer |
| 28 | + prompt: | |
| 29 | + There's a null reference exception in the login handler when the |
| 30 | + user's email field is missing. Can you fix it? |
| 31 | + graders: |
| 32 | + - type: output-matches |
| 33 | + config: |
| 34 | + pattern: (developer|Developer) |
| 35 | + - type: prompt |
| 36 | + rubric: |
| 37 | + - The response identifies this as a bug fix task and routes to the Developer agent |
| 38 | + - The response does not route to Lead, Tester, or Scribe for a simple bug fix |
| 39 | + |
| 40 | + - name: Routes architecture review to lead |
| 41 | + prompt: | |
| 42 | + We need to redesign the event bus to support fan-out to multiple |
| 43 | + consumers. Can you review the current architecture and propose changes? |
| 44 | + graders: |
| 45 | + - type: output-matches |
| 46 | + config: |
| 47 | + pattern: (lead|Lead) |
| 48 | + - type: prompt |
| 49 | + rubric: |
| 50 | + - The response identifies this as an architecture/design task and routes to the Lead agent |
| 51 | + - Architecture reviews and design decisions go to Lead, not Developer |
| 52 | + |
| 53 | + - name: Routes test coverage request to tester |
| 54 | + prompt: | |
| 55 | + The auth module has zero test coverage. Write integration tests for |
| 56 | + the token refresh flow and session expiration handling. |
| 57 | + graders: |
| 58 | + - type: output-matches |
| 59 | + config: |
| 60 | + pattern: (tester|Tester) |
| 61 | + - type: prompt |
| 62 | + rubric: |
| 63 | + - The response identifies this as a testing task and routes to the Tester agent |
| 64 | + - Test writing, coverage, and quality assurance tasks go to Tester |
| 65 | + |
| 66 | + - name: Routes documentation update to scribe |
| 67 | + prompt: | |
| 68 | + The API reference is out of date — the /users endpoint now accepts |
| 69 | + a pagination cursor. Update the docs to reflect the new parameter. |
| 70 | + graders: |
| 71 | + - type: output-matches |
| 72 | + config: |
| 73 | + pattern: (scribe|Scribe) |
| 74 | + - type: prompt |
| 75 | + rubric: |
| 76 | + - The response identifies this as a documentation task and routes to the Scribe agent |
| 77 | + - Documentation updates, README changes, and reference maintenance go to Scribe |
| 78 | + |
| 79 | + - name: Routes new feature implementation to developer |
| 80 | + prompt: | |
| 81 | + Add webhook retry support with exponential backoff. When a webhook |
| 82 | + delivery fails, retry up to 3 times with increasing delays. |
| 83 | + graders: |
| 84 | + - type: output-matches |
| 85 | + config: |
| 86 | + pattern: (developer|Developer) |
| 87 | + - type: prompt |
| 88 | + rubric: |
| 89 | + - The response identifies this as a feature implementation task and routes to Developer |
| 90 | + - New feature coding tasks go to Developer, not Lead (who handles design only) |
| 91 | + |
| 92 | + - name: Handles ambiguous request with reasoning |
| 93 | + prompt: | |
| 94 | + The CI pipeline is failing on the main branch. The error seems related |
| 95 | + to a flaky test in the payment module. |
| 96 | + graders: |
| 97 | + - type: prompt |
| 98 | + rubric: |
| 99 | + - The response acknowledges ambiguity — this could be a test fix (Tester) or a bug fix (Developer) |
| 100 | + - The response provides reasoning for its routing decision |
| 101 | + - The response does not silently pick one agent without explaining why |
0 commit comments