{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://sneakoscope.local/schemas/codex/codex-0139-real-probe-result.schema.json",
  "title": "SKS Codex 0.144.5 core real probe result (0.139 contract lineage)",
  "type": "object",
  "required": [
    "schema",
    "target_version",
    "compatibility_origin",
    "compatibility_authority",
    "generated_at",
    "codex_bin",
    "version_text",
    "parsed_version",
    "require_real",
    "release_authorizing",
    "overall_ok",
    "probe_timeout_ms",
    "requested_probes",
    "probes",
    "skipped",
    "warnings",
    "external_integration_status",
    "temp_cleanup",
    "blockers"
  ],
  "properties": {
    "schema": { "const": "sks.codex-0139-real-probe-result.v1" },
    "target_version": { "const": "0.144.5" },
    "compatibility_origin": { "const": "codex-0139-real-probe-result-v1" },
    "compatibility_authority": { "const": "deprecated_non_authoritative_lineage_only" },
    "generated_at": { "type": "string" },
    "codex_bin": { "type": ["string", "null"] },
    "version_text": { "type": ["string", "null"] },
    "parsed_version": { "type": ["string", "null"] },
    "require_real": { "type": "boolean" },
    "release_authorizing": { "type": "boolean" },
    "overall_ok": { "type": "boolean" },
    "probe_timeout_ms": { "type": "integer", "minimum": 1 },
    "requested_probes": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
    "probes": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "code_mode_web_search",
        "rich_tool_schema",
        "doctor_env_redaction",
        "marketplace_source_json",
        "plugin_catalog_cache",
        "sandbox_profile_alias",
        "collab_agent_tool_schema",
        "image_referenced_path",
        "sandbox_proxy_environment"
      ],
      "properties": {
        "code_mode_web_search": { "$ref": "#/$defs/singleProbe" },
        "rich_tool_schema": { "$ref": "#/$defs/singleProbe" },
        "doctor_env_redaction": { "$ref": "#/$defs/singleProbe" },
        "marketplace_source_json": { "$ref": "#/$defs/singleProbe" },
        "plugin_catalog_cache": { "$ref": "#/$defs/singleProbe" },
        "sandbox_profile_alias": { "$ref": "#/$defs/singleProbe" },
        "collab_agent_tool_schema": { "$ref": "#/$defs/singleProbe" },
        "image_referenced_path": { "$ref": "#/$defs/singleProbe" },
        "sandbox_proxy_environment": { "$ref": "#/$defs/singleProbe" }
      }
    },
    "skipped": { "type": "array", "items": { "type": "string" } },
    "warnings": { "type": "array", "items": { "type": "string" } },
    "external_integration_status": {
      "type": "object",
      "required": ["mcp_auth", "release_authorization_scope"],
      "properties": {
        "mcp_auth": { "enum": ["authentication_required", "not_observed"] },
        "release_authorization_scope": { "const": "codex_core_compatibility_only" }
      },
      "additionalProperties": false
    },
    "temp_cleanup": {
      "type": "object",
      "required": ["root", "ok", "remaining_entries"],
      "properties": {
        "root": { "type": "string" },
        "ok": { "type": "boolean" },
        "remaining_entries": { "type": "array", "items": { "type": "string" } }
      },
      "additionalProperties": false
    },
    "blockers": { "type": "array", "items": { "type": "string" } }
  },
  "$defs": {
    "singleProbe": {
      "type": "object",
      "required": ["ok", "mode", "duration_ms", "artifact_paths", "evidence", "blockers"],
      "properties": {
        "ok": { "type": "boolean" },
        "mode": {
          "enum": [
            "actual-cli",
            "actual-sdk",
            "actual-app-server",
            "actual-sks-bridge",
            "captured-real-fixture",
            "skipped"
          ]
        },
        "command_line": { "type": "array", "items": { "type": "string" } },
        "duration_ms": { "type": "integer", "minimum": 0 },
        "stdout_tail": { "type": "string" },
        "stderr_tail": { "type": "string" },
        "artifact_paths": { "type": "array", "items": { "type": "string" } },
        "evidence": { "type": "object" },
        "warnings": { "type": "array", "items": { "type": "string" } },
        "blockers": { "type": "array", "items": { "type": "string" } }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
