{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://compo.kluchna24.ru/poster_engine/integration_acceptance.schema.json",
  "title": "COMPO Integration and Privacy Acceptance",
  "type": "object",
  "additionalProperties": false,
  "required": ["suite_id", "status", "checks", "release_gate", "secrets_excluded"],
  "properties": {
    "suite_id": {"type": "string", "pattern": "^acceptance-suite-[a-z0-9-]+$"},
    "status": {"type": "string", "enum": ["not_started", "partial", "pass", "fail"]},
    "checks": {"type": "array", "items": {"$ref": "#/$defs/check"}},
    "release_gate": {"type": "string", "enum": ["blocked", "review_required", "ready"]},
    "open_risks": {"type": "array", "items": {"type": "string"}},
    "secrets_excluded": {"const": true}
  },
  "$defs": {
    "check": {"type": "object", "additionalProperties": false, "required": ["id", "class", "status", "evidence"], "properties": {"id": {"type": "string"}, "class": {"type": "string", "enum": ["integration", "load", "privacy", "retention", "recovery"]}, "status": {"type": "string", "enum": ["PASS", "PENDING", "FAIL", "N/A"]}, "evidence": {"type": "string"}}}
  }
}
