[
  {
    "id": "eval-1",
    "scenario": "User asks 'create an agent that audits code quality and reports issues without modifying files.' The agent must determine mode, permissions, and required frontmatter fields.",
    "expected_behavior": "Skill loads delegation-protocol.md and worktree-control.md. Agent definition includes: mode=all, tools=Read/Glob/Grep/Bash (no Write/Edit), role description, color, temperature. Validation gate checklist is completed. Read-only enforcement pattern is included.",
    "pass_condition": "Agent definition has all required frontmatter fields, correct permissions (read-only), and includes Mandatory Initial Read enforcement text."
  },
  {
    "id": "eval-2",
    "scenario": "Controller dispatches a subagent for a research task. Subagent returns DONE_WITH_CONCERNS: 'Found 3 auth libraries but Auth.js v5 breaking changes not covered.' Controller must handle the status correctly.",
    "expected_behavior": "Controller reads the concern, determines it's an observation (not correctness issue), notes the concern, and proceeds to two-stage review. Stage 1 (spec compliance) checks if all requested libraries were compared. Stage 2 (quality) checks table readability and citation presence.",
    "pass_condition": "Controller correctly classifies DONE_WITH_CONCERNS as observation (not correctness), completes two-stage review, and produces a final verdict with the concern noted."
  },
  {
    "id": "eval-3",
    "scenario": "User asks to run two subagents in parallel: one to refactor auth.ts, another to refactor auth.test.ts. The subagents conflict because auth.test.ts imports from auth.ts. Controller must detect and prevent the conflict.",
    "expected_behavior": "Skill identifies that the two files share a dependency (auth.test.ts imports from auth.ts). Worktree control rules are applied: since files are not independent, subagents must run sequentially (not parallel). Controller sequences the tasks: refactor auth.ts first, then auth.test.ts.",
    "pass_condition": "Controller detects shared file dependency, rejects parallel dispatch, and sequences tasks correctly. No merge conflicts result."
  }
]
