[
  {
    "code": "cursor_invalid",
    "status": 400,
    "operations": [
      "GET /v1/feed"
    ],
    "when": "The feed cursor is malformed or does not authenticate for this connection."
  },
  {
    "code": "invalid_arguments",
    "status": 400,
    "operations": [
      "pigeon.search_saves",
      "pigeon.get_save",
      "pigeon.list_kinds",
      "pigeon.create_send",
      "pigeon.get_send",
      "pigeon.update_save"
    ],
    "when": "The arguments do not match the MCP tool schema."
  },
  {
    "code": "invalid_cursor",
    "status": 400,
    "operations": [
      "GET /v1/records",
      "GET /v1/snapshots/{id}/records",
      "GET /v1/search"
    ],
    "when": "The endpoint's pagination cursor is invalid."
  },
  {
    "code": "invalid_fields",
    "status": 400,
    "operations": [
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records",
      "GET /v1/search"
    ],
    "when": "A field selection is malformed, repeated, unknown or used on a sync read."
  },
  {
    "code": "invalid_idempotency_key",
    "status": 400,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The sends endpoint requires a UUID idempotency key."
  },
  {
    "code": "invalid_json",
    "status": 400,
    "operations": [
      "POST /v1/catalog/proposals",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "POST /v1/sends"
    ],
    "when": "A required JSON request body is missing or malformed."
  },
  {
    "code": "invalid_limit",
    "status": 400,
    "operations": [
      "GET /v1/records/{id}/history",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records"
    ],
    "when": "The requested page size is outside the endpoint's accepted range."
  },
  {
    "code": "invalid_request",
    "status": 400,
    "operations": [
      "GET /v1/records",
      "GET /v1/search"
    ],
    "when": "The input fails the endpoint request schema."
  },
  {
    "code": "episode_superseded",
    "status": 401,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The credential belongs to a superseded grant episode."
  },
  {
    "code": "unauthorized",
    "status": 401,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The credential is missing, expired or invalid."
  },
  {
    "code": "pro_required",
    "status": 402,
    "operations": [
      "POST /v1/operations",
      "GET /v1/search",
      "pigeon.search_saves",
      "pigeon.get_save",
      "pigeon.list_kinds",
      "pigeon.create_send",
      "pigeon.get_send",
      "pigeon.update_save"
    ],
    "when": "This action requires an active Pigeon Pro entitlement."
  },
  {
    "code": "assistant_blocked",
    "status": 403,
    "operations": [
      "pigeon.search_saves",
      "pigeon.get_save",
      "pigeon.list_kinds",
      "pigeon.create_send",
      "pigeon.get_send",
      "pigeon.update_save"
    ],
    "when": "The assistant client is unavailable for this tool."
  },
  {
    "code": "connection_disconnected",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The connection has been revoked or disconnected."
  },
  {
    "code": "connection_paused",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The connection is paused and cannot run this request."
  },
  {
    "code": "connection_required",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The credential lacks the required active connection."
  },
  {
    "code": "forbidden",
    "status": 403,
    "operations": [
      "GET /v1/records"
    ],
    "when": "The authenticated caller cannot use owner browse."
  },
  {
    "code": "namespace_denied",
    "status": 403,
    "operations": [
      "POST /v1/operations",
      "POST /v1/sends"
    ],
    "when": "The current grant cannot write this external ID namespace."
  },
  {
    "code": "owner_required",
    "status": 403,
    "operations": [
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The readable record's owner metadata requires a built-in Pigeon owner credential."
  },
  {
    "code": "pro_required",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "This action requires an active Pigeon Pro entitlement."
  },
  {
    "code": "sapphire_account_required",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The credential lacks the required Pigeon account identity."
  },
  {
    "code": "scope_denied",
    "status": 403,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The caller lacks the permission for the requested action."
  },
  {
    "code": "write_scope_required",
    "status": 403,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The assistant connection has no active write scope."
  },
  {
    "code": "not_found",
    "status": 404,
    "operations": [
      "GET /v1/catalog",
      "GET /v1/catalog/entries/{pin}",
      "GET /v1/catalog/crosswalk/{provider}/{id}",
      "POST /v1/catalog/proposals",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The target is missing or unreadable to the caller."
  },
  {
    "code": "ambiguous_alias",
    "status": 409,
    "operations": [
      "POST /v1/catalog/proposals"
    ],
    "when": "The proposal matches more than one catalog entry."
  },
  {
    "code": "base_unknown",
    "status": 409,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The submitted revision pair does not identify an available base."
  },
  {
    "code": "catalog_redirect_requires_resolution",
    "status": 409,
    "operations": [
      "POST /v1/catalog/proposals"
    ],
    "when": "The matching catalog entry requires a catalog moderation decision."
  },
  {
    "code": "grocery_list_exists",
    "status": 409,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The account already has a live grocery list."
  },
  {
    "code": "invalid_deletion_target",
    "status": 409,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The record cannot be deleted through this operation."
  },
  {
    "code": "pigeon_data_deleting",
    "status": 409,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "A Pigeon account data deletion is in progress."
  },
  {
    "code": "pigeon_owner_mapping_required",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The send cannot resolve the required account-owner mapping."
  },
  {
    "code": "preferences_exists",
    "status": 409,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The account already has a live Pigeon preferences record."
  },
  {
    "code": "reset_conflict",
    "status": 409,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The reset overlaps a newer edit or other edit intent."
  },
  {
    "code": "reset_dependency",
    "status": 409,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The reset would break a structural dependency."
  },
  {
    "code": "reuse_check_required",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The source's cached extraction requires a reuse check."
  },
  {
    "code": "review_changed",
    "status": 409,
    "operations": [
      "POST /v1/records/{id}/original/review"
    ],
    "when": "The original or its review has moved beyond the submitted revision or candidate."
  },
  {
    "code": "revision_conflict",
    "status": 409,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "Strict edit or review requires a fresh current revision."
  },
  {
    "code": "send_not_retryable",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The caller's send is not an extraction failure with retained input."
  },
  {
    "code": "source_check_failed",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "A check required before reusing the source failed."
  },
  {
    "code": "source_identity_conflict",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The submitted source identity conflicts with another source."
  },
  {
    "code": "source_withdrawn",
    "status": 409,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The original source has been withdrawn."
  },
  {
    "code": "still_conflicting",
    "status": 409,
    "operations": [
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The chosen conflict resolution still violates the current merged record."
  },
  {
    "code": "account_deleted",
    "status": 410,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The account's Hub data was deleted."
  },
  {
    "code": "cursor_expired",
    "status": 410,
    "operations": [
      "GET /v1/feed"
    ],
    "when": "The requested sequence is below the retained feed floor."
  },
  {
    "code": "cursor_reset",
    "status": 410,
    "operations": [
      "GET /v1/feed"
    ],
    "when": "The feed cursor belongs to a different Hub epoch or is above its head."
  },
  {
    "code": "history_expired",
    "status": 410,
    "operations": [
      "GET /v1/records/{id}/history",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile"
    ],
    "when": "The required historical revision is outside the retention window."
  },
  {
    "code": "rebootstrap_required",
    "status": 410,
    "operations": [
      "GET /v1/feed"
    ],
    "when": "The feed cursor belongs to another permission view."
  },
  {
    "code": "snapshot_invalidated",
    "status": 410,
    "operations": [
      "GET /v1/snapshots/{id}/records"
    ],
    "when": "The snapshot no longer matches the current account or permission view."
  },
  {
    "code": "alias_limit",
    "status": 413,
    "operations": [
      "POST /v1/catalog/proposals"
    ],
    "when": "The catalog entry would exceed its alias budget."
  },
  {
    "code": "body_too_large",
    "status": 413,
    "operations": [
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "The final compact canonical body exceeds its byte budget."
  },
  {
    "code": "correction_budget_exceeded",
    "status": 413,
    "operations": [
      "POST /v1/records/{id}/corrections"
    ],
    "when": "The correction exceeds the source review work budget."
  },
  {
    "code": "operation_too_large",
    "status": 413,
    "operations": [
      "POST /v1/catalog/proposals",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "POST /v1/sends"
    ],
    "when": "The request or operation exceeds its byte or mutation budget."
  },
  {
    "code": "proposal_too_large",
    "status": 413,
    "operations": [
      "POST /v1/records/{id}/corrections"
    ],
    "when": "The correction proposal exceeds its size budget."
  },
  {
    "code": "publication_work_exceeded",
    "status": 413,
    "operations": [
      "POST /v1/records/{id}/corrections"
    ],
    "when": "Validating the publication would exceed its work budget."
  },
  {
    "code": "reference_work_exceeded",
    "status": 413,
    "operations": [
      "POST /v1/records/{id}/original/review",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "Reference discovery, rewrite or patch traversal exceeds its work budget."
  },
  {
    "code": "release_budget_exceeded",
    "status": 413,
    "operations": [
      "POST /v1/catalog/proposals"
    ],
    "when": "Publishing the catalog would exceed the release size budget."
  },
  {
    "code": "response_too_large",
    "status": 413,
    "operations": [
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "GET /v1/search",
      "POST /v1/sends"
    ],
    "when": "The complete response exceeds the endpoint byte budget."
  },
  {
    "code": "send_input_too_large",
    "status": 413,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The compact URL or text and optional note cannot fit in the reserved retry state."
  },
  {
    "code": "state_too_large",
    "status": 413,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The final compact state map exceeds 64 KiB."
  },
  {
    "code": "assistant_edit_shape",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "An assistant-only writer submitted something other than a supported strict body patch."
  },
  {
    "code": "base_required",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "A revision base is required for the requested edit."
  },
  {
    "code": "body_identity_changed",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The mutation changed the identity of the record body."
  },
  {
    "code": "body_invalid",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "A validated body or conflict resolution violates its body invariants."
  },
  {
    "code": "correction_invalid",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/corrections"
    ],
    "when": "The proposed correction does not name a valid source edit."
  },
  {
    "code": "create_reference_unavailable",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "A typed target allocated by this operation cannot become a readable live record."
  },
  {
    "code": "dangling_reference",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/original/review",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "A new typed link points to a deleted or unavailable target."
  },
  {
    "code": "duplicate_create_id",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "Two create mutations in the same operation use the same create ID."
  },
  {
    "code": "idempotency_key_required",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/original/review"
    ],
    "when": "The original-review write is missing its idempotency key."
  },
  {
    "code": "idempotency_key_reused",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/original/review",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "The account and connection already used the key with another request."
  },
  {
    "code": "immutable_record",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The mutation attempts to change the body of an immutable record."
  },
  {
    "code": "invalid_body",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "The kind body violates structural or semantic validation on write."
  },
  {
    "code": "invalid_choice",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The requested conflict resolution choice is invalid."
  },
  {
    "code": "invalid_crosswalk",
    "status": 422,
    "operations": [
      "GET /v1/catalog/crosswalk/{provider}/{id}"
    ],
    "when": "A catalog provider or external ID is invalid."
  },
  {
    "code": "invalid_cursor",
    "status": 422,
    "operations": [
      "GET /v1/webhooks/{connection}"
    ],
    "when": "The endpoint's pagination cursor is invalid."
  },
  {
    "code": "invalid_id",
    "status": 422,
    "operations": [
      "GET /v1/catalog/entries/{pin}",
      "GET /v1/sends/{id}/record",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/snapshots/{id}/records",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The ID is not a valid UUID."
  },
  {
    "code": "invalid_operation",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The operation is invalid, for example when its required idempotency key is empty."
  },
  {
    "code": "invalid_page",
    "status": 422,
    "operations": [
      "GET /v1/catalog"
    ],
    "when": "The catalog release page parameters are invalid."
  },
  {
    "code": "invalid_proposal",
    "status": 422,
    "operations": [
      "POST /v1/catalog/proposals"
    ],
    "when": "The catalog entry proposal failed validation."
  },
  {
    "code": "invalid_reconcile",
    "status": 422,
    "operations": [
      "POST /v1/reconcile"
    ],
    "when": "The submitted reconciliation input cannot be processed."
  },
  {
    "code": "invalid_request",
    "status": 422,
    "operations": [
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "POST /v1/sends"
    ],
    "when": "The input fails the endpoint request schema."
  },
  {
    "code": "invalid_revision",
    "status": 422,
    "operations": [
      "GET /v1/catalog/entries/{pin}"
    ],
    "when": "The catalog entry revision is invalid."
  },
  {
    "code": "invalid_state",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "A well-known state value or a newly marked guide stop is invalid for the resulting record."
  },
  {
    "code": "invalid_url",
    "status": 422,
    "operations": [
      "POST /v1/sends"
    ],
    "when": "The send URL cannot be admitted."
  },
  {
    "code": "lineage_protected",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "A write forged, changed or removed protected operation lineage."
  },
  {
    "code": "patch_invalid",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The patch shape, body, addressed part or state intent is invalid."
  },
  {
    "code": "pre_tombstone_fanout_limit",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "Required dependent-record flags would exceed the atomic deletion fanout budget."
  },
  {
    "code": "pre_tombstone_scan_limit",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The dependent-record scan would exceed the atomic deletion scan budget."
  },
  {
    "code": "record_identity_changed",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The mutation would change the existing record identity."
  },
  {
    "code": "reference_hash_mismatch",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The referenced workout version does not match the expected digest."
  },
  {
    "code": "reference_kind_mismatch",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The typed reference points to a record of the wrong kind."
  },
  {
    "code": "reference_part_mismatch",
    "status": 422,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve"
    ],
    "when": "The required referenced part, type or parent does not match."
  },
  {
    "code": "reset_invalid",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "A reset address cannot be resolved as a supported field, list or part."
  },
  {
    "code": "reset_no_upstream",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The reset target has no upstream source."
  },
  {
    "code": "reset_not_edited",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The reset address has no owner edit to return to source."
  },
  {
    "code": "server_owned_field",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "A send mutation attempts to write a server-owned value. Omitted server-owned values survive replacement."
  },
  {
    "code": "too_many_external_ids",
    "status": 422,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The final record exceeds the external ID limit."
  },
  {
    "code": "unsupported_schema",
    "status": 422,
    "operations": [
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The record kind or exact wire schema is unsupported."
  },
  {
    "code": "webhook_events_invalid",
    "status": 422,
    "operations": [
      "POST /v1/webhooks"
    ],
    "when": "The subscription has unsupported event types."
  },
  {
    "code": "webhook_url_invalid",
    "status": 422,
    "operations": [
      "POST /v1/webhooks"
    ],
    "when": "The destination fails the webhook URL requirements."
  },
  {
    "code": "webhook_url_private",
    "status": 422,
    "operations": [
      "POST /v1/webhooks"
    ],
    "when": "The destination is not a public webhook endpoint."
  },
  {
    "code": "daily_edit_cap_reached",
    "status": 429,
    "operations": [
      "POST /v1/operations"
    ],
    "when": "The operation would exceed a rolling assistant edit cap. The problem includes resets_at."
  },
  {
    "code": "rate_limited",
    "status": 429,
    "operations": [
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata",
      "pigeon.search_saves",
      "pigeon.get_save",
      "pigeon.list_kinds",
      "pigeon.create_send",
      "pigeon.get_send",
      "pigeon.update_save"
    ],
    "when": "The connection, route or paid-work budget is exhausted. Honor Retry-After where supplied."
  },
  {
    "code": "snapshot_rate_limited",
    "status": 429,
    "operations": [
      "POST /v1/snapshots"
    ],
    "when": "The connection exhausted its snapshot creation allowance."
  },
  {
    "code": "history_corrupt",
    "status": 503,
    "operations": [
      "GET /v1/records/{id}/history",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile"
    ],
    "when": "The Hub could not reconstruct a consistent historical revision."
  },
  {
    "code": "hub_not_ready",
    "status": 503,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "The account or Hub is not ready to serve the operation."
  },
  {
    "code": "identity_unavailable",
    "status": 503,
    "operations": [
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "Personal access token verification is temporarily unavailable."
  },
  {
    "code": "internal_error",
    "status": 503,
    "operations": [
      "GET /v1/catalog",
      "GET /v1/catalog/entries/{pin}",
      "GET /v1/catalog/crosswalk/{provider}/{id}",
      "POST /v1/catalog/proposals",
      "GET /v1/kinds",
      "GET /v1/sends/{id}/record",
      "GET /v1/records",
      "GET /v1/records/{id}",
      "GET /v1/records/{id}/history",
      "GET /v1/records/{id}/original",
      "POST /v1/records/{id}/original/review",
      "POST /v1/records/{id}/corrections",
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "GET /v1/feed",
      "POST /v1/snapshots",
      "GET /v1/snapshots/{id}/records",
      "POST /v1/reconcile",
      "POST /v1/webhooks",
      "GET /v1/webhooks/{connection}",
      "DELETE /v1/webhooks/{connection}",
      "POST /v1/webhooks/{connection}/rotate",
      "GET /v1/search",
      "POST /v1/sends",
      "GET /v1/records/{id}/owner-metadata"
    ],
    "when": "An unexpected Hub failure prevented the request from completing."
  },
  {
    "code": "ledger_unavailable",
    "status": 503,
    "operations": [
      "POST /v1/operations",
      "POST /v1/records/{id}/conflicts/{cid}/resolve",
      "POST /v1/sends"
    ],
    "when": "The Hub could not make its durability ledger available."
  },
  {
    "code": "temporarily_unavailable",
    "status": 503,
    "operations": [
      "pigeon.search_saves",
      "pigeon.get_save",
      "pigeon.list_kinds",
      "pigeon.create_send",
      "pigeon.get_send",
      "pigeon.update_save"
    ],
    "when": "Pigeon could not complete the tool call before its deadline."
  }
]
