Skip to content

invalid_id

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

Severity: error

A rule or budget id is not a slug. Ids follow the same rules as names, because they appear in deny messages, in deeds and in the Ledger.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
rules:
- id: small_refunds
match: { tool: stripe.create_refund }
decision: allow
✕ policy.yaml:7:9 · invalid_id
Rule id "small_refunds" is not a slug.
hint: Use lowercase letters, digits and dashes, starting with a letter, like small-refunds.

Fix:

- id: small-refunds