{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "required": [
    "requirements",
    "version",
    "source",
    "last_updated"
  ],
  "properties": {
    "version": {
      "type": "string",
      "enum": [
        "0.1.0"
      ]
    },
    "source": {
      "type": "string"
    },
    "last_updated": {
      "type": "string"
    },
    "requirements": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "domain",
          "tier",
          "classification",
          "title"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^APTS-[A-Z]+-\\d+$"
          },
          "domain": {
            "type": "string",
            "enum": [
              "Scope Enforcement",
              "Safety Controls",
              "Human Oversight",
              "Graduated Autonomy",
              "Auditability",
              "Manipulation Resistance",
              "Supply Chain Trust",
              "Reporting"
            ]
          },
          "tier": {
            "type": "integer",
            "enum": [
              1,
              2,
              3
            ]
          },
          "classification": {
            "type": "string",
            "enum": [
              "MUST",
              "SHOULD"
            ]
          },
          "title": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}