A regulator sends one question after a data incident: who accessed the personal data, and on whose authority? If an autonomous agent touched that data at 3am, most teams cannot answer cleanly. They have application logs that show a service account, not an accountable identity, and no record of what the agent actually read. GDPR does not accept "the system did it" as an answer. Article 5(2), the accountability principle, puts the burden on you to demonstrate control, and an AI agent that reaches production data is exactly where that demonstration tends to fall apart.
This post is about the concrete artifacts a GDPR program hands an auditor when an agent is in the loop, and where those artifacts have to come from to be trusted.
What GDPR actually asks you to produce
GDPR is a regulation, not a certificate you hang on the wall. No product makes you compliant. What the framework requires is that you can show, on demand, that access to personal data was lawful, scoped, and recorded. For an AI agent acting on personal data, that resolves to four artifacts:
- An identity for the agent, not a shared key, so every action traces to one accountable principal.
- A scope: which datasets and which fields the agent was permitted to reach, tied to a purpose.
- A session record: the actual queries and commands the agent ran, not a summary after the fact.
- A masking record: where personal data was redacted before it ever reached the agent.
The hard part is not naming these artifacts. It is that they have to be produced by something the agent cannot edit, and they have to accumulate continuously, not be reconstructed the week before an audit.
Why application logs fail the test
The instinct is to log inside the application or the agent framework. That record sits in the same trust boundary as the thing it is meant to hold accountable. An agent with a bug, or a prompt that has been steered, can write whatever it likes to its own logs, or simply not write at all. For GDPR accountability, a record the audited party can alter is weak evidence. The control has to sit on the access path itself, between the identity and the data, where the agent cannot reach the dial.
Put the control on the connection
The architectural requirement is that the record live outside the process the agent controls. That points to an identity-aware proxy on the connection to the data, not a library inside the agent. hoop.dev is built to that requirement. It is an open-source Layer 7 access gateway that sits between an identity and infrastructure such as a Postgres or MySQL database, and it governs and records the connection rather than trusting the caller to report on itself.
Running the connection through the hoop.dev gateway gives the GDPR program each artifact as a side effect of how access works:
- The agent authenticates as a named identity, verified against your identity provider, so there is no shared credential to anonymize the actor.
- Access is just-in-time and scoped to the task, so a grant to read one table for one purpose does not become standing access to everything.
- Every session is recorded at the command level, giving you the exact statements run against personal data, captured outside the agent.
- Inline data masking redacts personal fields in the connection before results reach the agent, and that redaction is itself logged.
You can see how hoop.dev records each session and how those records map to the evidence an accountability review expects.
From access path to audit packet
When the regulator's question arrives, the answer is no longer a forensic project. The per-identity access log names the agent, the session recording shows the exact queries, the scope shows the data was reached for a stated purpose, and the masking log shows what the agent never saw. hoop.dev does not hold a GDPR certification, and no tool can grant one. What it does is generate the evidence for GDPR accountability continuously, so the packet already exists when you need it. To wire your first connection, connect a database through hoop.dev and watch the records accrue.
FAQ
Is hoop.dev GDPR compliant?
It largely does not matter, because hoop.dev is self-hosted. It runs inside your own infrastructure and never stores your data on a hoop.dev-operated service, so it does not become a separate processor that holds personal data. GDPR accountability stays a property of your organization and its data practices, and hoop.dev generates the evidence for GDPR, per-identity logs, scoped grants, session recordings, and masking, all kept in the environment you control.
How does this help with a data subject access request?
Because every access to personal data is recorded per identity and per session on the connection, you can show precisely which systems an agent touched and what it read, which is the same record you need to answer who processed a given data subject's information.
hoop.dev is open source. You can read the gateway, run it yourself, and see exactly how the records are produced at the hoop.dev repository on GitHub.