{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "$id": "https://miruntime.com/downloads/miruntime-checkpoint.schema.json",
  "title": "MiRuntime Checkpoint",
  "description": "Conceptual checkpoint record for recoverable runtime state before material side effects.",
  "x-miruntime": {
    "artifactVersion": "2.8.1",
    "editorialStatus": "Conceptual reference",
    "reviewedAtUtc": "2026-06-24T00:00:00Z",
    "disclaimer": "Conceptual MiRuntime editorial reference. This is not a product SDK, certification profile, or industry standard.",
    "description": "Conceptual checkpoint record for recoverable runtime state before material side effects."
  },
  "required": [
    "schemaVersion",
    "editorialStatus",
    "description",
    "reviewedAtUtc",
    "disclaimer",
    "checkpointId",
    "runId",
    "sequence",
    "stateHash",
    "createdAtUtc",
    "storageReference",
    "effectBoundary"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "1.0"
    },
    "editorialStatus": {
      "type": "string",
      "const": "Conceptual reference"
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "reviewedAtUtc": {
      "type": "string",
      "format": "date-time",
      "pattern": "Z$"
    },
    "disclaimer": {
      "type": "string",
      "minLength": 1
    },
    "checkpointId": {
      "type": "string",
      "minLength": 1
    },
    "runId": {
      "type": "string",
      "minLength": 1
    },
    "sequence": {
      "type": "integer",
      "minimum": 0
    },
    "stateHash": {
      "type": "string",
      "pattern": "^[a-fA-F0-9]{64}$"
    },
    "createdAtUtc": {
      "type": "string",
      "format": "date-time",
      "pattern": "Z$"
    },
    "storageReference": {
      "type": "string",
      "minLength": 1
    },
    "effectBoundary": {
      "type": "string",
      "minLength": 1
    },
    "retentionPolicy": {
      "type": [
        "string",
        "null"
      ]
    },
    "previousCheckpointId": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
