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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

A Scrub-First Architecture for Reducing PHI Exposure in AI Agent Workflows

Prasoon Reghunathan Nirmala
Zenodo (CERN European Organization for Nuclear Research)
Privacy-Preserving Technologies in Data
preprint

A Scrub-First Architecture for Reducing PHI Exposure in AI Agent Workflows

Prasoon Reghunathan Nirmala
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Privacy-Preserving Technologies in Data
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon