About Guardian Agents and Agent Contracts

As AI agents move into production, they can access sensitive data, call tools, and take actions autonomously, often faster than deployment-time policies or periodic reviews can keep up with. Guardian Agents extend control into runtime by checking an agent's actions against the rules in its Agent Contracts while the agent runs, and responding when an action breaks a rule, by flagging it, rewriting it, for example to redact sensitive data, or blocking it.

Think of an agent contract as a rulebook and a Guardian Agent as the enforcer of that rulebook. The agent contract defines the rules, and Guardian makes sure that the agent follows them while it runs.

Agent Contract
The rulebook. A governed, versioned asset that defines, in natural language, what an AI agent is and isn't allowed to do, what data it can access, and what outcomes it is responsible for. An agent contract turns informal expectations about agent behavior into a reviewable, auditable set of rules.
Guardian Agent
The enforcer. A runtime system that supervises an AI agent's actions against the combined rules from all the Agent Contracts that apply to the agent, and intervenes by blocking, flagging, or rewriting an action that breaks a rule. Guardian lets you investigate and adjust the behavior of a single flagged agent without halting all other operations, containing risk while keeping the rest of your AI landscape running.

You need an agent contract for Guardian to enforce, but you do not need Guardian to have an agent contract. An agent contract can exist on its own, as a record of intended agent behavior. Guardian turns that record into active, real-time enforcement.

Diagram showing an Agent Contract as the rulebook that gives compiled rules to a Guardian Agent, the enforcer. The Guardian Agent checks the prompts, tool calls, tool results, and final answers of an AI agent against those rules, and decides whether to allow, flag, rewrite, or block each one. In monitor mode, Guardian only records what it would have done.

How Guardian connects to an agent

Guardian can enforce rules in one of two ways. Both use the same policy engine, so both can enforce the same rules:

With the SDK, Guardian runs inside your agent as part of the Collibra SDK, and works with agents built with LangChain, LangGraph, or Deep Agents, on any platform. The setup skill adds the SDK to your agent with two lines at the top of the agent's main file. Guardian then enforces your rules from a rules file (enforcement bundle) that it builds from all the Agent Contracts that apply to the agent when you apply the latest changes. The setup skill saves the rules file in your project. To update the rules file later, run collibra ai-gov guardian sync, and then restart or redeploy the agent. If the SDK can't find a rules file, Guardian allows every action and logs the warning guardian.no_policy_bundle.

 

What's next