Skip to main content
Permissions decide what an identity may do; standards and guardrails decide how it is built and what it may do right now. Standards apply your organization’s rules at the moment an agent is created, and guardrails inspect each action as it crosses the boundary, refusing or rewriting it before it lands.

Standards — applied when an agent is created

When an agent is created, your organization’s standards pack applies automatically. The point is that a new agent cannot quietly ship without an owner, a budget, or grading, because those are not steps somebody has to remember. Each standard is listed with the value it applies, and the pack is scored out of seven — 7/7 when everything applies. The standards scorecard sits beside the agent summary, and that is what you confirm before creating.
Every standard except Docs carries a Waive switch. Waiving one drops the score — 7/7 becomes 6/7 — and the row shows Waived in place of its value rather than disappearing. The governance value here is legibility, not enforcement: an agent with a waiver is fine, an agent whose waiver nobody can see is not.

Guardrails — enforced at the action boundary

A guardrail is a rule you configure that decides whether a specific action may proceed. It is evaluated outside the agent: an agent cannot skip a guardrail, because the check does not run in the agent’s own process. It runs at the boundary the agent’s traffic has to cross. You author them under Connect → Integrations, in the Govern → Guardrails section, where New guardrail opens the authoring flow and the list gives each rule its gate, its matcher, and what it does On a match. Policies, beside it under Govern, is a different control and not where guardrails are written. Reading the rules and running a backtest is its own capability, held by the built-in Viewer, Owner, and Admin roles; creating, editing, enabling, disabling or deleting one is an administrator action, held by Owner and Admin. Without the read capability the section does not appear at all, so grant it before pointing someone at this screen.
A guardrail governs traffic that goes through the platform’s gateways. An agent reaching an external system by some other path is outside this control — which is the strongest argument for routing everything through the built-in integrations or the MCP Gateway.One supported topology is the exception worth naming. A self-hosted agent pointed at a colocated Outpost’s local listener sends the calls it routes locally straight into your own network, so they never reach the gateway: Tool call and Tool response rules cannot see them, and they leave no decision record. Enabling that listener is a deliberate deployment choice. It does not affect the other three gates — Agent start is decided when the run is created, and Model request and Model response at the model gateway.

The five gates

A guardrail stands at one gate, and the gate is fixed for the life of the rule.

Changing a rule that is already live

A rule opens from its name in the list as Edit guardrail, and every part of it except its gate can change. The Enabled switch stops a rule without removing it, which is usually what you want: deleting asks first and offers to disable it instead, because a delete takes the control away with no undo. A rule declared by a management cluster carries a Managed by cluster <name> badge, and while that cluster owns it the switch and the delete are inactive: change the manifest instead.

What a guardrail does on a match

Every outcome is recorded, block and record only alike, so a rule that let an action through leaves the same trail as one that stopped it. Recent decisions, below the rule list, is that trail: when, which agent, the outcome, the rule that decided, and the tool it was deciding about. When more than one rule covers the same action, the most severe outcome decides: block, then hold for approval, then redact, then record only. A rule that only records can never soften one that stops the action. Redaction is the exception to a single rule deciding — every covering redaction applies, so two rules removing two different values both take effect.
Redaction reads differently in each direction. On the way in — a tool result, a model answer — the agent can see that something was removed and reason about it. On the way out the agent composed the text and is not shown the rewrite, so it may go on to interpret a reply to a question it did not actually ask. When the agent needs to act on what comes back, block is the honest choice.

Who a rule covers

Target a guardrail at explicit agents, or at a label bag the calling agent’s own labels must contain. Labels are the durable option: a rule scoped to env = production keeps covering the right agents as the fleet changes. Set both and the rule covers an agent that matches either one. A rule with no target at all is the account-wide rule. It covers every agent in the account, including ones added later, and it covers calls that carry no agent identity — a tool call made from a person’s own session, or a model request sent with the account key rather than an agent’s. Naming any target excludes those, so narrowing a rule to a few agents also stops it covering them.

Matching a call

The authoring form is a picker rather than a syntax. It lists the tools your account actually has, grouped by server, so you are choosing from reality instead of guessing at tool names. A glob pattern is available as an alternative — a selection covers the tools that exist now, a pattern covers the ones that arrive later — and the form reports how many of your current tools a pattern matches.
A pattern that matches nothing is the mistake to watch for: it produces a guardrail that looks active and protects nothing. Check the match count the form shows you.
You can also condition on a tool’s arguments, chosen from the real argument names of the tools you picked, and on named value classes — a payment card number, a cloud access key — which match a kind of value rather than a string you had to write yourself. A rule can also match on judgment rather than on text. Choose Model judgment as the matcher, state a Policy in plain language — no customer identifiers leave the account — and pick which of your account’s models is Judged by it. That model is shown the intercepted action and answers whether it breaks the policy. A judged policy reads the same at any of the five gates. A rule can carry both shapes at once, and they combine in opposite directions: any criterion matching fires the guardrail, while the conditions within a single criterion must all hold. An either/or is two criteria; a narrowing is two conditions on one.
A judged policy cannot drive a redaction. It answers whether a rule was broken, not where the offending value sits, so there is nothing to excise; the form refuses the pairing. Use a judged policy to block, hold, or record only.
The empty state offers the three rules most accounts want first, so a first guardrail is an edit rather than a blank page: no destructive Kubernetes actions, nothing that writes to production, and no payment card numbers reaching a model. The third one is a redaction rule at a model gate using a named value class — a useful shape to read even if you do not keep it.

Test a rule before it is live

A draft rule at the Tool call gate, matching on patterns, can be backtested: Check the last 7 days runs it against the tool calls your agents recorded in that window and reports how many it would have caught. That is what makes it reasonable to write a blocking rule against production: backtesting shows how the rule would have affected the recorded traffic you tested it against, rather than leaving you to discover it live. It reads what was recorded, so treat it as a sample of what happened rather than a complete account of it, and the panel says so when that history cannot be read or when it reached only the most recent calls in the window. The other gates have nothing to replay, and neither does a condition judged by a model. For those, save the rule as Record only, watch what it catches on live traffic, then switch it to block.

Redact personal data and credentials

A common baseline is to remove personal data and credentials wherever they enter an agent’s traffic: in the payload that starts a run, in what tools return, and in what is sent to a model. It is one Redact rule per gate, each with the same set of criteria. Each rule carries one criterion per value class, so a match on any of them fires the rule:
  • contains PII/secret with each of: Payment card number, Email address, AWS access key id, Google Cloud API key, GitHub token, Slack token, Anthropic API key, OpenAI API key, JSON Web Token, and Private key. Add US Social Security number and IBAN (bank account) if that data appears in your environment.
  • matches regex for phone numbers, since there is no built-in phone class. This pattern matches international numbers with a + prefix, numbers with a leading trunk 0, and North American numbers, and leaves dates, IP addresses, decimals, version strings, UUIDs and plain numeric IDs alone:
At Model request, point the conditions at the messages rather than the system prompt. Redacting the system prompt removes part of the agent’s own instructions.
A Model response rule set to anything other than Record only refuses every streamed request from the agents it covers, because a streamed answer is never available as a whole to inspect. The refusal names the rule. Most agent runtimes stream, Claude Code and Codex among them. Give the agents that request non-streaming responses a label such as pii-response-redaction = on, and set that label under Who it covers on this one rule. Leave the other three rules covering every agent.
Model request and Model response rules apply to model calls made through the platform’s model gateway. An agent that calls a model provider directly with its own key gets the Agent start and Tool response rules only.

Create the set through the API

Eleven criteria on each of four rules is quicker to create through the API than in the form. Send one POST /api/v1/guardrails per rule. This is the Model request rule:
The other three rules take the same values in a different criterion shape: For the phone pattern, use "op": "regex" with the escaped pattern above as the value. To try the set before it removes anything, create it with "outcome": "allow" (Record only), check what Recent decisions shows, then change the outcome to redact with a PATCH to /api/v1/guardrails/{guardrail_id}. A rule’s gate cannot be changed after it is created.

Prompt injections an agent reports

An agent can find instructions planted in what it reads, such as a pod log, an alert or a message, and ignore them. When it reports that attempt in its run output, the report is recorded next to your guardrail decisions, even though no rule made the decision:
  • The Guardrails Activity tab lists it as Injection reported, under Reported by the agent, and counts it in the Injections reported tile. Open it to see what the agent reported and where it found it, with a link to the run.
  • The run’s Guardrails tab shows the same entry.
  • The audit log records every report.
  • An incident the run belongs to records the attempt on its timeline, and the incident list can filter for it.
  • A notification sink subscribed to run.security_signal hears about it when the run ends.
An agent reports an attempt with a security_signals list in its run output. Each entry has a kind of prompt_injection, a source (tool_result, user_message, alert_payload or other), a summary of what it saw, and an optional excerpt. Up to 20 entries are kept per run. A malformed entry is dropped rather than failing the run. The planted text in excerpt is not shown in the Activity tab. Separately, invisible unicode characters, which can hide instructions from a reader, are removed from a run’s input before the agent sees it. The run page then shows Hidden characters removed from the input.

Which one to reach for

Next steps

Approvals

When the right answer is a human decision rather than a rule.

Roles & permissions

The permission layer a guardrail sits on top of.

Audit log

Where guardrail decisions are recorded.

Data handling & redaction

What is masked without any rule at all.