{
  "$defs": {
    "EvaluationSource": {
      "additionalProperties": false,
      "properties": {
        "artifact_index_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Artifact Index Sha256",
          "type": "string"
        },
        "candidate_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Candidate Id",
          "type": "string"
        },
        "contract_version": {
          "const": "1.0.0",
          "default": "1.0.0",
          "title": "Contract Version",
          "type": "string"
        },
        "input_snapshot_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Input Snapshot Sha256",
          "type": "string"
        },
        "manifest_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Manifest Sha256",
          "type": "string"
        },
        "result_index_sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Result Index Sha256",
          "type": "string"
        },
        "run_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Run Id",
          "type": "string"
        }
      },
      "required": [
        "candidate_id",
        "run_id",
        "manifest_sha256",
        "input_snapshot_sha256",
        "result_index_sha256",
        "artifact_index_sha256"
      ],
      "title": "EvaluationSource",
      "type": "object"
    },
    "EvidenceConfidence": {
      "enum": [
        "authoritative",
        "supplier_based",
        "verified",
        "estimated",
        "assumed",
        "unknown"
      ],
      "title": "EvidenceConfidence",
      "type": "string"
    },
    "ReviewFinding": {
      "additionalProperties": false,
      "properties": {
        "authority": {
          "const": "advisory",
          "default": "advisory",
          "title": "Authority",
          "type": "string"
        },
        "category": {
          "enum": [
            "requirements",
            "feasibility",
            "architecture",
            "evidence",
            "risk",
            "follow_up"
          ],
          "title": "Category",
          "type": "string"
        },
        "claim": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Claim",
          "type": "string"
        },
        "confidence": {
          "$ref": "#/$defs/EvidenceConfidence"
        },
        "evidence_ids": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
            "type": "string"
          },
          "minItems": 1,
          "title": "Evidence Ids",
          "type": "array"
        },
        "finding_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Finding Id",
          "type": "string"
        },
        "recommended_action": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Recommended Action",
          "type": "string"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "critical"
          ],
          "title": "Severity",
          "type": "string"
        },
        "uncertainty": {
          "maxLength": 2000,
          "minLength": 1,
          "title": "Uncertainty",
          "type": "string"
        }
      },
      "required": [
        "finding_id",
        "category",
        "severity",
        "confidence",
        "claim",
        "evidence_ids",
        "uncertainty",
        "recommended_action"
      ],
      "title": "ReviewFinding",
      "type": "object"
    }
  },
  "$id": "urn:sindri:contracts:1.0.0:blind-review",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "authority": {
      "const": "advisory",
      "default": "advisory",
      "title": "Authority",
      "type": "string"
    },
    "findings": {
      "items": {
        "$ref": "#/$defs/ReviewFinding"
      },
      "maxItems": 100,
      "title": "Findings",
      "type": "array"
    },
    "neutral_packet_sha256": {
      "pattern": "^[0-9a-f]{64}$",
      "title": "Neutral Packet Sha256",
      "type": "string"
    },
    "schema_kind": {
      "const": "blind_review",
      "default": "blind_review",
      "title": "Schema Kind",
      "type": "string"
    },
    "schema_version": {
      "const": "1.0.0",
      "default": "1.0.0",
      "title": "Schema Version",
      "type": "string"
    },
    "source": {
      "$ref": "#/$defs/EvaluationSource"
    },
    "summary": {
      "maxLength": 4000,
      "minLength": 1,
      "title": "Summary",
      "type": "string"
    }
  },
  "required": [
    "source",
    "neutral_packet_sha256",
    "findings",
    "summary"
  ],
  "title": "BlindReview",
  "type": "object",
  "x-sindri-contract-suite": "sindri.contracts",
  "x-sindri-contract-version": "1.0.0"
}
