{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "href": {
      "type": "string",
      "maxLength": 4096
    },
    "sessionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "target": {
      "$ref": "#/components/schemas/ProjectAgentReviewAcceptanceTarget"
    },
    "recordId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "recordVersion": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "trackerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "relationVersion": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "execution": {
      "type": "string",
      "enum": [
        "reported_complete",
        "in_progress",
        "not_configured"
      ]
    },
    "artifact": {
      "type": "string",
      "enum": [
        "available",
        "source_unavailable"
      ]
    },
    "review": {
      "type": "string",
      "enum": [
        "ready",
        "requested_changes",
        "open_concerns",
        "not_ready"
      ]
    },
    "acceptance": {
      "type": "string",
      "enum": [
        "not_required",
        "not_requested",
        "pending",
        "accepted",
        "stale",
        "requested_changes",
        "rejected",
        "expired",
        "revoked",
        "unsatisfiable",
        "unknown"
      ]
    },
    "verification": {
      "type": "string",
      "enum": [
        "independently_verified",
        "reported",
        "failed",
        "unknown"
      ]
    },
    "openConcerns": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      },
      "maxItems": 10,
      "minItems": 0
    },
    "state": {
      "type": "string",
      "enum": [
        "working",
        "ready_for_review",
        "requested_changes",
        "accepted",
        "stale",
        "blocked"
      ]
    },
    "decision": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "interactionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "actionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "status": {
              "type": "string",
              "maxLength": 100
            },
            "receiptIds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "href": {
              "type": "string",
              "maxLength": 4096
            }
          },
          "required": [
            "interactionId",
            "actionId",
            "status",
            "receiptIds",
            "href"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "nextAction": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "label": {
          "type": "string",
          "maxLength": 100
        },
        "href": {
          "type": "string",
          "maxLength": 4096
        },
        "rule": {
          "$ref": "#/components/schemas/ProjectAgentProgressRule"
        }
      },
      "required": [
        "label",
        "href"
      ]
    }
  },
  "required": [
    "id",
    "title",
    "href",
    "sessionId",
    "target",
    "execution",
    "artifact",
    "review",
    "acceptance",
    "verification",
    "openConcerns",
    "blockers",
    "state",
    "decision",
    "nextAction"
  ]
}