Runtime rules and limits

Check semantic constraints, byte budgets and stable Pigeon error codes.

On this page

The semantic rules JSON with HTTP statuses describes the kind, validation stage, field path and passing and failing values for checks that need more than structural validation. These values illustrate one rule at a time. Use the kind schemas for complete bodies. The error index associates each documented code with its status and affected operations, including shared authorization and admission errors.

Limits

Measure the final canonical body and state separately with new TextEncoder().encode(JSON.stringify(value)).byteLength. Use compact JSON, including braces and ordinary JSON escaping. Measure after defaults, merges, derived values and ID assignment. REST measures actual UTF-8 request bytes before parsing, and MCP measures the embedded write body. Both measure the complete compact application response before protocol framing. Results over budget fail with response_too_large. Use fewer fields or smaller pages where supported.

LimitValueApplies to
Record body and state1 MiB body; 64 KiB stateEnforce separately on the final canonical body and per-account state, including after merge
Shared write request8 MiBUTF-8 request body on REST operations and sends and the embedded body on their MCP tools. The RPC frame has room for the Node HTTP header budget beyond the operation body.
Shared response8 MiB for record detail, lookup, original extraction, reconcile and write receipts. 4 MiB for browse, search and history pages.Complete compact UTF-8 JSON before REST/MCP framing. Responses over the endpoint budget return response_too_large. Feed and snapshot retain their atomic paging budgets below.
Send retry input41,209 bytes of compact UTF-8 JSON for the combined URL or text and optional noteReserve 24,327 bytes of the 64 KiB state budget for the wrapper, retry UUID, Pigeon note, feedback, archive flag and resolution watermark. Oversize returns send_input_too_large at admission.
Operation bounds1,000 mutations/changes including fan-out; 8 MiB bodiesOne account transaction and device-atomic operation
Parts per record20,000422 structural limit
Accepted part-id length1–64 ASCII characters from [A-Za-z0-9_.:-]App-provided canonical part identifiers
Core tree depth64 by default, policy-overridableValidate part trees
External ids per record32422 identity alias bound
Venue ID length1–200 charactersOpaque venue identity in place and event bodies
Quantity unit length1–100 charactersExplicit unit on ingredient and grocery quantities
Money precisionUp to 4 fractional digitsAll {amount, currency} values
Recipe fraction conversionUp to 8 fractional digitsDecimal ingredient quantity recovered from a source fraction
Public part operations per patch1,000Part inserts, moves, removals and field patches in one public patch request
Reset addresses per patch1–1,000Fields, lists or parts handed back to the source in one public patch request
Record list page1–100, default 50 for owner browseRecord browsing
Search input and rankingquery 200 chars; 64 tags; 32 facets; tag value 100 chars; 1–100 results default 100; field weights 100/40/10; title boosts 1,000/300/150Search request and ranking
Feed page and scanlimit default 100, range 1–500; 4 MiB; 2,000 audience rows plus the last operation's tail; oversized first operation alone ≤8 MiBWhole-operation pages with invisible-change progress
Feed retention35 daysChange feed floor and cursor expiry
Snapshot bounds24 h lifetime; 2 open per connection; 200 records / 4 MiB per pageBootstrap snapshot resources
Reconcile page500 recordsRestore and expiry recovery
Idempotency key retention7 days; create ids remain idempotent foreverRetry replay versus durable create deduplication
MCP in-flight requests per connection4Concurrent MCP requests one connection may have open; more is 429, Retry-After: 1
MCP tool deadline20 sServer deadline per tool call, checked before a write transaction starts
MCP tool calls per connection60 per minute, burst 20All tools/call requests from one connection; over is rate_limited
MCP tool calls per account120 per minuteAll tools/call requests across one account's assistants
MCP update_save calls per connection10 per minute, burst 10pigeon.update_save calls from one connection
MCP edits per connection per 24 h200 applied edits, rolling 24 hoursApplied assistant edits per connection, counted in the write transaction; over is daily_edit_cap_reached
MCP edits per account per 24 h500 applied edits, rolling 24 hoursApplied assistant edits per account across all assistants

Semantic rules

The status below describes the semantic check itself. A create with an invalid kind/schema combination can fail earlier with invalid_request. On a public patch, a materialization failure that would be invalid_body on a full update can surface as patch_invalid. Use request and receipt schemas from the operations reference.

Only the verified first-party Workout Notepad connector can attach or change import metadata in meta.legacy_ref. Ordinary writers must supply category titles and completion timestamps for newly completed sets. Existing imported values may be retained unchanged.

KindStage and fieldResult on rejectionAcceptsRejects
recordread_selection · fields400 invalid_fieldsbody,provenancebody.title
recordresponse · $413 response_too_largeComplete compact UTF-8 JSON at the endpoint byte limitComplete compact UTF-8 JSON one byte over the endpoint byte limit
sendadmission · state.connector_input413 send_input_too_largeCompact UTF-8 JSON of the combined input at 41,209 bytesCompact UTF-8 JSON of the combined input at 41,210 bytes
recordstate_patch · state_patch422 patch_invalid[{"op":"set","key":"pinned","value":true},{"op":"add_member","key":"tags","member":"trip"}][{"op":"add_member","key":"tags","member":"Trip"},{"op":"remove_member","key":"tags","member":"trip"}]
recordstate_patch · state,state_patch422 patch_invalid{"state_patch":[{"op":"remove","key":"pinned"}]}{"state":{},"state_patch":[{"op":"remove","key":"pinned"}]}
recordmaterialized_state · state422 invalid_state{"pinned":true,"connector_key":null}{"pinned":"yes"}
sendmaterialized_state · state.connector_input,state.connector_retry_of422 server_owned_field{"state":{"note":"Review later"}}{"state_patch":[{"op":"remove","key":"connector_input"}]}
sendmaterialized_body · body.feedback422 server_owned_field{"fields":{"via":"file"}}{"fields":{"feedback":null}}
guidematerialized_state · state.completed_stop_ids422 invalid_stateAdd the Part ID of a stop in the resulting guideAdd the ID of a day or an absent stop
guidematerialized_body · body.days[].stops[].id422 patch_invalidInsert with a new Part ID or reset a removed stop to its originalReuse a retired stop Part ID for an inserted stop
recordmaterialized_state · state413 state_too_largeFinal compact UTF-8 JSON at 65,536 bytes, including after a removalFinal compact UTF-8 JSON at 65,537 bytes after merging a stale patch
placestate_patch · state_patch.merge_experience422 patch_invalid{"op":"merge_experience","value":{"version":1,"visits":{"current":{"rating":{"value":null,"updated_at":"2030-07-04T19:00:00-04:00"}}}}}{"op":"merge_experience","value":{"version":1,"visits":{"current":{"rating":null}}}}
preferencesmaterialized_body · home_lat,home_lng422 invalid_body{"home_lat":40.7,"home_lng":-74}{"home_lat":40.7}
preferencesmaterialized_body · pinned_kinds422 invalid_body["place","recipe","workout"]["recipe","recipe","workout"]
recorddispatch · schema422 unsupported_schema{"kind":"note","schema":"[email protected]"}{"kind":"note","schema":"[email protected]"}
placematerialized_body · lat,lng422 invalid_body{"lat":40.7,"lng":-74}{"lat":40.7}
event, guidematerialized_body · event schedule422 invalid_body{"all_day":true,"start_date":"2030-07-04","end_date_exclusive":"2030-07-05"}{"all_day":true,"starts_at":"2030-07-04T19:00:00-04:00","timezone":"America/New_York"}
event, guidematerialized_body · recurrence.rrule422 invalid_bodyFREQ=WEEKLY;BYDAY=MOFREQ=SECONDLY
productmaterialized_body · gtin422 invalid_body40063813339314006381333932
recipematerialized_body · steps.*.ingredient_ids422 invalid_body{"ingredients":[{"id":"salt"}],"steps":[{"id":"mix","ingredient_ids":["salt"]}]}{"ingredients":[],"steps":[{"id":"mix","ingredient_ids":["salt"]}]}
tabmaterialized_body · tuning,chords.*.{strings,fingers}422 invalid_body{"string_count":4,"tuning":["G4","C4","E4","A4"],"chords":[{"strings":[0,0,0,3],"fingers":[0,0,0,3]}]}{"string_count":4,"tuning":["G4","C4","E4"],"chords":[{"strings":[0,0,0,3,2],"fingers":[0,0]}]}
tabmaterialized_body · sections.*.measures.*.chord_id422 invalid_body{"chords":[{"id":"c1"}],"measure":{"chord_id":"c1"}}{"chords":[{"id":"c1"}],"measure":{"chord_id":"c2"}}
tabmaterialized_body · sections.*.measures.*.beats.*.notes.*.string422 invalid_body{"string_count":4,"notes":[{"string":1},{"string":4}]}{"string_count":4,"notes":[{"string":1},{"string":1},{"string":5}]}
tabmaterialized_body · sections.*.measures.*.beats.*.notes422 invalid_body{"rest":true,"notes":[]}{"rest":true,"notes":[{"string":1,"fret":2,"techniques":[]}]}
mealmaterialized_body · servings,scale422 invalid_body{"servings":"2.5","scale":"1"}{"servings":"0","scale":"1000.01"}
sessionmaterialized_body · occurrences.*.sets.*.completed_at422 invalid_body{"state":"completed","completed_at":"2030-07-04T19:00:00Z"}{"state":"completed"}
categorymaterialized_body · title422 invalid_body{"title":"Strength","symbol":"dumbbell"}{"symbol":"dumbbell"}
session, program_runmaterialized_body · **.mass_kg422 invalid_body{"mass":{"value":"1","unit":"lb"},"mass_kg":"0.45359237"}{"mass":{"value":"1","unit":"lb"},"mass_kg":"1"}
workout_versionmaterialized_body_after_reference_rewrite · body_sha256422 invalid_bodySHA-256 of compact UTF-8 workout JSON with recursively sorted object keysDigest of the pre-rewrite workout or another version's body
*materialized_body · **.id422 invalid_body["unique-first-id","unique-second-id"]["repeated-id","repeated-id"]
*create · mutations[].schema422 invalid_requestA kind and its exact @1.0 IDA different or unregistered kind/schema pair
*materialized_body · body413 body_too_largeFinal compact UTF-8 body at its byte limitFinal compact UTF-8 body one byte over its limit
*materialized_state · state413 state_too_largeFinal compact UTF-8 map at its byte limitFinal compact UTF-8 map one byte over its limit
*operation_admission · mutations413 operation_too_largeRequest bytes and mutation count within both limitsRequest bytes or mutation count over its limit
*create · mutations[].create_id422 duplicate_create_idA different create ID for each intended recordTwo creates with the same create ID in one operation
*create_or_update · external_ids[].ns403 namespace_deniedAn alias in the caller’s connection namespaceAn alias in another connection’s namespace
*typed_reference · Declared record target422 create_reference_unavailableA planned create ID that resolves to a readable live recordA planned create ID that cannot resolve to a readable live record
*typed_reference · Declared record target422 dangling_referenceA readable live record of the expected kind or a create ID allocated by this operationA newly introduced typed reference to a missing, unreadable or deleted record
mealtyped_reference · recipe_id422 reference_kind_mismatchA linked recipe record IDA grocery list record ID
*typed_reference · Declared part selector422 reference_part_mismatchA present part of the expected type and parentA missing part or one under the wrong parent
*typed_reference · Declared workout pin422 reference_hash_mismatchA version with the expected body hashA version with a different body hash
*patch · part_ops[].list422 patch_invalidAn insert into note sectionsAn insert into atomic note tags
*patch · reset422 reset_no_upstreamAn edited source-backed record with a current baseA record authored without an upstream source
*patch · reset422 reset_not_editedAn address owned by an overlay editAn unchanged source field
*patch · reset409 reset_conflictA current disjoint edit and resetOverlapping reset and explicit edit intent
*patch · reset409 reset_dependencyAddresses that reset together without breaking an invariantReset of only one side of a required dependency
*update_or_patch · base409 base_unknownThe revision number paired with its acknowledged operation IDA number paired with another operation ID
*strict_write · base409 revision_conflictA strict edit against the current revisionA strict edit against a stale revision
*retry · Idempotency-Key422 idempotency_key_reusedThe same request under the same account and connection keyChanged mutations under the same live key
workout_version, operation_logupdate_or_patch · body422 immutable_recordCreate the immutable body onceChange the body after creation
exercise, exercise_override, modifier_assignmentupdate_or_patch · Protected operation lineage422 lineage_protectedAn ordinary edit that retains its existing lineageA forged operation binding
*assistant_write · mutations[]422 assistant_edit_shapeStrict body-only patch of a readable editable saveA state replacement under the assistant-only grant
grocery_listcreate · mutations[].kind409 grocery_list_existsCreate the first live grocery listCreate another live grocery list for the account

Error codes

Use the HTTP status and stable code. MCP carries the same application error payload as its REST operation and also has protocol and connection gates. A paid-work limit returns a 429 problem with code: "rate_limited" and retry_after_seconds. REST also sends the same delay in the Retry-After header.

json
{
  "type": "about:blank",
  "title": "rate_limited",
  "status": 429,
  "code": "rate_limited",
  "retry_after_seconds": 60
}

MCP gates

These are MCP tool errors. A completed JSON-RPC tool call can carry one under isError with HTTP 200. The code is in the code property of the returned problem. Record access uses the same rules as REST.

Tool codeWhen it occurs
assistant_blockedThis assistant client is blocked.
pro_requiredThe account has no active Pro entitlement.
write_scope_requiredThe assistant lacks a record write grant.
invalid_argumentsThe arguments fail the tool's outer input schema.
rate_limitedThe assistant exhausted a call budget. The tool reports retry_after_seconds.
temporarily_unavailableThe tool deadline elapsed.

The MCP HTTP boundary can return 400 for malformed JSON, protocol or header mismatches, 401 for invalid credentials, 403 for an unsupported Origin, 404 for an unsupported method, 413 for an oversized frame, 429 for excess in-flight requests and 503 when the service is unavailable.

Application status and code inventory

HTTP statusCodeWhen it occurs
400cursor_invalidThe feed cursor is malformed or does not authenticate for this connection.
400invalid_argumentsThe arguments do not match the MCP tool schema.
400invalid_cursorThe endpoint's pagination cursor is invalid.
400invalid_fieldsA field selection is malformed, repeated, unknown or used on a sync read.
400invalid_idempotency_keyThe sends endpoint requires a UUID idempotency key.
400invalid_jsonA required JSON request body is missing or malformed.
400invalid_limitThe requested page size is outside the endpoint's accepted range.
400invalid_requestThe input fails the endpoint request schema.
401episode_supersededThe credential belongs to a superseded grant episode.
401unauthorizedThe credential is missing, expired or invalid.
402pro_requiredThis action requires an active Pigeon Pro entitlement.
403assistant_blockedThe assistant client is unavailable for this tool.
403connection_disconnectedThe connection has been revoked or disconnected.
403connection_pausedThe connection is paused and cannot run this request.
403connection_requiredThe credential lacks the required active connection.
403forbiddenThe authenticated caller cannot use owner browse.
403namespace_deniedThe current grant cannot write this external ID namespace.
403owner_requiredThe readable record's owner metadata requires a built-in Pigeon owner credential.
403pro_requiredThis action requires an active Pigeon Pro entitlement.
403sapphire_account_requiredThe credential lacks the required Pigeon account identity.
403scope_deniedThe caller lacks the permission for the requested action.
403write_scope_requiredThe assistant connection has no active write scope.
404not_foundThe target is missing or unreadable to the caller.
409ambiguous_aliasThe proposal matches more than one catalog entry.
409base_unknownThe submitted revision pair does not identify an available base.
409catalog_redirect_requires_resolutionThe matching catalog entry requires a catalog moderation decision.
409grocery_list_existsThe account already has a live grocery list.
409invalid_deletion_targetThe record cannot be deleted through this operation.
409pigeon_data_deletingA Pigeon account data deletion is in progress.
409pigeon_owner_mapping_requiredThe send cannot resolve the required account-owner mapping.
409preferences_existsThe account already has a live Pigeon preferences record.
409reset_conflictThe reset overlaps a newer edit or other edit intent.
409reset_dependencyThe reset would break a structural dependency.
409reuse_check_requiredThe source's cached extraction requires a reuse check.
409review_changedThe original or its review has moved beyond the submitted revision or candidate.
409revision_conflictStrict edit or review requires a fresh current revision.
409send_not_retryableThe caller's send is not an extraction failure with retained input.
409source_check_failedA check required before reusing the source failed.
409source_identity_conflictThe submitted source identity conflicts with another source.
409source_withdrawnThe original source has been withdrawn.
409still_conflictingThe chosen conflict resolution still violates the current merged record.
410account_deletedThe account's Hub data was deleted.
410cursor_expiredThe requested sequence is below the retained feed floor.
410cursor_resetThe feed cursor belongs to a different Hub epoch or is above its head.
410history_expiredThe required historical revision is outside the retention window.
410rebootstrap_requiredThe feed cursor belongs to another permission view.
410snapshot_invalidatedThe snapshot no longer matches the current account or permission view.
413alias_limitThe catalog entry would exceed its alias budget.
413body_too_largeThe final compact canonical body exceeds its byte budget.
413correction_budget_exceededThe correction exceeds the source review work budget.
413operation_too_largeThe request or operation exceeds its byte or mutation budget.
413proposal_too_largeThe correction proposal exceeds its size budget.
413publication_work_exceededValidating the publication would exceed its work budget.
413reference_work_exceededReference discovery, rewrite or patch traversal exceeds its work budget.
413release_budget_exceededPublishing the catalog would exceed the release size budget.
413response_too_largeThe complete response exceeds the endpoint byte budget.
413send_input_too_largeThe compact URL or text and optional note cannot fit in the reserved retry state.
413state_too_largeThe final compact state map exceeds 64 KiB.
422assistant_edit_shapeAn assistant-only writer submitted something other than a supported strict body patch.
422base_requiredA revision base is required for the requested edit.
422body_identity_changedThe mutation changed the identity of the record body.
422body_invalidA validated body or conflict resolution violates its body invariants.
422correction_invalidThe proposed correction does not name a valid source edit.
422create_reference_unavailableA typed target allocated by this operation cannot become a readable live record.
422dangling_referenceA new typed link points to a deleted or unavailable target.
422duplicate_create_idTwo create mutations in the same operation use the same create ID.
422idempotency_key_requiredThe original-review write is missing its idempotency key.
422idempotency_key_reusedThe account and connection already used the key with another request.
422immutable_recordThe mutation attempts to change the body of an immutable record.
422invalid_bodyThe kind body violates structural or semantic validation on write.
422invalid_choiceThe requested conflict resolution choice is invalid.
422invalid_crosswalkA catalog provider or external ID is invalid.
422invalid_cursorThe endpoint's pagination cursor is invalid.
422invalid_idThe ID is not a valid UUID.
422invalid_operationThe operation is invalid, for example when its required idempotency key is empty.
422invalid_pageThe catalog release page parameters are invalid.
422invalid_proposalThe catalog entry proposal failed validation.
422invalid_reconcileThe submitted reconciliation input cannot be processed.
422invalid_requestThe input fails the endpoint request schema.
422invalid_revisionThe catalog entry revision is invalid.
422invalid_stateA well-known state value or a newly marked guide stop is invalid for the resulting record.
422invalid_urlThe send URL cannot be admitted.
422lineage_protectedA write forged, changed or removed protected operation lineage.
422patch_invalidThe patch shape, body, addressed part or state intent is invalid.
422pre_tombstone_fanout_limitRequired dependent-record flags would exceed the atomic deletion fanout budget.
422pre_tombstone_scan_limitThe dependent-record scan would exceed the atomic deletion scan budget.
422record_identity_changedThe mutation would change the existing record identity.
422reference_hash_mismatchThe referenced workout version does not match the expected digest.
422reference_kind_mismatchThe typed reference points to a record of the wrong kind.
422reference_part_mismatchThe required referenced part, type or parent does not match.
422reset_invalidA reset address cannot be resolved as a supported field, list or part.
422reset_no_upstreamThe reset target has no upstream source.
422reset_not_editedThe reset address has no owner edit to return to source.
422server_owned_fieldA send mutation attempts to write a server-owned value. Omitted server-owned values survive replacement.
422too_many_external_idsThe final record exceeds the external ID limit.
422unsupported_schemaThe record kind or exact wire schema is unsupported.
422webhook_events_invalidThe subscription has unsupported event types.
422webhook_url_invalidThe destination fails the webhook URL requirements.
422webhook_url_privateThe destination is not a public webhook endpoint.
429daily_edit_cap_reachedThe operation would exceed a rolling assistant edit cap. The problem includes resets_at.
429rate_limitedThe connection, route or paid-work budget is exhausted. Honor Retry-After where supplied.
429snapshot_rate_limitedThe connection exhausted its snapshot creation allowance.
503history_corruptThe Hub could not reconstruct a consistent historical revision.
503hub_not_readyThe account or Hub is not ready to serve the operation.
503identity_unavailablePersonal access token verification is temporarily unavailable.
503internal_errorAn unexpected Hub failure prevented the request from completing.
503ledger_unavailableThe Hub could not make its durability ledger available.
503temporarily_unavailablePigeon could not complete the tool call before its deadline.