Expand description
Store-agnostic state transitions for AwaitEvent keyed promises.
Backends own persistence, authentication, and compare-and-swap mechanics. This module owns the semantic decisions that must remain identical across the inline, SQLite, Postgres, and engine-backed implementations.
Enums§
- Promise
State - State observed by a backend while holding its promise transition fence.
- Promise
Transition - Pure decision returned for a proposed terminal transition.
- Session
Revocation Transition - Pure session-tombstone decision shared by in-memory and durable stores.
Functions§
- cancel_
sweep - Decide the session cancel-sweep transition for one promise.
- constant_
time_ eq - Compare authentication bytes without branching on their contents.
- derive_
key_ id - Derive the stable promise identity shared by every substrate.
- resolve
- Decide a normal first-writer-wins resolve.
- revoke_
session - session_
allows_ access - Whether mint and resolve may proceed for a session.
- sign_
material - Canonical bytes authenticated by HMAC-backed durable AwaitEvent adapters.