nexo_guardian_rule_override
Temporarily override a Guardian rule's mode to shadow or off during incidents, avoiding server restart. Supports configurable TTL and clearing overrides.
Instructions
Temporarily override a Guardian rule's mode (Plan Consolidado 0.17).
Writes to ~/.nexo/config/guardian-runtime-overrides.json which
guardian_config.rule_mode already honours at read time. Useful when
a rule is noisy during an incident and needs to drop to shadow for an
hour without a server restart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_id | Yes | The full rule identifier (e.g. ``R13_pre_edit_guard``). | |
| mode | No | One of ``off`` / ``shadow`` / ``soft`` / ``hard``. Pass empty string together with a rule_id to clear an existing override. Core rules (R13/R14/R16/R25/R30) reject ``off``. | |
| ttl | No | Window for the override. One of ``1h`` / ``24h`` / ``session`` (session = 12 h best-effort cap). Default ``24h``. | 24h |