Approval policy for a data and analytics agent
A data agent queries the warehouse, sends numbers to people, builds dashboards and writes back to tables. The risk is where data ends up and what it overwrites, so anything leaving the warehouse waits for a person and anything that changes shared tables waits for two. It writes rules for the generator's kinds of action; the guide's exports, queries and dbt jobs have names of their own, so add its rules for those names too.
Signs you in or up first. You see every rule in your workspace before any is added.
Or change it in the policy generator first: names, limits and how long a request waits. Two-person approval needs Team or above; the other rules need Pro. On Free every request waits for one person instead.
What it decides
Each kind of action the agent takes, the names it sends for it, what happens, and why.
- Look things up
read.*Runs on its own and is recorded.Lookups asked as read.* run on their own and are still recorded. Warehouse queries cost money, so the guide names them query.run, and they wait for a person until you add its cost limits. - Email or message customers
email.*Waits for a person to approve.Numbers sent to people get repeated in meetings and board decks. A person checks the query, the period and the change from last time first. - Post in public
post.*Never. The request is refused at once.A dashboard published to the web has no sign-in in front of it. The agent never publishes; a person does it in the BI tool. - Change a database or run a migration
database.*Waits until two different people approve. One no stops it.A write to tables other teams read, asked as database.*, changes their numbers too. Two different people approve, with the statement and the row count from a dry run. - Delete data
delete.*Waits until two different people approve. One no stops it.A dropped or truncated table comes back only while time travel still has it. Two different people approve. - Grant or remove access
access.*Never. The request is refused at once.Grants, roles and masking policies decide who sees the data. The agent never changes them, so the request is refused at once and a person does it in the warehouse.
The rules
These are the 6 rules the button adds, for every agent or the one agent key you pick. Every “never” and “ask” goes in before any “allow”, and rules you already have stay. When rules disagree the most cautious wins.
[
{
"action": "read.*",
"effect": "allow"
},
{
"action": "email.*",
"effect": "ask"
},
{
"action": "post.*",
"effect": "deny"
},
{
"action": "database.*",
"approvals": 2,
"effect": "ask"
},
{
"action": "delete.*",
"approvals": 2,
"effect": "ask"
},
{
"action": "access.*",
"effect": "deny"
}
]The agent’s side
The agent asks before each action under one of these names, such as email.send, with the amount and currency where money moves, and acts only when the answer says allowed: true. An amount it leaves out never gets past a limit. The requests docs show the call, and the playground lets you try one without signing up.