Protocol Specification v0.5

Error Reference

This page is the canonical reference for every error code defined in OIP v0.5. It consolidates the 36 codes into a single matrix, defines the five handling actions, specifies how failures propagate through the three-phase cross-chain coordination, and distinguishes states that look similar at the surface but require different recovery paths. Conformant implementations MUST emit and process all 36 codes listed here.

Sister specification pages introduce the conditions that produce each code in context. Validation defines the eight validation criteria and the sub-checks that fire most of these errors, State Management covers the state-transition family, Cross-chain Protocol covers the divergence and reconciliation flow, and Fault Tolerance covers retry policies, deduplication, and the . This page is the lookup table and the recovery-semantics reference; those pages explain the surrounding logic.


Handling Actions#

OIP v0.5 defines five handling actions. Every error code maps to exactly one of these, and the mapping is part of the protocol contract: a sender can rely on receiving a deterministic response class for any given code. The five actions partition the failure space into distinct recovery paths.

Handling actions

Where processing stops sets the action: REJECT before any change, ROLLBACK after one, DIVERGE when chains disagree.

Where processing stops sets the action: REJECT before any change, ROLLBACK after one, DIVERGE when chains disagree. Each handling action is shown where its failure arises: in delivery, during checks, after a change is applied or across chains. A delivery timeout retries the same message. During checks, 28 codes refuse the message before any change, and ESCALATE is invoked without a code. After a change, the two postcondition codes roll it back, and when chains disagree the two DIVERGE codes pause the asset until reconciliation. Three codes take no action of their own: a duplicate is silently ignored, MAX_RETRIES_EXCEEDED moves the message to the Dead Letter Queue, and RECONCILIATION_REQUIRED starts reconciliation automatically. Stage Action where processing stops Codes Delivery in transit 1 RETRY DELIVERY_TIMEOUT 1 code the same message is sent again after maxRetries: MAX_RETRIES_EXCEEDED, to the DLQ 1 code Checks nothing changed yet 2 REJECT all seven categories 28 codes the message is refused; nothing changes DEDUPLICATION_DETECTED 1 code silently ignored: the duplicate is dropped without an ACK 3 ESCALATE no code invoked when a STATE_SYNC resolves to a regulatory action Change applied postconditions checked 4 ROLLBACK POSTCONDITION_VIOLATION_SINGLE 2 codes POSTCONDITION_VIOLATION_MULTI the applied change is reversed Across chains chains compared 5 DIVERGE CROSS_CHAIN_STATE_CONFLICT 2 codes DIVERGED_STATE_DETECTED the asset pauses until reconciliation RECONCILIATION_REQUIRED starts it (auto) 1 code
  1. 1

    Retry, then the DLQ

    DELIVERY_TIMEOUT is the only RETRY code. When maxRetries is reached, the message fails with MAX_RETRIES_EXCEEDED and moves to the Dead Letter Queue.

  2. 2

    Refused before any change

    28 codes from all seven categories stop the message during checks. The ACK is REJECTED, except for STATE_HASH_MISMATCH, which returns FAILED.

  3. 3

    No code of its own

    ESCALATE is not mapped from an error code. Validation invokes it when an incoming STATE_SYNC resolves to a regulatory-action category.

  4. 4

    One chain or all

    POSTCONDITION_VIOLATION_SINGLE rolls back one chain. POSTCONDITION_VIOLATION_MULTI unwinds every chain in the ALL_OR_NOTHING sequence.

  5. 5

    The asset waits

    Divergence pauses the whole asset, and RECONCILIATION_REQUIRED, an internal signal no sender receives, starts reconciliation. A new message meanwhile gets DIVERGED_STATE_DETECTED.

  • Where each failure arises
  • Processing stops with this action
  • Sent again, or escalated without a refusal
  • Silent or automatic, no action of its own

Each of the 36 codes appears once; the counts on the right add up to 36.

Figure 1: Handling Actions

The remaining codes fall into silent or automatic categories: DEDUPLICATION_DETECTED is silently ignored as part of , RECONCILIATION_REQUIRED auto-triggers the reconciliation flow, and MAX_RETRIES_EXCEEDED moves the message into the Dead Letter Queue. ESCALATE is not directly mapped from a single error code; it is the dynamic response invoked by validation logic when an incoming STATE_SYNC resolves to a regulatory-action category, as defined in Validation.

REJECT vs FAILED ACK Distinction#

When a node refuses a message, it returns an whose ackType distinguishes the failure mode. The choice carries semantic meaning: REJECTED means the message was structurally or contextually invalid and processing never began, while FAILED means the message was accepted into the pipeline but failed during state evaluation.

This distinction matters for senders building retry logic. A REJECTED response indicates the sender constructed an invalid message and should fix the message itself before resending; a FAILED response indicates the receiver-side state changed (or was inconsistent) and the sender may retry after refreshing local state. Confusing the two leads to retry storms or, conversely, to silently dropped recoverable failures.

TypeScript
interface ErrorAckPayload {  acknowledgedMessageId: string;  ackType: "FAILED" | "REJECTED";  resultCode: string;                      // one of the 36 error codes  errorDetails: ErrorDetails;}interface ErrorDetails {  errorCode: string;  errorMessage: string;                    // human-readable description  retryable: boolean;  suggestedAction?: "RETRY" | "ROLLBACK" | "ESCALATE" | "ABORT";  contextData?: object;                    // optional debugging data}

The retryable flag is the operational shortcut: senders that want simple logic can branch on this single boolean rather than parsing the error code itself. suggestedAction is advisory; final retry policy is governed by the message type’s policy in Fault Tolerance.

The figure below summarizes the decision flow a sender follows on receiving an ACK. Implementations may collapse this into a switch on retryable alone, but the explicit form helps understand why each branch exists.

ACK handling

Two fields set the sender's move: ackType says what went wrong, retryable says whether sending again can work.

Two fields set the sender's move: ackType says what went wrong, retryable says whether sending again can work. A grid of the ackType field of ErrorAckPayload, in rows, and errorDetails.retryable, in columns. REJECTED with retryable true means retry with new timing (APPEAL_PERIOD_NOT_EXPIRED after the appeal window, MESSAGE_TTL_EXPIRED as a new message); REJECTED with false means fix the message, then resend (the other 25 REJECTED codes), except that a not-yet-valid LEGAL_BASIS_EXPIRED_OR_NOT_YET_VALID is resent at issuedAt and ROLLBACK_INCOMPLETE_REJECT waits for governance. FAILED with true means refresh state, then resend (POSTCONDITION_VIOLATION_SINGLE, STATE_HASH_MISMATCH); FAILED with false means do not resend this message (POSTCONDITION_VIOLATION_MULTI, CROSS_CHAIN_STATE_CONFLICT, DIVERGED_STATE_DETECTED, MAX_RETRIES_EXCEEDED). ErrorAckPayload errorDetails.retryable 1 ackType 2 true false REJECTED processing never began Retry with new timing 3 APPEAL_PERIOD_NOT_EXPIRED MESSAGE_TTL_EXPIRED 2 codes Fix the message, then resend every other REJECTED code 25 codes two codes may wait instead 4 FAILED failed during state evaluation Refresh state, then resend 5 POSTCONDITION_VIOLATION_SINGLE STATE_HASH_MISMATCH 2 codes Do not resend this message 6 POSTCONDITION_VIOLATION_MULTI CROSS_CHAIN_STATE_CONFLICT DIVERGED_STATE_DETECTED MAX_RETRIES_EXCEEDED 4 codes
  1. 1

    Retry or not

    A sender may branch on retryable alone. suggestedAction is advisory; the retry policy of the message type governs.

  2. 2

    What went wrong

    REJECTED: the message was structurally or contextually invalid, so processing never began. FAILED: it was accepted but failed during state evaluation.

  3. 3

    Time-variant codes

    APPEAL_PERIOD_NOT_EXPIRED can succeed at appealDeadline. An expired message is never revived: a new one gets a fresh messageId and timestamp.

  4. 4

    Two codes may wait

    A LEGAL_BASIS_EXPIRED_OR_NOT_YET_VALID that is not yet valid needs no fix and is resent at issuedAt. ROLLBACK_INCOMPLETE_REJECT waits for governance to resolve the asset.

  5. 5

    State moved underneath

    Receiver-side state changed. Refresh local state from the receiver and resend; after STATE_HASH_MISMATCH, with the updated hash.

  6. 6

    Wait or start over

    After POSTCONDITION_VIOLATION_MULTI, a new sequence starts with a new messageId. The DIVERGE codes pause the asset until reconciliation, and MAX_RETRIES_EXCEEDED moved the message to the DLQ.

The other three codes send no ACK: DELIVERY_TIMEOUT, DEDUPLICATION_DETECTED and RECONCILIATION_REQUIRED.

Figure 2: ACK Handling Decision

Error Code Categories#

OIP v0.5 organizes the 36 error codes into seven categories by prefix. The category prefix is a contractual element of the protocol: clients receiving an unknown code SHOULD fall back to category-level handling rather than rejecting the entire ACK. This is the foundation of forward compatibility (see Extension Policy).

Category distribution

Four categories hold only REJECT codes; every other handling comes from State Transition, Cross-chain or Delivery.

Four categories hold only REJECT codes; every other handling comes from State Transition, Cross-chain or Delivery. One row per category, one cell per code: State Transition 6, Cross-chain 5, Delivery 5, Message Integrity 8, Authority 4, Legal Basis 4 and Address 4, 36 codes in all. Plain cells are REJECT codes. The accent cells, named under them, are the two ROLLBACK codes of State Transition, the two DIVERGE codes and the auto code of Cross-chain, and the RETRY, DLQ and silent codes of Delivery; the last four categories are REJECT only. Category 1 One cell per code State Transition ROLLBACK 6 2 Cross-chain DIVERGE auto 5 3 Delivery RETRY DLQ silent 5 4 Message Integrity 8 Authority 4 Legal Basis 4 Address 4 all REJECT
  1. 1

    Category by prefix

    Each code's prefix places it in one of seven categories. A client that meets an unknown code SHOULD fall back to its category's handling rather than reject the whole ACK.

  2. 2

    Rollback after a change

    POSTCONDITION_VIOLATION_SINGLE and POSTCONDITION_VIOLATION_MULTI roll back an applied change. The other four codes are REJECT.

  3. 3

    Divergence

    CROSS_CHAIN_STATE_CONFLICT and DIVERGED_STATE_DETECTED pause the asset; RECONCILIATION_REQUIRED starts reconciliation automatically.

  4. 4

    Delivery outcomes

    DELIVERY_TIMEOUT is retried, MAX_RETRIES_EXCEEDED moves the message to the DLQ and DEDUPLICATION_DETECTED is silently ignored.

  • One REJECT code
  • One code handled another way, named under it

Rows hold 6, 5, 5, 8, 4, 4 and 4 codes: all 36.

Figure 3: Category Distribution

Authority#

Errors raised when a message claims regulatory authority that the receiver cannot verify. All four codes REJECT with non-retryable semantics: the sender’s authority claim itself is wrong, and resending the same claim cannot succeed. These checks fire during validation criterion (3) authority verification, before any state mutation is attempted.

CodeTriggerActionACK Type
AUTHORITY_NOT_REGISTEREDSender’s authorityId not found in Authority RegistryREJECTREJECTED
JURISDICTION_MISMATCHAuthority’s jurisdiction does not match the asset’s jurisdictionREJECTREJECTED
ACTION_NOT_PERMITTEDAuthority not permitted to perform the requested actionREJECTREJECTED
CRITICAL_PRIORITY_NOT_AUTHORIZEDSender lacks the role required to assign Priority.CRITICALREJECTREJECTED

State Transition#

Errors raised when a state transition violates the matrix in State Management or when a postcondition fails after partial execution. The errors (FREEZE_REQUIRED_BEFORE_SEIZE, SEIZE_REQUIRED_BEFORE_CONFISCATE) enforce the legally required ordering of regulatory actions and are non-retryable until the sender first applies the missing predecessor action.

CodeTriggerActionACK Type
STATE_HASH_MISMATCHcurrentStateHash does not match the actual state hash on the receiverREJECTFAILED
FREEZE_REQUIRED_BEFORE_SEIZEAsset is not in RESTRICTED state when SEIZE arrivesREJECTREJECTED
SEIZE_REQUIRED_BEFORE_CONFISCATEAsset is not in SEIZED state when CONFISCATE arrivesREJECTREJECTED
INVALID_STATE_TRANSITIONTransition not defined in the State Transition MatrixREJECTREJECTED
POSTCONDITION_VIOLATION_SINGLESingle-chain postcondition fails after Group 3 evaluationROLLBACKFAILED
POSTCONDITION_VIOLATION_MULTIMulti-chain postcondition fails; ALL_OR_NOTHING rollback triggeredROLLBACKFAILED

STATE_HASH_MISMATCH uses FAILED rather than REJECTED because the message itself was structurally valid; only the receiver-side state diverged. Senders should refresh local state from the receiver and resend with the updated hash. The two POSTCONDITION_VIOLATION_* codes differ in scope: see the dedicated POSTCONDITION_VIOLATION Single vs Multi section below for the rollback-sequence comparison.

Errors raised when the legal documentation accompanying a regulatory action is structurally invalid, expired, or premature. APPEAL_PERIOD_NOT_EXPIRED guards specifically: a confiscation cannot proceed before the asset’s appeal window has closed.

CodeTriggerActionACK Type
INVALID_LEGAL_DOCUMENT_STRUCTURELegalReference structure missing required fields or malformedREJECTREJECTED
EVIDENCE_HASH_INVALIDevidence.documentHash verification failedREJECTREJECTED
LEGAL_BASIS_EXPIRED_OR_NOT_YET_VALIDissuedAt > now or validUntil < nowREJECTREJECTED
APPEAL_PERIOD_NOT_EXPIREDCONFISCATE submitted with appealDeadlinePassed != trueREJECTREJECTED

APPEAL_PERIOD_NOT_EXPIRED and LEGAL_BASIS_EXPIRED_OR_NOT_YET_VALID are time-variant errors: the same message may succeed at a different point in time. See Time-Variant Errors and Retry Semantics for the retry timing model.

Cross-chain#

Errors that arise when the system detects inconsistency across chains or when a target chain cannot fulfill an requirement. Most codes in this category surface during the COMMIT phase of three-phase coordination; see Phase-Level Failure Semantics for the exact mapping. The DIVERGE family (CROSS_CHAIN_STATE_CONFLICT, DIVERGED_STATE_DETECTED) is qualitatively distinct from REJECT: rather than refusing a single message, it pauses the entire asset until completes.

CodeTriggerActionACK Type
CROSS_CHAIN_STATE_CONFLICTState on this chain conflicts with state on another chainDIVERGEFAILED
ATOMIC_COMMIT_NOT_SUPPORTEDTarget chain capabilities do not support atomic commitREJECTREJECTED
DIVERGED_STATE_DETECTEDNew message arrives while reconciliation is in progressDIVERGEFAILED
RECONCILIATION_REQUIREDAuto-trigger signal for reconciliation; not sender-facingauto-trigger(none)
ROLLBACK_INCOMPLETE_REJECTNew transaction submitted while in ROLLBACK_INCOMPLETE state, awaiting governance resolutionREJECTREJECTED

RECONCILIATION_REQUIRED is the only code in the entire reference that is not sender-facing: it is an internal signal a node emits to itself or to peer nodes to trigger the reconciliation flow. Senders never receive this code in an ACK. state and state look superficially similar but represent different recovery paths; see DIVERGED vs ROLLBACK_INCOMPLETE for the comparison.

Address#

Errors raised during address resolution. The OIP OIPAddress format combines short names with chain identifiers; any failure in this resolution chain produces one of these four codes. Address-resolution checks run before authority verification because an unresolvable address makes downstream authority lookup impossible.

CodeTriggerActionACK Type
INVALID_ADDRESS_FORMATAddress violates ERC-3770 or OIPAddress formatREJECTREJECTED
UNKNOWN_CHAIN_SHORT_NAMEShort name not found in Short Name RegistryREJECTREJECTED
INVALID_ADDRESS_CHECKSUMMixed-case address fails EIP-55 checksum verificationREJECTREJECTED
CHAIN_NOT_SUPPORTEDChain not registered in ChainRegistry or marked inactiveREJECTREJECTED

INVALID_ADDRESS_CHECKSUM applies only to mixed-case addresses; lowercase or fully uppercase addresses bypass checksum validation per . Senders should always emit mixed-case addresses to benefit from the typo-detection guarantee.

Delivery#

Errors related to message lifecycle and transport. This category contains the only RETRY code (DELIVERY_TIMEOUT) and the only DLQ code (MAX_RETRIES_EXCEEDED) in the entire reference. The full delivery model, including retry policies per message type and the , lives in Fault Tolerance.

CodeTriggerActionACK Type
MESSAGE_TTL_EXPIREDheader.timestamp + routing.ttl < now at receiverREJECTREJECTED
DELIVERY_TIMEOUTPhase timeout exceeded during deliveryRETRY(none)
MAX_RETRIES_EXCEEDEDRetry policy maxRetries reachedDLQFAILED
DEDUPLICATION_DETECTEDmessageId already in deduplication cachesilently ignored(none)
UNSUPPORTED_VERSIONReceiver does not support header.versionREJECTREJECTED

DEDUPLICATION_DETECTED is silently ignored as part of OIP's idempotency contract: detecting a duplicate is a normal operational event, not a failure, and the sender already received the original ACK. Generating a new ACK for the duplicate would itself violate idempotency.

Message Integrity#

The largest category. These eight codes cover every aspect of cryptographic verification, attestation validation, and replay protection. Three of these codes apply only to messages originating from via a ; see CANTON-Specific Codes for the dedicated subset. Two codes (INVALID_SIGNATURE, INVALID_THRESHOLD_SIGNATURE) are flagged for review when the failure pattern suggests malicious behavior; see Slashing-Eligible Codes.

CodeTriggerActionACK Type
INVALID_HEADER_FORMATOIPMessageHeader structure violationREJECTREJECTED
INVALID_SIGNATURESINGLE signature verification failedREJECTREJECTED
INVALID_THRESHOLD_SIGNATUREBLS aggregated signature failed or quorum not metREJECTREJECTED
INVALID_SOURCE_AUTHENTICATIONSource chain proof missing or invalidREJECTREJECTED
INVALID_DRIVER_ATTESTATIONdriverSignature verification failed or structurally malformedREJECTREJECTED
DRIVER_NOT_REGISTEREDdriverId not found in Driver RegistryREJECTREJECTED
PARTY_OCID_MAPPING_INVALIDpartyMapping.mappingProof verification failedREJECTREJECTED
ATTESTATION_REPLAY_DETECTEDcantonContext.transactionId already processedREJECTREJECTED

ATTESTATION_REPLAY_DETECTED closes a specific replay vector that DEDUPLICATION_DETECTED alone cannot catch: the same Canton transaction wrapped in two different OIP messages with different messageId values would pass the messageId dedup check but fail this one.

Phase-Level Failure Semantics#

Cross-chain messages travel through a : PREPARE, COMMIT, FINALIZE, defined in Cross-chain Protocol. Each phase has its own failure semantics: which errors can fire, what side effects roll back, and what the lock holds. This section is the recovery-semantics reference for cross-chain operations.

Phase failures

Only PREPARE fails before any state change and can abort; later failures diverge, roll back or keep the change.

Only PREPARE fails before any state change and can abort; later failures diverge, roll back or keep the change. Three phases run left to right: PREPARE acquires the lock, COMMIT changes state and FINALIZE releases the lock. A PREPARE failure comes before any state change: the abort path releases the lock at once, a retry holds it, and if all retries fail it is released at TTL expiry. A COMMIT failure takes one of two failure modes: a cross-chain state conflict leads to DIVERGED, and a rollback in progress leads to ROLLBACK_INCOMPLETE. A FINALIZE failure keeps the change and holds the lock until FINALIZE or terminal evidence arrives, and TTL expiry escalates to the operator. nothing changed yet state already changed on at least one chain PREPARE lock acquired at start COMMIT state changes FINALIZE releases the lock on failure on failure on failure Abort or retry 1 no state has changed yet Lock on abort: released at once during a retry: held if all retries fail: held until TTL, then released Two failure modes 2 cross-chain state conflict DIVERGED rollback in progress ROLLBACK_INCOMPLETE Change kept 3 not rolled back; it is only a confirmation failure Lock held until FINALIZE or terminal evidence arrives TTL expiry escalates to the operator
  1. 1

    Before any change

    Validation failed inside PREPARE, so no state has changed. The abort path releases the lock at once; a retry keeps it held against racing transactions, and if every retry fails it is released when its TTL expires.

  2. 2

    Two modes, two states

    A cross-chain state conflict, where some chains saw the change and others did not or one rejected it, leads to DIVERGED. An intentional rollback still in progress leads to ROLLBACK_INCOMPLETE.

  3. 3

    A confirmation failure

    The change has taken effect, and rolling it back over a lost confirmation would create more risk than it solves. Terminal evidence is a verifiable finality certificate, or verifiable reversal or reorg evidence.

  • Phase order
  • Path taken when the phase fails
  • State the protocol moves to
Figure 4: Phase-Level Failure Semantics

PREPARE Failure#

The is acquired at the start of PREPARE. If validation fails inside PREPARE, the abort path releases the lock immediately. During a retry attempt, the lock is held to prevent racing transactions from acquiring it; if all retries fail, the lock is held until its expires, at which point it is released automatically. This behavior follows the lock timeout safety invariant of the lock manager.

COMMIT Failure#

COMMIT failures are the most consequential because state has already changed on at least one chain when the failure is detected. Two distinct failure modes arise: cross-chain state conflict (some chains saw the change, others did not, or one rejected it) and intentional rollback in progress. The protocol distinguishes these by transitioning to either DIVERGED or ROLLBACK_INCOMPLETE; see the next section for the comparison.

FINALIZE Failure#

FINALIZE is the lock-release signal. Failures here are treated conservatively: the state change is NOT rolled back. The reasoning is that FINALIZE failure is a "confirmation failure," not a "state-change failure." Rolling back a successfully committed state because the confirmation message was lost would create more risk than it solves: a transient network glitch could invalidate legitimate transactions. Instead, chains that did not receive FINALIZE keep their lock held until FINALIZE or other terminal evidence arrives (a verifiable finality certificate, or verifiable reversal or reorg evidence). Because the state change has already taken effect, TTL expiry does not release the lock; it escalates to the operator instead.

DIVERGED vs ROLLBACK_INCOMPLETE#

These two states look similar at the surface but are produced by different causes and have different recovery paths. Confusing them in operations leads to applying the wrong recovery procedure. The protocol intentionally separates them so that automatic systems can route based on the state alone, without having to inspect the underlying error code.

Two failure states

Both refuse new messages; DIVERGED waits for reconciliation, ROLLBACK_INCOMPLETE lets only governance resolve it.

Both refuse new messages; DIVERGED waits for reconciliation, ROLLBACK_INCOMPLETE lets only governance resolve it. A COMMIT failure leads to one of two states. Chains that disagree (CROSS_CHAIN_STATE_CONFLICT) lead to DIVERGED, where a new message is refused with DIVERGED_STATE_DETECTED and a FAILED ACK until reconciliation, started automatically by RECONCILIATION_REQUIRED, discovers the truth. A rollback that the affected chains do not all complete within maxRollbackWindow (60 s by default) leads to ROLLBACK_INCOMPLETE, where a new transaction is refused with ROLLBACK_INCOMPLETE_REJECT and a REJECTED ACK until governance resolves it and enforces the known outcome. Cause State Cleared by COMMIT failure 1 chains disagree 2 CROSS_CHAIN_STATE_CONFLICT DIVERGED Reconciliation discovers the truth RECONCILIATION_REQUIRED starts it automatically new message DIVERGED_STATE_DETECTED ACK FAILED rollback not done in time 3 ROLLBACK_INCOMPLETE Governance resolution enforces the known outcome new transaction ROLLBACK_INCOMPLETE_REJECT ACK REJECTED
  1. 1

    Different causes

    Both states follow a COMMIT failure, after state has already changed on at least one chain. They are kept apart so automatic systems can route on the state alone, without inspecting the error code.

  2. 2

    Which chain is right?

    Some chains saw the change, others did not, or one rejected it: “we don't know which chain is right yet.” Reconciliation discovers the truth while the whole asset waits.

  3. 3

    Known outcome, unfinished

    The affected chains did not all complete the rollback within maxRollbackWindow (60 s by default): “we know what should happen but haven't finished doing it.” Only governance can resolve it and enforce the outcome.

  • Recovery path
  • New traffic refused, with its code and ACK
Figure 5: DIVERGED vs ROLLBACK_INCOMPLETE

The cleanest way to think about the difference: DIVERGED is "we don't know which chain is right yet", while ROLLBACK_INCOMPLETE is "we know what should happen but haven't finished doing it". Reconciliation discovers the truth; governance enforces it.

POSTCONDITION_VIOLATION Single vs Multi#

POSTCONDITION_VIOLATION_SINGLE and POSTCONDITION_VIOLATION_MULTI share the same prefix and the same handling action (ROLLBACK), but their operational consequences differ by an order of magnitude. The single-chain variant triggers a local rollback on one chain; the multi-chain variant triggers an ALL_OR_NOTHING rollback sequence across every chain involved in the transaction.

AspectPOSTCONDITION_VIOLATION_SINGLEPOSTCONDITION_VIOLATION_MULTI
ScopeOne chain onlyAll chains in the transaction sequence
Rollback triggerGroup 2 single-chain rollbackALL_OR_NOTHING sequence rollback
Sender retryabilityretryable: true (resend the same transaction)retryable: false (start a fresh sequence)
Lock releaseLocal lock onlyAll locks across the sequence
Operational costLow (single-chain rollback)High (multi-chain coordinated rollback)

The retryable: false on the multi-chain variant is not a permanent rejection. It signals that the specific in-flight sequence has been fully unwound; senders construct a new sequence with a new messageId rather than resending the failed one. This avoids races between the rollback completion and an immediate retry.

Time-Variant Errors and Retry Semantics#

Three error codes have outcomes that change with the passage of time. The same message that fails now may succeed at a later point, without any change to the message itself. Senders must understand the timing model for each, because retry-too-early just produces another failure, and retry-too-late may run into TTL expiration.

CodeBecomes valid whenRetry guidance
MESSAGE_TTL_EXPIREDNever (message is dead)Construct a new message with a fresh messageId and timestamp. The original cannot be revived.
LEGAL_BASIS_EXPIRED_OR_NOT_YET_VALIDIf issuedAt > now: at issuedAt. If validUntil < now: never; obtain new legal documentation.For not-yet-valid: schedule retry at issuedAt. For expired: replace LegalReference entirely.
APPEAL_PERIOD_NOT_EXPIREDAt appealDeadlineSchedule retry at appealDeadline with appealDeadlinePassed: true.

Implementations SHOULD attach the relevant timestamp (issuedAt, appealDeadline) to errorDetails.contextData so that automated retry schedulers can compute the correct retry time without consulting external sources. The protocol does not require this, but the operational benefit is substantial.

Slashing-Eligible Codes#

Two error codes mark failures that may indicate malicious behavior rather than transient corruption. When the failure pattern (frequency, source, correlation across messages) suggests deliberate misbehavior, these codes are flagged for slashing review at the consensus layer. The slashing decision itself is governed by the consensus layer, not by the protocol message; the error code is a signal, not a slashing trigger.

CodeWhy slashing-eligibleWhat triggers review
INVALID_SIGNATURESINGLE signature failure may mean the sender's key was used to sign an invalid message. Pattern of repeated failures from the same node points at compromise or malice.Repeated failures from a single node within a short window. The consensus layer aggregates these signals.
INVALID_THRESHOLD_SIGNATURE failure may mean a coalition of nodes failed to honor their attestation duty. Pattern of failures suggests coordinated misbehavior.Failure rate above the threshold from a specific signer set, especially if the failure correlates with controversial messages.

Other Message Integrity codes (INVALID_HEADER_FORMAT, INVALID_SOURCE_AUTHENTICATION, etc.) do not directly imply malicious intent: they are typically caused by software bugs, version skew, or relayer errors. A node receiving these codes simply rejects the message; there is no slashing review path.

CANTON-Specific Codes#

Four codes apply only to messages originating from Canton via a Canton Driver. EVM-originated messages never produce these codes. The codes form a contiguous subset of the Message Integrity category and reflect the additional verification surface introduced by the Canton attestation model.

CodeWhat it verifies
INVALID_DRIVER_ATTESTATIONThe Canton Driver's signature over the bridged message is valid and the attestation structure is well-formed.
DRIVER_NOT_REGISTEREDThe driverId appears in the Driver Registry. Unknown drivers are rejected outright.
PARTY_OCID_MAPPING_INVALIDThe proof binding a Canton Party to an is valid. This protects against impersonation across the on-chain/off-chain boundary.
ATTESTATION_REPLAY_DETECTEDThe underlying Canton transaction has not already been processed under a different OIP messageId.

Implementations that do not integrate with Canton can omit the validation logic for these codes (no Canton-originated messages will ever reach them), but they MUST still emit these codes correctly if they observe a malformed or replayed Canton attestation. Forward compatibility requires the codes to be present in every conformant implementation's vocabulary, even when the implementation never produces them in practice.

Complete Error Code Matrix#

The full matrix of all 36 codes in a single table, sorted by category and code number. This is the canonical lookup table for implementations. The Retryable column reflects the retryable flag in ErrorDetails; conditional values are explained inline.

#CategoryCodeActionACKRetryable
1AuthorityAUTHORITY_NOT_REGISTEREDREJECTREJECTEDfalse
2AuthorityJURISDICTION_MISMATCHREJECTREJECTEDfalse
3AuthorityACTION_NOT_PERMITTEDREJECTREJECTEDfalse
4AuthorityCRITICAL_PRIORITY_NOT_AUTHORIZEDREJECTREJECTEDfalse
5State TransitionSTATE_HASH_MISMATCHREJECTFAILEDtrue (after refresh)
6State TransitionFREEZE_REQUIRED_BEFORE_SEIZEREJECTREJECTEDfalse
7State TransitionSEIZE_REQUIRED_BEFORE_CONFISCATEREJECTREJECTEDfalse
8State TransitionINVALID_STATE_TRANSITIONREJECTREJECTEDfalse
9State TransitionPOSTCONDITION_VIOLATION_SINGLEROLLBACKFAILEDtrue
10State TransitionPOSTCONDITION_VIOLATION_MULTIROLLBACKFAILEDfalse
11Legal BasisINVALID_LEGAL_DOCUMENT_STRUCTUREREJECTREJECTEDfalse
12Legal BasisEVIDENCE_HASH_INVALIDREJECTREJECTEDfalse
13Legal BasisLEGAL_BASIS_EXPIRED_OR_NOT_YET_VALIDREJECTREJECTEDfalse
14Legal BasisAPPEAL_PERIOD_NOT_EXPIREDREJECTREJECTEDtrue (after window)
15Cross-chainCROSS_CHAIN_STATE_CONFLICTDIVERGEFAILEDfalse
16Cross-chainATOMIC_COMMIT_NOT_SUPPORTEDREJECTREJECTEDfalse
17Cross-chainDIVERGED_STATE_DETECTEDDIVERGEFAILEDfalse
18Cross-chainRECONCILIATION_REQUIREDauto(none)N/A
19Cross-chainROLLBACK_INCOMPLETE_REJECTREJECTREJECTEDfalse
20AddressINVALID_ADDRESS_FORMATREJECTREJECTEDfalse
21AddressUNKNOWN_CHAIN_SHORT_NAMEREJECTREJECTEDfalse
22AddressINVALID_ADDRESS_CHECKSUMREJECTREJECTEDfalse
23AddressCHAIN_NOT_SUPPORTEDREJECTREJECTEDfalse
24DeliveryMESSAGE_TTL_EXPIREDREJECTREJECTEDtrue (new message)
25DeliveryDELIVERY_TIMEOUTRETRY(none)true (automatic)
26DeliveryMAX_RETRIES_EXCEEDEDDLQFAILEDfalse
27DeliveryDEDUPLICATION_DETECTEDsilent(none)N/A
28DeliveryUNSUPPORTED_VERSIONREJECTREJECTEDfalse
29Message IntegrityINVALID_HEADER_FORMATREJECTREJECTEDfalse
30Message IntegrityINVALID_SIGNATUREREJECTREJECTEDfalse
31Message IntegrityINVALID_THRESHOLD_SIGNATUREREJECTREJECTEDfalse
32Message IntegrityINVALID_SOURCE_AUTHENTICATIONREJECTREJECTEDfalse
33Message IntegrityINVALID_DRIVER_ATTESTATIONREJECTREJECTEDfalse
34Message IntegrityDRIVER_NOT_REGISTEREDREJECTREJECTEDfalse
35Message IntegrityPARTY_OCID_MAPPING_INVALIDREJECTREJECTEDfalse
36Message IntegrityATTESTATION_REPLAY_DETECTEDREJECTREJECTEDfalse

Validation Criteria Mapping#

The eight validation criteria defined in Validation map to specific error codes. Implementations can use this table to localize a failure: knowing the failing criterion narrows the diagnostic surface to a small set of codes.

CriterionRelated Error Codes
(1) Message integrityINVALID_HEADER_FORMAT, INVALID_SIGNATURE, INVALID_THRESHOLD_SIGNATURE, INVALID_SOURCE_AUTHENTICATION, INVALID_DRIVER_ATTESTATION, DRIVER_NOT_REGISTERED, PARTY_OCID_MAPPING_INVALID, MESSAGE_TTL_EXPIRED, UNSUPPORTED_VERSION
(2) Duplicate / replay protectionDEDUPLICATION_DETECTED, ATTESTATION_REPLAY_DETECTED
(3) Authority verificationAUTHORITY_NOT_REGISTERED, JURISDICTION_MISMATCH, ACTION_NOT_PERMITTED, CRITICAL_PRIORITY_NOT_AUTHORIZED
(4) Precondition checkINVALID_STATE_TRANSITION, FREEZE_REQUIRED_BEFORE_SEIZE, SEIZE_REQUIRED_BEFORE_CONFISCATE
(5) State invariantSTATE_HASH_MISMATCH, INVALID_STATE_TRANSITION, POSTCONDITION_VIOLATION_SINGLE, POSTCONDITION_VIOLATION_MULTI
(6) Time constraintLEGAL_BASIS_EXPIRED_OR_NOT_YET_VALID, APPEAL_PERIOD_NOT_EXPIRED
(7) Proof verificationEVIDENCE_HASH_INVALID, INVALID_LEGAL_DOCUMENT_STRUCTURE
(8) Cross-chain consistencyCROSS_CHAIN_STATE_CONFLICT, ATOMIC_COMMIT_NOT_SUPPORTED, DIVERGED_STATE_DETECTED, RECONCILIATION_REQUIRED, ROLLBACK_INCOMPLETE_REJECT
Delivery (separate)DELIVERY_TIMEOUT, MAX_RETRIES_EXCEEDED
Address resolution (separate)INVALID_ADDRESS_FORMAT, UNKNOWN_CHAIN_SHORT_NAME, INVALID_ADDRESS_CHECKSUM, CHAIN_NOT_SUPPORTED

INVALID_STATE_TRANSITION appears under both criterion (4) and criterion (5) because the same code is emitted when the transition is undefined in the matrix (precondition view) and when applying it would break a state invariant (postcondition view). Implementations may attach a contextData.subCriterion hint to disambiguate, but the protocol does not require it.

Extension Policy#

OIP v0.5 defines exactly 36 error codes. Future versions may add new codes under the following rules.

  • Category prefix consistency: a new code MUST belong to one of the seven existing categories. Introducing a new category requires a major version increase.
  • Major version change: changing the meaning of an existing code is a breaking change and triggers a major version increase.
  • Minor version change: adding new codes within existing categories is non-breaking and triggers a minor version increase.
  • Forward compatibility: clients receiving an unknown error code SHOULD fall back to category-level handling based on the prefix. For example, an unknown STATE_* code should be treated as a state-transition family error, applying the closest known recovery path.

The forward-compatibility rule is the practical reason every code carries a meaningful prefix. A v0.5 client interoperating with a v0.6 implementation may encounter STATE_NEW_CONDITION_FOO; the prefix lets it route the failure into its existing state-transition handler rather than crashing or treating the message as unknown garbage. During the v0.x phase (before v1.0), even minor version changes can be incompatible; clients should not rely on forward compatibility as a substitute for version negotiation.


References#