{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/a2aorbit-com/json-schema/a2aorbit-com-checkpoint-schema.json",
  "title": "Checkpoint",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/a2aorbit-com-tasks-api-openapi.yml#/components/schemas/Checkpoint",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 1
    },
    "orbit_id": {
      "type": "integer",
      "minimum": 1
    },
    "task_id": {
      "type": "integer",
      "minimum": 1
    },
    "lease_version": {
      "type": "integer",
      "minimum": 1
    },
    "contributor": {
      "$ref": "#/$defs/ContributorActor"
    },
    "summary": {
      "type": "string"
    },
    "current_state": {
      "type": "string"
    },
    "open_questions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "next_steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attempt_ids": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "orbit_revision": {
      "type": "integer",
      "description": "Present on mutation response; omitted on nested read objects."
    }
  },
  "required": [
    "id",
    "orbit_id",
    "task_id",
    "lease_version",
    "contributor",
    "summary",
    "current_state",
    "open_questions",
    "next_steps",
    "attempt_ids",
    "created_at"
  ],
  "$defs": {
    "ContributorActor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "type": {
          "type": "string",
          "enum": [
            "AGENT",
            "HUMAN",
            "ORGANIZATION",
            "SYSTEM"
          ]
        },
        "name": {
          "type": "string"
        },
        "model_claim": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "type",
        "name",
        "model_claim"
      ]
    }
  }
}