Define the boundary as a list the runtime can enforce
The boundary is only enforceable if it is written down as a list. For each agent, that list covers every system, tool, MCP server, model endpoint, log, and vector store the agent can reach, and records which of them are covered by a BAA.
Map how PHI can leave, following the agent's data path
Follow the data as it moves through the agent and identify where PHI could cross the boundary. Each stage below needs its own enforcement point.
| Stage | Enforcement point |
|---|---|
| Input | Inspect prompts and user-supplied content before they reach a model. |
| Context | Scope what retrieval and memory can return to this agent. |
| Tool call | Check the tool, destination, and arguments against policy before execution. |
| Output | Inspect responses before they reach users, other agents, or external systems. |
| Storage and logging | Keep memory, traces, and logs inside the boundary and record every decision. |
Build layered runtime controls
Policy documents and pre-deployment reviews do not stop a tool call that is made at runtime. Enforcement therefore sits at the agent runtime and combines these controls:
- Agent identity: a distinct identity for each agent.
- Least privilege: permissions scoped to what each agent needs.
- Allowlists: approved tools and destinations for each agent.
- PHI inspection: checks at the point of action.
- Audit logging: an audit record of every decision.
Decide how enforcement behaves, and accept the tradeoffs
Two behaviors need an explicit decision: whether the runtime blocks a call or only logs it, and whether it fails closed when policy evaluation is unavailable. The questions at the end of this guide help you test both.
Connect the controls to Security Rule safeguards and audit evidence
These controls line up with two Security Rule themes: access control and audit controls. Agent identity, least privilege, and allowlists address who and what can reach PHI. Decision logs address the ability to record and examine activity involving PHI. How each control satisfies specific Security Rule requirements, and what your risk analysis should say about agents, should be confirmed with your compliance and legal teams. This guide does not give legal advice or guarantee compliance.
Evidence auditors can use
For auditors, the useful evidence is concrete. Keep the boundary inventory and the allowlists with version history, the permission grants for each agent identity, and the policy configuration in force on a given date. Keep the decision logs showing allowed and denied actions, with the agent identity and the human or system that invoked it. Set retention periods with your compliance team and make the records retrievable by agent, time range, and destination.
Questions to test any runtime control layer
- Can you list every system, tool, MCP server, model endpoint, log, and vector store each agent can reach, and which are covered by a BAA?
- Does the runtime enforce a tool and destination allowlist per agent identity, and does it block calls or only log them?
- Does it inspect prompts, tool-call arguments, retrieved context, and outputs for PHI before data leaves the boundary?
- Are agent identities and permissions scoped and logged separately from the invoking user or service account?
- Does each PHI-related action produce an audit record, with defined retention and a way to hand it to auditors?
- Does the system fail closed when policy evaluation is unavailable?