Create an Agent Contract with the Collibra skill
You write the contract in plain language, one rule per sentence. The skill helps you make each rule precise, tells you which rules can be enforced, and saves the contract to Collibra only after you say yes.
Understand the two kinds of contract
- Global contract: One per environment. It applies to every agent your organization governs with Guardian, and it always applies. Collibra allows only one, so if it exists, you add to it or write a specialized contract instead.
- Specialized contract: It applies to the agents you link it to. It can add rules for those agents or make a global rule stricter. It cannot relax a global rule. A new specialized contract governs no agent until you link it to one.
You need the Register Agent Contract permission to create a contract, and a Governance Asset domain in Collibra that you can save to. If you can't see a domain, ask a Collibra admin for access to one.
How to start it
- From the setup skill: The setup skill starts it at skill step 3, so you don't need to do anything extra.
- On its own: Ask Using the Collibra MCP server, create an agent contract.
- From Collibra: On the Agent contracts page, copy the prompt that the page gives you and paste it into your AI tool. To change an existing contract, use the prompt that Collibra gives you for that contract.
What the skill asks you
- New or existing? To edit a contract, you choose it from the list that the skill reads from Collibra. The skill always starts from the rules that Collibra holds, never from rules that you paste in.
- Global or specialized? If a global contract already exists, the skill tells you and offers to edit it or to write a specialized one.
- Which agents should I check the rules against? (Specialized only.) Name your agent. The skill checks your rules against what the agent can do and against its other contracts. This does not link the contract to the agent.
- The name and the domain. The skill proposes a name, such as "[Your organization] - Global Guardian contract", and a Governance Asset domain, usually the one where your other contracts are. A name must be unique within its domain. Do not put an agent's name in the contract name, because you can link the contract to other agents later.
- How would you like to start? Choose one, or mix them.
- Tell me the rules: Type what the agent must and must not do, in your own words.
- Give me a policy document: Attach it or paste the relevant text, and the skill extracts candidate rules and shows them in a table with the section each came from.
- Draft it for me: The skill proposes a starting contract from your use case and recognized AI governance standards, and you edit it.
How to write a rule that can be enforced
Guardian checks a rule at the moment the agent is about to act. A rule can be enforced when it is specific enough to check at that moment. Write each rule as one sentence with one obligation, and name the action the agent takes. Name the tool and its argument, so that Guardian can check the call itself. For example, write "The agent must not call approve_loan with an amount above 10,000", not "Be careful with large loans". Rules that depend on judging the meaning of free text usually come back marked Needs a change.
| Instead of | Write |
|---|---|
| Be careful with customer data. | The agent must not include a customer's contact details in any message it posts to a shared channel. |
| Don't do anything dangerous in the database. | The agent must not run a statement that changes or removes anything in the warehouse. |
| Human in the loop for big decisions. | The agent must not approve a refund above 500 euros without a support lead. |
| Be transparent. | Every message the agent sends a customer must state that it came from an automated assistant. |
| Stay on topic. | The agent must not discuss anything other than the customer's open order. |
- Give every number a unit and a direction, for example "above 500 euros".
- Avoid words such as "appropriate", "reasonable", or "sensitive" unless the rule says what they mean.
- Avoid hedges such as "should try to" or "where possible", and leave reasons out of the rule.
- Rules about order or history, such as "verify before declining", cannot be checked in one moment. The skill keeps them and labels them as policy only.
- The skill also asks robustness questions, such as "your agent can also send text messages, should the rule cover that too?" Answer them, because they make a rule harder to get around.
What you see in the review
The skill shows your contract as a table with a mark for each rule:
| Mark | Meaning |
|---|---|
| Enforceable | Guardian can check this rule while the agent runs. |
| Partly enforceable | Guardian can check part of it. The skill tells you which part. |
| Policy only | The rule is kept in the contract and recorded, but Guardian cannot check it while the agent runs. |
| Needs a change | The rule has a problem, such as two obligations in one sentence. The skill suggests a rewrite. |
| Not about this agent | The rule does not apply to the agent you named. |
Review the table and change anything you like. The skill also shows the exact version it saves.
Save the contract
Nothing is saved until you answer yes, publish when the skill asks. The skill then reads the contract back from Collibra and tells you what Collibra holds. After that:
- Global contract: It governs every agent straight away.
- Specialized contract: It governs no agent yet. Ask the skill to link it to your agent, or relate it to your AI Agent asset in Collibra yourself. The Contract tab of the AI Agent asset page shows which contracts govern the agent.
- Changing it later: A change saves a new version. The agents that are linked to the contract don't change. Apply the latest rules again (step 5 of the skill) so that the change reaches your agent.
For more information, go to About Agent Contracts and Create or update an Agent Contract.
UPDATE or DELETE in a SQL query. Rules that depend on meaning, on earlier steps or totals over time, or on a human approval are marked as policy only. They stay in the contract, but Guardian doesn't check them while the agent runs. After you compile the rules, your AI assistant tells you how many rules Guardian will check. To see the result for each rule, open the Contract tab of the AI agent and switch to the YAML view. Rules with the outcome bound are enforced.