{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://torneo.ai/schemas/propagation_check.v1",
  "title": "propagation_check.v1",
  "description": "P-8: torneo attestations propagation-check on the real surfaces (exit 0 within 900 s, an unlisted endpoint fails). 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",
    "exit_code",
    "seconds",
    "unlisted_endpoint_fails",
    "manifest_ref"
  ],
  "properties": {
    "schema": {
      "const": "propagation_check.v1"
    },
    "synthetic": {
      "type": "boolean",
      "description": "Only false counts (gate_common.read_receipts)."
    },
    "observed_on": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}"
    },
    "exit_code": {
      "type": "integer"
    },
    "seconds": {
      "type": "number",
      "minimum": 0
    },
    "unlisted_endpoint_fails": {
      "type": "boolean"
    },
    "manifest_ref": {
      "type": "object",
      "required": [
        "path",
        "sha256"
      ],
      "additionalProperties": false,
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1
        },
        "sha256": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      }
    }
  }
}
