{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://torneo.ai/schemas/concurrency_window.v1",
  "title": "concurrency_window.v1",
  "description": "P-7: at least 30 days of simultaneous tournaments of distinct organisations, bound to the scheduler log. Shape of the fields check_finalite reads; extra evidence fields are allowed. Dated, not synthetic and bound by sha256 to files of the repository (receipts/gates/<schema>/*.json).",
  "type": "object",
  "required": [
    "schema",
    "synthetic",
    "observed_on",
    "days",
    "simultaneous_organisations",
    "scheduler_log_ref"
  ],
  "properties": {
    "schema": {
      "const": "concurrency_window.v1"
    },
    "synthetic": {
      "type": "boolean",
      "description": "Only false counts (gate_common.read_receipts)."
    },
    "observed_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}"
    },
    "days": {
      "type": "number",
      "minimum": 0
    },
    "simultaneous_organisations": {
      "type": "integer",
      "minimum": 0
    },
    "scheduler_log_ref": {
      "type": "object",
      "required": [
        "path",
        "sha256"
      ],
      "additionalProperties": false,
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1
        },
        "sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      }
    }
  }
}
