Historical proposal: This preserved draft predates the WASIX 01 response-proof pilot. See the SDK integration page for the current implementation. Send feedback on GitHub.
State transitions and failure handling
Treat these as conceptual states. Each profile defines its own actual fields, states and ordering.
Draft -> Admitted -> Active -> Revoked / Expired / Retired
Operation: Prepared -> Reserved -> Claimed -> Committed -> Settled
\-> Closed without effect -> Released
\-> Uncertain -> Reconciled to committed or closed
Claimed represents a WASIX-style redemption where applicable; W1 has its own permit and resource commitment model. A failed or rejected request must not create a protected effect. Concurrent siblings draw against a single authoritative shared budget: settled units plus all outstanding reservations, including uncertain ones, stay within every applicable inherited ceiling. Idempotency must bind the operation key to the original actor, intent, audience and policy; a reused key with changed meaning conflicts for an authorized caller. Fresh transmission records prevent replay and do not redefine the business operation.
| Condition | Required handling |
|---|---|
| Unknown signer, profile, field, algorithm, policy or destination | Reject; never fall back silently. A generic error need not be a signed profile response. |
| Bad proof, body digest, signature, context or challenge | Reject before effect; consume identifiers only according to the profile's authenticated eligibility rules. |
| Budget exhausted, expired grant, observed revocation, invalid lineage | Deny or hold as specified; disclose no protected outcome to an unauthorized caller. |
| State authority unavailable or stale | Hold new operations requiring fresh authority. A previously issued permit during partition follows its profile's bounded lifetime, fence, local policy and clock rules. |
| Lost reply after possible effect | Retain reservation as uncertain. An authorized lookup obtains the original result; never retry as a new business operation or release on timeout alone. |
| Terminal no-effect closure | Release only after matching authenticated evidence establishes that a prior effect cannot later commit. Settlement and closure must be mutually exclusive and idempotent. |
| Restored old database | Hold. Verify latest independent checkpoint, reconcile authority and resource histories, retire old runtime bindings, and activate the exactly authorized next epoch. Missing or unverifiable evidence maintains the hold. |
| Invalid or unavailable response proof | Do not report proof verification or release a protected payload under a policy that requires it. Distinguish invalid from indeterminate. |
For W1, the signed response codes are COMMITTED, RECONCILED, CLOSED, RESERVED, UNCERTAIN, DENIED, CONFLICT, REPLAY, BUDGET and HELD, with the exact HTTP status and evidence rules in the W1 draft. INVALID is a harness label for malformed or unauthenticated exchanges, not a required signed W1 response. APIs should surface transport failure, profile denial, proof failure, uncertain effect and confirmed commitment as distinct results.