Electronic health record vendors and health systems face a new integration challenge as AI agents run clinical and administrative tasks inside authenticated browser sessions. The Ninth Circuit's August 2026 ruling in the Amazon-Perplexity litigation makes CFAA-based exclusion of user-directed local browser agents less dependable within that circuit, while Information Blocking regulations restrict overly broad bans on third-party EHI access. The durable engineering response is to build governed integration paths that make structured, observable API access easier and safer than shadow browser automation, while enforcing a hard code boundary between what agents may draft and what only clinicians may commit.

The EHR Integration Trap: Browser Agents as an Unmanaged Integration Layer

Legal & Liability 2026-08-11 • ~18 min read

When an AI browser agent runs inside a clinician's authenticated EHR session without a governed API alternative, the EHR's native session logs cannot distinguish the agent's clicks and text injections from the clinician's own actions. For years, enterprise software vendors and electronic health record (EHR) platforms controlled third-party integrations through Terms of Service restrictions backed by Computer Fraud and Abuse Act (CFAA) claims, IP filtering, and credential revocation. That model assumed that unauthorized third-party software ran on separate servers that were easy to spot and legally actionable. Today, client-side browser extensions and local desktop agents operate directly inside the clinician's own browser context, breaking both the technical detection layer and the legal enforcement model at once.


Why Is the Traditional EHR Defensive Model Breaking?

The traditional enforcement model against unauthorized integration relied on four controls, each of which now faces distinct legal or technical limits:

  1. Terms of Service: Contractual bans on automated access and unapproved third-party tools.
  2. IP origin controls: Blocking or rate-limiting traffic from external server-side automation IPs.
  3. Credential scope: Revoking credentials used for unauthorized scraping.
  4. CFAA litigation: Civil and criminal claims for unauthorized access to protected computer systems.

Under the 21st Century Cures Act Information Blocking regulations (45 CFR Part 171), EHR vendors and health systems cannot impose blanket contractual bans on third-party access to Electronic Health Information (EHI) without risking regulatory penalties, though statutory exceptions give vendors structured ways to require safe integration methods.

At the network layer, IP origin controls miss local browser agents because the agent executes on the clinician's workstation. Every HTTP request originates from the hospital's own IP address, the clinician's browser fingerprint, and an active, authenticated session cookie.

On the legal front, the Supreme Court's ruling in Van Buren v. United States (2021) narrowed the CFAA's "exceeds authorized access" clause so that it applies only when a user crosses a technical gate into files they have no permission to see, rather than when they use authorized access in a way the platform vendor prohibits. The Ninth Circuit has now applied that principle directly to local browser agents.


What Did the Ninth Circuit's Amazon-Perplexity Ruling Change?

In Amazon.com Services LLC v. Perplexity AI, Inc. (9th Cir., No. 26-1444), the Ninth Circuit vacated the Northern District of California's preliminary injunction on August 4, 2026. The panel held that Amazon was unlikely, at that stage, to establish that Perplexity itself "accessed" Amazon's computers under the CFAA when users ran Perplexity's Comet browser agent inside their own authenticated sessions.

The court treated the access as originating from the credentialed user assisted by a local software tool, rather than from Perplexity's servers. While the underlying litigation continues and other legal claims remain live, the architectural lesson for platform owners is clear:

Platform teams cannot assume that CFAA claims will stop user-directed local browser agents. The legal and technical analysis now turns on who holds the credentials, whether the human user authorizes specific actions, whether the tool bypasses a technical gate, and what governed API alternatives the platform provides.

graph TD
    A[Cloud Automation: Server-to-Server with Extracted Credentials] -->|Direct Connection to Target| B[Target Platform]
    B -->|Identifiable Separate Origin| A
    C[Local Browser Agent] -->|Runs Within User Authenticated Session| D[User Machine]
    D -->|Request from User IP and Session Cookies| B
    B -->|Ninth Circuit: User is the Accessor, Tool Vendor Is Not| E[CFAA Enforcement Less Dependable for This Pattern]

EHR vendors and health systems have to navigate this narrower CFAA standard alongside federal interoperability rules.

graph LR
    A[21st Century Cures Act: Information Blocking Rules] -->|Constrains Broad ToS Restrictions on EHI Access| B[EHR Vendor]
    C[Ninth Circuit Ruling and CFAA Narrowing] -->|Reduces Reliability of CFAA-Based Browser Agent Enforcement| B
    B --> D[Traditional Enforcement Becomes Less Dependable]
    D --> E[Shadow Browser Automation Expands Into the Gap]

Information Blocking: What It Does and Does Not Constrain

The Information Blocking regulations (45 CFR Part 171) prohibit practices likely to unreasonably interfere with the access, exchange, or use of EHI, while providing specific statutory exceptions for security and technical feasibility.

The Manner Exception (45 CFR § 171.301) governs when an actor may fulfill an EHI request through an alternative technical method. If a vendor or health system cannot safely support raw browser-session automation, it can offer standards-based alternatives (such as FHIR APIs) under prescribed conditions. Similarly, the Health IT Performance Exception (45 CFR § 171.205) permits targeted restrictions against third-party tools that degrade EHR stability.

Information Blocking rules prevent blanket bans on third-party access, but the Manner Exception gives EHR vendors a clear regulatory path to require governed, standards-based API integrations instead of unmonitored DOM scraping.


What Are the Four Operational Risks of Unobservable EHR Automation?

When a clinical browser agent reads and writes directly through the EHR web interface, it introduces four operational risks to patient safety, HIPAA compliance, and malpractice defense.

1. Loss of Provenance

EHR audit logs tie actions to the active session token. When a browser agent operates inside Dr. Smith's session, its clicks and text entries carry Dr. Smith's user ID, session token, and workstation IP.

If a hospital safety committee later investigates a wrong medication dose or an erroneous chart note, the native EHR audit log cannot show whether Dr. Smith typed and verified the entry or whether the browser extension injected it automatically.

2. Context Compression Across the Agent Chain

Browser agents often read across multiple open tabs, summarize prior progress notes, and paste synthesized text into current assessment fields. Each summarization pass compresses clinical context: the model drops hedging language from prior consults and states uncertain differentials as established diagnoses. Without span-level source links, the reviewing physician cannot see where the summary diverged from the underlying patient chart.

3. Uncontrolled PHI Egress

When a browser extension sends scraped EHI to an external model endpoint for inference, the health system has to verify the vendor's HIPAA status, confirm a signed Business Associate Agreement (BAA), check downstream subprocessors, and enforce zero-retention rules.

When clinicians install unsanctioned browser agents on their own, information security teams have no inventory of which patient records left the hospital network or which external endpoints processed them. Under the HIPAA Security Rule's audit-controls requirement (45 CFR § 164.312(b)), covered entities must record and examine activity in systems handling ePHI, which is impossible when an extension exfiltrates DOM text outside the EHR's API gateway.

4. Identity Ambiguity

When the EHR audit trail records the logged-in clinician's ID without distinguishing human actions from extension actions, the hospital faces Identity Ambiguity: the log proves whose session was open, but cannot prove which actor performed the work.

Dr. Smith (Authenticated Clinician)
            ↓
      Browser Agent
            ↓
   LLM Context Window
            ↓
  Automated Field Entry / Chart Action
            ↓
        EHR Record, Attributed to Dr. Smith

During a malpractice deposition or regulatory audit, the hospital cannot reconstruct the chain of clinical decision-making from the session record. Fixing this requires recording the agent's token as a separate actor alongside the authenticating clinician's ID.


Where Must the Clinical Draft-Versus-Commit Boundary Sit?

Governance controls should match the clinical consequence of the action:

Agent Action Default Posture Why
Read chart for user-requested summary Scoped, logged, read-only preferred Privacy, minimum-necessary access, and provenance remain material even for reads
Draft a note or message Agent creates non-final draft; clinician reviews before finalization Preserves clinician authorship and review obligation
Populate a structured field Field-level provenance, validation, and explicit review status required A clinically plausible value can still be wrong
Place an order, alter medication, modify diagnosis, sign a note, disclose records Explicit human authorization and a code-enforced execution boundary Patient safety, billing, legal, and professional-accountability consequences

The first governed capability in any clinical agent deployment should be "create a reviewable draft" while blocking direct commits to the medical record. A safe architecture enforces review state, approver identity, source citations, and final signature authority in code.

An agent permitted to read encounters and stage an unsigned draft note carries a manageable risk profile. An agent allowed to sign notes, modify allergy lists, or submit medication orders creates acute patient safety exposure and must be blocked at the API gateway.


How Do You Architect a Governed Paved Path for Clinical Agents?

Playing cat-and-mouse at the browser layer with DOM obfuscation or bot detection scripts wastes engineering time because clinicians will work around slow EHR interfaces whenever official APIs are missing. The durable fix is to build the Paved Path: an official integration surface that gives authorized clinical agents structured access, clear identity tokens, and hard commit boundaries.

A production Paved Path exposes three distinct interfaces:

graph TD
    A[Data Interface] -->|SMART-on-FHIR / OAuth2 Scoped Access| D[Policy Enforcement Layer]
    B[Workflow Interface] -->|Bounded Actions: Draft Note, Prepare Order for Review| D
    C[Evidence Interface] -->|Agent Identity, Provenance, Capability Scope, Review State| D
    D -->|Commit Authority Separation: Draft vs Finalize| E[Governed Clinical Action]
    D -->|Emits Structured Provenance Record| F[Audit Engine]
    D -->|Verifies BAA Status and Capability Scope| G[Compliance Layer]

Data Interface

The Data Interface uses SMART-on-FHIR and OAuth2 resource scopes to grant read access only to the specific FHIR resources needed for the task, enforcing HIPAA minimum-necessary rules at the token level.

Workflow Interface

The Workflow Interface exposes bounded staging actions such as create_unsigned_draft_note or stage_unsigned_order instead of forcing agents to impersonate a clinician clicking UI buttons.

Evidence Interface

The Evidence Interface logs the agent's client ID, the delegating clinician's ID, the patient encounter context, the retrieved source document hashes, the review status, and the final human signature timestamp.

Key Characteristics

The Paved Path enforces six technical boundaries across every clinical integration:

Architectural Component Technical Implementation Mechanism Clinical & Governance Invariant
1. Scoped Authorization SMART-on-FHIR and OAuth2 resource-level scopes. Restricts the agent to read-only encounters and draft staging without raw DOM access.
2. First-Class Identity Dual-actor session authentication (User ID + Agent Token). EHR audit logs record which actions the AI agent drafted versus what the human clinician edited and signed.
3. Structured Handoffs Versioned, schema-validated JSON payloads via FHIR resources. Eliminates prompt-injection risks and parsing bugs caused by scraping HTML tables.
4. Provenance Emission Cryptographic payload digest, prompt hash, and policy version. Creates tamper-evident audit records linking generated drafts to source chart spans.
5. Capability Declarations Explicit scope allowlists (e.g., READ, DRAFT). Blocks agents from requesting write, sign, or order-execution permissions.
6. Commit Separation Hard API boundary isolating the drafting endpoint from the signing endpoint. Prevents automated execution of orders, prescriptions, or billing codes without a physician's signature.

Each agent integration declares its exact permission boundaries in a machine-enforced manifest:

Agent: ClinicalDocumentationAssistant
Allowed:     READ demographics, READ encounters, WRITE draft note
Not allowed: WRITE diagnosis, ORDER medication, SIGN note, DISCLOSE record

Under this authorization model, the agent's permissions remain a strict subset of the delegating clinician's permissions and never expand beyond read and draft scopes. Finalizing a note or placing an order requires a separate authentication call from the human clinician.


What Must Health Systems and EHR Vendors Do Today?

  1. Stop relying on Terms of Service as a security boundary. Contractual bans on browser automation face legal headwinds from both Information Blocking rules and the Ninth Circuit's CFAA ruling. Architect your integration layer assuming clinicians will use AI agents.
  2. Separate read-and-draft tools from commit actions. Distinguish server-to-server API integrations from client-side browser extensions, and enforce a hard wall between staging a draft and committing a clinical order.
  3. Use the Manner Exception to steer developers onto FHIR APIs. Where ONC rules permit, designate your SMART-on-FHIR and draft-staging endpoints as the supported integration method, and make developer onboarding fast enough that third-party builders prefer the official API over DOM scraping.
  4. Log agent identity alongside user identity. Update EHR session and audit schemas so every API call or UI extension event records both the authenticated clinician ID and the specific AgentID.
  5. Audit where PHI flows after it leaves the browser. Require an explicit inventory of external model endpoints, signed BAAs, and zero-data-retention guarantees for every browser extension or ambient scribe running on clinical workstations.

The PM's EHR Agent Integration Governance Matrix: Evaluating Clinical Browser Agents in InfoSec & Compliance Reviews

When clinical software teams propose deploying browser extensions, desktop daemons, or ambient scribes into Epic, Oracle Health, or ambulatory EHRs, product managers and security leads can evaluate the integration against this review matrix:

Integration Architecture Technical & Legal Vulnerability (CFAA / Info-Blocking) Mandatory Paved Path Invariant Forensic Lineage Requirement PM Go/No-Go Release Gate
Client-Side Browser Extension (Injected into clinician's web session) Identity Ambiguity: EHR audit logs credit the physician for AI text; CFAA claims are less reliable post-Ninth Circuit. Enforce strict read-and-draft boundary; block extension from reading session cookies or firing direct commit POSTs. Agent appends a distinct AgentID token to all staged draft notes. NO-GO if the browser extension commits text directly without the clinician's explicit signature.
Server-to-Server Scraping (Using extracted physician credentials) CFAA Exposure & Credential Risk: Violates security policies, bypasses MFA, and creates severe HIPAA breach exposure. Migrate to SMART on FHIR: Replace stored user passwords with scoped OAuth2 authorization tokens. Complete FHIR AuditEvent logs recording client app ID and granted scopes. REJECT INTEGRATION. Never allow third-party services to store or replay clinician login credentials.
Ambient AI Scribe Integration (Microphone capture to EHR draft) BAA & PHI Transmission: Audio streams and transcripts flow to external cloud model endpoints. Signed BAA in place, SOC2 Type II verification, and zero retention of raw audio or transcripts after the visit. Cryptographic hash of the generated draft note linked to the EHR encounter ID. NO-GO if the cloud vendor retains patient transcripts or trains models on hospital PHI.
Autonomous Clinical Order Routing (Agent staging medications / labs) Patient Safety & Malpractice Exposure: Autonomous medication ordering violates state medical practice acts and FDA SaMD rules. Hard Draft-Versus-Commit Gate: API gateway blocks agent tokens from calling order-signing endpoints; orders stage as unsigned proposals. Two-factor clinician authentication required to sign and release staged orders. NO-GO if the agent holds direct order-signing permissions under any condition.

Primary Sources & References

  • Amazon.com Services LLC v. Perplexity AI, Inc., No. 26-1444 (9th Cir., Aug. 4, 2026): Ninth Circuit vacated the N.D. Cal. preliminary injunction, holding that Amazon was unlikely at that stage to establish that Perplexity "accessed" Amazon's computers when users acted through their own authenticated sessions using Comet.
  • Van Buren v. United States, 593 U.S. 374 (2021): Supreme Court narrowed "exceeds authorized access" under the CFAA so that accessing authorized files for an unapproved purpose does not by itself violate the statute.
  • 21st Century Cures Act / ONC Information Blocking Regulations (45 CFR Part 171): Prohibits practices likely to unreasonably interfere with EHI access, exchange, or use, subject to statutory exceptions including the Manner Exception (45 CFR § 171.301) and Health IT Performance Exception (45 CFR § 171.205).
  • HIPAA Security Rule Audit Controls (45 CFR § 164.312(b)): Requires technical mechanisms to record and examine activity in information systems that contain or use ePHI.
  • HIPAA Business Associate Framework (45 CFR Parts 160, 164): Governs Business Associate Agreements for vendors that create, receive, maintain, or transmit PHI on behalf of a covered entity.
  • SMART on FHIR Authorization Framework: Standardized OAuth2 scopes for delegating resource-level permissions in healthcare applications.
  • Architecture of Proof: "The Multi-Agent Liability Trap", August 2026. (architectureofproof.com/multi-agent-liability-trap)

The Adversarial Stress-Test: Five Critical Inquiries

1. What is the strongest argument against this approach?

EHR vendors often charge steep API fees and take months to approve SMART-on-FHIR partner integrations. Faced with those delays and tollgates, clinical AI startups and busy physicians build client-side browser extensions because scraping the web UI is the only way they can ship workflow tools without waiting a year for vendor approval.

The Practical Resolution: Health systems can use the 21st Century Cures Act Information Blocking rules to push back against unreasonable API fee structures and slow onboarding. At the same time, EHR vendors that want to eliminate brittle DOM scraping should offer self-service sandboxes and fast-track approval for read-and-draft SMART-on-FHIR scopes, making the official API faster to build on than maintaining browser scrapers that break on every UI update.

2. Under what circumstances would this fail?

The Paved Path breaks down on legacy or specialty EHR platforms that only expose basic read-only FHIR endpoints and have no API endpoints for writing draft notes or staging orders, leaving teams with no API surface to call.

The Practical Resolution: When a legacy EHR lacks write APIs for drafts, the hospital IT team can run a managed, server-side virtual browser gateway inside the hospital network instead of allowing unmanaged extensions on local workstations. The hospital-controlled gateway injects dual-actor audit logging, blocks commit buttons via proxy rules, and routes all LLM calls through an enterprise BAA endpoint.

3. What would a skeptical customer, client, or colleague object to?

Chief Medical Information Officers (CMIOs) and hospital defense counsel will point out that even if an agent only writes a draft note via a FHIR API, a tired physician finishing charts at 11:00 PM will skim the AI draft and click "Sign", leaving the hospital exposed to malpractice claims if the draft contains a fabricated exam finding.

The Practical Resolution: Pair the API draft boundary with review friction in the EHR user interface. Render AI-drafted sections with distinct visual highlighting and source links until the physician reviews or edits each block, and log clinician review dwell time in the EHR audit trail. If a physician signs a 500-word consult note in under 3 seconds, the compliance system flags the chart for quality review.

4. Which alternative deserves more consideration?

Hospital IT security teams can use enterprise browser policies (such as Chrome Enterprise or Microsoft Edge management) and mobile device management (MDM) to block all third-party browser extensions and local scripts across clinical workstations.

The Practical Resolution: Use enterprise browser lock-downs together with the Paved Path. If hospital IT blocks all browser extensions without giving physicians a sanctioned ambient scribe or drafting tool inside the EHR, clinicians end up dictating notes into unapproved apps on their personal phones, which creates an even worse PHI leak. Blocking unmanaged extensions works when paired with a sanctioned, low-friction alternative.

5. What am I assuming that may not be true?

This analysis assumes that other federal courts will follow the Ninth Circuit's Amazon v. Perplexity reasoning on local browser agents, whereas other circuits could interpret the CFAA or state computer trespass laws more broadly to enjoin unauthorized browser automation.

The Practical Resolution: Build the integration architecture to satisfy HIPAA Security Rule audit controls and ONC Information Blocking rules rather than relying on how any single circuit interprets the CFAA. Requiring distinct agent identity tokens, signed BAAs, and a hard draft-versus-commit boundary keeps the health system compliant regardless of how CFAA litigation evolves across federal circuits.


One-Line Synthesis

Governing clinical AI agents requires a paved API integration path that logs distinct agent identity tokens, separates draft staging from final chart commits, and keeps PHI inside audited HIPAA boundaries.


Join the Discussion: Share your team's experience, ask questions, or join the practitioner commentary on this writeup on LinkedIn.

Frequently Asked Questions

How does the location of agent execution affect legal and technical risk under the CFAA?

When an agent executes server-to-server using extracted credentials, its access is technically and legally distinct from that of the credentialed user, so vendors can identify the separate origin and invoke authorization controls. When an agent runs locally within a user's authenticated browser session, the access originates from the user's IP, browser fingerprint, and session context. In August 2026, the Ninth Circuit vacated a preliminary injunction against Perplexity's Comet agent, holding that Amazon was unlikely at that stage to establish that Perplexity itself 'accessed' Amazon's computers when users employed the tool through their own sessions. That ruling makes CFAA-based exclusion of user-directed local browser agents materially less dependable within the Ninth Circuit, while remaining potentially contestable outside that circuit and under different facts.

Why are EHR vendors caught in a difficult operational position with browser agents?

EHR vendors face constraints from two directions. Information Blocking regulations under the 21st Century Cures Act restrict practices that unreasonably interfere with access to electronic health information, limiting how broad their contractual or technical restrictions on third-party access can be, though enumerated exceptions including the Manner Exception provide room for vendors to specify how access must occur. At the same time, the CFAA's scope has narrowed after Van Buren v. United States (2021) and the Ninth Circuit's Amazon-Perplexity ruling, making it harder to characterize user-directed browser session automation as unauthorized access.

What is the Paved Path approach to agentic healthcare integration?

The Paved Path is an explicit, governed integration layer built around three interfaces: a Data interface (SMART-on-FHIR / OAuth2 scoped access), a Workflow interface (explicit bounded actions like 'create unsigned draft note' or 'prepare order for review'), and an Evidence interface (agent identity, delegator, provenance, capability scope, and review state). The goal is to make the governed path easier and safer than browser-session automation.

What is Identity Ambiguity in agentic healthcare workflows?

Identity Ambiguity is the condition where the EHR's native audit trail identifies the authenticated user but does not capture whether a human clinician, a managed extension, or an autonomous agent generated a specific action. The EHR records Dr. Smith's session, but the session log does not show which steps Dr. Smith evaluated and which the agent produced. This creates an attribution gap with direct consequences for clinical safety investigations, malpractice defense, and regulatory audits.

What is the draft-versus-commit boundary in clinical agent governance?

The draft-versus-commit boundary is the governed distinction between what an AI agent may produce and what requires explicit human authorization before being recorded as a clinical fact. A governed agent may retrieve data and create reviewable drafts within a bounded scope; it may not commit diagnoses, place orders, alter medication records, or sign notes without separate human authorization and a code-enforced execution boundary.

What should healthcare software vendors and health systems do about browser agents today?

Build and promote the Paved Path: low-friction, scoped integration surfaces that route agent automation through observable, policy-enforced infrastructure. Define agent capability declarations explicitly: what the agent may read, draft, and never commit. Enforce the draft-versus-commit boundary in code rather than relying solely on contract terms. Audit session activity for signs of unmonitored browser automation, and check whether any active integrations send PHI to an external service requiring a Business Associate Agreement.

Subscribe to the Architecture of Proof Dispatch

Rigorous, decision-forcing systems engineering and AI governance monographs for technical leaders. Delivered periodically, zero spam.

Zero marketing spam. Unsubscribe at any time with a single click.
Zoomed image
Free Download

Downloading Resource

Enter your email to get instant access. No spam — only occasional updates from Architecture of Proof.

Success

Link Sent

Great! We've sent the download link to your email. Please check your inbox.