{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://emergentism.org/schemas/ThirdChurningCorpus.v1.schema.json",
  "title": "ThirdChurningCorpus.v1",
  "description": "Non-semantic custody envelope. It owns hashes, ordering and output bindings, never proposition truth.",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_id", "release_id", "date", "frozen_source_commit", "drop_ceiling", "schema_paths", "source_pathset", "source_hashes", "predecessor_receipt", "pqa_launch_counts", "drop_order", "problem_order", "output_map", "license", "authorship", "ai_assistance", "external_states"],
  "properties": {
    "schema_id": {"const": "emergentism/ThirdChurningCorpus.v1"},
    "release_id": {"const": "THIRD-CHURNING-2026-08-23"},
    "date": {"const": "2026-08-23"},
    "frozen_source_commit": {"const": "8b07e00c563f338923b1928d3469c862d44c1e07"},
    "drop_ceiling": {"const": 64},
    "schema_paths": {"type": "object", "additionalProperties": {"type": "string", "pattern": "^(?!/)(?!.*\\.\\.).+"}},
    "source_pathset": {"type": "array", "minItems": 1, "uniqueItems": true, "items": {"type": "string", "pattern": "^(?!/)(?!.*\\.\\.).+"}},
    "source_hashes": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["path", "sha256", "_sha256_scan"], "properties": {"path": {"type": "string"}, "sha256": {"type": "string", "pattern": "^[0-9a-f]{64}$"}, "_sha256_scan": {"const": "# pragma: allow-secret"}}}},
    "predecessor_receipt": {"type": "string", "pattern": "^90_ARCHIVE/"},
    "pqa_launch_counts": {
      "const": {"selected": 54, "evaluated": 0, "independently_reviewed": 0, "resolved": 0}
    },
    "drop_order": {"type": "array", "uniqueItems": true, "items": {"type": "string", "pattern": "^TC-(AMR|HAL|OPEN)-[0-9]{3}$"}},
    "problem_order": {"type": "array", "uniqueItems": true, "items": {"type": "string", "pattern": "^(PQA54@0\\.1:|LEGACY:|FORMAL:|SYNTH:)"}},
    "output_map": {"type": "object", "additionalProperties": {"type": "string", "pattern": "^(?!/)(?!.*\\.\\.).+"}},
    "license": {"const": "CC BY-SA 4.0"},
    "authorship": {"const": "Yves R. Burri"},
    "ai_assistance": {"type": "string", "minLength": 8},
    "external_states": {
      "type": "object", "additionalProperties": false,
      "required": ["deployed", "doi_archive", "github_release", "training_inclusion_guaranteed"],
      "properties": {
        "deployed": {"type": "boolean"},
        "doi_archive": {"type": "boolean"},
        "github_release": {"type": "boolean"},
        "training_inclusion_guaranteed": {"const": false}
      }
    }
  }
}
