{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.keithstaggers.com/resources/human-approval-gate/v1.0.2/human-approval-gate-test-cases-v1.0.2.schema.json",
  "title": "Human Approval Gate Synthetic Test Cases",
  "type": "object",
  "required": ["dataset", "version", "status", "author", "license", "created", "published", "synthetic_data_only", "cases"],
  "properties": {
    "dataset": { "type": "string" },
    "version": { "type": "string", "const": "1.0.2" },
    "status": { "type": "string", "const": "published" },
    "author": { "type": "string" },
    "license": { "type": "string", "const": "CC-BY-4.0" },
    "created": { "type": "string", "format": "date" },
    "published": { "type": "string", "format": "date" },
    "synthetic_data_only": { "const": true },
    "cases": {
      "type": "array",
      "minItems": 10,
      "items": {
        "type": "object",
        "required": ["case_id", "title", "risk_pattern", "synthetic_input", "expected_gate_behavior", "required_evidence", "pass_condition", "stop_or_recovery"],
        "properties": {
          "case_id": { "type": "string", "pattern": "^HAG-[0-9]{2}$" },
          "title": { "type": "string" },
          "risk_pattern": { "type": "string" },
          "synthetic_input": { "type": "string" },
          "expected_gate_behavior": { "type": "string" },
          "required_evidence": { "type": "array", "minItems": 1, "items": { "type": "string" } },
          "pass_condition": { "type": "string" },
          "stop_or_recovery": { "type": "string" }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
