{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/wever-os-support-matrix.schema.json",
  "title": "Wever Labs OS Support Matrix",
  "description": "Machine-readable matrix showing how Wever Labs OS supports each agent-facing rail, operating tool, settlement receipt, usage receipt, result contract, callback, exception, replay, and console surface.",
  "type": "object",
  "required": [
    "object_type",
    "matrix_version",
    "os_host",
    "supported_rails",
    "operating_tools",
    "settlement_support",
    "result_support",
    "console_support",
    "generated_at"
  ],
  "additionalProperties": true,
  "properties": {
    "object_type": {
      "type": "string",
      "const": "wever_os_support_matrix"
    },
    "matrix_version": {
      "type": "string"
    },
    "os_host": {
      "type": "string",
      "format": "uri"
    },
    "support_summary": {
      "type": "string"
    },
    "supported_rails": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rail_id",
          "support_status",
          "public_doc_url",
          "api_surface"
        ],
        "additionalProperties": true,
        "properties": {
          "rail_id": {
            "type": "string"
          },
          "support_status": {
            "type": "string",
            "enum": [
              "supported",
              "operational",
              "extension_ready",
              "blocked"
            ]
          },
          "public_doc_url": {
            "type": "string",
            "format": "uri"
          },
          "api_surface": {
            "type": "string"
          },
          "schema_url": {
            "type": "string",
            "format": "uri"
          },
          "runtime_role": {
            "type": "string"
          }
        }
      }
    },
    "operating_tools": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "tool_id": {
            "type": "string"
          },
          "support_status": {
            "type": "string"
          },
          "manifest_url": {
            "type": "string",
            "format": "uri"
          },
          "accepted_result_contract": {
            "type": "boolean"
          }
        }
      }
    },
    "settlement_support": {
      "type": "object",
      "additionalProperties": true
    },
    "result_support": {
      "type": "object",
      "additionalProperties": true
    },
    "console_support": {
      "type": "object",
      "additionalProperties": true
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
