Architecture

The fail-closed policy engine

How every tool call, handoff and access request is decided before it runs, and why a broken rule store means no.

The short answer

Bello Bot checks org rules before every MCP tool call, bot-to-bot handoff and access request. Rules are tried by priority, lowest first, with deny before ask before allow on ties, and the first match decides. With no match, grants decide. If rules cannot be loaded and nothing is cached, the call is denied.

How it fits together

Policy evaluation for one tool callTool call drafted by a bot: connector, tool name, arguments, room or not. Is the connector granted to this bot?: no grant: the tool is never offered. Load the org rules: 30 s cache; a failed reload keeps the last good copy. Try rules in order: priority, then deny, ask, allow; first match decides. Deny: reason shown. Ask: approval card. Allow: or no match. Policy error: nothing cached.Tool call drafted by a botconnector, tool name, arguments, room or notIs the connector granted to this bot?no grant: the tool is never offeredLoad the org rules30 s cache; a failed reload keeps the last good copyTry rules in orderpriority, then deny, ask, allow; first match decidesDenyreason shownAskapproval cardAllowor no matchPolicy errornothing cached
Policy evaluation for one tool call

Policy evaluation for one tool call, step by step. Every box is a check in the Bello Bot code, not a promise in a prompt.

What a rule can match

How the decision is made

Failure modes

Changing rules safely

Related reading

From the blog

Questions

Why deny when the rules cannot be read?

An outage should block risky calls, not wave them through. A failed reload keeps the last good rules, and only with nothing cached does every call deny.

Does a rule apply to handoffs between bots?

Yes. Rules run before every MCP tool call, every bot-to-bot handoff and every access request.

How fast does a rule change take effect?

At once on the server that saved it, and within 30 seconds everywhere else.

Keep reading

More architecture deep dives

SSRF and the network guard · The local device engine bridge · The outcome-only email gateway

Try Bello Bot with your team

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