Articles
The four questions to answer before giving an agent your data
By BeryxTech, Data and AI consultancy, Porto
Published · 7 min read
- Topic
- AI agents
- For
- CDO
- Data engineering
- DPO
An AI agent connected to company data reads, summarises and proposes actions without a person watching each step. Before giving it access, there are four questions to answer: who it is, which data it can read, what it can do, and what it did and why. They are the questions data governance already asks of people and applications. For an agent, the answer has to come on every request, because it makes many of them and nobody reviews them one by one.
Who is the agent?
An agent that signs in with a person's account, or with a shared service key, cannot be told apart from whoever gave it that key. Its access cannot be removed without removing theirs, and the log says whose key it is, not which agent made the request. The first question asks for an identity per agent, with a named owner and a written purpose.
In BeryX, each agent has a sheet in the agent register: the model, the purpose, the owner, the tools and domains it may use, and a status (proposed, approved, suspended or retired). The MCP token the agent signs in with is tied to that sheet, and the API applies it on every request. The global kill switch refuses requests from all agents. The per-agent one suspends the agent and revokes its tokens, and the next request gets a 401. The details are in per-agent identity and governance.
When the agent works for a person (the analyst who asked Claude Code, for example), the request says who that person is and goes through only with what both the agent and the person can do. The log keeps the agent and the person. It applies to an agent with that capability on its sheet: see on behalf of a person.
Which data can it read?
The question has two parts. The first is about access: can this agent read this dataset? The second is about trust: even if it can, is the data fit for this, right now? An agent that reads a table whose last scan failed answers with it all the same.
In BeryX, the sheet decides access on every request. With domains on the sheet, a dataset outside them gets a 403. A classified dataset, with personal or confidential columns or marked as a critical data element, can only be read by an approved agent, with a declared purpose and a complete go-live, and only if the dataset is linked to it. Listings leave out what the sheet does not allow it to read. See the agent register.
Go-live has a seven-item checklist: the agent's owners, the rights matrix per tool, the linked datasets certified, their classification verified by a person or by the catalogue, the three failure drills within their interval, the impact assessment, and approval by a person. The checklist runs again on every request from the agent: a certificate that lapses or a drill that expires closes the classified data on the next request.
Before reading, the agent can ask for the trust decision for its purpose (agent, RAG, training or BI). The answer is trusted, caution, untrusted or unknown, with the reasons, what to do before using the data and how long the decision holds. Every request from an agent goes into the audit trail. It is the get_trust_decision tool in the list of MCP tools.
What can it do?
Besides reading, an agent can act: open a ticket, change a rule, approve a request. OWASP calls this risk excessive agency and recommends two things: authorisation lives in the system that executes, not in the model's judgement, and high-impact actions wait for a person's approval. The MCP specification asks for the same: there should always be a human in the loop, able to deny a tool invocation.
In BeryX, an agent proposes and a person decides. The propose_action tool creates a pending request, with a preview of what changes if it is approved, and whoever holds the approval role decides in the app. Executing, approving or rejecting with a token always gets a 403, and the policy's auto-approval does not apply to these proposals. On approval, the policy is checked again. See proposing actions.
In BeryX approval workflows (glossary terms, certifications, policy exceptions and access requests), the rules are the same for everyone. Whoever asks never decides their own request, not by delegation and not by escalation. An API token, an MCP tool or Microsoft 365 Copilot get a 403 when they try to decide. If the object changed after the request opened, the request moves to “conflict” and nothing is applied on top. Decisions are appended to the history and never edited. See approval workflows.
With the rights matrix, each tool has a cap on requests per hour, and propose_action only proposes the action types the matrix allows.
What did it do, and why?
After an incident, the question is what the agent read, what it was refused and what it proposed. And there is the agent that asked and decided not to read: without a record, that decision is nowhere to be found, and nobody can show the guard worked.
In BeryX, every request from an agent, accepted or refused, goes into the usage log: the tool, the MCP client, the route, the datasets, the outcome, the reason for a refusal and the person, when the agent acts on their behalf. Proposals keep the token and the agent in the audit trail, from request to execution. The MCP specification asks clients to log tool usage for audit; here, the log is also kept on the server side.
When an agent gets untrusted and declares that it did not read (the get_trust_decision tool with the agent's name, or the SDK when it blocks), the abstention is recorded with the decision the agent saw, separately from reads. In an incident's impact, that agent shows as held back by the trust decision, not as affected. See the agent register.
The why also depends on what the agent read. Results carry text from the sources and from the people in the workspace: column names, descriptions, issue titles. That text is data, but an agent that takes it as an instruction suffers an indirect injection, the first risk on the OWASP list for LLM applications. Every result from the BeryX MCP server says in _meta which fields carry that content and which look like a request to a model. The text arrives as it is, and the server instructions remind the agent that those fields are data. See result provenance.
What is still missing
These are the limits in production as of this article. None has a promised date.
“On behalf of” is the agent's declaration. BeryX only uses it to narrow access, never to widen it, but it does not prove that the person asked.
An abstention is only recorded when the agent declares it. An agent that asks and gives up without saying so leaves only the decision request in the audit trail.
The usage log keeps the requests that reach BeryX, without the content read or the agent's reasoning. What the agent does in other tools stays in their logs.
The go-live failure drills (personal data leak, poisoned data and forbidden action) run when an admin asks for them. No scheduler runs them on its own, and an expired drill closes the classified data until it passes again.
BeryX is the product of BeryxTech, which publishes this article. Every statement about the product links to the public documentation, and the limits are in the previous section.