About Guardian Agents

A Guardian Agent is a runtime system that supervises an AI agent against its combined contract: the compiled set of rules from all the Agent Contracts that apply to that agent. Guardian checks four points in the agent's run: the prompt going to the model, each tool call, each tool result, and the final answer. It records a verdict for each one, and it can stop a violation before it happens, so the action never takes effect.

Guardian agents page

The Guardian agents page shows the Guardian agent log for your environment: a chart of the pass rate of actions per day and a Violations table of the verdicts Guardian has recorded.

The Guardian agents page, showing the Guardian agent log with the daily pass rate chart and the Violations table with its filters.

Verdicts

Guardian records one of the following verdicts for each action it evaluates:

Note An Escalate verdict blocks the action the same way as Block. No one is notified, and there's no approval step yet. The verdict appears as Escalate in the Violations table.

Guardian evaluates the rules at four points: the prompt going to the model, a tool call before it runs, a tool result coming back, and the final answer going to the user. A Block or Escalate verdict has the following effect at each point:

When several rules apply to the same step, the most decisive verdict wins: Block, then Escalate, then Rewrite, then Flag. The first Block stops Guardian from checking further rules. Conflicts between rules from different Agent Contracts are settled earlier, when Guardian compiles the rules. For details, go to How rules are combined.

Enforce and monitor modes

Guardian runs in one of two enforcement modes. The person who runs the agent sets the mode for the agent's process, not an administrator in AI Command Center:

You set the mode in the enforcement_mode setting in the collibra-guardian.toml file in the agent's working directory, or in the COLLIBRA_GUARDIAN_ENFORCEMENT_MODE environment variable, which takes precedence over the file. The mode applies to the whole agent, and is fixed when Guardian starts, so restart the agent after you change it. There's no mode per rule. To roll out a rule gradually, word it so that Guardian flags the action, for example "Flag any refund above 500 euros". Once you're confident, reword it to block the action, compile the rules again, and run the agent with the new rules file.

Enabling Guardian for an agent

Switching Guardian on for your environment doesn't, by itself, start monitoring any particular agent. An agent only becomes actively guarded once all of the following are true:

  1. Guardian is switched on for the environment. In Cogwheel iconSettings, under AI Command Center, click the Guardian and contract tab, and switch on Guardian. For complete steps, go to Set up AI Command Center. Because Guardian depends on Agent Contracts, this also switches on AI Agent contracts. Switching off Guardian hides the Guardian user interface, but doesn't stop Guardian from running in your agents. To stop it, remove the SDK from the agent's code.
  2. The agent is connected to Guardian. With the SDK, the setup skill scans the agent and adds the Collibra SDK to its code, in the agent's project. With the AI Gateway, the agent is registered automatically when its traffic first goes through the gateway. For details, go to Set up Guardian Agents and Agent Contracts.
  3. An Agent Contract applies to the agent. If your environment has a global Agent Contract, it applies to every AI agent. An agent can also have specialized Agent Contracts linked to it. For more information, go to About Agent Contracts.
  4. The rules are compiled and the agent uses them. Guardian doesn't compile automatically. Compile from the Contract tab of the AI agent's asset page, or ask your AI assistant. For details, go to Contract status. With the SDK, save the new rules file in the agent's project (the assistant does this, or run collibra ai-gov guardian sync), and then restart or redeploy the agent. The AI Gateway downloads new rules files automatically.

Because of this, the number of agents actually being monitored (Agents using Guardian on the Agent contracts page) can be much lower than the total number of AI Agent assets in your environment, even with Guardian switched on environment-wide. In a new environment, expect most agents to still be in an earlier stage, not yet connected, not yet compiled, until they're individually onboarded.

What's next