Deny-ask-allow policy model
Three effects, one clear tie-break, and no surprises.
The deny-ask-allow policy model gives every rule for an AI agent's tool calls one of three effects: deny blocks the call, ask pauses it for a person, and allow lets it run. When rules of equal priority match, deny beats ask and ask beats allow, so the most cautious answer wins a tie.
How Bello Bot evaluates rules
- Rules are tried by priority, lowest number first. At equal priority deny beats ask, and ask beats allow. The first matching rule decides.
- A rule has a name, an effect (allow, ask or deny), a priority, and optional matchers: one bot, one connector, a tool name glob, an argument match and a rooms-only flag.
- In a tool glob or argument glob, * matches any run of characters and everything else is literal.
- An argument match takes a path such as $.repo and a glob. The value at that path must match the glob.
- A tool call that matches no rule is allowed by policy, but a bot can only use a connector that a person has granted it, so grants are the default gate.
- If the rules cannot be loaded and no last good copy is cached, the call is denied with the reason policy evaluation failed.
Example
github__get_file matches both priority 50 rules, and ask beats allow at equal priority, so it would ask. To let reads run, give the allow rule a lower number, such as 40. github__delete_branch matches the priority 10 deny first and is blocked.
[
{ "name": "No deletes anywhere", "effect": "deny", "priority": 10, "tool_glob": "*__delete*" },
{ "name": "Ask before writes to GitHub", "effect": "ask", "priority": 50, "tool_glob": "github__*" },
{ "name": "Reads are fine", "effect": "allow", "priority": 50, "tool_glob": "github__get*" }
]
Try it
Use the policy simulator on the tool governance guide to see how the tie-break plays out.
Related reading
- Deny-ask-allow starter policy
- Fail-closed policy engine
- Security controls, from the code
- Compare Bello Bot with other AI agent products
- Guides to running AI agents safely
- The Bello Bot blog
- Free AI agent governance grader
Questions
Why does deny win ties?
So that adding a cautious rule can never be overridden by an equally ranked permissive one. To make an exception, give it a lower priority number on purpose.
What happens when no rule matches?
In Bello Bot the call is allowed by policy, but the bot can only use connectors a person granted it.
Keep reading
Designing deny, ask, allow policies for AI agents
How to design deny > ask > allow policy tables for enterprise AI agents: priorities, tool and argument matching, room-only rules, fail-closed evaluation, dry runs and replaying a draft rule against real history.
Designing tool governance for AI agents
A practical guide to governing AI agent tool calls: rule matching, deny over ask over allow, failing closed, per-bot grants and network guards against SSRF.

Deny-ask-allow starter policy
A copyable starter policy for AI agent tool calls: deny destructive tools, ask before writes and allow reads, built for the Bello Bot policy engine.
Fail-closed policy engine
A fail-closed policy engine denies an AI agent action whenever it cannot evaluate its rules.
Try Bello Bot with your team
Public beta. Bring your own model keys, invite your team, and approve what your bots do.