Skip to main content
Governance policies decide, at each step of a run, whether an agent may continue. Risky steps can wait for a person. Every run can be watched, steered and stopped from the agent’s Runs tab.
Guardrails → Governance Policy lists the policies agents can be held to.

Guardrails → Governance Policy lists the policies agents can be held to.

How governance works

A policy is a set of rules. A policy is defined once, deployed to a project, and then attached to individual agents. Each attachment (a binding) has its own mode, scope and approvers, so the same policy can enforce on one agent and only observe on another.

When rules run

Rules run at fixed points in an agent’s run. Each rule names the points it runs at under Run when:

What a rule can decide

How verdicts combine

  • Within one policy, the policy’s When rules conflict setting picks the winner among the rules that match.
  • Across policies on the same agent, each policy gives its own verdict for the moment and the strictest one wins, in this order: Deny, then Escalate, then Redact, then Notify, then Allow. Redact and Notify do not compete: they are duties that apply only if the action goes ahead. If any policy denies or escalates, redactions and notifications from the others are dropped.
  • If several policies escalate at once, they are merged into one approval request. When tied, the policy attached first sets the wording shown.
  • A standing Allow Always grant can turn an Escalate into an Allow for the same action in the same session. It never overrides a Deny, a Redact or a Notify.

Create a governance policy

Who: someone with permission to manage guardrails Where: Guardrails → Governance Policy → + Add Policy
  1. Fill in the policy fields below.
  2. Under Rules, click Add checks to add a rule that uses Bud Guardrails and scanners, or Add patterns to add a rule that matches text patterns. Rules are collapsible; each has an on/off switch and a delete icon.
  3. Fill in each rule (table below).
  4. Click Save Policy.
  5. Open the policy from the list. Where it is active, a Deploy button appears; click it and choose the project. Agents in that project can then attach it. Edit and Delete are in the policy’s ⋯ menu.

Policy fields

Rule fields

A new policy cannot be deployed while it is a draft. A draft policy that is already attached to an agent shows “Draft: not running until it’s activated in Guardrails”. A policy deleted in Guardrails stops running and shows a Detach link on the agent.

Attach a policy to an agent, and try it in shadow mode first

Who: Model manage permission. The agent must be saved first. Where: Agent builder → Governance → Add policy
  1. Click Add policy, search for the policy and click Attach. Only policies deployed to this agent’s project are listed. If the list is empty, deploy a policy in Guardrails first.
  2. The new attachment is selected. Set its Mode to Shadow. It records what it would have done and never blocks.
  3. Set Applies to, add any When conditions, and set the escalation approvers if the policy escalates (table below).
  4. After you have watched real traffic, switch the mode to Active to enforce.
Changes save as you make them. The panel shows Saving…, then the number of unsaved rows if any are held back; if you only have view permission it reads View only. If a change makes enforcement weaker (Shadow or Off, fewer approvals, Allow always on), the panel offers Undo. There is no switch that turns off all governance on an installation. To stop a policy affecting one agent, set its mode to Off or detach it. Governance policies on an agent are enforced from the moment they are Active; there is no publish step that checks them first.