Data scope & record reach
Two runs can look identical, with the same credentials, the same tools in the same order and the same duration, and still be different: one read the customer who asked, the other read someone else. Nothing that measures a run’s shape can tell them apart. The tool argument can.
Data scope binds each run to the records it is for and checks every tool call that names a record against that binding, at the gateway, before the call reaches the tool. Record reach counts how many different records one requester reached across runs, which is how slow exfiltration shows up: every run on its own is fine.
Find both under AI Estate → AI Systems → (a system) → Data scope.
1. Say which argument names which record
Section titled “1. Say which argument names which record”Per AI System, map tool arguments to a kind of record (a key):
{ "mode": "audit", "on_unbound": "deny", "keys": [{ "key": "customer", "source": "declared" }], "rules": [ { "tool": "crm_get_customer", "argument": "customer_id", "key": "customer" }, { "tool": "crm_add_note", "argument": "customer_id", "key": "customer" }, { "tool": "crm_transfer", "argument": "accounts[].owner", "key": "customer" } ], "unscoped_tools": ["crm_list_customers"]}argumentis a dotted path into the tool’s arguments;name[]reads every element of an array. A list of values is in scope only if every value is.unscoped_toolsare tools that read many records at once (lists, searches). In a run that declared a scope they areunscoped_tool.mode:off,audit(recorded, never refused) orenforce(refused).on_unbound: whatenforcedoes with a call a rule covers when the run declared no value for its key. The default,deny, refuses it: a run that never says whom it is working for cannot be held to anyone.
Start in audit. The panel shows the last seven days of verdicts per tool, which is what
enforce would have refused.
Skills, agent-to-agent messages and model tool calls
Section titled “Skills, agent-to-agent messages and model tool calls”The same rules cover a run’s skill calls, its messages to other agents, and the tool calls the
model asks for. Name them with a prefix in tool (and in unscoped_tools):
Rule tool |
What is checked | argument is a path into |
|---|---|---|
crm_get_customer |
An MCP tool call | the tool’s arguments |
skill:report-builder |
A skill run, however it starts (REST, the system server’s run_script, an A2A skill handler) |
the skill’s input_params |
a2a:billing-agent |
A message the run sends to that agent card (A2A v1 message:send / message:stream, and /v1/proxy/a2a/outbound) |
each data part of the message |
model:get_customer |
A tool call the model asks for, on any LLM surface (chat completions, Responses, /v1/messages, Gemini; streamed or not) |
the call’s arguments |
"rules": [ { "tool": "skill:report-builder", "argument": "customer_id", "key": "customer" }, { "tool": "a2a:billing-agent", "argument": "account.owner", "key": "customer" }, { "tool": "model:get_customer", "argument": "customer_id", "key": "customer" }]An A2A message is checked on every data part that has the path; one in-scope part does not
cover another. A rule for an agent needs the record id in a data part: a message that names it
only in text has nothing to check and is missing_argument, so moving the id into the text does
not get around the rule. A name with : that is not skill:, a2a: or model: is refused when
you save.
Tools the agent runs itself
Section titled “Tools the agent runs itself”An agent does not have to run its tools through Brutor. It can call a local function or a REST
API directly when the model asks for a tool. Then the only call Brutor sees is the model’s
answer asking for it, so a model:<function name> rule is checked there, before the answer goes
back to the agent:
-
In
enforce, an answer that asks for a record outside the run’s scope is refused (403), so the agent never receives the instruction to fetch it. Every tool call in the answer is checked and recorded before the refusal. -
In a stream, the turn is held until the check has run, then released if it passes:
- chat completions: the chunk carrying
finish_reason; /v1/messages:message_delta(withstop_reason: "tool_use") andmessage_stop;- Gemini and the Responses API: everything from the first chunk or event of the function call, so the call itself is not sent.
On a refusal the stream ends with an
errorevent (Gemini, which has no error event: a final chunk withfinishReason: "OTHER"), and the turn never ends with a tool call to run. The same hold applies to argument policies on model tool calls. - chat completions: the chunk carrying
-
The function name is the one the agent declared to the model. Arguments that are not valid JSON count as no arguments, so the rule finds its argument
missing_argument.
A tool the agent runs through Brutor’s MCP proxy is already checked there under its MCP name.
Add a model: rule only for tools that run outside Brutor, so one action is not checked
twice.
2. Declare the scope from the agent
Section titled “2. Declare the scope from the agent”The agent’s runtime, not the model, says whom the run is for, on any request of the run (a model call on any LLM surface, or a tool call):
X-Brutor-Run-Scope: customer=C0001Several keys are ;-separated and several values ,-separated:
customer=C0001; requester=S7. The first value declared for a key binds for the whole
run. A later request that declares a different value does not change it. On a tool call the
attempt is recorded as conflict and refused in enforce; on a model call it is logged and the
binding stays, so the run’s tool calls are still checked against the first value.
A key can come from the credential instead ("source": "subject"): the user bound to the API
key, or the signed delegation subject. Nothing in the run can change that one.
3. What each call gets
Section titled “3. What each call gets”| Verdict | When | enforce |
|---|---|---|
in_scope |
Every named value was declared | allowed |
out_of_scope |
A value was not declared | refused |
unbound |
The run declared nothing for the key | refused unless on_unbound: allow |
missing_argument |
The rule’s argument is absent or not a string or number | refused |
unscoped_tool |
A tool in unscoped_tools, in a run with a scope |
refused |
conflict |
The request tried to re-declare a bound key | refused |
On MCP a refusal is a 403 with the same JSON-RPC error shape as an argument-policy deny, with
error.data.data_scope = {tool, argument, key, verdict}. A skill refusal is a 403 with
error.code: "data_scope_violation" and the same error.data_scope object. A refused model
answer is a 403 in the surface’s own error shape, whose message names the tool and the verdict.
An A2A v1 refusal
is the spec’s PERMISSION_DENIED (403) with reason: "data_scope" and dataScopeVerdict in
its metadata; the outbound route answers 403. Every verdict other than in_scope
opens a scope_violation item in the Assurance Inbox (warning in audit, critical in
enforce).
If the system’s data-scope configuration cannot be read, enforce cannot be applied, so the
call is refused. This is the same fail-closed rule as argument policies.
What is recorded
Section titled “What is recorded”Each checked value is recorded with its verdict as a record reference: an HMAC of the
tenant, the key and the value under a key derived from the installation’s ENCRYPTION_KEY.
Record ids are often guessable (customer numbers, national ids), so a plain hash could be
reversed by trying candidates; the keyed reference cannot. The value itself stays only where it
already was, in the call’s log preview.
The run gains four facts, usable in checks:
| Fact | Meaning |
|---|---|
run.scope_declared |
The run declared a scope |
run.records_touched |
Distinct records its tool calls named |
run.scope_violation_count |
Calls out of scope, unscoped, missing an argument or re-declaring |
run.scope_unbound_count |
Calls a rule covers in a run with no value for the key |
Record accesses are kept 35 days and are removed with the rest of a person’s data by data erasure.
Record reach: the count across runs
Section titled “Record reach: the count across runs”Twenty-five runs, each a balance enquiry for a different customer, each in scope for its own ticket, all opened by the same support user in one afternoon. Data scope passes every one. A reach rule does not:
{ "scope_key": "customer", "group_by": "scope:requester", "window_hours": 24, "max_distinct": 40, "severity": "high"}group_by:subject,api_key,agent,system, orscope:<key>, a value the run declared (hereX-Brutor-Run-Scope: customer=C0042; requester=S7). A run that did not say counts under(undeclared), so leaving the header out does not escape the rule.window_hours: 1 to 720.- Refused attempts count: trying a record is reaching for it.
The core counts every 15 minutes. A requester over the limit becomes a behavioural drift finding (“scope:requester S7 reached 25 distinct ‘customer’ records in the last 24 hours; the limit is 20”) with up to five example runs, so a response policy can restrict or suspend the system. While the finding is open it is not raised again.
Preview before you arm. For a draft rule the panel shows, over the last 30 days, the most records each requester reached in any window, the 95th and 99th percentile across requesters, and how many would have breached the limit. Set the limit from that, not from a guess.
What this does not cover
Section titled “What this does not cover”- Whether the declared scope is right. If the runtime declares the wrong customer, the run is held to the wrong customer.
- Tool results. A tool that returns many records is handled by listing it as unscoped, not by reading its output.
- The text of prompts and answers. Only the tool calls a model asks for are checked. A record id the model mentions in prose is not an argument.
Related
Section titled “Related”- Behavioural drift: findings, closing them, and first-seen tools.
- Autonomy & response: acting on a finding automatically.
- Agent headers:
X-Brutor-Run-Scope. - Argument & semantic policies: rules on what an argument may contain.

