A support-automation agent queries a patient or customer table and the result set comes back full of names, dates of birth, and medical record numbers. The agent needed a status flag and a ticket ID. Everything else is regulated data now sitting in a model context and a log. PII/PHI redaction for AI agents on Postgres exists to stop that, by removing the regulated fields before the agent ever receives them.
This post explains redaction for agents on Postgres and where hoop.dev applies it.
What PII/PHI redaction means here
Redaction means personally identifiable information and protected health information in query results are replaced before they leave the database connection. The agent still receives a usable result, with non-regulated columns intact, but the protected values come back redacted rather than in cleartext. The goal is to keep regulated data out of the agent's data flow entirely.
Redaction belongs on the connection
Regulated columns can show up in any query, including ones nobody anticipated, and in free-text fields that hide identifiers inside prose. Redaction that depends on specific views or on the agent going through your application will miss those paths. The reliable place is the connection every result crosses, where redaction applies regardless of the query shape.
How hoop.dev redacts on Postgres
hoop.dev is an open-source Layer 7 access gateway. Its agent speaks the native Postgres wire protocol. As results stream back, hoop.dev sends content to a configured DLP provider, Microsoft Presidio or Google DLP, which classifies fields, and redacts the matches before the rows reach the AI agent. Classification is the provider's job, so detection covers structured columns and identifiers embedded in text, not just a fixed list.
Redaction as evidence for your compliance program
Frameworks that govern PII and PHI expect you to demonstrate that regulated data is not exposed beyond its purpose. Inline redaction at the connection, paired with recorded sessions attributed to identity, generates evidence you can show: which identity accessed which data, and that protected fields were redacted in transit. hoop.dev produces that evidence; it does not by itself make any system "compliant" or "certified," and you should not describe it that way. It supports the program; the framework attestation stays yours.
