{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "anu_v3/schemas/runtime_reconcile_result.schema.json",
  "title": "anu_v3.runtime_reconcile_checkpoint.result.v1",
  "description": "task-2553+31 — read-only checkpoint result. Carries per-track classification, the additive batch_state PROPOSAL (9-R.1), consolidated summary, next_action recommendations, and the zero-side-effect proof.",
  "type": "object",
  "required": [
    "schema",
    "task_id",
    "mode",
    "track_records",
    "batch_state_proposal",
    "consolidated_summary",
    "zero_side_effect_proof"
  ],
  "properties": {
    "schema": {
      "type": "string",
      "const": "anu_v3.runtime_reconcile_checkpoint.result.v1"
    },
    "task_id": { "type": "string", "const": "task-2553+31" },
    "checkpoint": { "type": "string" },
    "mode": { "type": "string", "const": "READ_ONLY" },
    "generated_ts_kst": { "type": "string" },
    "source_fixture": { "type": "string" },
    "track_records": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": ["task_id", "classification", "terminal", "next_action"],
        "properties": {
          "classification": {
            "type": "string",
            "enum": [
              "NO_CRON_TASK_DONE",
              "RESULT_READY_NO_NORMAL_CALLBACK",
              "NORMAL_COLLECTOR_COMPLETED",
              "DUPLICATE_CALLBACK_IGNORED",
              "TRACK_MISMATCH",
              "RUNNING",
              "WAIT_FOR_RESULT",
              "FALLBACK_PENDING",
              "STALE_OR_BOT_STUCK_CANDIDATE"
            ]
          },
          "terminal": { "type": "boolean" },
          "recovery_eligible": { "type": "boolean" },
          "next_action": {
            "type": "object",
            "required": ["recommendation", "is_execution"],
            "properties": {
              "recommendation": { "type": "string" },
              "blocking": { "type": "boolean" },
              "is_execution": { "type": "boolean", "const": false }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    },
    "batch_state_proposal": {
      "type": "object",
      "required": ["schema", "artifact_kind", "version", "closeout_proposal"],
      "properties": {
        "artifact_kind": {
          "type": "string",
          "const": "ADDITIVE_VERSIONED_PROPOSAL"
        },
        "supersedes_durable_v1": { "type": "boolean", "const": false },
        "version": { "type": "integer", "minimum": 1 },
        "closeout_proposal": {
          "type": "object",
          "required": ["eligible", "confirmed"],
          "properties": {
            "eligible": { "type": "boolean" },
            "confirmed": { "type": "boolean", "const": false }
          },
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "consolidated_summary": { "type": "object" },
    "zero_side_effect_proof": {
      "type": "object",
      "required": ["write", "cron", "merge", "dispatch"],
      "properties": {
        "write": { "type": "integer", "const": 0 },
        "cron": { "type": "integer", "const": 0 },
        "merge": { "type": "integer", "const": 0 },
        "dispatch": { "type": "integer", "const": 0 }
      },
      "additionalProperties": true
    },
    "batch_state_proposal_emitted": { "type": "object" }
  },
  "additionalProperties": true
}
