Hospitals and clinical teams
Clinical agents that wait for a nurse before they act.
A triage agent can read a patient record and fetch the latest labs on its own. It cannot book an appointment until a nurse approves. The model runs inside the hospital, so patient data never leaves the network. Every approval is recorded with the nurse's name, and the quarterly export proves it.
The problem
What the security lead cannot say yes to today.
The clinical team has an agent that works. The security and compliance leads have three reasons it cannot touch a patient.
An agent that books, orders or changes a record on its own
Whether a human confirms the action is decided inside the agent's code. The security lead did not write that code and cannot review each change. Until a check exists outside the agent, the agent stays in the sandbox.
Patient data in a prompt to a cloud API
A patient's record cannot be sent to an external model provider. One leak is a reportable event. The agent needs a model that runs inside the hospital, and a check that redacts what should never reach a model at all.
"What did the agent do?" with no single answer
The compliance officer asks for every tool call of the last quarter, and who approved each one. The answer today is a search across the agent's logs, the model proxy's logs and the tool servers' logs. Nobody can join them.
How Gatez changes the answer
Reads run without a gate. Writes wait for a nurse. Everything is recorded.
Four controls, enforced at the gateway rather than inside the agent. Everything below is live unless marked.
Approved: a person decides before the agent acts
LiveThe clinical team's policy marks scheduling:book_appointment as needing a person. ehr-read-only and lab-results are allowed without a gate. When the agent asks to book, the gateway holds the call. The nurse sees the patient, the slot and the agent, and approves, changes or denies. On approval the call resumes in the same session. An unanswered approval expires, and the call never runs.
Limited: the research team has no patient tools at all
LiveTool allowlists deny by default, and a team with no stored policy cannot call tools. Clinical gets three tool servers, revenue cycle gets read-only access to records, research gets none. Each session has a token budget, a limit on tool calls, and an expiry. An agent that loops stops at the gateway, and the audit row says why.
Inside your walls: patient data never leaves the network
LiveThe model runs inside the hospital through Ollama. In local-model mode no call leaves the network and no provider key exists. Personal data is redacted before any model call: national id numbers, email addresses, phone numbers, card numbers. The log records only that it happened, never the content.
Audited: one row per action, the approver's name on it
LiveEvery tool call, approval and delegation hop is one audit row: team, session, agent, tool, approver, time, and a hash of the input and the result. No patient record is ever in the audit store. The export is a CSV plus a manifest signed with the gateway's key. A control-by-control HIPAA customer guide tells your reviewer where each control lives.
One worked journey
A triage agent runs one patient session.
The security lead sets the policy once in the Operator Portal. The nurse approves in the Developer Portal. The agent's code does not change.
- 1
Register the tools
The security lead registers three tool servers:
ehr-read-only,lab-resultsandscheduling. Each one's address is checked before it is accepted. - 2
Set the policy per team
Clinical gets all three tool servers. Revenue cycle gets
ehr-read-onlyonly. Research gets none, so no research agent can call a patient tool. - 3
Mark the risky write
scheduling:book_appointmentneeds a person. Reads do not. The clinical team gets a monthly token budget and a limit on tool calls per session. - 4
A nurse opens the assistant
The clinical backend opens a session for the clinical team. The gateway loads that team's allowlist and limits. The nurse's identity is the first link in the chain.
- 5
The agent reads
It calls
get_patientandget_recentlabs. Both are allowed without a gate and within budget. Each call is one audit row with a hash of the result. - 6
The agent asks to book
It calls
book_appointmentfor 14:00 cardiology. The gateway holds the call. The nurse sees "Book 14:00 cardiology for patient 12345" and approves. - 7
The call resumes
The gateway runs the stored call once, in the same session. The appointment is booked. The audit row: team clinical, agent triage, approver nurse.kim, time, hash. Model: local.
- 8
The quarter ends
The compliance officer exports the clinical team's trail: a CSV and its signed manifest, every booking with its approver. The research team's export shows zero patient tool calls.
time,team,agent,tool,action,approver,hash 14:02:16,clinical,triage,book_appointment,approved,nurse.kim,9f2c… 14:02:17,clinical,triage,book_appointment,tool_call,—,1b7e…
{ "file": "audit-clinical-….csv",
"sha256": "e3b0…", "rows": 38200,
"tenant": "clinical",
"range": ["2026-01-01", "2026-03-31"],
"exported_by": "kim.sec", "alg": "EdDSA",
"signature": "MEUCIQ…" }
Security review
Three questions a hospital's reviewer will ask.
Short answers here. Long answers in the docs. Anything not live is marked.
Does patient data ever leave the network?
In local-model mode, no. The model runs inside the hospital and no provider key exists. Personal data is redacted before any model call. The audit store holds hashes, never a record or a prompt. If you ever configure a cloud model, that call leaves only through your egress proxy, to a host on your allowlist.
Can the agent book without the nurse?
No. The gate is gateway policy, not agent code, so the agent cannot change it. A tool marked as needing a person is held until a named person decides. An unanswered approval expires, the agent receives a refusal, and the stored call is never run. A team with no stored policy cannot call tools at all.
What do we hand the HIPAA auditor?
The hash-only audit trail, one row per action with the approver's name. The signed export your auditor can verify against the gateway's public key. A control-by-control HIPAA customer guide that says where each control lives and how to configure it. We hold no certification; the evidence is what your reviewer reads.
A team user can approve the gates of their own team's sessions in the Developer Portal. Nobody can approve another team's calls. Every approval, change and denial is an audit row.
See a risky action held, approved and recorded, on a live system.
Bring one scenario your security team has not been able to approve. We will run it through the gate in front of you, inside a network that lets nothing out.
Other buyers: a bank or an agency with data that cannot leave · a consultancy with several clients · an API platform with many customers