{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://getzero.dev/contracts/zero.public_operators.v1.schema.json",
  "title": "ZERO Public Operators Index",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "kind", "count", "operators"],
  "properties": {
    "schema_version": { "const": "zero.public_operators.v1" },
    "kind": { "const": "operator_profile_index" },
    "count": { "type": "integer", "minimum": 0 },
    "operators": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handle",
          "display_name",
          "tier",
          "canonical_url",
          "public_operator_url",
          "raw_evidence_url",
          "score_label",
          "growth_schema",
          "growth_persistence_schema",
          "growth_persistence_status",
          "growth_intents_api_url",
          "growth_receipts_schema",
          "growth_receipts_status",
          "growth_receipts_total_active",
          "growth_receipts_latest_at",
          "replay_index_url",
          "disciple_mode",
          "disciple_auto_execution_enabled",
          "growth_actions",
          "mode",
          "runtime_state",
          "venue",
          "custody_model",
          "signing_boundary",
          "signed_receipts",
          "total_receipts",
          "sentinel_drill_status",
          "sentinel_drill_url",
          "live_certification_readiness_status",
          "live_certification_readiness_url",
          "live_certification_readiness_blockers",
          "live_certification_proof_blockers",
          "live_certification_enhancement_blockers",
          "live_certification_next_blocker",
          "live_certification_testnet_order_cancel_submitted",
          "live_certification_promotion_eligible",
          "live_certification_owner_action_available",
          "live_certification_owner_action_label",
          "operator_control_readiness_status",
          "operator_control_next_blocker",
          "operator_control_take_over_available",
          "operator_control_sentinel_publish_available",
          "private_keys_stored",
          "evidence_schema"
        ],
        "properties": {
          "handle": { "type": "string", "minLength": 1 },
          "display_name": { "type": "string", "minLength": 1 },
          "tier": { "type": "string", "minLength": 1 },
          "canonical_url": { "type": "string", "format": "uri" },
          "public_operator_url": { "type": "string", "format": "uri" },
          "raw_evidence_url": { "type": "string", "format": "uri" },
          "score_label": { "type": "string", "minLength": 1 },
          "growth_schema": { "const": "zero.operator_growth.v1" },
          "growth_persistence_schema": { "const": "zero.operator_growth_persistence.v1" },
          "growth_persistence_status": { "const": "persistence_ready" },
          "growth_intents_api_url": { "type": "string", "format": "uri" },
          "growth_receipts_schema": { "const": "zero.operator_growth_public_receipts.v1" },
          "growth_receipts_status": { "enum": ["aggregate_ready", "aggregate_unavailable"] },
          "growth_receipts_total_active": { "type": "integer", "minimum": 0 },
          "growth_receipts_latest_at": { "type": ["string", "null"], "format": "date-time" },
          "replay_index_url": { "type": "string", "format": "uri" },
          "disciple_mode": { "const": "signal_only" },
          "disciple_auto_execution_enabled": { "const": false },
          "growth_actions": {
            "type": "array",
            "minItems": 4,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": ["kind", "href", "requires_auth", "execution_boundary"],
              "properties": {
                "kind": {
                  "enum": ["watch_replay", "follow_operator", "become_disciple", "launch_zero"]
                },
                "href": { "type": "string", "format": "uri" },
                "requires_auth": { "type": "boolean" },
                "execution_boundary": { "type": "string", "minLength": 1 }
              }
            }
          },
          "mode": { "enum": ["paper", "live"] },
          "runtime_state": { "type": "string", "minLength": 1 },
          "venue": { "type": "string", "minLength": 1 },
          "custody_model": { "const": "self-custodial" },
          "signing_boundary": { "type": "string", "minLength": 1 },
          "signed_receipts": { "type": "integer", "minimum": 0 },
          "total_receipts": { "type": "integer", "minimum": 0 },
          "sentinel_drill_status": { "enum": ["incomplete", "ready_to_publish", "passed"] },
          "sentinel_drill_url": { "type": ["string", "null"], "format": "uri" },
          "live_certification_readiness_status": { "enum": ["blocked", "ready_to_run", "certified"] },
          "live_certification_readiness_url": { "type": "string", "format": "uri" },
          "live_certification_readiness_blockers": {
            "type": "array",
            "items": { "type": "string", "minLength": 1 }
          },
          "live_certification_proof_blockers": {
            "type": "array",
            "items": { "type": "string", "minLength": 1 }
          },
          "live_certification_enhancement_blockers": {
            "type": "array",
            "items": { "type": "string", "minLength": 1 }
          },
          "live_certification_next_blocker": { "type": ["string", "null"], "minLength": 1 },
          "live_certification_testnet_order_cancel_submitted": { "type": "boolean" },
          "live_certification_promotion_eligible": { "type": "boolean" },
          "live_certification_owner_action_available": { "type": "boolean" },
          "live_certification_owner_action_label": { "const": "run testnet drill" },
          "operator_control_readiness_status": {
            "enum": ["blocked", "ready_for_take_over", "ready_to_publish", "passed"]
          },
          "operator_control_next_blocker": { "type": ["string", "null"], "minLength": 1 },
          "operator_control_take_over_available": { "type": "boolean" },
          "operator_control_sentinel_publish_available": { "type": "boolean" },
          "private_keys_stored": { "type": "boolean" },
          "evidence_schema": { "const": "zero.public_operator.v1" }
        }
      }
    }
  }
}
