Create a Guardrail
Create guardrails with the AI builder, or write the rule yourself.
Policies are the heart of the guardrail engine. They describe what is allowed, blocked, or masked. The AI builder turns plain prose into a draft policy.
Create a new guardrail
- Navigate to Guardrails in the sidebar.
- Click New Guardrail (top right). A menu opens the ways to create a policy:
- From catalog: from the curated Palveron guardrails.
- Create your own: AI builder, manual editor, "Generate from Regulation", or file import.
📸 Screenshot: the "New Guardrail" menu.
AI builder
The AI builder takes a plain-language description and produces a draft policy. Type, for example:
"Block any prompt containing credit card numbers, IBANs, or social security numbers."
The builder fills in:
- Name: derived from the gist
- Description: a cleaner rewrite of your prose
- Enforcement action:
BLOCK,ANONYMIZE,FLAG, orAPPROVAL, derived from the verbs - Detection mode:
exactorsemantic(or left open), depending on whether keywords or intent dominate (see Detection Mode) - Severity and, where recognizable, a regulatory reference
Review and edit every field before saving; the builder is a starting point. It is powered by POST /api/v1/ai/assist (see the Policies API).
Manual fields
Every field is editable directly.
Name
A short, descriptive label. Used in traces, audit logs, and Annex IV reports.
Description
Write the rule in natural language, as specifically as possible, e.g. "Block email addresses, IBANs, and social security numbers in the input." There is no longer a separate Neural Instruction input field; the description takes its place.
Detection mode
Three modes; see Detection Mode:
| Mode | When to pick |
|---|---|
AUTO (default) | Let Palveron classify |
EXACT | Pure keyword / regex matching |
SEMANTIC | NLI-based intent matching, catches paraphrasing |
Enforcement Action
| Action | Description |
|---|---|
| Block (BLOCK) | Request stopped immediately; the agent receives a structured error |
| Justify or approve (APPROVAL) | In the browser the person gives a justification and can then send. Via SDK and API the request is paused; a notification is dispatched to the connected channels (e.g. Slack) or the dashboard; a project admin decides |
| Anonymize (ANONYMIZE) | Selectable only when the policy detects details such as names or addresses as entities: it then replaces the detected details and the request continues. With any other detection Anonymize is locked, because a hit would only be recorded |
The editor offers no other actions; whether a policy really acts is set by its mode (see below). Older policies may still carry Flag (FLAG) or Logs only (LOG). The editor shows such an action unchanged, says what it does today, and switches it only when you choose one of the offered actions yourself. When the gateway checks with its own models, such a policy only records a hit. When an external AI model checks the request, Flag lets it through with a mark, Logs only blocks it.
Attestation Level
| Level | Description |
|---|---|
| On-Chain | Every trace is captured for Flare anchoring. For BLOCK and APPROVAL, On-Chain is fixed (at high or critical severity the UI cites that as the reason). |
| Auto | The system decides per the system attestation rules. |
| Off-Chain | Database only. |
Scope
- All agents: applies to every agent in the project
- Specific agents: pick from a multi-select
There is no scope by agent type.
Activate the policy and its mode
After saving, the policy has status Draft. Activate it so it runs in the verify flow; only active policies are evaluated.
Every newly created or imported policy starts in Observe mode; in the policy list it carries the badge Observing only. In this mode the policy is fully evaluated and the hit, together with what it would have done, is recorded, but it does not block or pause. This holds when the gateway checks with its own models. When an external AI model checks the request (for example in the analysis mode AI Analysis or for borderline cases in Balanced mode), no such record arises, and the policy can act there like an enforcing one. Only when an admin switches the mode to Enforce does the enforcement action take effect, and the list then shows Enforcing. The mode shows as its own badge next to the action in the policy list.
Test the policy
- Navigate to the Playground and send a test prompt that should trigger the policy.
- Open the trace in the Trace Explorer and check the match details for what specifically triggered it.
If a policy fires when it shouldn't (false positive), the Palveron Analyze view on the trace shows the scores, usually a sign to tighten the description or switch from AUTO to EXACT.