Templates

Deny-ask-allow starter policy

A first set of rules that blocks the dangerous calls, asks about the risky ones and lets reads run.

Illustration of the app. Names and values come from this template.

The short answer

Start with three layers: deny destructive tools at a low priority number, ask before any write through a connector, and allow known read tools ahead of the ask. In Bello Bot, rules run lowest number first, deny beats ask beats allow on ties, and connectors still need a grant per bot.

How to use this template

  1. List the connectors your bots have been granted.
  2. Copy the rules below and replace the tool globs with your connectors' tool names.
  3. Replay each draft rule over recent tool calls to see what it would change.
  4. Save the rules as an admin, then watch the activity log for a week.

The template

Copy it, then replace the values in angle brackets with your own.

[
  { "name": "Deny deletes", "effect": "deny", "priority": 10, "tool_glob": "*__delete*", "reason": "Destructive. Do it by hand." },
  { "name": "Deny admin tools", "effect": "deny", "priority": 10, "tool_glob": "*__admin*", "reason": "Admin actions stay with people." },
  { "name": "Allow reads", "effect": "allow", "priority": 40, "tool_glob": "*__get*" },
  { "name": "Allow searches", "effect": "allow", "priority": 40, "tool_glob": "*__search*" },
  { "name": "Allow lists", "effect": "allow", "priority": 40, "tool_glob": "*__list*" },
  { "name": "Ask before anything else", "effect": "ask", "priority": 100, "tool_glob": "*__*", "reason": "Writes need a person." }
]

How the rules interact

Before you save

Why these layers

Deny rules sit at priority 10 so nothing can outrank them by accident. Read, search and list tools are allowed at 40, ahead of the catch-all ask at 100, so everyday lookups do not pile up approval cards. Everything else through a connector asks a person.

Related reading

Questions

Will the catch-all ask rule block built-in tools?

The glob *__* matches connector tools, whose names contain two underscores. Check your own tool names in the activity log or with the policy test before saving.

Who can save these rules?

Only org owners and admins can create, change or delete rules.

Keep reading

Try Bello Bot with your team

Public beta. Bring your own model keys, invite your team, and approve what your bots do.