Charge one operation against temporal budgets, regardless of its permission. Configuration errors throw before any state is changed. A backwards clock never moves a bucket timestamp backwards or grants an extra refill.
Validated budget policy selected by the host.
Previous counters, never mutated.
Trusted identity/lifecycle and injected time.
Verdict and counters to use for the next call.
const result = evaluateRateLimit(defaultRateLimitConfig(), createRateLimitState(), { subject: 'verified-manifest-key', operation: 'link.open', lifecycle: 'frame:1', elapsedSinceStartMs: 0, focused: true, now: 0,}); Copy
const result = evaluateRateLimit(defaultRateLimitConfig(), createRateLimitState(), { subject: 'verified-manifest-key', operation: 'link.open', lifecycle: 'frame:1', elapsedSinceStartMs: 0, focused: true, now: 0,});
Charge one operation against temporal budgets, regardless of its permission. Configuration errors throw before any state is changed. A backwards clock never moves a bucket timestamp backwards or grants an extra refill.