{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "trackerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512,
      "pattern": "^[^\\s]+$"
    },
    "baseCommitSha": {
      "type": "string",
      "pattern": "^[a-f0-9]{40,64}$"
    },
    "confirmedCommitSha": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "publishedCommitSha": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "publicationBranch": {
      "type": "string",
      "maxLength": 200
    },
    "author": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "user",
            "agent"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "pending",
        "queued",
        "leased",
        "conflict",
        "unavailable",
        "published",
        "committed",
        "cancelled"
      ]
    },
    "version": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectAgentTrackerDiagnostic"
      },
      "maxItems": 10000,
      "minItems": 0
    },
    "conflicts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectAgentSyncConflict"
      },
      "maxItems": 10000,
      "minItems": 0
    },
    "completedBatches": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "totalBatches": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "id",
    "trackerId",
    "baseCommitSha",
    "confirmedCommitSha",
    "publishedCommitSha",
    "publicationBranch",
    "author",
    "state",
    "version",
    "diagnostics",
    "conflicts",
    "completedBatches",
    "totalBatches"
  ]
}