When LGPD compliance is required, an offboarded contractor still has a CI job that spins up temporary compute, and the job uses a service account with a static token that can read and write any database. The token was never rotated after the contract ended, and no one knows which queries the job executed before it was stopped. In another team, an over-scoped token is baked into a deployment pipeline, letting a planner-executor agent create, modify, and delete records across multiple services without any human review.
Both situations illustrate a common reality: planner-executor agents often run with broad, standing credentials and without a record of what data they touched. When a data-protection law such as Brazil’s LGPD demands evidence of consent, purpose limitation, and accountability, those gaps become compliance liabilities.
Why LGPD matters for planner-executor agents
LGPD requires organizations to demonstrate that personal data is accessed only for legitimate purposes, that access is logged, and that any unnecessary personal information is masked or redacted. The regulation also expects prompt revocation of access when a role changes and the ability to reconstruct who did what, when, and why.
Planner-executor agents, by design, automate decisions and act on behalf of users. If they connect directly to a database or an internal API with a static credential, three gaps appear:
- There is no real-time check that the request aligns with the declared purpose.
- Responses containing personal data flow back to the agent unfiltered, violating the masking requirement.
- Every command runs without an audit trail, making it impossible to prove compliance to auditors.
What a proper control model looks like
The first step is to enforce identity-aware provisioning. A non-human identity (service account or OIDC client) is granted the minimal set of scopes needed for the specific job. That setup decides who the request is, but on its own it does not prevent misuse.
Next, the request must travel through a dedicated data path where policy can be applied. The data path is the only place enforcement can happen. Without a gateway in that path, the request reaches the target directly, still lacking audit, masking, or just-in-time approval.
How hoop.dev creates LGPD-ready evidence
hoop.dev sits in the data path between the planner-executor identity and the target service. Because hoop.dev proxies the wire-level protocol, it can enforce every LGPD requirement without exposing credentials to the agent.
When a request arrives, hoop.dev validates the identity token, checks group membership, and determines whether the operation is allowed for that purpose. If the request exceeds the declared scope, hoop.dev blocks the command before it reaches the database.
