{
  "schema_version": "spec-first.spec-write-tasks-boundary-cases.v1",
  "cases": [
    {
      "id": "implementation-request",
      "input": "Implement the plan now.",
      "context": "The user is asking for execution, not task-pack compilation or validation.",
      "expected_decision": "skip",
      "expected_next_action": "Use spec-work with the source plan instead of generating a derived task pack.",
      "boundary_note": "An implementation request must not be rerouted into task-pack generation when direct spec-work execution is the actual ask.",
      "forbidden_signals": ["generated-task-pack", "compile-by-default"],
      "coverage_tags": ["boundary"]
    },
    {
      "id": "unsettled-architecture",
      "input": "Create tasks for this plan.",
      "context": "The source plan marks a public CLI contract and acceptance criteria as unresolved.",
      "expected_decision": "return-to-plan",
      "expected_next_action": "Return to spec-plan rather than inventing missing scope in task cards.",
      "coverage_tags": ["boundary"]
    },
    {
      "id": "small-plan",
      "input": "Split docs/plans/small-docs-fix-plan.md into tasks.",
      "context": "The plan touches one documentation file and has one verification step.",
      "expected_decision": "skip",
      "expected_next_action": "Explain that direct spec-work execution has lower carrying cost.",
      "coverage_tags": ["boundary"]
    },
    {
      "id": "high-risk-review-gate",
      "input": "Compile tasks for a deep plan that touches workflow contracts and marks several tasks with review_gate: required.",
      "context": "The source plan is executable and the derived pack is high-risk because it changes public workflow prose, shared contracts, and source/runtime boundary guidance.",
      "expected_decision": "compile",
      "expected_next_action": "Set next_action: review-task-pack with one reason and dispatch_authorization: missing unless the invoking parent workflow or user explicitly authorized this single bounded continuation; surface the copy-ready current-host doc-review invocation instead of dispatching by default.",
      "dispatch_authorization": "missing",
      "boundary_note": "High-risk review handoff must not silently chain into document review from a standalone skill trigger.",
      "forbidden_signals": ["auto-dispatch-without-authorization", "general-workflow-chaining"],
      "coverage_tags": ["boundary"]
    },
    {
      "id": "high-risk-review-authorized",
      "input": "Compile tasks for a high-risk plan after the parent workflow explicitly authorizes a single bounded headless doc-review continuation.",
      "context": "The task pack is executable, high-risk, and the current host exposes a document-review entrypoint.",
      "expected_decision": "compile",
      "expected_next_action": "Set dispatch_authorization: authorized and run exactly one headless doc-review of the just-written task pack; do not chain to implementation.",
      "dispatch_authorization": "authorized",
      "boundary_note": "Authorized continuation is a single bounded doc-review edge, not general workflow orchestration.",
      "forbidden_signals": ["implementation-dispatch", "multi-hop-workflow-chain"],
      "coverage_tags": ["boundary", "handoff"]
    },
    {
      "id": "low-risk-review-not-required",
      "input": "Compile tasks for a low-risk settled source plan with no required review gates.",
      "context": "The task pack is executable and does not touch public workflow prose, shared contracts, source/runtime boundaries, security, release, or CI surfaces.",
      "expected_decision": "compile",
      "expected_next_action": "Set next_action: spec-work-task-pack and dispatch_authorization: not_required.",
      "dispatch_authorization": "not_required",
      "boundary_note": "Low-risk executable packs should not force doc-review handoff.",
      "forbidden_signals": ["review-task-pack-by-default", "auto-doc-review"],
      "coverage_tags": ["boundary", "handoff"]
    }
  ],
  "skill": "spec-write-tasks",
  "source_refs": ["skills/spec-write-tasks/SKILL.md", "skills/spec-write-tasks/evals/README.md"],
  "source_ref_authority": "source"
}
