Lifecycle
Full example
The native mechanism
The policies compile to policy signers evaluated on-chain in__check_auth. The
contract - not the SDK - enforces them, so a stolen session blob still cannot exceed its
limits or call outside its allowlist.
Error codes
Install and revoke use the gated relay
grantSession and revokeSession are ordinary root-signed operations over the same gated
/relay path as any payment. They inherit its nonce and expiration replay protection. There
is no separate, weaker channel for session management.
Policies
Spend limit
Cap cumulative spend of a token over a rolling period (day, week, month, or total).
Allowlist
Restrict which contracts the session key may call.

