{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RTT/Inside Substrate Regime Schema",
  "description": "Defines regime tagging metadata for RTT/Inside enterprise identity substrates.",

  "type": "object",

  "properties": {
    "regime_tag": {
      "type": "string",
      "enum": [
        "analytic",
        "mythic",
        "control"
      ],
      "description": "The RTT/Inside regime classification applied to the identity or service."
    },

    "regime_origin": {
      "type": "string",
      "enum": [
        "local",
        "active_directory",
        "ldap",
        "dns_srv",
        "kerberos",
        "service_discovery",
        "modern_identity",
        "cloud_directory",
        "zero_trust"
      ],
      "description": "Indicates which identity substrate layer asserted or inferred the regime tag."
    },

    "regime_confidence": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 1.0,
      "description": "Confidence score representing how strongly the substrate layer supports the assigned regime."
    },

    "regime_timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp indicating when the regime tag was generated or last updated."
    }
  },

  "required": [
    "regime_tag"
  ]
}
