{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object", "additionalProperties": false,
  "required": ["schemaVersion", "recordType", "candidateId", "scopeSha256", "subjectOrganizationId", "partnerOrganizationId", "canonicalPolicy", "selectedTier", "coverageWindow", "supportChannelId", "sev1ResponseMinutes", "maintenanceNoticeDays", "deprecationNoticeDays", "staffingVerified", "acceptedBy"],
  "properties": {
    "schemaVersion": {"const": "1.0.0"}, "recordType": {"const": "support-sla-selection"},
    "candidateId": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}, "scopeSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"},
    "subjectOrganizationId": {"type": "string", "pattern": "^organization:[0-9a-f]{64}$"}, "partnerOrganizationId": {"type": "string", "pattern": "^organization:[0-9a-f]{64}$"},
    "canonicalPolicy": {"$ref": "#/$defs/policy"}, "selectedTier": {"enum": ["Evaluation", "Pilot"]}, "coverageWindow": {"type": "string", "minLength": 2},
    "supportChannelId": {"type": "string", "pattern": "^channel:[0-9a-f]{64}$"}, "sev1ResponseMinutes": {"type": "integer", "minimum": 1, "maximum": 240},
    "maintenanceNoticeDays": {"type": "integer", "minimum": 1, "maximum": 90}, "deprecationNoticeDays": {"type": "integer", "minimum": 30, "maximum": 365},
    "staffingVerified": {"const": true}, "acceptedBy": {"$ref": "#/$defs/approvals"}
  },
  "$defs": {
    "policy": {"type": "object", "additionalProperties": false, "required": ["path", "sha256", "version"], "properties": {"path": {"const": "pr10/partner-package/docs/SUPPORT_SLA_MAINTENANCE_DEPRECATION.md"}, "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "version": {"const": "1.0.0"}}},
    "approvals": {"type": "array", "minItems": 2, "maxItems": 2, "uniqueItems": true, "items": {"$ref": "#/$defs/approval"}},
    "approval": {"type": "object", "additionalProperties": false, "required": ["identityId", "organizationId", "roleId", "keyType", "publicKeySha256", "authorityEvidenceId", "signedPayloadSha256", "signatureBase64"], "properties": {"identityId": {"type": "string", "pattern": "^identity:[0-9a-f]{64}$"}, "organizationId": {"type": "string", "pattern": "^organization:[0-9a-f]{64}$"}, "roleId": {"enum": ["support-owner", "partner-authorized-signatory"]}, "keyType": {"const": "Ed25519"}, "publicKeySha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "authorityEvidenceId": {"type": "string", "pattern": "^[A-Z0-9-]+$"}, "signedPayloadSha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "signatureBase64": {"type": "string", "minLength": 88, "maxLength": 88}}}
  }
}
