{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openfutureforum.github.io/executive-intelligence-index/schema/debate.schema.json",
  "title": "Debate",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "debate_id",
    "neutral_question",
    "scope",
    "topic_ids",
    "proposition_ids",
    "statement_ids",
    "evidence_limitations",
    "publication_status",
    "provenance"
  ],
  "properties": {
    "debate_id": {
      "type": "string",
      "minLength": 1
    },
    "neutral_question": {
      "type": "string",
      "minLength": 1
    },
    "scope": {
      "type": "string",
      "minLength": 1
    },
    "time_period": {
      "type": [
        "string",
        "null"
      ]
    },
    "topic_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "relevant_role_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "proposition_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "statement_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "areas_of_documented_alignment": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "areas_of_documented_disagreement": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "unresolved_scope_differences": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "evidence_limitations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "source_diversity": {
      "type": "object"
    },
    "role_coverage": {
      "type": "object"
    },
    "geographic_coverage": {
      "type": "object"
    },
    "ownership_concentration": {
      "type": "object"
    },
    "publication_status": {
      "type": "string",
      "minLength": 1
    },
    "review_history": {
      "type": "array",
      "items": {}
    },
    "workflow_status": {
      "$ref": "common.schema.json#/$defs/workflowStatus"
    },
    "machine_review_status": {
      "$ref": "common.schema.json#/$defs/machineReviewStatus"
    },
    "human_review_status": {
      "$ref": "common.schema.json#/$defs/humanReviewStatus"
    },
    "reviewed_by": {
      "type": [
        "string",
        "null"
      ]
    },
    "reviewed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "provenance": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "common.schema.json#/$defs/provenance"
      }
    },
    "revision_history": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/revision"
      }
    }
  }
}
