← Files AixcutARCHIVED FILE

contracts/core/checkpoint.schema.json

2.82 KB · Nov 24, 2026 · 12:12 UTC

↓ Download file

See the change to this file →

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aixcut.com/plugin-core/checkpoint.schema.json",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "plan_id",
    "host",
    "project_id",
    "timeline_id",
    "phase",
    "last_confirmed_revision",
    "completed_steps",
    "pending_mutations",
    "job_ids",
    "next_step"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0.0"
    },
    "plan_id": {
      "type": "string",
      "minLength": 1
    },
    "host": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9-]{0,31}$",
      "description": "Opaque host adapter identity; never a credential or arbitrary path"
    },
    "project_id": {
      "type": "string",
      "minLength": 1
    },
    "timeline_id": {
      "type": "string",
      "minLength": 1
    },
    "phase": {
      "enum": [
        "intent",
        "inspect",
        "plan",
        "execute",
        "verify",
        "deliver"
      ]
    },
    "last_confirmed_revision": {
      "type": "integer",
      "minimum": 0
    },
    "plan_epoch": {
      "type": "integer",
      "minimum": 0
    },
    "completed_steps": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true,
      "maxItems": 500
    },
    "pending_mutations": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "$ref": "operation-receipt.schema.json"
      }
    },
    "job_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true,
      "maxItems": 500
    },
    "relink_assets": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["ref", "kind"],
        "properties": {
          "ref": { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[^/\\\\]+$" },
          "kind": { "enum": ["job", "asset", "media"] },
          "reason": { "type": "string", "minLength": 1, "maxLength": 500 }
        }
      }
    },
    "next_step": {
      "type": "string",
      "minLength": 1
    },
    "source_versions": {
      "type": "array",
      "maxItems": 500,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source_ref",
          "input_version"
        ],
        "properties": {
          "source_ref": {
            "type": "string",
            "minLength": 1
          },
          "input_version": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "evidence_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true,
      "maxItems": 500
    }
  }
}

SHA-256: d33d6167e05d1cf61af0e41498c9a81479a44104292b75d387afad0bc2d2a799