A Scrub-First Architecture for Reducing PHI Exposure in AI Agent Workflows
Healthcare payers and providers want to use AI agents for analysis of claims, eligibility, and remittance data, but sending protected health information (PHI) to external AI services creates compliance and security risk. This paper presents a scrub-first architecture in which PHI never leaves the user's machine. A local scrubbing layer produces structure-preserving, fully masked copies of source files; an independent local verifier checks every file before it can enter the model's context; and an orchestrator, not a prompt, enforces that the model can read only verified files. Files that fail verification are automatically quarantined to an admin-only location. The architecture also includes a rule-evolution process in which the agent may propose additional PHI fields found in X12 implementation guides, but only a human agent owner can approve changes to the scrubber. We state six invariants that define the pattern, specify each component by contract so the design is implementable in any language, include an example implementation, and give a conformance checklist and a worked example on a synthetic 837P claim. We state clearly what the architecture does not guarantee.
Authors
- Prasoon Reghunathan Nirmala
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24541915
- Primary Topic
- Privacy-Preserving Technologies in Data
- Type
- preprint