Guardrail Rule Catalog
The catalog is a closed set of sixteen built-in rules. Each rule has a stable plugin id, a fixed set of inspectable directions, and a fixed set of actions it can execute. This page is the reference matrix; parameter detail and detection behavior live on the family pages.
Catalog matrix#
| Plugin id | Rule | Family | Direction | Actions |
|---|---|---|---|---|
provon.guard.pii |
Personal data | Sensitive data | Input and output | audit, block, transform |
provon.guard.secret-leak |
Secrets and keys | Sensitive data | Input and output | audit, block, transform |
provon.guard.injection |
Prompt injection | Prompt safety | Input only | audit, block |
provon.guard.content-safety |
Harmful content | Prompt safety | Input and output | audit, block |
provon.guard.word-list |
Banned terms | Prompt safety | Input and output | audit, block, transform |
provon.guard.system-prompt-leak |
System prompt leakage | Prompt safety | Output only | audit, block |
provon.guard.tool-call-denylist |
Tool call denylist | Tool governance | Input and output | audit, block |
provon.guard.same-tool-call |
Duplicate tool calls | Tool governance | Input only | audit, block |
provon.guard.repeated-tool-result |
Duplicate tool output | Tool governance | Input only | audit, block |
provon.guard.tool-error-loop |
Repeated tool errors | Tool governance | Input only | audit, block |
provon.guard.tool-arguments |
Tool argument schema | Output contracts | Output only | audit, block |
provon.guard.semantic |
Semantic policy | Semantic policy | Input and output | audit, block |
provon.guard.structured-output |
Structured output schema | Output contracts | Output only | audit, block |
provon.guard.message-history-size |
Conversation footprint | Context budgets | Input only | audit, block |
provon.guard.estimated-input-tokens |
Prompt token budget | Context budgets | Input only | audit, block |
provon.guard.max-completion-tokens |
Response token budget | Context budgets | Input only | audit, block, transform |
Direction is structural: an input-only rule never evaluates output samples even when enabled globally. Per-rule direction config can narrow a bidirectional rule to one side.
Configuration shape#
Guardrails are project settings with one Gateway-wide mode and an ordered rule list:
{
"mode": "enforce",
"rules": [
{
"id": "provon.guard.pii",
"enabled": true,
"config": {
"action": "transform",
"redactionMode": "placeholder",
"streamMode": "segment"
}
},
{
"id": "provon.guard.injection",
"enabled": true,
"config": { "action": "block", "onCheckerError": "closed" }
}
]
}- mode —
off,audit, orenforce. In Audit, every rule records matches but no rule blocks or rewrites traffic. - priority — optional advanced override; higher evaluates first, with a deterministic plugin-id tie-break. Workbench-managed configurations omit it and follow the engine order: context budgets, output contracts and tool governance, system-prompt leakage, PII, secrets, banned terms, then semantic, injection, and content-safety model reviews. Setting a priority moves that rule within the same higher-first ordering.
- config.action — what the rule does in Enforce mode. Unsupported action/rule pairs return
400at settings write time. - Disabled draft rules keep their stored config unvalidated until re-enabled.
Where settings are managed#
| Surface | Entry point |
|---|---|
| Workbench | Project Guardrails settings and the per-rule editors |
| CLI | provon gateway guardrails get / set-mode / update |
| Management API | Gateway settings endpoints used by the Workbench |
CLI examples:
provon gateway guardrails get
provon gateway guardrails set-mode audit
provon gateway guardrails update --file ./guardrails.jsonset-mode writes the mode with an empty rule set; use update when existing rules must be
preserved. Each JSON command accepts inline JSON or --file, never both.
Validation guarantees#
- Unknown plugin ids and unknown detector or category names are rejected with
400at settings write time rather than silently disabling a rule. - An unrecognized action is rejected, never downgraded to audit.
- Numeric bounds (timeouts, segment caps, thresholds) must be positive integers; out-of-range values fall back to documented defaults only where the rule defines a default, otherwise write fails.
- Semantic policies require unique ids and a non-empty policy array; a malformed policy fails the
whole settings write with
semantic_misconfigured.
Evidence names#
Two event kinds appear in request Trace spans:
provon.guard.check— one execution record per evaluated check: execution kind (immediate or model), status, duration, cached flag, and fixed not-evaluated reasons.provon.guard.match— one decision per match: plugin id, action, direction, category, metric, observed value, limit, and RFC 6901 field position.
Neither event stores raw samples, policy text, or replacement values. See Testing and observability for dry-run, preview, and the client block contract.