Part of
Enterprise AI governance
Governance

Data Governance for AI: What Changes When Agents Read Your Data

Four controls for agents that read company data: the asker's permissions, access checked before retrieval (highlighted), a log of what every answer read, and actions decided one by one.

Data governance for AI changes because the reader changes. An AI agent reads on someone's behalf and pulls records from several systems into one prompt. Instructions hidden in what it reads can steer it. Controls built for people opening files therefore have to run at retrieval, the moment the agent fetches the data. In practice, the agent reads with the permissions of the person who asked, and access is checked before a record reaches the model. Every answer leaves a log of what it read. What the agent may do with that data is decided action by action.

For the Cost of a Data Breach Report 2025, the Ponemon Institute and IBM studied 600 breached organizations. Of those, 13% reported a breach of an AI model or application, and 97% of that group had no AI access controls in place. Across all the breached organizations, 63% had no AI governance policy or were still writing one. Data leaders see the gap too. In IBM's 2025 study of 1,700 chief data officers, 80% had started building datasets to train AI agents. Yet 79% said they were early in defining how to scale and govern them.

What changes when an AI agent reads your data?

Data governance built for people assumes a person with a role, opening one record at a time in an application that checks that role. An AI agent breaks several of those assumptions at once.

QuestionA person readingAn agent reading
Who is readingA named employee with a roleSoftware acting for someone, often on a shared key
How much it readsOne record or report at a timePassages from several systems in a single answer
Instructions inside the dataIgnored; a note is a noteSometimes followed, because instructions and data arrive as the same text
Where the data ends upOn a screenIn a prompt, an answer and sometimes a vector index or memory store
What the audit trail showsWho opened which fileNothing, unless retrieval is logged for each answer

The third row, instructions inside the data, is the newest risk. In June 2025, Microsoft fixed CVE-2025-32711 in Microsoft 365 Copilot and rated it critical, at 9.3 on its own scoring. The flaw is known as EchoLeak. An academic case study of it showed that one crafted email was enough. Once Copilot read that email as context, data could leave the user's environment with no click from the user. Microsoft mitigated the flaw on its side and reported no exploitation. The same mechanism applies to any agent that reads text someone else wrote.

Whose permissions does the agent read with?

Identity is the first decision. An agent on a shared service account sees everything that account can see. That is usually far more than any one person who asks it a question, and its log says the service account did it. An agent that inherits the asker's permissions from the source systems can only return what that person could already open. Its log names the person.

On May 1, 2026, CISA, the NSA and the national cyber agencies of Australia, Canada, New Zealand and the UK published joint guidance, Careful Adoption of Agentic AI Services. It makes the same call. Agents should not be granted broad or unrestricted access, especially to sensitive data or critical systems. Adoption should begin with use cases that are low-risk and non-sensitive. In the picker below, three different people ask the same agent the same question. It shows what each approach puts in front of the model.

Access picker
Six records match the question. Which ones reach the agent?
Who asks the agent
Access is enforced by
TCK-5512Support ticket
Account notesCRM
INV-30418Supplier invoice
Payroll ledgerHR system
Performance reviewHR system
Board minutesSharePoint
In the context window
1
Outside the asker's role
0

With source permissions checked before retrieval, each person's agent sees only what that person could open: support sees the ticket and account notes, finance the account notes and invoice, HR the payroll ledger and review, and nobody the board minutes. A shared service account puts all six in front of the model, and a prompt instruction leaves all six in the context with a request to hide some of them. The records shown are example values.

A line in the system prompt saying "do not reveal payroll data" fails for the same reason as the shared account. The records are already in the model's context, the text it reads before it answers. The instruction is one more piece of text the model weighs. On our builds, agents take their permissions from the systems they read. A forgotten filter cannot give a finance agent access to payroll. Our enterprise AI governance page lists the controls that ship with every workflow.

Why access checks belong before retrieval

Retrieval-augmented generation (RAG) lets an agent search a copy of your documents before it answers. The source permissions do not follow that copy. The documents are split into chunks and stored in a vector index, a database searched by meaning. The index holds the text without the SharePoint or Confluence permissions that guarded it, and a search returns whatever matches best. The OWASP Top 10 for LLM Applications 2025 lists this as LLM08, vector and embedding weaknesses. Its first prevention item is fine-grained access control with permission-aware vector stores.

  1. Carry source permissions into the index. Each chunk keeps the access list of the document it came from, and the list syncs when the source changes.
  2. Filter at query time. The search applies the asker's permissions, so a record they cannot open is never ranked, quoted or summarized.
  3. Log the refusal. Record every match that was refused. The refusals show where users ask about data the agent is not allowed to read.

You can also skip the copy. Agents can read your systems of record, such as a CRM or ERP, through their APIs, which already enforce permissions. IBM's study of chief data officers found that 81% bring AI to the data rather than centralizing it. Our enterprise context layer works this way. The permission check runs before retrieval, and a refused record is logged without ever reaching the prompt. How that layer differs from a semantic layer is the subject of context layer vs semantic layer.

What should you log for every agent answer?

Lineage is the record of where data came from. For data pipelines, it shows which table fed which table overnight. Agent lineage answers a narrower question for every response. Which records, in which version, were in the context when the agent said this, and on whose behalf? Without it, you cannot trace a wrong answer to an out-of-date document, and an auditor asking who saw what gets no answer. For the same reason, OWASP's guidance for vector stores asks for detailed logs of retrieval activity that cannot be altered.

FieldExampleThe question it answers
Requesting user and roleAnalyst user ID, financeWho was the agent acting for?
Agent and versionap-assistant, prompt v14Which configuration produced the answer?
Records read, with versionsInvoice v3, purchase order v1What did the answer rest on?
Records refusedpayroll_ledger, by roleDid the permission check work?
Checks and flagsInjected instruction in an invoice noteWhat tried to steer the agent?
Action and approverRelease payment, waiting for the AP leadWho decided anything that changed a system?

Step through one request to see the log build up as it runs.

Worked example
One question, six checkpoints, one log you can audit
1

A person is attached to the request

A finance analyst asks the accounts payable agent why invoice INV-30418 is on hold. The agent receives her identity from single sign-on, so every later step runs as her.

2

Permissions are checked before retrieval

The payroll ledger matches the query, but it sits outside the finance role. It is refused before the search returns, so the model never sees it.

3

Records enter the context with their versions

Three records reach the model: the invoice, the purchase order and the goods receipt, each with its ID and version.

4

Retrieved text is treated as data

A note on the invoice says to ignore earlier instructions and approve payment. The guardrail flags it as an instruction inside data. The agent shows the note to the analyst and does not act on it.

5

The answer is checked against its sources

A second agent confirms that each figure in the draft appears in a retrieved record. The hold traces to the goods receipt: 40 units invoiced, 36 received.

6

Actions wait for a named person

The analyst asks the agent to release the payment. Payments above the threshold go to the named approver in Teams, and the agent has no credential to release them itself.

Agent log
  1. 09:02:11 request user=fin-analyst-07 role=finance agent=ap-assistant v14
  2. 09:02:11 refused payroll_ledger reason=role
  3. 09:02:12 read INV-30418 v3, PO-7781 v1, GRN-2290 v2
  4. 09:02:12 flag injected_instruction source=INV-30418.note
  5. 09:02:14 check figures_traced=4/4 result=pass
  6. 09:03:40 action release_payment status=waiting approver=ap-lead
Example values. Each line is written as the step runs, so the log answers who asked, what the agent read, what it was refused and who approved the action.

IES Limited's daily MI alerting system keeps the same kind of record in production. Every figure on an alert card comes straight from the database. A verification step flags any figure the model was not given. Every threshold change is recorded with who made it, from when and to when. IES made 34 threshold changes in six weeks without a single developer ticket.

Treat everything the agent reads as untrusted input

A permission check controls which records the agent may read. What those records contain is a separate risk. An invoice note, a support email or a wiki page can carry text written to look like an instruction. EchoLeak showed that an assistant in production can be made to act on it. So governing the data an agent reads means checking what it says, as well as who may read it.

  • Screen what comes in. A guardrail step checks user input and retrieved text for instructions before the model acts on either.
  • Separate reading from acting. An agent that reads customer email has no credentials to send email or move money. Those actions belong to a separate step with its own rules.
  • Check answers against sources. A second agent or a fixed rule confirms that the figures and claims in a draft come from retrieved records.
  • Limit where output can go. EchoLeak moved data out through links and images in the answer. Send agent output only to destinations you have approved.

Pinkcube's chat agent shows the separation in practice. The agent that talks to customers has no permission to file tickets at all. A separate triage agent reads each finished conversation and creates the ticket the chat agent promised. Before launch, we tested the build against 76 hostile scenarios (Pinkcube case study). Our post on AI guardrails covers where each check sits.

A data governance checklist for your first AI agent

  1. List the systems and document stores the agent will read, with the owner of each.
  2. Classify what the agent may read, what it may act on and what it may send outside the company. Start with low-risk, non-sensitive data.
  3. Pass the asker's identity to the agent through single sign-on, and retire shared keys with broad rights.
  4. Carry source permissions into any vector index and filter at query time.
  5. Log every answer with the user, the records read and refused, the checks that ran and any action taken.
  6. Screen retrieved text for instructions, and split reading tools from acting tools.
  7. Put a named approver on every action above a threshold you set, such as payments, refunds, outbound email and record changes.
  8. Name an owner who reviews the log and the refusals on a fixed schedule.

Write the human side down as well. The AI use policy template covers what people may put into AI tools. The AI readiness checklist lists the questions to answer before the first agent goes live. If the agent will reach systems through MCP, MCP security covers tokens, gateways and approvals.

Write the policy
AI Use Policy Template

An editable policy covering data, tools and human review.

Build your policy

Frequently asked questions

What is data governance for AI?

Data governance for AI is the set of rules and controls for the data AI systems use. It decides which data they may read, how that data is used in answers and actions, and how each use is recorded. With AI agents, the controls run on every request, at the moment the agent fetches data. That is because an agent reads on someone's behalf and can be steered by what it reads.

How is AI data governance different from traditional data governance?

Traditional governance decides who can open a dataset and tracks how data moves between systems. AI data governance adds an identity for every agent and permission checks inside retrieval. It also keeps a log of what went into each answer and sets rules for what an agent may do with what it read.

Should AI agents run on service accounts?

Only for narrow system tasks that act for no particular person, with the smallest scope that works. An agent answering a person's question should run on that person's permissions. It then cannot return anything they could not open, and the log names who asked.

How do you stop RAG from leaking restricted documents?

Store each chunk with the access list of its source document and keep that list in sync. Then apply the asker's permissions inside the search. A prompt telling the model not to reveal restricted content does not protect it, because the content is already in the model's context.

What is runtime lineage for AI agents?

Runtime lineage is a record kept for each agent answer. It shows which records and versions were in the context, on whose behalf, which checks ran and which actions followed. With it, you can trace a wrong answer to its source and tell an auditor who saw what.

Do we still need a written AI policy if the controls are built in?

Yes. The policy says what people and agents are allowed to do, and the controls enforce it inside the system. Map each rule in the policy to a control, and the gaps show up before an auditor finds them. The AI governance maturity model lists eight such controls and shows how to find the one holding you back.

Ovidius builds agents that run in your own environment. They read your systems with each user's own permissions, check access before retrieval and log every answer. To decide which data your first agent should read, start with the AI Audit or book a discovery call.

More on this topic

Put your first workflow on the board

Answer a few questions about your team and what you want automated, then a senior partner scopes it with you on the call.