Data Protection
Add filters that redact sensitive data from tool responses and model prompts, and pick the judge model.
In the console: Policy Controls › Data Protection

Data Protection lists your filters: rules that redact sensitive data from tool responses before the agent receives them, and from the prompts and responses of model calls. Each tab, Tool calls and Model calls, lists the filters for that kind of call. Use this screen when you add or change a filter, or when you choose the model that runs AI judge filters.
Judge model
On the Tool calls tab, a strip at the top shows the Judge model that AI judge filters use: the model name, its provider, and whether it comes from an active candidate or the operator default. It warns Not configured or Provider unavailable when judge filters can't run, in which case they follow each rule's If the judge fails setting.
The Model calls tab has no strip, because model-call filters can't use an AI judge.
Open Candidates to see the judge model candidates, each with its connection and model, and which one is active.
Response filters
The Tool calls tab lists response filters.
| Column | Shows |
|---|---|
| Name | The filter name and its condition, when it has one |
| Scope | Which agents, users, MCPs, and tools the filter applies to |
| Filters | Each pattern and its replacement ([REDACTED] when none is set), or the AI judge instruction |
| Action | redact (replaces matches) or log only (records matches, changes nothing) |
| Status | Draft (saved, not enforced), Active (enforced), or Disabled (paused) |
A strip above the table links to Agent Access, because allow and deny are set there, not here. It appears only when you can view Agent Access.
With no filters, the tab shows No response filters yet and an Add your first filter button.
Model-call filters
The Model calls tab lists the filters that redact the prompts sent to a model and the responses that come back.
| Column | Shows |
|---|---|
| Name | The filter name |
| Scope | Which agents, users, and groups the filter applies to, not MCPs or tools |
| Models | The model providers and model patterns the filter applies to |
| Targets | What the filter redacts: Prompt, Response, or Prompt + response |
| Filters | Each pattern and its replacement ([REDACTED] when none is set) |
| Action | redact (replaces matches) or log only (records matches, changes nothing) |
| Status | Draft (saved, not enforced), Active (enforced), or Disabled (paused) |
With no filters, the tab shows No model-call rules yet. and an Add your first filter button. The cross-link to Agent Access appears on the Tool calls tab only.
Actions
- Add response filter (on the Model calls tab, Add model-call filter) – opens the filter editor for the tab you're on.
- Edit (row menu, or click the row) – opens the filter in the same editor.
- View in Agent Trail (row menu) – opens Agent Trail filtered to that filter: the calls it acted on and the changes made to it.
- Delete (row menu) – asks you to confirm in a Delete response filter dialog (Delete model-call filter on the Model calls tab). You can't undo it.
- Add candidate (under Candidates) – adds a judge model candidate. It asks for a Name, a Connection, and a Model.
- Set active (on a candidate) – makes that candidate the judge model.
- Delete (candidate menu) – removes a candidate after you confirm. Deleting the active candidate stops the judge until you activate another one.
The filter editor has a name field, a status picker, and a sentence that starts with Redact responses for, followed by the agents, users, MCPs, and tools it applies to. You can add a condition, written in CEL. Under Redaction filters, add one or more filters of two kinds:
- Pattern match – a regular expression (RE2) and its replacement. Use Browse presets to pick a ready-made pattern or bundle.
- AI judge – a plain-language instruction a model uses to find the data. Use Add judge.
For AI judge filters, If the judge fails decides what happens when the judge can't run: Block response or Allow unfiltered.
Under When a filter matches, Redact the content is on by default. Turn it off to run the filter in log-only mode. A log-only filter records what it would have redacted in Agent Trail and never changes or blocks a call.
Model-call filter editor
The editor for a model-call filter opens with a sentence that starts with Redact, then a picker for the targets:
prompts, responses, or prompts and responses.
A new filter starts with prompts.
The sentence goes on with for the agents, users, and groups it applies to, and on the model providers and models it covers.
Name at least one model pattern, such as claude-*.
* matches every model.
A filter matches the model a call runs on, so a call that Model Routing sends to another model matches the filters for that model.
The editor has no condition and no Add judge button, because a model call has no arguments for a condition to read and an AI judge can't run on a model call. Under Redaction filters you add pattern filters, with Browse presets as on the Tool calls tab. If filtering fails decides what happens when the gateway can't apply the filters: Block call or Let the call through unredacted.
Redact the content under When a filter matches works as on the Tool calls tab. A call a filter changed or blocked shows a Redacted ×N badge, or a link to the blocking filter, in Agent Trail.
Permissions
- To see the screen, you need
view_data_protection. - To add, edit, or delete a filter, and to add, activate, or delete a judge candidate, you need
manage_data_protection. Without it, rows are read-only and the add buttons and menus are hidden. - View in Agent Trail also needs organization-wide
view_audit.
Related
- Data Protection concepts – how filters are matched and how each filter type redacts
