{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://regteaming.com/schema/regteaming-eval.schema.json",
  "title": "RegTeaming Evaluation",
  "description": "Minimum structural schema for a source-linked adversarial regulatory evaluation.",
  "type": "object",
  "required": [
    "id",
    "title",
    "scope",
    "obligation",
    "scenario",
    "attack_pattern",
    "expected_behavior",
    "evidence",
    "pass_criteria"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^RT-[A-Z0-9-]+$"
    },
    "title": {
      "type": "string",
      "minLength": 3
    },
    "scope": {
      "type": "object",
      "required": [
        "jurisdiction",
        "system_type",
        "workflow"
      ],
      "properties": {
        "jurisdiction": {
          "type": "string"
        },
        "system_type": {
          "type": "string"
        },
        "workflow": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "obligation": {
      "type": "object",
      "required": [
        "source_url",
        "citation",
        "requirement"
      ],
      "properties": {
        "source_url": {
          "type": "string",
          "format": "uri"
        },
        "citation": {
          "type": "string"
        },
        "requirement": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "scenario": {
      "type": "object"
    },
    "attack_pattern": {
      "type": "string",
      "enum": [
        "RT-01 disclosure-bypass",
        "RT-02 role-escalation",
        "RT-03 jurisdiction-hopping",
        "RT-04 consent-laundering",
        "RT-05 workflow-fragmentation",
        "RT-06 oversight-evasion",
        "RT-07 regulatory-drift",
        "RT-08 evidence-failure"
      ]
    },
    "expected_behavior": {
      "type": "object"
    },
    "evidence": {
      "type": "object"
    },
    "pass_criteria": {
      "type": "object"
    }
  },
  "additionalProperties": true
}
