{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RTT/Inside Substrate Triad Roles Schema",
  "description": "Defines triad role metadata for RTT/Inside enterprise identity substrates.",

  "type": "object",

  "properties": {
    "triad_role": {
      "type": "string",
      "enum": [
        "A",
        "B",
        "C"
      ],
      "description": "Assigned triad role for the identity or service within RTT/Inside semantics."
    },

    "triad_origin": {
      "type": "string",
      "enum": [
        "local",
        "active_directory",
        "ldap",
        "dns_srv",
        "kerberos",
        "service_discovery",
        "modern_identity",
        "cloud_directory",
        "zero_trust"
      ],
      "description": "Identity substrate layer that asserted or inferred the triad role."
    },

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

    "triad_timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp indicating when the triad role was generated or last updated."
    }
  },

  "required": [
    "triad_role"
  ]
}
