Skip to content

missing_key

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

Severity: error

A required key is missing: name or defaults at the top level, decision in defaults, id or decision in a rule, or id, window or a limit (max_calls or max_spend) in a budget.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
rules:
- id: small-refunds
match: { tool: stripe.create_refund }
when: args.amount <= minor("50.00 usd")
✕ policy.yaml:7:5 · missing_key
Rule "small-refunds" has no decision.
hint: Add decision: allow, deny or require_approval.

Fix:

- id: small-refunds
match: { tool: stripe.create_refund }
when: args.amount <= minor("50.00 usd")
decision: allow