Give ban causes, limit kinds, alert events, actions and dispositions named types (closes #428) #464

Open
clawbot wants to merge 1 commits from issue-428-named-value-types into next
pull from: issue-428-named-value-types
1 Commits
Author SHA1 Message Date
sneak 58dafa1876 Give ban causes, limit kinds, alert events, actions and dispositions named types (closes #428)
check / check (push) Waiting to run
Each fixed set of string constants becomes a named string type in the
package that owns it, and the fields and parameters that carry it use
the type: bans.Cause, ratelimit.LimitKind, alerts.Event,
alerts.Destination, rules.Action, requestlog.Action, requestlog.Offence,
requestlog.WAFLine and waf.Disposition. Every value keeps its string,
so the logs, state files, alerts and metrics do not change.

The switches exhaustive now checks list their missing cases.

Model: opus-5-5
2026-11-19 16:46:03 +00:00