{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "progress_policy_get",
        "progress_policy_set",
        "review_progress",
        "review_progress_reconcile",
        "review_relation_set",
        "review_relation_remove",
        "validate",
        "create",
        "list",
        "get",
        "update",
        "schema_get",
        "schemas_list",
        "schema_preview",
        "schema_apply",
        "archive",
        "restore",
        "records_query",
        "records_get",
        "records_history",
        "records_create",
        "records_patch",
        "records_archive",
        "records_bulk",
        "records_reorder",
        "views_list",
        "views_get",
        "views_create",
        "views_update",
        "views_delete",
        "export",
        "import_preview",
        "import_new_preview",
        "import_apply",
        "import_get",
        "import_cancel",
        "authority_preview",
        "authority_migrate",
        "proposal_stage",
        "source_bind",
        "sync_status",
        "sync_proposal",
        "sync_preview",
        "sync_apply",
        "sync_resolve",
        "sync_retry",
        "sync_cancel",
        "source_refresh",
        "renderers_list",
        "renderers_manage",
        "activity",
        "feedback"
      ],
      "description": "Implemented domain action."
    },
    "input": {
      "type": "object",
      "description": "Exact action input including path identities."
    },
    "etag": {
      "type": "string",
      "maxLength": 1024,
      "description": "Exact resource ETag for conditional writes."
    },
    "idempotencyKey": {
      "type": "string",
      "maxLength": 200,
      "description": "Reuse only for the identical operation intent."
    }
  },
  "required": [
    "action",
    "input"
  ],
  "additionalProperties": false,
  "oneOf": [
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "progress_policy_get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerProgressPolicyInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "progress_policy_set"
        },
        "input": {
          "$ref": "#/$defs/setTrackerProgressPolicyInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "review_progress"
        },
        "input": {
          "$ref": "#/$defs/getTrackerReviewProgressInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "review_progress_reconcile"
        },
        "input": {
          "$ref": "#/$defs/reconcileTrackerReviewProgressInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "review_relation_set"
        },
        "input": {
          "$ref": "#/$defs/configureTrackerReviewRelationInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "review_relation_remove"
        },
        "input": {
          "$ref": "#/$defs/removeTrackerReviewRelationInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "validate"
        },
        "input": {
          "$ref": "#/$defs/validateTrackerContractInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "create"
        },
        "input": {
          "$ref": "#/$defs/createTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "list"
        },
        "input": {
          "$ref": "#/$defs/listTrackersInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "update"
        },
        "input": {
          "$ref": "#/$defs/updateTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "schema_get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerSchemaInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "schemas_list"
        },
        "input": {
          "$ref": "#/$defs/listTrackerSchemasInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "schema_preview"
        },
        "input": {
          "$ref": "#/$defs/previewTrackerSchemaInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "schema_apply"
        },
        "input": {
          "$ref": "#/$defs/applyTrackerSchemaInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "archive"
        },
        "input": {
          "$ref": "#/$defs/archiveTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "restore"
        },
        "input": {
          "$ref": "#/$defs/restoreTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_query"
        },
        "input": {
          "$ref": "#/$defs/queryTrackerRecordsInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerRecordInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_history"
        },
        "input": {
          "$ref": "#/$defs/listTrackerRecordHistoryInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_create"
        },
        "input": {
          "$ref": "#/$defs/createTrackerRecordInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_patch"
        },
        "input": {
          "$ref": "#/$defs/patchTrackerRecordInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_archive"
        },
        "input": {
          "$ref": "#/$defs/archiveTrackerRecordInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_bulk"
        },
        "input": {
          "$ref": "#/$defs/bulkTrackerRecordsInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "records_reorder"
        },
        "input": {
          "$ref": "#/$defs/reorderTrackerRecordsInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "views_list"
        },
        "input": {
          "$ref": "#/$defs/listTrackerViewsInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "views_get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerViewInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "views_create"
        },
        "input": {
          "$ref": "#/$defs/createTrackerViewInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "views_update"
        },
        "input": {
          "$ref": "#/$defs/updateTrackerViewInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "views_delete"
        },
        "input": {
          "$ref": "#/$defs/deleteTrackerViewInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "export"
        },
        "input": {
          "$ref": "#/$defs/exportTrackerInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "import_preview"
        },
        "input": {
          "$ref": "#/$defs/previewTrackerImportInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "import_new_preview"
        },
        "input": {
          "$ref": "#/$defs/previewNewTrackerImportInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "import_apply"
        },
        "input": {
          "$ref": "#/$defs/applyTrackerImportInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "import_get"
        },
        "input": {
          "$ref": "#/$defs/getTrackerImportInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "import_cancel"
        },
        "input": {
          "$ref": "#/$defs/cancelTrackerImportInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "authority_preview"
        },
        "input": {
          "$ref": "#/$defs/previewTrackerAuthorityInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "authority_migrate"
        },
        "input": {
          "$ref": "#/$defs/migrateTrackerAuthorityInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "proposal_stage"
        },
        "input": {
          "$ref": "#/$defs/stageTrackerProposalInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "source_bind"
        },
        "input": {
          "$ref": "#/$defs/bindTrackerGitSourceInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_status"
        },
        "input": {
          "$ref": "#/$defs/getTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_proposal"
        },
        "input": {
          "$ref": "#/$defs/getTrackerSyncProposalInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_preview"
        },
        "input": {
          "$ref": "#/$defs/previewTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_apply"
        },
        "input": {
          "$ref": "#/$defs/applyTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_resolve"
        },
        "input": {
          "$ref": "#/$defs/resolveTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_retry"
        },
        "input": {
          "$ref": "#/$defs/retryTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "sync_cancel"
        },
        "input": {
          "$ref": "#/$defs/cancelTrackerSyncInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "source_refresh"
        },
        "input": {
          "$ref": "#/$defs/refreshTrackerGitSourceInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input",
        "etag",
        "idempotencyKey"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "renderers_list"
        },
        "input": {
          "$ref": "#/$defs/listTrackerRenderersInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "renderers_manage"
        },
        "input": {
          "$ref": "#/$defs/manageTrackerRendererPublicationInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "activity"
        },
        "input": {
          "$ref": "#/$defs/listTrackerActivityInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "action": {
          "const": "feedback"
        },
        "input": {
          "$ref": "#/$defs/listTrackerFeedbackInput"
        },
        "etag": {
          "type": "string",
          "maxLength": 1024
        },
        "idempotencyKey": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        }
      },
      "required": [
        "action",
        "input"
      ]
    }
  ],
  "$defs": {
    "getTrackerProgressPolicyInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "getTrackerProgressPolicyOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "policy": {
              "$ref": "#/$defs/ProgressPolicy"
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "policy",
            "version"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "ProgressPolicy": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "executionField": {
          "type": "string",
          "maxLength": 64
        },
        "completeValues": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "boolean"
            ],
            "maxLength": 100
          },
          "maxItems": 100,
          "minItems": 0
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProgressRule"
          },
          "maxItems": 6,
          "minItems": 0
        }
      },
      "required": [
        "completeValues",
        "rules"
      ]
    },
    "ProgressRule": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "working",
            "ready_for_review",
            "requested_changes",
            "accepted",
            "stale",
            "blocked"
          ]
        },
        "label": {
          "type": "string",
          "maxLength": 100
        },
        "executionValue": {
          "type": [
            "string",
            "boolean"
          ],
          "maxLength": 100
        },
        "mode": {
          "type": "string",
          "enum": [
            "suggest",
            "automatic"
          ]
        }
      },
      "required": [
        "state",
        "label",
        "mode"
      ]
    },
    "setTrackerProgressPolicyInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "policy": {
          "$ref": "#/$defs/ProgressPolicy"
        }
      },
      "required": [
        "trackerId",
        "policy"
      ]
    },
    "setTrackerProgressPolicyOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "policy": {
              "$ref": "#/$defs/ProgressPolicy"
            },
            "version": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "policy",
            "version"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "getTrackerReviewProgressInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "getTrackerReviewProgressOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Progress"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "Progress": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProgressItem"
          },
          "maxItems": 1000,
          "minItems": 0
        },
        "nextAfter": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "pattern": "^[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "projection": {
          "type": "string",
          "enum": [
            "current",
            "pending",
            "failed"
          ]
        },
        "countsScope": {
          "const": "visible_page"
        },
        "counts": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "visible": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "reportedComplete": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "accepted": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "needsAttention": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "visible",
            "reportedComplete",
            "accepted",
            "needsAttention"
          ]
        }
      },
      "required": [
        "items",
        "nextAfter",
        "projection",
        "countsScope",
        "counts"
      ]
    },
    "ProgressItem": {
      "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": "#/$defs/ReviewAcceptanceTarget"
        },
        "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": "#/$defs/ProgressRule"
            }
          },
          "required": [
            "label",
            "href"
          ]
        }
      },
      "required": [
        "id",
        "title",
        "href",
        "sessionId",
        "target",
        "execution",
        "artifact",
        "review",
        "acceptance",
        "verification",
        "openConcerns",
        "blockers",
        "state",
        "decision",
        "nextAction"
      ]
    },
    "ReviewAcceptanceTarget": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "version": {
          "const": 1
        },
        "sessionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "sessionRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "revisionSetFingerprint": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "manifestSha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "scope": {
          "type": "string",
          "enum": [
            "deliverable",
            "session"
          ]
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExactTarget"
          },
          "maxItems": 100,
          "minItems": 1
        },
        "supportingRevisions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "requirement",
                  "evidence"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "revisionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": [
              "kind",
              "id",
              "revisionId",
              "sha256"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        }
      },
      "required": [
        "version",
        "sessionId",
        "sessionRevisionId",
        "revisionSetFingerprint",
        "manifestSha256",
        "scope",
        "targets",
        "supportingRevisions"
      ]
    },
    "ExactTarget": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "resource": {
          "$ref": "#/$defs/Resource"
        },
        "revisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "purpose": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "resource",
        "revisionId",
        "sha256"
      ]
    },
    "Resource": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "repository",
            "pull_request",
            "document",
            "draft_review",
            "form",
            "research_study",
            "knowledge_brain",
            "web_app_review",
            "project",
            "tracker",
            "review_package",
            "project_review_session",
            "source_snapshot"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "reconcileTrackerReviewProgressInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "reconcileTrackerReviewProgressOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "relationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^[^\\s]+$"
                  },
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "applied",
                      "suggestion",
                      "conflict",
                      "unchanged"
                    ]
                  },
                  "recordVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "relationId",
                  "outcome"
                ]
              },
              "maxItems": 250,
              "minItems": 0
            }
          },
          "required": [
            "items"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "configureTrackerReviewRelationInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "target": {
          "$ref": "#/$defs/ReviewAcceptanceTarget"
        },
        "actionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "acceptanceRequired": {
          "type": "boolean"
        },
        "expectedRelationVersion": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "trackerId",
        "recordId",
        "target",
        "acceptanceRequired",
        "expectedRelationVersion"
      ]
    },
    "configureTrackerReviewRelationOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "trackerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "target": {
              "$ref": "#/$defs/ReviewAcceptanceTarget"
            },
            "actionId": {
              "type": [
                "string",
                "null"
              ]
            },
            "acceptanceRequired": {
              "type": "boolean"
            },
            "version": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "expectedRecordVersion": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "id",
            "trackerId",
            "recordId",
            "sessionId",
            "target",
            "actionId",
            "acceptanceRequired",
            "version",
            "expectedRecordVersion"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "removeTrackerReviewRelationInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "sessionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "expectedRelationVersion": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "trackerId",
        "recordId",
        "sessionId",
        "expectedRelationVersion"
      ]
    },
    "removeTrackerReviewRelationOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "removed": {
              "type": "boolean"
            }
          },
          "required": [
            "removed"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "validateTrackerContractInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "contract": {
          "$ref": "#/$defs/TrackerContract"
        }
      },
      "required": [
        "contract"
      ]
    },
    "TrackerContract": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "commentary_tracker"
        },
        "contractVersion": {
          "const": 1
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "descriptionMarkdown": {
          "type": "string",
          "maxLength": 32768
        },
        "fields": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "$ref": "#/$defs/TrackerContract_field"
          }
        },
        "views": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerContract_view"
          },
          "maxItems": 100
        },
        "transitions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "field": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                "not": {
                  "enum": [
                    "id",
                    "trackerId",
                    "recordId",
                    "version",
                    "schemaRevision",
                    "schemaRevisionId",
                    "lifecycle",
                    "archived",
                    "orderKey",
                    "auditActor",
                    "acceptance",
                    "acceptanceReceipt",
                    "acceptanceReceipts",
                    "decision",
                    "decisionReceipt",
                    "verification",
                    "verified",
                    "humanApproval",
                    "__proto__",
                    "prototype",
                    "constructor"
                  ]
                }
              },
              "from": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
              },
              "to": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
              },
              "when": {
                "$ref": "#/$defs/TrackerContract_logic"
              }
            },
            "required": [
              "field",
              "from",
              "to"
            ]
          },
          "maxItems": 100
        },
        "acceptance": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "optional",
                "required"
              ]
            },
            "policyRef": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
            }
          },
          "required": [
            "mode"
          ]
        },
        "metadata": {
          "type": "object"
        }
      },
      "required": [
        "kind",
        "contractVersion",
        "name",
        "fields",
        "views"
      ],
      "description": "Tracker Contract v1 wire shape. Run the parser for field uniqueness, mapping compatibility, safe JSON bounds, credential checks and semantic diagnostics."
    },
    "TrackerContract_field": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
          "not": {
            "enum": [
              "id",
              "trackerId",
              "recordId",
              "version",
              "schemaRevision",
              "schemaRevisionId",
              "lifecycle",
              "archived",
              "orderKey",
              "auditActor",
              "acceptance",
              "acceptanceReceipt",
              "acceptanceReceipts",
              "decision",
              "decisionReceipt",
              "verification",
              "verified",
              "humanApproval",
              "__proto__",
              "prototype",
              "constructor"
            ]
          }
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "markdown",
            "number",
            "boolean",
            "enum",
            "multiselect",
            "date",
            "datetime",
            "actor_ref",
            "actor_refs",
            "status",
            "priority",
            "url",
            "artifact_ref",
            "artifact_refs",
            "resource_ref",
            "resource_refs",
            "record_ref",
            "record_refs",
            "metadata"
          ]
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "required": {
          "type": "boolean"
        },
        "default": {},
        "options": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "id",
              "label"
            ]
          }
        },
        "schema": {
          "$ref": "#/$defs/TrackerContract_valueSchema"
        },
        "ui": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "placeholder": {
              "type": "string",
              "maxLength": 32768
            },
            "helpMarkdown": {
              "type": "string",
              "maxLength": 32768
            },
            "multiline": {
              "type": "boolean"
            },
            "width": {
              "type": "string",
              "enum": [
                "compact",
                "normal",
                "wide"
              ]
            }
          },
          "required": []
        }
      },
      "required": [
        "id",
        "type",
        "label"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "enum": [
                  "enum",
                  "multiselect",
                  "status",
                  "priority"
                ]
              }
            }
          },
          "then": {
            "required": [
              "options"
            ]
          },
          "else": {
            "not": {
              "required": [
                "options"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "text"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minLength": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxLength": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "markdown"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minLength": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxLength": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "number"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minimum": {
                    "type": "number"
                  },
                  "maximum": {
                    "type": "number"
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "boolean"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "enum"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "multiselect"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minItems": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "date"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "datetime"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "actor_ref"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "actor_refs"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minItems": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "status"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "priority"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "url"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minLength": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxLength": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "artifact_ref"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "artifact_refs"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minItems": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "resource_ref"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "resource_refs"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minItems": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "record_ref"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {},
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "record_refs"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "minItems": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "maxItems": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "required": []
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "metadata"
              }
            }
          },
          "then": {
            "properties": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/$defs/TrackerContract_valueSchema"
                  },
                  {
                    "required": [
                      "type"
                    ],
                    "properties": {
                      "type": {
                        "const": "object"
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      ]
    },
    "TrackerContract_valueSchema": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "string",
            "number",
            "integer",
            "boolean",
            "array",
            "object",
            "null"
          ]
        },
        "properties": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": {
            "$ref": "#/$defs/TrackerContract_valueSchema"
          }
        },
        "required": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 32768
          },
          "maxItems": 100
        },
        "additionalProperties": {
          "oneOf": [
            {
              "type": "boolean"
            },
            {
              "$ref": "#/$defs/TrackerContract_valueSchema"
            }
          ]
        },
        "items": {
          "$ref": "#/$defs/TrackerContract_valueSchema"
        },
        "enum": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100
        },
        "minimum": {
          "type": "number"
        },
        "maximum": {
          "type": "number"
        },
        "minLength": {
          "type": "integer",
          "minimum": 0
        },
        "maxLength": {
          "type": "integer",
          "minimum": 0
        },
        "minItems": {
          "type": "integer",
          "minimum": 0
        },
        "maxItems": {
          "type": "integer",
          "minimum": 0
        },
        "uniqueItems": {
          "type": "boolean"
        }
      },
      "required": []
    },
    "TrackerContract_view": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
        },
        "renderer": {
          "type": "string",
          "enum": [
            "checklist",
            "list",
            "table",
            "board",
            "timeline",
            "calendar",
            "gantt",
            "summary"
          ]
        },
        "mappings": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "visibility": {
          "type": "string",
          "enum": [
            "personal",
            "shared"
          ]
        },
        "visibleFields": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
            "not": {
              "enum": [
                "id",
                "trackerId",
                "recordId",
                "version",
                "schemaRevision",
                "schemaRevisionId",
                "lifecycle",
                "archived",
                "orderKey",
                "auditActor",
                "acceptance",
                "acceptanceReceipt",
                "acceptanceReceipts",
                "decision",
                "decisionReceipt",
                "verification",
                "verified",
                "humanApproval",
                "__proto__",
                "prototype",
                "constructor"
              ]
            }
          },
          "maxItems": 100
        },
        "filter": {
          "anyOf": [
            {
              "$ref": "#/$defs/TrackerContract_logic"
            },
            {
              "type": "object",
              "maxProperties": 1,
              "additionalProperties": true
            }
          ]
        },
        "sort": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "field": {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                "not": {
                  "enum": [
                    "id",
                    "trackerId",
                    "recordId",
                    "version",
                    "schemaRevision",
                    "schemaRevisionId",
                    "lifecycle",
                    "archived",
                    "orderKey",
                    "auditActor",
                    "acceptance",
                    "acceptanceReceipt",
                    "acceptanceReceipts",
                    "decision",
                    "decisionReceipt",
                    "verification",
                    "verified",
                    "humanApproval",
                    "__proto__",
                    "prototype",
                    "constructor"
                  ]
                }
              },
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "required": [
              "field",
              "direction"
            ]
          },
          "maxItems": 10
        },
        "groupBy": {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
          "not": {
            "enum": [
              "id",
              "trackerId",
              "recordId",
              "version",
              "schemaRevision",
              "schemaRevisionId",
              "lifecycle",
              "archived",
              "orderKey",
              "auditActor",
              "acceptance",
              "acceptanceReceipt",
              "acceptanceReceipts",
              "decision",
              "decisionReceipt",
              "verification",
              "verified",
              "humanApproval",
              "__proto__",
              "prototype",
              "constructor"
            ]
          }
        },
        "layout": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "density": {
              "type": "string",
              "enum": [
                "compact",
                "comfortable"
              ]
            },
            "timezone": {
              "type": "string",
              "minLength": 1
            },
            "from": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "to": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "granularity": {
              "enum": [
                "week",
                "month"
              ]
            },
            "mode": {
              "enum": [
                "overlap",
                "unscheduled",
                "outside",
                "invalid",
                "all"
              ]
            },
            "presentation": {
              "enum": [
                "visual",
                "agenda"
              ]
            }
          },
          "required": []
        },
        "completedValues": {
          "type": "array",
          "minItems": 1,
          "maxItems": 100,
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$"
          }
        }
      },
      "required": [
        "key",
        "renderer",
        "mappings"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "checklist"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "completed": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "title",
                  "completed"
                ]
              }
            },
            "required": []
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "list"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "display": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "title"
                ]
              }
            },
            "required": []
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "table"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "display": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "title",
                  "display"
                ]
              }
            },
            "required": []
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "board"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "group": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "title",
                  "group"
                ]
              }
            },
            "required": []
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "timeline"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "start": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "end": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "group": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "execution": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [],
                "anyOf": [
                  {
                    "required": [
                      "date"
                    ]
                  },
                  {
                    "required": [
                      "start",
                      "end"
                    ]
                  }
                ]
              },
              "layout": {
                "required": [
                  "timezone"
                ]
              }
            },
            "required": [
              "layout"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "calendar"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "group": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "execution": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "date"
                ]
              },
              "layout": {
                "required": [
                  "timezone"
                ]
              }
            },
            "required": [
              "layout"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "gantt"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "title": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "start": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "end": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "dependencies": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "group": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "execution": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "title",
                  "start",
                  "end",
                  "dependencies"
                ]
              },
              "layout": {
                "required": [
                  "timezone"
                ]
              }
            },
            "required": [
              "layout"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "renderer": {
                "const": "summary"
              }
            }
          },
          "then": {
            "properties": {
              "mappings": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "execution": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "acceptance": {
                    "const": "$acceptance"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "start": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  },
                  "end": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                    "not": {
                      "enum": [
                        "id",
                        "trackerId",
                        "recordId",
                        "version",
                        "schemaRevision",
                        "schemaRevisionId",
                        "lifecycle",
                        "archived",
                        "orderKey",
                        "auditActor",
                        "acceptance",
                        "acceptanceReceipt",
                        "acceptanceReceipts",
                        "decision",
                        "decisionReceipt",
                        "verification",
                        "verified",
                        "humanApproval",
                        "__proto__",
                        "prototype",
                        "constructor"
                      ]
                    }
                  }
                },
                "required": [
                  "execution"
                ]
              }
            },
            "required": []
          }
        }
      ]
    },
    "TrackerContract_logic": {
      "oneOf": [
        {
          "type": [
            "null",
            "boolean",
            "number",
            "string"
          ]
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerContract_logic"
          },
          "maxItems": 256
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "var": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
              "not": {
                "enum": [
                  "id",
                  "trackerId",
                  "recordId",
                  "version",
                  "schemaRevision",
                  "schemaRevisionId",
                  "lifecycle",
                  "archived",
                  "orderKey",
                  "auditActor",
                  "acceptance",
                  "acceptanceReceipt",
                  "acceptanceReceipts",
                  "decision",
                  "decisionReceipt",
                  "verification",
                  "verified",
                  "humanApproval",
                  "__proto__",
                  "prototype",
                  "constructor"
                ]
              }
            }
          },
          "required": [
            "var"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "exists": {
              "oneOf": [
                {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                  "not": {
                    "enum": [
                      "id",
                      "trackerId",
                      "recordId",
                      "version",
                      "schemaRevision",
                      "schemaRevisionId",
                      "lifecycle",
                      "archived",
                      "orderKey",
                      "auditActor",
                      "acceptance",
                      "acceptanceReceipt",
                      "acceptanceReceipts",
                      "decision",
                      "decisionReceipt",
                      "verification",
                      "verified",
                      "humanApproval",
                      "__proto__",
                      "prototype",
                      "constructor"
                    ]
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "var": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
                      "not": {
                        "enum": [
                          "id",
                          "trackerId",
                          "recordId",
                          "version",
                          "schemaRevision",
                          "schemaRevisionId",
                          "lifecycle",
                          "archived",
                          "orderKey",
                          "auditActor",
                          "acceptance",
                          "acceptanceReceipt",
                          "acceptanceReceipts",
                          "decision",
                          "decisionReceipt",
                          "verification",
                          "verified",
                          "humanApproval",
                          "__proto__",
                          "prototype",
                          "constructor"
                        ]
                      }
                    }
                  },
                  "required": [
                    "var"
                  ]
                }
              ]
            }
          },
          "required": [
            "exists"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "not": {
              "$ref": "#/$defs/TrackerContract_logic"
            }
          },
          "required": [
            "not"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "equals": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "equals"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "notEquals": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "notEquals"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "gt": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "gt"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "gte": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "gte"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "lt": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "lt"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "lte": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "lte"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            ">": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            ">"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            ">=": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            ">="
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "<": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "<"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "<=": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "<="
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "in": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "minItems": 2,
              "maxItems": 2
            }
          },
          "required": [
            "in"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "and": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "maxItems": 256
            }
          },
          "required": [
            "and"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "or": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerContract_logic"
              },
              "maxItems": 256
            }
          },
          "required": [
            "or"
          ]
        }
      ]
    },
    "validateTrackerContractOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "valid": {
              "const": true
            },
            "contentHash": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            }
          },
          "required": [
            "valid",
            "contentHash"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "createTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "workspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "contract": {
          "$ref": "#/$defs/TrackerContract"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "workspace",
            "participants"
          ]
        },
        "participants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerParticipant"
          },
          "maxItems": 100,
          "minItems": 0
        }
      },
      "required": [
        "workspaceId",
        "contract"
      ]
    },
    "TrackerParticipant": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "user",
            "agent"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "grantId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "createTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Tracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "Tracker": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "initialWorkspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "name": {
          "type": "string",
          "maxLength": 200
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "version": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "lifecycle": {
          "type": "string",
          "enum": [
            "active",
            "archived"
          ]
        },
        "authority": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "commentary",
                "git"
              ]
            },
            "sourceSnapshotId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "commitSha": {
              "type": "string",
              "pattern": "^[a-f0-9]{40,64}$"
            }
          },
          "required": [
            "mode"
          ]
        },
        "ownerViewerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "workspace",
            "participants"
          ]
        },
        "participants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerParticipant"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "contentHash": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "contractVersion": {
          "const": 1
        },
        "migrationId": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "migrationTargetSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "createdAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        },
        "updatedAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        }
      },
      "required": [
        "id",
        "initialWorkspaceId",
        "name",
        "schemaRevisionId",
        "version",
        "lifecycle",
        "authority",
        "ownerViewerId",
        "visibility",
        "participants",
        "contentHash",
        "contractVersion",
        "migrationId",
        "createdAt",
        "updatedAt"
      ]
    },
    "listTrackersInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "workspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "workspaceId"
      ]
    },
    "listTrackersOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Tracker"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048,
                  "pattern": "^[^\\s]+$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "items",
            "nextCursor"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "getTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "getTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Tracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "updateTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "workspace",
            "participants"
          ]
        },
        "participants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerParticipant"
          },
          "maxItems": 100,
          "minItems": 0
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "updateTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Tracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "getTrackerSchemaInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "getTrackerSchemaOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerContract"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "listTrackerSchemasInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "listTrackerSchemasOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/TrackerSchemaVersion"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048,
                  "pattern": "^[^\\s]+$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "items",
            "nextCursor"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerSchemaVersion": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "contract": {
          "$ref": "#/$defs/TrackerContract"
        },
        "contentHash": {
          "type": "string",
          "pattern": "^sha256:[a-f0-9]{64}$"
        },
        "actor": {
          "$ref": "#/$defs/Actor"
        },
        "createdAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        }
      },
      "required": [
        "id",
        "contract",
        "contentHash",
        "actor",
        "createdAt"
      ]
    },
    "Actor": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "user",
            "agent",
            "service",
            "system"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "previewTrackerSchemaInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "contract": {
          "$ref": "#/$defs/TrackerContract"
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "trackerId",
        "contract",
        "expectedSchemaRevisionId"
      ]
    },
    "previewTrackerSchemaOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerSchemaResult"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerSchemaResult": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "compatible": {
          "type": "boolean"
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerDiagnostic"
          },
          "maxItems": 2000,
          "minItems": 0
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "comparison": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "compatible": {
              "type": "boolean"
            },
            "changes": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "additive",
                      "breaking"
                    ]
                  },
                  "path": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "fieldId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^[^\\s]+$"
                  }
                },
                "required": [
                  "kind",
                  "path",
                  "message"
                ]
              },
              "maxItems": 1000,
              "minItems": 0
            },
            "affectedViews": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "maxItems": 100,
              "minItems": 0
            }
          },
          "required": [
            "compatible",
            "changes",
            "affectedViews"
          ]
        },
        "records": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "recordId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "valid": {
                "type": "boolean"
              },
              "diagnostics": {
                "type": "array",
                "items": {
                  "$ref": "#/$defs/TrackerDiagnostic"
                },
                "maxItems": 2000,
                "minItems": 0
              },
              "etag": {
                "type": "string",
                "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
              }
            },
            "required": [
              "recordId",
              "valid",
              "diagnostics",
              "etag"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        },
        "nextCursor": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "migration": {
          "anyOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "^[^\\s]+$"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "running",
                    "completed"
                  ]
                },
                "remaining": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "processed": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "outcomes": {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/TrackerMigrationOutcome"
                  },
                  "maxItems": 100,
                  "minItems": 0
                }
              },
              "required": [
                "id",
                "state",
                "remaining",
                "processed",
                "outcomes"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "compatible",
        "diagnostics",
        "schemaRevisionId"
      ]
    },
    "TrackerDiagnostic": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "path": {
          "type": "string",
          "maxLength": 1024
        },
        "message": {
          "type": "string",
          "maxLength": 1024
        },
        "severity": {
          "type": "string",
          "enum": [
            "error",
            "warning"
          ]
        }
      },
      "required": [
        "code",
        "path",
        "message",
        "severity"
      ]
    },
    "TrackerMigrationOutcome": {
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "success"
              ]
            },
            "etag": {
              "type": "string",
              "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
            }
          },
          "required": [
            "recordId",
            "outcome",
            "etag"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "failed"
              ]
            },
            "error": {
              "$ref": "#/$defs/Error"
            }
          },
          "required": [
            "recordId",
            "outcome",
            "error"
          ]
        }
      ]
    },
    "Error": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "version": {
          "const": "1"
        },
        "code": {
          "type": "string",
          "enum": [
            "authentication_required",
            "insufficient_scope",
            "not_found",
            "validation_failed",
            "capability_unsupported",
            "contract_version_unsupported",
            "precondition_required",
            "precondition_failed",
            "version_conflict",
            "idempotency_key_required",
            "idempotency_key_reused",
            "source_access_revoked",
            "source_unavailable",
            "unsupported_provider_write",
            "source_conflict",
            "upload_expired",
            "checksum_mismatch",
            "schema_incompatible",
            "limit_reached",
            "rate_limited",
            "event_cursor_resync_required",
            "bridge_disconnected",
            "verification_unavailable",
            "internal_error"
          ]
        },
        "message": {
          "type": "string",
          "maxLength": 4096
        },
        "correlationId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._:-]{1,128}$"
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "field": {
                "type": "string",
                "maxLength": 1024
              },
              "issue": {
                "type": "string",
                "maxLength": 1024
              }
            },
            "required": [
              "field",
              "issue"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "version",
        "code",
        "message",
        "correlationId"
      ]
    },
    "applyTrackerSchemaInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "contract": {
          "$ref": "#/$defs/TrackerContract"
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "allowBreaking": {
          "type": "boolean"
        },
        "migrationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "mappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerMigrationMapping"
          },
          "maxItems": 100,
          "minItems": 0
        }
      },
      "required": [
        "trackerId",
        "contract",
        "expectedSchemaRevisionId"
      ]
    },
    "TrackerMigrationMapping": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "etag": {
          "type": "string",
          "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
        },
        "values": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": true
        }
      },
      "required": [
        "recordId",
        "etag",
        "values"
      ]
    },
    "applyTrackerSchemaOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerSchemaResult"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "archiveTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "archiveTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Tracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "restoreTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "restoreTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Tracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "queryTrackerRecordsInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "query": {
          "$ref": "#/$defs/Query"
        },
        "viewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "query"
      ]
    },
    "Query": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "schedule": {
          "anyOf": [
            {
              "$ref": "#/$defs/ScheduleWindow"
            },
            {
              "type": "null"
            }
          ]
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "search": {
          "type": "string",
          "maxLength": 200
        },
        "filter": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "maxProperties": 1,
              "additionalProperties": true
            }
          ]
        },
        "manual": {
          "type": "boolean"
        },
        "sort": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "required": [
              "field",
              "direction"
            ]
          },
          "maxItems": 10,
          "minItems": 0
        },
        "groupBy": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "archived": {
          "type": "boolean"
        }
      },
      "required": []
    },
    "ScheduleWindow": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "startField": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "endField": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "from": {
          "type": "string",
          "maxLength": 10
        },
        "to": {
          "type": "string",
          "maxLength": 10
        },
        "timezone": {
          "type": "string",
          "maxLength": 100
        },
        "mode": {
          "type": "string",
          "enum": [
            "overlap",
            "unscheduled",
            "outside",
            "invalid",
            "all"
          ]
        }
      },
      "required": [
        "startField",
        "from",
        "to",
        "timezone"
      ]
    },
    "queryTrackerRecordsOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerQueryResult"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerQueryResult": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "scheduleCounts": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "scopeTotal": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "overlap": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "unscheduled": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "outside": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "invalid": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "scopeTotal",
            "overlap",
            "unscheduled",
            "outside",
            "invalid"
          ]
        },
        "reviewFacts": {
          "type": "null"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Record"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "nextCursor": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[^\\s]+$"
            },
            {
              "type": "null"
            }
          ]
        },
        "hasMore": {
          "type": "boolean"
        },
        "total": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "value": {},
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "value",
              "count"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        },
        "schema": {
          "$ref": "#/$defs/TrackerContract"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "trackerVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "orderVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerDiagnostic"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "permissions": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "read": {
              "type": "boolean"
            },
            "edit": {
              "type": "boolean"
            },
            "manage": {
              "type": "boolean"
            }
          },
          "required": [
            "read",
            "edit"
          ]
        },
        "refresh": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "authoritative_poll"
              ]
            },
            "minimumIntervalMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "durableCursor": {
              "type": "null"
            }
          },
          "required": [
            "mode",
            "minimumIntervalMs",
            "durableCursor"
          ]
        }
      },
      "required": [
        "items",
        "nextCursor",
        "hasMore",
        "total",
        "groups",
        "schema",
        "schemaRevisionId",
        "trackerVersion",
        "orderVersion",
        "diagnostics",
        "permissions",
        "refresh"
      ]
    },
    "Record": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "version": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "orderKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "archived": {
          "type": "boolean"
        },
        "values": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": true
        },
        "auditActor": {
          "oneOf": [
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "user",
                    "agent"
                  ]
                },
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "^[^\\s]+$"
                },
                "workspaceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "^[^\\s]+$"
                }
              },
              "required": [
                "type",
                "id",
                "workspaceId"
              ]
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "const": "system"
                },
                "id": {
                  "const": "project_progress"
                },
                "workspaceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "^[^\\s]+$"
                }
              },
              "required": [
                "type",
                "id",
                "workspaceId"
              ]
            }
          ]
        },
        "createdAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        },
        "updatedAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        }
      },
      "required": [
        "id",
        "trackerId",
        "schemaRevisionId",
        "version",
        "orderKey",
        "archived",
        "values",
        "auditActor",
        "createdAt",
        "updatedAt"
      ]
    },
    "getTrackerRecordInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "recordId"
      ]
    },
    "getTrackerRecordOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Record"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "listTrackerRecordHistoryInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "trackerId",
        "recordId"
      ]
    },
    "listTrackerRecordHistoryOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Record"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 2048,
                  "pattern": "^[^\\s]+$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "items",
            "nextCursor"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "createTrackerRecordInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "values": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": true
        }
      },
      "required": [
        "trackerId",
        "schemaRevisionId",
        "values"
      ]
    },
    "createTrackerRecordOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Record"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "patchTrackerRecordInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "patch": {
          "$ref": "#/$defs/RecordPatch"
        }
      },
      "required": [
        "trackerId",
        "recordId",
        "schemaRevisionId",
        "patch"
      ]
    },
    "RecordPatch": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "values": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": true
        },
        "unset": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\s]+$"
          },
          "maxItems": 100,
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "values"
      ]
    },
    "patchTrackerRecordOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Record"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "archiveTrackerRecordInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "recordId"
      ]
    },
    "archiveTrackerRecordOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/Record"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "bulkTrackerRecordsInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BulkItem"
          },
          "maxItems": 100,
          "minItems": 1
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "items",
        "schemaRevisionId"
      ]
    },
    "BulkItem": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "recordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "etag": {
          "type": "string",
          "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
        },
        "patch": {
          "$ref": "#/$defs/RecordPatch"
        },
        "correlationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "recordId",
        "etag",
        "patch"
      ]
    },
    "bulkTrackerRecordsOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/BulkResult"
              },
              "maxItems": 100,
              "minItems": 1
            }
          },
          "required": [
            "items"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "BulkResult": {
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "index": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            },
            "correlationId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "success"
              ]
            },
            "record": {
              "$ref": "#/$defs/Record"
            },
            "etag": {
              "type": "string",
              "pattern": "^\"[^\"\\s]+:v[1-9][0-9]*\"$"
            }
          },
          "required": [
            "recordId",
            "index",
            "correlationId",
            "outcome",
            "record",
            "etag"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "recordId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "index": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            },
            "correlationId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "conflict",
                "validation",
                "denied"
              ]
            },
            "error": {
              "$ref": "#/$defs/Error"
            }
          },
          "required": [
            "recordId",
            "index",
            "correlationId",
            "outcome",
            "error"
          ]
        }
      ]
    },
    "reorderTrackerRecordsInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "recordIds": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^[^\\s]+$"
          },
          "maxItems": 100,
          "minItems": 1,
          "uniqueItems": true
        },
        "beforeRecordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "afterRecordId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "expectedOrderVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "query": {
          "$ref": "#/$defs/Query"
        }
      },
      "required": [
        "trackerId",
        "recordIds",
        "expectedOrderVersion"
      ]
    },
    "reorderTrackerRecordsOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "orderVersion": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "orderVersion"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "listTrackerViewsInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "listTrackerViewsOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/View"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512,
                  "pattern": "^[^\\s]+$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "items",
            "nextCursor"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "View": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "version": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "visibility": {
          "type": "string",
          "enum": [
            "personal",
            "shared"
          ]
        },
        "definition": {
          "$ref": "#/$defs/TrackerViewDefinition"
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerDiagnostic"
          },
          "maxItems": 2000,
          "minItems": 0
        },
        "compatible": {
          "type": "boolean"
        },
        "isDefault": {
          "type": "boolean"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "id",
        "trackerId",
        "version",
        "visibility",
        "definition",
        "diagnostics",
        "compatible",
        "isDefault",
        "schemaRevisionId"
      ]
    },
    "TrackerViewDefinition": {
      "$ref": "#/$defs/TrackerContract_view"
    },
    "getTrackerViewInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "viewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "viewId"
      ]
    },
    "getTrackerViewOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/View"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "createTrackerViewInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "definition": {
          "$ref": "#/$defs/TrackerViewDefinition"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "personal",
            "shared"
          ]
        },
        "isDefault": {
          "type": "boolean"
        }
      },
      "required": [
        "trackerId",
        "definition",
        "visibility"
      ]
    },
    "createTrackerViewOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/View"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "updateTrackerViewInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "viewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "definition": {
          "$ref": "#/$defs/TrackerViewDefinition"
        },
        "visibility": {
          "type": "string",
          "enum": [
            "personal",
            "shared"
          ]
        },
        "isDefault": {
          "type": "boolean"
        }
      },
      "required": [
        "trackerId",
        "viewId",
        "definition"
      ]
    },
    "updateTrackerViewOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/View"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "deleteTrackerViewInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "viewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "viewId"
      ]
    },
    "deleteTrackerViewOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "removed": {
              "const": true
            }
          },
          "required": [
            "removed"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "exportTrackerInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "exportTrackerOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/PortableTracker"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "PortableTracker": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "kind": {
          "const": "commentary_tracker_export"
        },
        "formatVersion": {
          "const": 1
        },
        "tracker": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "version": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "schemaRevisionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "orderVersion": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "lifecycle": {
              "type": "string",
              "enum": [
                "active",
                "archived"
              ]
            }
          },
          "required": [
            "id",
            "version",
            "schemaRevisionId",
            "orderVersion",
            "lifecycle"
          ]
        },
        "schemas": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "contentHash": {
                "type": "string",
                "pattern": "^sha256:[a-f0-9]{64}$"
              },
              "contract": {
                "$ref": "#/$defs/TrackerContract"
              }
            },
            "required": [
              "id",
              "contentHash",
              "contract"
            ]
          },
          "maxItems": 100,
          "minItems": 1
        },
        "records": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PortableRecord"
          },
          "maxItems": 1000,
          "minItems": 0
        },
        "views": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "schemaRevisionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "personal",
                  "shared"
                ]
              },
              "isDefault": {
                "type": "boolean"
              },
              "definition": {
                "$ref": "#/$defs/TrackerViewDefinition"
              }
            },
            "required": [
              "id",
              "schemaRevisionId",
              "version",
              "visibility",
              "isDefault",
              "definition"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        },
        "history": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "recordId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "schemaRevisionId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "version": {
                "type": "integer",
                "minimum": 1,
                "maximum": 9007199254740991
              },
              "orderKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "archived": {
                "type": "boolean"
              },
              "values": {
                "type": "object",
                "maxProperties": 100,
                "additionalProperties": true
              }
            },
            "required": [
              "recordId",
              "schemaRevisionId",
              "version",
              "orderKey",
              "archived",
              "values"
            ]
          },
          "maxItems": 5000,
          "minItems": 0
        },
        "receipts": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "decision",
                  "verification"
                ]
              },
              "readOnly": {
                "const": true
              },
              "provenance": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "resourceType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^[^\\s]+$"
                  },
                  "resourceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^[^\\s]+$"
                  },
                  "revisionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512,
                    "pattern": "^[^\\s]+$"
                  },
                  "contentHash": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "resourceType",
                  "resourceId"
                ]
              }
            },
            "required": [
              "id",
              "kind",
              "readOnly",
              "provenance"
            ]
          },
          "maxItems": 1000,
          "minItems": 0
        }
      },
      "required": [
        "kind",
        "formatVersion",
        "tracker",
        "schemas",
        "records",
        "views"
      ]
    },
    "PortableRecord": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "schemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "version": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "orderKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "archived": {
          "type": "boolean"
        },
        "values": {
          "type": "object",
          "maxProperties": 100,
          "additionalProperties": true
        }
      },
      "required": [
        "id",
        "schemaRevisionId",
        "version",
        "orderKey",
        "archived",
        "values"
      ]
    },
    "previewTrackerImportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "bundle": {
          "$ref": "#/$defs/PortableTracker"
        },
        "mode": {
          "type": "string",
          "enum": [
            "reconcile-existing"
          ]
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "bundle",
        "mode",
        "expectedSchemaRevisionId"
      ]
    },
    "previewTrackerImportOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerPortabilityReceipt": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "previewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "state": {
          "type": "string",
          "enum": [
            "preview",
            "running",
            "completed",
            "cancelled",
            "rejected"
          ]
        },
        "processed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "total": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "expectedVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "mode": {
          "type": "string",
          "enum": [
            "clone",
            "create-new",
            "reconcile-existing",
            "git",
            "commentary"
          ]
        },
        "diagnostics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackerDiagnostic"
          },
          "maxItems": 10000,
          "minItems": 0
        },
        "entries": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "tracker",
                  "schemas",
                  "records",
                  "views"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              }
            },
            "required": [
              "kind",
              "id"
            ]
          },
          "maxItems": 1201,
          "minItems": 0
        },
        "idMap": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "tracker": {
              "type": "object",
              "maxProperties": 1000,
              "additionalProperties": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              }
            },
            "schemas": {
              "type": "object",
              "maxProperties": 100,
              "additionalProperties": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              }
            },
            "records": {
              "type": "object",
              "maxProperties": 1000,
              "additionalProperties": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              }
            },
            "views": {
              "type": "object",
              "maxProperties": 100,
              "additionalProperties": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512,
                "pattern": "^[^\\s]+$"
              }
            }
          },
          "required": [
            "tracker",
            "schemas",
            "records",
            "views"
          ]
        },
        "counts": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "records": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000
            },
            "views": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "schemas": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "history": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5000
            }
          },
          "required": [
            "records",
            "views",
            "schemas",
            "history"
          ]
        },
        "schemaDifferences": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "additive",
                  "breaking"
                ]
              },
              "path": {
                "type": "string",
                "maxLength": 1024
              },
              "message": {
                "type": "string",
                "maxLength": 1024
              }
            },
            "required": [
              "kind",
              "path",
              "message"
            ]
          },
          "maxItems": 1000,
          "minItems": 0
        },
        "proposalState": {
          "type": "string",
          "enum": [
            "pending_git"
          ]
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "binding": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "sourceSnapshotId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            },
            "commitSha": {
              "type": "string",
              "pattern": "^[a-f0-9]{40,64}$"
            },
            "sourcePath": {
              "type": "string",
              "maxLength": 1024
            },
            "bundleHash": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            }
          },
          "required": [
            "sourceSnapshotId",
            "commitSha",
            "sourcePath",
            "bundleHash"
          ]
        }
      },
      "required": [
        "previewId",
        "trackerId",
        "state",
        "processed",
        "total",
        "expectedSchemaRevisionId",
        "expectedVersion",
        "mode",
        "diagnostics",
        "idMap",
        "counts",
        "schemaDifferences"
      ]
    },
    "previewNewTrackerImportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "workspaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "bundle": {
          "$ref": "#/$defs/PortableTracker"
        },
        "mode": {
          "type": "string",
          "enum": [
            "clone",
            "create-new"
          ]
        }
      },
      "required": [
        "workspaceId",
        "bundle",
        "mode"
      ]
    },
    "previewNewTrackerImportOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "applyTrackerImportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "previewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "batchSize": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "required": [
        "trackerId",
        "previewId",
        "expectedSchemaRevisionId"
      ]
    },
    "applyTrackerImportOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "getTrackerImportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "previewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "previewId"
      ]
    },
    "getTrackerImportOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "cancelTrackerImportInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "previewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "previewId"
      ]
    },
    "cancelTrackerImportOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "previewTrackerAuthorityInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "mode": {
          "type": "string",
          "enum": [
            "commentary",
            "git"
          ]
        },
        "sourceSnapshotId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        },
        "sourcePath": {
          "type": "string",
          "maxLength": 1024
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "mode",
        "expectedSchemaRevisionId"
      ]
    },
    "previewTrackerAuthorityOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "migrateTrackerAuthorityInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "mode": {
          "type": "string",
          "enum": [
            "commentary",
            "git"
          ]
        },
        "previewId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "mode",
        "previewId",
        "expectedSchemaRevisionId"
      ]
    },
    "migrateTrackerAuthorityOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "stageTrackerProposalInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "bundle": {
          "$ref": "#/$defs/PortableTracker"
        },
        "expectedSchemaRevisionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        }
      },
      "required": [
        "trackerId",
        "bundle",
        "expectedSchemaRevisionId",
        "baseCommitSha"
      ]
    },
    "stageTrackerProposalOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerPortabilityReceipt"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "bindTrackerGitSourceInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "sourceRef": {
          "type": "string",
          "maxLength": 200
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        }
      },
      "required": [
        "trackerId",
        "sourceRef",
        "baseCommitSha"
      ]
    },
    "bindTrackerGitSourceOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerGitSourceResult"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerGitSourceResult": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        },
        "sourceRef": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "trackerId",
        "baseCommitSha",
        "sourceRef"
      ]
    },
    "getTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "getTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerSyncStatus"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "TrackerSyncStatus": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SyncOperation"
          },
          "maxItems": 20,
          "minItems": 0
        },
        "nextCursor": {
          "type": "null"
        },
        "source": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "baseCommitSha": {
              "type": "string",
              "pattern": "^[a-f0-9]{40,64}$"
            },
            "sourceRef": {
              "type": "string",
              "maxLength": 200
            },
            "sourcePath": {
              "type": "string",
              "maxLength": 1024
            },
            "bundleHash": {
              "type": "string",
              "pattern": "^sha256:[a-f0-9]{64}$"
            }
          },
          "required": [
            "baseCommitSha",
            "sourceRef",
            "sourcePath",
            "bundleHash"
          ]
        }
      },
      "required": [
        "items",
        "nextCursor",
        "source"
      ]
    },
    "SyncOperation": {
      "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": "#/$defs/TrackerDiagnostic"
          },
          "maxItems": 10000,
          "minItems": 0
        },
        "conflicts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SyncConflict"
          },
          "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"
      ]
    },
    "SyncConflict": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "path": {
          "type": "string",
          "maxLength": 1024
        },
        "kind": {
          "type": "string",
          "enum": [
            "field",
            "record",
            "schema",
            "view",
            "order",
            "deletion"
          ]
        },
        "base": {
          "$ref": "#/$defs/SyncConflictValue"
        },
        "current": {
          "$ref": "#/$defs/SyncConflictValue"
        },
        "proposed": {
          "$ref": "#/$defs/SyncConflictValue"
        }
      },
      "required": [
        "id",
        "path",
        "kind",
        "base",
        "current",
        "proposed"
      ]
    },
    "SyncConflictValue": {
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "present": {
              "const": false
            }
          },
          "required": [
            "present"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "present": {
              "const": true
            },
            "value": {}
          },
          "required": [
            "present",
            "value"
          ]
        }
      ]
    },
    "getTrackerSyncProposalInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "operationId"
      ]
    },
    "getTrackerSyncProposalOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "base": {
              "$ref": "#/$defs/PortableTracker"
            },
            "proposed": {
              "$ref": "#/$defs/PortableTracker"
            }
          },
          "required": [
            "base",
            "proposed"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "previewTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        }
      },
      "required": [
        "trackerId",
        "baseCommitSha"
      ]
    },
    "previewTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/SyncOperation"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "applyTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        }
      },
      "required": [
        "trackerId",
        "operationId",
        "baseCommitSha"
      ]
    },
    "applyTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/SyncOperation"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "resolveTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "resolutions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "conflictId": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "choose": {
                "type": "string",
                "enum": [
                  "base",
                  "current",
                  "proposed"
                ]
              }
            },
            "required": [
              "conflictId",
              "choose"
            ]
          },
          "maxItems": 10000,
          "minItems": 0
        }
      },
      "required": [
        "trackerId",
        "operationId",
        "resolutions"
      ]
    },
    "resolveTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/SyncOperation"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "retryTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "baseCommitSha": {
          "type": "string",
          "pattern": "^[a-f0-9]{40,64}$"
        }
      },
      "required": [
        "trackerId",
        "operationId",
        "baseCommitSha"
      ]
    },
    "retryTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/SyncOperation"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "cancelTrackerSyncInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "operationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "operationId"
      ]
    },
    "cancelTrackerSyncOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/SyncOperation"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "refreshTrackerGitSourceInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "refreshTrackerGitSourceOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "$ref": "#/$defs/TrackerGitSourceResult"
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "listTrackerRenderersInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "listTrackerRenderersOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/RendererPublication"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "limit": {
              "const": 100
            }
          },
          "required": [
            "items",
            "limit"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "RendererPublication": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,100}$"
        },
        "name": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1
        },
        "protocol": {
          "const": "commentary-tracker-v1"
        },
        "operations": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "getSchema",
              "getPermissions",
              "queryRecords",
              "getRecord",
              "createRecord",
              "patchRecord",
              "archiveRecord",
              "bulk",
              "reorder",
              "listViews",
              "getView",
              "changes",
              "openResource",
              "openReview"
            ]
          },
          "maxItems": 14,
          "minItems": 0,
          "uniqueItems": true
        },
        "trackerId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,100}$"
        },
        "packageId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,100}$"
        },
        "packageRevisionId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,100}$"
        },
        "anchors": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,100}$"
              },
              "pageId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,100}$"
              },
              "blockId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,100}$"
              }
            },
            "required": [
              "id",
              "pageId"
            ]
          },
          "maxItems": 100,
          "minItems": 0
        },
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{1,100}$"
        },
        "version": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "digest": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "kind": {
          "type": "string",
          "enum": [
            "hosted",
            "external"
          ]
        },
        "entry": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024,
          "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\\\\\u0000]+$"
        },
        "externalUrl": {
          "type": "string",
          "maxLength": 2048
        },
        "externalOrigin": {
          "type": "string",
          "maxLength": 2048
        }
      },
      "required": [
        "key",
        "name",
        "protocol",
        "operations",
        "id",
        "version",
        "digest",
        "kind",
        "anchors"
      ]
    },
    "manageTrackerRendererPublicationInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "action": {
          "type": "string",
          "enum": [
            "publish",
            "revokePublication"
          ]
        },
        "definition": {
          "$ref": "#/$defs/RendererDefinition"
        },
        "publicationId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        }
      },
      "required": [
        "trackerId",
        "action"
      ],
      "anyOf": [
        {
          "properties": {
            "action": {
              "const": "publish"
            }
          },
          "required": [
            "definition"
          ],
          "not": {
            "required": [
              "publicationId"
            ]
          }
        },
        {
          "properties": {
            "action": {
              "const": "revokePublication"
            }
          },
          "required": [
            "publicationId"
          ],
          "not": {
            "required": [
              "definition"
            ]
          }
        }
      ]
    },
    "RendererDefinition": {
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "key": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "name": {
              "type": "string",
              "maxLength": 200,
              "minLength": 1
            },
            "protocol": {
              "const": "commentary-tracker-v1"
            },
            "operations": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "getSchema",
                  "getPermissions",
                  "queryRecords",
                  "getRecord",
                  "createRecord",
                  "patchRecord",
                  "archiveRecord",
                  "bulk",
                  "reorder",
                  "listViews",
                  "getView",
                  "changes",
                  "openResource",
                  "openReview"
                ]
              },
              "maxItems": 14,
              "minItems": 0,
              "uniqueItems": true
            },
            "trackerId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "packageId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "packageRevisionId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "anchors": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  },
                  "pageId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  },
                  "blockId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  }
                },
                "required": [
                  "id",
                  "pageId"
                ]
              },
              "maxItems": 100,
              "minItems": 0
            },
            "kind": {
              "const": "hosted"
            },
            "uploadId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "entry": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1024,
              "pattern": "^(?!/)(?!.*(?:^|/)\\.\\.?(?:/|$))[^\\\\\\u0000]+$"
            }
          },
          "required": [
            "key",
            "name",
            "protocol",
            "operations",
            "kind",
            "uploadId",
            "entry"
          ],
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "trackerId"
                  ]
                },
                {
                  "required": [
                    "packageId",
                    "packageRevisionId"
                  ]
                }
              ]
            },
            {
              "dependentRequired": {
                "packageId": [
                  "packageRevisionId"
                ],
                "packageRevisionId": [
                  "packageId"
                ]
              }
            },
            {
              "if": {
                "not": {
                  "required": [
                    "trackerId"
                  ]
                }
              },
              "then": {
                "properties": {
                  "operations": {
                    "maxItems": 0
                  }
                }
              }
            }
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "key": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "name": {
              "type": "string",
              "maxLength": 200,
              "minLength": 1
            },
            "protocol": {
              "const": "commentary-tracker-v1"
            },
            "operations": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "getSchema",
                  "getPermissions",
                  "queryRecords",
                  "getRecord",
                  "createRecord",
                  "patchRecord",
                  "archiveRecord",
                  "bulk",
                  "reorder",
                  "listViews",
                  "getView",
                  "changes",
                  "openResource",
                  "openReview"
                ]
              },
              "maxItems": 14,
              "minItems": 0,
              "uniqueItems": true
            },
            "trackerId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "packageId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "packageRevisionId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,100}$"
            },
            "anchors": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  },
                  "pageId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  },
                  "blockId": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,100}$"
                  }
                },
                "required": [
                  "id",
                  "pageId"
                ]
              },
              "maxItems": 100,
              "minItems": 0
            },
            "kind": {
              "const": "external"
            },
            "externalUrl": {
              "type": "string",
              "maxLength": 2048,
              "format": "uri"
            }
          },
          "required": [
            "key",
            "name",
            "protocol",
            "operations",
            "kind",
            "externalUrl"
          ],
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "trackerId"
                  ]
                },
                {
                  "required": [
                    "packageId",
                    "packageRevisionId"
                  ]
                }
              ]
            },
            {
              "dependentRequired": {
                "packageId": [
                  "packageRevisionId"
                ],
                "packageRevisionId": [
                  "packageId"
                ]
              }
            },
            {
              "if": {
                "not": {
                  "required": [
                    "trackerId"
                  ]
                }
              },
              "then": {
                "properties": {
                  "operations": {
                    "maxItems": 0
                  }
                }
              }
            }
          ]
        }
      ]
    },
    "manageTrackerRendererPublicationOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "oneOf": [
            {
              "$ref": "#/$defs/RendererPublication"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "revoked": {
                  "const": true
                }
              },
              "required": [
                "revoked"
              ]
            }
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "listTrackerActivityInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "waitMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "listTrackerActivityOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Activity"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "pattern": "^[^\\s]+$"
            },
            "hasMore": {
              "type": "boolean"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "events",
                "idle",
                "timeout",
                "canceled"
              ]
            }
          },
          "required": [
            "items",
            "nextCursor",
            "hasMore",
            "outcome"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    },
    "Activity": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "eventType": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "occurredAt": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"
        },
        "resource": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "type": {
              "type": "string",
              "maxLength": 80
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512,
              "pattern": "^[^\\s]+$"
            }
          },
          "required": [
            "type",
            "id"
          ]
        },
        "aggregateVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "retrievalUrl": {
          "type": "string",
          "maxLength": 2048
        },
        "change": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "id",
        "eventType",
        "occurredAt",
        "resource",
        "aggregateVersion",
        "retrievalUrl",
        "change"
      ]
    },
    "listTrackerFeedbackInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "trackerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512,
          "pattern": "^[^\\s]+$"
        },
        "cursor": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096,
          "pattern": "^[^\\s]+$"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "waitMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        }
      },
      "required": [
        "trackerId"
      ]
    },
    "listTrackerFeedbackOutput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/Activity"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "nextCursor": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096,
              "pattern": "^[^\\s]+$"
            },
            "hasMore": {
              "type": "boolean"
            },
            "outcome": {
              "type": "string",
              "enum": [
                "events",
                "idle",
                "timeout",
                "canceled"
              ]
            }
          },
          "required": [
            "items",
            "nextCursor",
            "hasMore",
            "outcome"
          ]
        },
        "idempotencyReplayed": {
          "type": "boolean"
        }
      },
      "required": [
        "data"
      ]
    }
  }
}