Blog

    Bounded Autonomy in Healthcare AI: A Compliance Architecture for Agents

    By GauravJuly 28, 20269 mins read
    On this page

    Bounded autonomy is the part of a healthcare AI compliance architecture that decides what an agent may do without a person. An agent that can call tools will eventually call one nobody intended, unless the limit is written down and enforced before the first call.

    For hospital CTOs, CIOs and digital health founders putting an agent next to an EHR or a patient workflow, the sections below set out that limit: named tools, writes that wait for a person, a log line written before the action, and a stop control. Agnotic Technologies builds it into the agent runtime.

    What is bounded autonomy in a healthcare AI compliance architecture?

    Bounded autonomy in a healthcare AI compliance architecture is the enforced limit on what an agent may do without a person: which tools are on its allowlist, which writes require a person, what is logged before the action, and how a person stops the agent. Agnotic builds that limit before the agent calls a clinical system.

    Need an agent with a written limit?

    Agnotic Technologies builds healthcare agents whose tools, writes, and stop control are set before the first call to a clinical system.

    The bound is data the runtime enforces. A paragraph in a policy binder does not stop a tool call. Agnotic loads an allowlist for the agent identity, checks every proposed call against it, and refuses the call when the tool, the write class, or the approval is missing. The model can still draft text. It cannot widen its own permissions.

    The NIST AI Risk Management Framework is a voluntary framework that organizes AI risk work into four functions: Govern, Map, Measure and Manage.

    Map is the function that fits this design. Before anyone measures accuracy, name the actions the agent can take, the systems those actions touch, and the harm if an action lands in the wrong chart. The allowlist is that map, written so the runtime can read it.

    Which tools belong on the agent allowlist?

    The allowlist contains the tools this agent may call, each named, each with the operations and resource types it may touch. A tool called 'EHR' is too wide. A tool called 'read Observation for the current encounter' can be reviewed.

    Agnotic writes one row per tool. The row names the system, the operation (read or draft or write), the resource types, and whether a person must approve the call before it is sent. A new tool is a new row, reviewed by the clinical owner and the security owner, then deployed with the agent. The model does not receive a tool that is absent from the list, even if a prompt asks for it.

    • Tool name and the system it calls.
    • Operation: read, draft into a holding area, or write to a system of record.
    • Resource types and the maximum scope, such as the current encounter.
    • Whether the call requires a person before it is sent.
    • The owner who approved the row, and the version of the allowlist.

    Read tools follow the HIPAA Privacy Rule's minimum necessary standard. An agent drafting a note for one encounter does not receive a tool that searches the whole organization. The allowlist is where the minimum is made concrete.

    Which writes must a person approve?

    A person approves every write that changes the chart, sends a message, files an order, or submits a claim. The agent may prepare the payload. The send happens only after a person accepts that payload.

    Agnotic treats these as write classes that default to approval, and the allowlist cannot mark them as unattended:

    • Creating or updating a clinical resource in the EHR, including notes, problems, allergies, and medications.
    • Filing an order, a referral, or a prescription.
    • Sending a message to a patient, a caregiver, or another clinician.
    • Submitting a claim, a prior authorization, or any other transaction that leaves the organization.
    • Changing the allowlist, the reader list, or the agent's own permissions.

    Reads and drafts are the calls that can be unattended, and only when the allowlist says so. A draft lands in a holding area that is not the legal record. Promoting the draft into the record is a write, and it waits.

    What has to be logged before the agent acts?

    The log line is written before the tool call is sent. If the call is refused or the agent is stopped, the attempt still has a record: who proposed it, which tool, which resources, and why it did not proceed.

    ONC certification criterion 170.315(d)(2) requires certified health IT to be able to record actions related to electronic health information, and that recording is on by default.

    When the agent acts through certified health IT, that criterion is the floor for recording actions on electronic health information. Agnotic writes the agent log so it can feed that record. The line includes the human user, the agent identity, the tool name, the resource ids, the purpose string, the allowlist version, and the decision: sent, waiting for a person, or refused. The log is ePHI and is stored under the same HIPAA Security Rule safeguards as the chart data it describes.

    The line is append-only. A later success or failure updates a status field on that attempt. It does not replace the fact that the attempt was made. Support staff can read the decision without reading a second full copy of the note, because the line points at resource ids rather than pasting the whole document into the log.

    How do you stop a healthcare AI agent?

    A person stops the agent with a control that removes the allowlist for that session immediately. Calls already prepared are not sent. A restart does not put the allowlist back.

    Agnotic places the stop control where the supervising user already works, and a second control with the operations owner. Either one is enough. After the stop:

    • The session allowlist is empty, so the next proposed call fails closed.
    • A call in flight is abandoned, and its result is not written to the chart.
    • Queued drafts stay in the holding area and cannot be promoted until a person restores the allowlist.
    • The stop itself is logged with the user who stopped it and the time.
    • Restoring the agent is a separate, logged action by a person. The agent cannot restore itself.

    On startup the agent loads no tools until a person confirms the allowlist version for that session. A restart cannot finish a write the stop was meant to cancel.

    What may the agent do without a person?

    Without a person, the agent may only take the unattended actions on its allowlist: reads inside the agreed scope, and drafts that stay in the holding area. Everything else waits.

    A documentation agent may read the current encounter, the problems, and the medications, and it may place a draft in the holding area with the model version and the resource ids it read. Signing the note, releasing it, or creating an order waits for a person. A tool that is not listed returns a refusal and a log line.

    Agnotic keeps drafts in a store the EHR does not treat as the legal note. Promoting the draft is the write a person approves.

    How does excessive agency show up in a clinical agent?

    Excessive agency shows up when the agent can take a damaging action because its tools, its permissions, or its freedom to act are wider than the task. The allowlist, the approval step, and the stop control are how Agnotic keeps that width closed.

    OWASP defines excessive agency as the vulnerability that lets an LLM application take damaging actions in response to unexpected, ambiguous or manipulated model output, usually caused by excessive functionality, permissions or autonomy.

    Excessive functionality is a tool the task does not need, such as patient messaging on an agent that only drafts internal notes. Excessive permissions is a read scoped to the organization when the task is one encounter. Excessive autonomy is a write sent because the model output asked for it, with no person accepting the payload. The gateway refuses those cases. The check sits outside the model.

    What does a person see before approving a write?

    A person sees the exact payload that will be written, the resources it will change, and the tool that will send it. An approval of 'looks fine' with no payload is not an approval.

    Agnotic shows the draft, the resource ids, the patient, the encounter, and the allowlist row. Acceptance stores the approver's user id and only then sends that payload. If the payload changes after acceptance, the acceptance is void and the agent asks again.

    • Patient, encounter, and tool name.
    • The full payload, not a summary substituted for the text that will be stored.
    • Resource ids that will be created or updated.
    • Allowlist version and the write class.
    • Accept and reject, each logged with the user id.

    How do you test that the agent stayed inside its bounds?

    Test the bounds by trying the calls that must fail, and confirming they fail closed with a log line. A demo that only shows the happy path does not exercise the limit.

    Agnotic keeps a small suite that runs against the gateway with a test allowlist. The suite does not need a live EHR. It needs the gateway to see the same allowlist format production uses.

    • A tool absent from the list is proposed and must be refused, with a log line written first.
    • A write class that requires a person is proposed without an acceptance and must not be sent.
    • An accepted payload is altered and must require a new acceptance.
    • Stop is invoked, then a queued promote is attempted and must not land.
    • After a restart, the agent has an empty allowlist until a person confirms it.
    • A read scoped to one encounter is pointed at another patient's id and must be refused.

    Keep the suite with the allowlist version. When a new tool row is added, add the refusal cases for the tools that remain off the list. The new row is not done until those cases pass.

    How should the agent identity be set up?

    Give each agent its own service identity, separate from any person, and pass the supervising user on every call. A shared credential makes the allowlist unenforceable, because the gateway cannot tell which agent asked.

    What happens when an approval request is never answered?

    An unanswered approval expires, and its payload is discarded rather than sent. The agent may prepare a fresh draft later. A pile of stale approvals invites someone to accept a payload built on an old chart.

    A worked example: a referral letter the agent drafts

    • Step 1, the agent reads the encounter and the problem list through two read tools on its allowlist.
    • Step 2, it places a referral letter in the holding area, with the resource ids it read.
    • Step 3, the clinician opens the exact letter, corrects a sentence, and accepts the corrected text.
    • Step 4, the gateway sends that text to the receiving clinic, logged with the clinician's user id and the allowlist version.

    What does the user see when a call is refused?

    The user sees that the step was blocked, which tool was refused, and who can change the allowlist. The agent does not retry through a different tool to reach the same result.

    What are the common mistakes with bounded autonomy for healthcare AI agents?

    The common mistakes put the limit somewhere the runtime cannot read it, or leave a gap the agent can step through.

    • Writing the limit in a policy document that the gateway never loads.
    • Giving the agent one broad tool, such as full EHR access, instead of named operations on named resource types.
    • Logging after the call, so refused or stopped attempts leave no record.
    • Letting a restart reload the allowlist that a person removed with the stop control.
    • Approving a summary of the payload rather than the exact text that will be written.

    How can Agnotic help build a bounded healthcare AI agent?

    Agnotic Technologies builds healthcare AI agents with the allowlist, the approval screen, the pre-action log and the stop control inside the runtime, and hands the allowlist and the refusal test suite to your team. Your clinical and security owners approve every tool row.

    Sources

    Frequently Asked Questions

    It is the enforced limit on the agent: a tool allowlist, writes that wait for a person, a log line written before the call, and a stop control the agent cannot undo.

    Talk to an engineer about your project

    Share the tasks the agent should perform and the systems it must not write to. We will draft the allowlist and the approval boundary.

    Go deeper

    Services and solutions on this topic