Module 5 · Governance · Chapter 16 · Free
Control the tools: permissions, approvals and audit trails that hold up
- Least privilege per agent: Relay and Chartwise get different tool sets through Atlas.
- Writes are rarer than reads, and the riskiest writes need a human approval first.
- Every call leaves an audit record that answers who, which agent, which tool, what changed.
The picture: a hospital key cabinet. Each role carries only its own keys, the medicine room key needs a second person, and every key taken is signed out.
Domain: Governance (16 percent of the exam). You should be able to:
- Apply least privilege per agent, with a read and write split per tool.
- Place human approval where a write carries real-world risk.
- Specify an audit record that can reconstruct any action later.
- Revoke access fast, and handle break-glass access with louder logging.
Northgate Health is a made-up regional health system: 9 hospitals, 40 clinics, about 1.9 million patients. During the Relay pilot at 2 clinics, Tom's service desk gets a complaint: a patient received two appointment confirmations for the same slot.
- Relay booked once. A test copy of Chartwise, given every tool during setup, booked again while drafting a visit summary.
- The audit log shows a booking happened. It does not show which agent made it, or under which patient's context.
Nobody was harmed, and a nurse fixed the booking in minutes. The damage is trust: Priya, the chief information security officer, pauses Chartwise and asks a simple question nobody can answer from the logs. Which agents can change what, right now?
- Least privilege per agent, enforced in Atlas.
- Follow one booking call through permission, approval and audit.
- Count the write paths before and after, and the blast radius.
- Revocation and break-glass access.
- The lab: build the tool permission matrix and an audit record.
Next: least privilege, per agent.
Step 1: Least privilege per agent
Think of a new starter at a clinic. They get keys to the rooms their job uses, not the master key, even if they seem trustworthy. If a key goes missing, you want the loss to be small.
Least privilege is that habit for agents. Each agent gets only the tools its own job needs, enforced in Atlas, the gateway from Chapter 4, "Design the MCP gateway: one front door for tools, auth and audit". Relay triages portal messages. Chartwise drafts visit-note summaries. Their jobs barely overlap, so their tool sets barely overlap either.
Reads and writes are not equal. A read can expose data, which Chapter 15 governs. A write changes the world: a booking exists, a draft is saved, a clinician is paged. So writes are rarer than reads in every set, and each write earns its place.
For the enforcement basics underneath this, hooks that block calls in code, see Foundations Chapter 6, workflow enforcement. This chapter assumes that machinery and decides the policy it enforces.
Next: one booking call, three gates.
Step 2: Follow a book_appointment call through Atlas
Press Next to walk a booking call from Relay to the scheduling system.
- The agent requests the call. Atlas, not the agent, owns the decision.
- Is book_appointment in Relay's set? Yes. For Chartwise the same call stops here.
- Bookings above the agreed threshold need a human confirmation on record before the call runs.
- Atlas writes who, which agent, which tool and which patient context before acting, so no action exists without a record.
- Pass all gates and the booking is made. Fail any gate and the call is denied, and the denial is logged too.
Notice the order. Audit is written before the action, not reconstructed after. That is what makes the trail hold up when Priya asks questions weeks later.
Next: approval as a control, and the write-path count.
Step 3: Approval is a control, not a courtesy
Relay never sends a message. A nurse reviews the draft and sends it. That rule from the case design is code, not a prompt, and it is the pattern for every risky write.
Approval works when three things hold. The approver sees what will change, in plain terms. The approval is recorded before the action runs. And approvals stay rare enough to read: if nurses confirm 200 bookings a day without looking, the control is theatre.
So Northgate sets a threshold. Routine bookings inside the patient's existing care plan proceed under the nurse's thread approval. Bookings above the threshold, such as a first appointment with a new service, need an explicit confirmation step. Marcus, who guards clinician clicks, accepted the design because the threshold keeps routine work fast.
Worked example. Count the write paths before and after least privilege. Tool lists are made up from the case design: Relay has 5 tools, Chartwise has 4, 9 distinct tools in total.
Before: during setup, both agents could call all 9 tools. Write-capable tools are draft_reply, book_appointment, escalate_to_clinician and save_note_draft: 4 tools, reachable by 2 agents, so 4 × 2 = 8 write paths.
After: Relay keeps 5 tools, of which 3 write: draft, book, escalate. Chartwise keeps 4 tools, of which 1 writes: save_note_draft. Total write paths: 3 + 1 = 4.
With approval: only 1 of those 4, book_appointment, changes a system of record directly, and it sits behind the approval gate. Ungated write paths that change real-world state: 0.
Blast radius: a bad prompt in Chartwise could once reach 8 write paths across both agents. Now it can reach exactly 1, saving a draft note a clinician must still edit. Same models, same prompts, a quarter of the risk.
The gates do not read the prompt's confidence. Approval is missing, so bookings are denied, and denials are logged, which is how Tom's team spots the pattern. Escalations are also rate limited in Atlas, a control from Chapter 4.
Next: revocation and break-glass.
Step 4: Revocation and break-glass
Permissions must be removable as fast as they were granted. When Priya paused Chartwise in the cold open, one change in Atlas should have done it: remove the agent's grants, and every call stops at the permission gate. If revoking an agent means editing prompts in three repos, you do not have revocation.
Emergencies still happen. Break-glass access lets a named clinician role bypass the normal matrix during a genuine incident, for a short window. Two rules keep it honest:
- It expires. The window closes on a timer, not when someone remembers.
- It logs louder. Every break-glass call is flagged in the audit trail and reviewed the next working day. Normal use is a line in a log; break-glass use is an agenda item.
Next: the lab.
Hands-on lab: the tool permission matrix
Part A: build it locally
Lab: During the Relay pilot, a test copy of Chartwise was given every tool during setup and booked a second appointment for a patient while drafting a visit summary. This lab runs in your browser and needs JavaScript enabled.
Next: mix-ups and the quiz.
Mix-ups to avoid
- "Approval is a courtesy ping to a human." No. It is a gate: no recorded approval, no action, enforced in Atlas.
- "One shared agent account is simpler." Shared identity destroys the audit trail. You can never answer which agent acted.
- "Reads are harmless, so grant them freely." Reads expose patient data. Chapter 15's minimisation applies to tool sets too.
- "Break-glass is just admin access." Break-glass expires and logs louder. Permanent admin access does neither.
Teams running agents in production tend to say the audit record earns its keep on the worst day, not the average one: the first incident review is where a complete who, agent, tool and change trail turns a week of archaeology into one query. Practitioner experience, not a measured statistic.
Chapter quiz
Five questions in the exam's style. Score 70% or more to finish.
Review this chapter in 5 minutes
Watch the whole chapter recapped: least privilege per agent, the approval gate, write paths cut from 8 to 4, and audit trails that hold up.
- Least privilege: Relay 5 tools, Chartwise 4, enforced in Atlas, not in prompts.
- Write paths: 8 before, 4 after, and 0 ungated writes that change real-world state.
- Approval: a gate with a threshold, recorded before the action runs.
- Audit: who, which agent, which tool, which patient context, what changed, written first.
- Revocation: one change in Atlas stops an agent. Break-glass expires and logs louder.
- Artifact: the tool permission matrix, one row per agent and tool.
Decision rule: if a tool is not in the agent's set, the answer is no, whatever the prompt says.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Least privilege
- Granting only what a job needs. Example: Chartwise cannot book appointments.
- Write path
- One route by which an agent can change a system. Example: Relay to book_appointment.
- Approval gate
- A check that blocks a write until a human approval is recorded. Example: bookings above a threshold.
- Audit trail
- The record of who did what through which tool. Example: one JSON record per call in Atlas.
- Blast radius
- How much damage one failure can reach. Example: 8 write paths before least privilege, 4 after.
- Revocation
- Removing an agent's grants so its calls stop. Example: pausing Chartwise in one Atlas change.
- Break-glass access
- Time-boxed emergency access that bypasses normal gates and logs louder. Example: clinician access during an outage.
- Tool permission matrix
- The table of agents, tools, read or write, approvals and audit fields.
Next: "Risk assessment: threat models and the model risk register".