Contract tab on AI Agent asset pages
The Contract tab on AI Agent asset pages shows the combined set of rules currently governing that agent, drawn from the global agent contract and any additional, specialized Agent Contract assets related to it, and lets you compile them so that Guardian uses them.
For a view across every Agent Contract asset in your environment, go to the Agent contracts page.
Contract tab components
How rules are combined
Guardian merges the rules of the global and specialized Agent Contracts when it compiles them. If two rules conflict:
- A global rule takes precedence over a specialized rule that it fully covers, even if the global rule is less strict.
- Between rules of the same contract type, the stricter response wins: Block over Flag.
- Two Block rules never conflict, and a Rewrite rule never conflicts with another verdict. Both are applied.
- If a global rule only partly covers a specialized rule, both are applied. The product doesn't show the overlap.
A rule that is dropped because another rule takes precedence isn't enforced. The product doesn't flag conflicts. To see which rules were overridden, switch the Combined contract panel to the YAML view. An overridden rule shows the outcome unbound and the reason.
Rules that Guardian can't enforce
The text of a rule isn't checked when you save it. When Guardian compiles the rules, it works out for each rule whether it can enforce it. A rule isn't enforced, or is only partly enforced, in the following cases:
- The rule is too vague, for example because it doesn't state a threshold. Guardian doesn't guess.
- Guardian can't tie the rule to the agent's actual tools or data.
- The rule needs something that the rule language can't express.
- Another rule takes precedence over it.
- The rule depends on meaning or judgement, for example "don't give financial advice". Guardian checks values and patterns, not what a message means.
- The rule requires a person's approval before the action goes ahead. Guardian can't hold an action for approval yet.
- Guardian couldn't finish working out the rule. Compiling again can fix this.
Some rules need no enforcement. Rules that only allow something, and rules that don't apply to this agent, don't produce an enforcement check. A rule that can't be enforced never stops the other rules from being compiled and enforced. If none of the agent's rules can be enforced, no rules file is created.
Note To see which rules Guardian enforces, switch the Combined contract panel to the YAML view after the rules have been compiled. Each rule is listed with its outcome and the reason: bound means enforced, and partially_bound means partly enforced. If another rule took precedence, the outcome is unbound, and the reason names that rule and its contract. When two rules only partly overlap, both are enforced, and the product doesn't show the overlap. When you create a contract with your AI assistant, it also tells you which rules can't be checked while the agent runs.
- Learn more about the Agent Contract model.
- Learn more about Guardian Agent runtime enforcement.
- Create or update an Agent Contract.