Editing Guardian rules

Per-workspace thresholds, alert webhooks, rule-level on/off.

Open Dashboard → Guardian. Each rule has an on/off toggle, editable thresholds, and an optional Slack / email webhook URL for alerts.

RuleDefault thresholdWhat you can tune
Dedup3 identical prompts in 60sCount window, time window, action (block / throttle / alert-only)
Cost spike10× 24h rolling average in 5 minMultiplier, window, action
Context bloat50,000 prompt tokensToken ceiling, response action (reject / downgrade / truncate)
Zombie agent30 min identical trafficTime window, variation threshold
Rate limitPer-key RPMRPM ceiling per key (also editable in Dashboard → Keys)

Alerts fire on first violation

Webhooks are rate-limited to one alert per rule per hour, so a runaway agent doesn't flood your Slack. The alert payload includes the offending workspace, key, rule, and a link to the routing log.