Skip to main content

Limits and policies

Limits are enforced by gate policies and meter pricing, while plans decide who can reach those limits.

This guide focuses on the packaging boundaries developers should model.

Prereqs

What a plan does and does not do

  • A plan grants access scope through entitlements.
  • A plan can select a gate policy bundle (directly or via purchased prices).
  • A plan does not redefine meter unit prices per plan.
  • Meter prices stay catalog/meter driven; plans influence behavior by access scope and purchased quantities.

Runtime hints you should honor

Hint typeMeaningRecommended client behavior
rate.limitrequest exceeds a rate windowbackoff and retry with jitter, or queue
quota.remainingquota cannot cover the requested quantityreduce quantity or split work
budget.shortfallselected budget cannot cover settlementprompt top-up or choose a different budget
funding.xusd_shortfallaccount funding is insufficientprompt top-up, degrade, or deny based on policy

Packaging checklist

  • Entitlements reflect product access boundaries.
  • Gate bundle mapping is deterministic for each account.
  • Customer-facing behavior for rate.limit and shortfall hints is defined in product UX.

Next