Skip to content

out_of_range

A policy diagnostic from deedglass policy lint and the policy routes.

Severity: error

A whole number is outside its range: max_calls is 1 to 1,000,000,000, and an approval’s required is 1 to 5.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
budgets:
- id: agent-rate
window: minute
max_calls: 0
✕ policy.yaml:9:16 · out_of_range
max_calls: 0 is out of range.
hint: Use a number from 1 to 1,000,000,000.

Fix: to stop every call, write a rule with decision: deny instead of a budget of zero; otherwise set a limit of at least 1.

max_calls: 60