{
  "schema_version": "spec-first.spec-write-tasks-expected-behavior-cases.v1",
  "cases": [
    {
      "id": "compile-valid-plan",
      "input": "A settled source plan with spec_id, clear scope boundaries, implementation units, files, and verification.",
      "expected_decision": "compile",
      "expected_output": "An executable task pack with matching spec_id, canonical source_plan_hash, Task Pack Contract, task cards, waves, and final decision envelope.",
      "coverage_tags": ["expected"]
    },
    {
      "id": "validate-existing-task-pack",
      "input": "A derived task pack generated by spec-write-tasks.",
      "expected_decision": "validate-only",
      "expected_output": "A validity decision based on identity, freshness, structure, source-plan linkage, and semantic handoff posture.",
      "coverage_tags": ["expected"]
    },
    {
      "id": "draft-only-when-hash-tool-unavailable",
      "input": "A source plan that is otherwise task-ready, but deterministic hash tooling is unavailable.",
      "expected_decision": "draft-only",
      "expected_output": "A non-executable draft or explanation that hash tooling is required before spec-work task-pack handoff.",
      "coverage_tags": ["expected"]
    },
    {
      "id": "degraded-task-signals-do-not-skip-deep-plan",
      "input": "A deep source plan has clear implementation units, broad file surfaces, dependency chains, and verification spread, but task-governance-signals returns collection_status: degraded with candidate_level: lightweight.",
      "expected_decision": "compile",
      "expected_output": "Treat the helper output as degraded advisory evidence, record the limitation in Orientation Evidence or the final envelope, and decide from the source plan structure plus direct reads.",
      "coverage_tags": ["expected"]
    }
  ],
  "skill": "spec-write-tasks",
  "source_refs": ["skills/spec-write-tasks/SKILL.md", "skills/spec-write-tasks/evals/README.md"],
  "source_ref_authority": "source"
}
