Docs
Guard / reserve / commit / release
What it is
Use direct usage for one protected operation, or reserve, commit, and release when work spans multiple steps.
When to use it
Use runtime authorization when protected work is expensive, can fail, or should not begin without enough available usage units.
How to use it
How they work
Direct usage checks and spends in one flow. Reserve holds available usage before work starts. Commit finalizes a successful reservation. Release returns held usage when work fails before commit. Use stable references and idempotency keys for retry safety.