Proposal: This page presents the draft API and profile model. Send feedback on GitHub.
Error, replay and retry behavior
| Condition | Result to expose | Effect and state rule |
|---|---|---|
| Malformed JSON, duplicate field, invalid signature, untrusted key or unknown profile | Invalid or generic unauthenticated error | No effect and no authenticated claim about the caller. |
| Valid identity but action or disclosure outside inherited or resource policy | Denied | No protected disclosure or effect. Do not reveal an unrelated operation's existence. |
| Reused consumed record or challenge | Replay | No new reservation or effect. |
| Same operation ID with changed intent or actor | Conflict to an otherwise entitled caller | Preserve original operation; unrelated callers get nondisclosing denial. |
| Shared budget unavailable | Budget | No reservation; avoid leaking other participants' data. |
| Required trusted state, proof verifier or clock confidence unavailable | Held | No new effect requiring fresh authority. |
| Permit redeemed or reply lost and effect cannot be determined | Uncertain | Keep reservation and reconcile. Do not automatically issue a new effect. |
| Matching durable signed outcome | Committed or Reconciled | Settle once; verify response proof if the selected policy requires one. |
| Matching terminal no-effect closure | Closed | Release 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.