{
  "$defs": {
    "AnchorState": {
      "description": "Registry-managed lifecycle of an anchor intent or entry projection.",
      "oneOf": [
        {
          "const": "unanchored",
          "description": "No anchor has been requested for the current entry snapshot.",
          "type": "string"
        },
        {
          "const": "pending",
          "description": "Durable work exists and is ready for a worker.",
          "type": "string"
        },
        {
          "const": "submitted",
          "description": "A provider accepted the submission but has not confirmed it.",
          "type": "string"
        },
        {
          "const": "confirmed",
          "description": "The provider reported final confirmation.",
          "type": "string"
        },
        {
          "const": "failed",
          "description": "The latest attempt failed and is eligible for a bounded retry.",
          "type": "string"
        },
        {
          "const": "abandoned",
          "description": "Retry policy or an administrator ended processing permanently.",
          "type": "string"
        }
      ]
    }
  },
  "$id": "urn:mars:schema:v1:anchor-control-response",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Response body for an administrative retry or abandon transition.",
  "properties": {
    "intentId": {
      "type": "string"
    },
    "state": {
      "$ref": "#/$defs/AnchorState"
    }
  },
  "required": [
    "intentId",
    "state"
  ],
  "title": "AnchorControlResponse",
  "type": "object"
}
