{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://buildchain.libkungfu.dev/schemas/kfd-support-projection-v1.schema.json",
  "title": "Buildchain KFD support projection v1",
  "description": "A release-bound, non-authoritative projection of one product-owned KFD support matrix.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "contract",
    "matrix",
    "standardPackage",
    "gateResults",
    "rows",
    "status",
    "projectionRoot",
    "nonClaims"
  ],
  "properties": {
    "schemaVersion": {
      "const": 1
    },
    "contract": {
      "const": "kungfu-buildchain-kfd-support-projection"
    },
    "matrix": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "contract",
        "root",
        "authorityPath"
      ],
      "properties": {
        "contract": {
          "type": "string",
          "minLength": 1
        },
        "root": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "authorityPath": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "standardPackage": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "name",
        "version",
        "standardsSha256"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "standardsSha256": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        }
      }
    },
    "gateResults": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object"
      }
    },
    "rows": {
      "type": "array",
      "minItems": 13,
      "maxItems": 13,
      "items": {
        "type": "object"
      }
    },
    "status": {
      "enum": [
        "passed",
        "failed"
      ]
    },
    "projectionRoot": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    },
    "nonClaims": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  }
}
