Skip to main content

Proposal: This page presents the draft API and profile model. Send feedback on GitHub.

Error, replay and retry behavior

ConditionResult to exposeEffect and state rule
Malformed JSON, duplicate field, invalid signature, untrusted key or unknown profileInvalid or generic unauthenticated errorNo effect and no authenticated claim about the caller.
Valid identity but action or disclosure outside inherited or resource policyDeniedNo protected disclosure or effect. Do not reveal an unrelated operation's existence.
Reused consumed record or challengeReplayNo new reservation or effect.
Same operation ID with changed intent or actorConflict to an otherwise entitled callerPreserve original operation; unrelated callers get nondisclosing denial.
Shared budget unavailableBudgetNo reservation; avoid leaking other participants' data.
Required trusted state, proof verifier or clock confidence unavailableHeldNo new effect requiring fresh authority.
Permit redeemed or reply lost and effect cannot be determinedUncertainKeep reservation and reconcile. Do not automatically issue a new effect.
Matching durable signed outcomeCommitted or ReconciledSettle once; verify response proof if the selected policy requires one.
Matching terminal no-effect closureClosedRelease once only after future effect is excluded.

These are proposed SDK categories. W1 has its own exact response status and code table. Treat an HTTP error, state response, transport timeout and client-side verification error as different things.