{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://torneo.ai/schemas/density_inventory.v1",
  "title": "density_inventory.v1",
  "description": "P-6: dated public inventory of the category (at least 3 configurations and 3 providers, rights complete, a tournament closed within 90 days, a maintenance owner). 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",
    "configurations",
    "providers",
    "rights_complete",
    "days_since_closed_tournament",
    "maintenance_owner",
    "inventory_ref"
  ],
  "properties": {
    "schema": {
      "const": "density_inventory.v1"
    },
    "synthetic": {
      "type": "boolean",
      "description": "Only false counts (gate_common.read_receipts)."
    },
    "observed_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}"
    },
    "configurations": {
      "type": "integer",
      "minimum": 0
    },
    "providers": {
      "type": "integer",
      "minimum": 0
    },
    "rights_complete": {
      "type": "boolean"
    },
    "days_since_closed_tournament": {
      "type": "number",
      "minimum": 0
    },
    "maintenance_owner": {
      "type": "string",
      "minLength": 1
    },
    "inventory_ref": {
      "type": "object",
      "required": [
        "path",
        "sha256"
      ],
      "additionalProperties": false,
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1
        },
        "sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      }
    }
  }
}
