Deployed Lab

Module 5 · Governance · Chapter 16 · Free

Control the tools: permissions, approvals and audit trails that hold up

17 min1 clickable picture1 hands-on lab1 predict, 2 quick quizzes, final quiz5-min video review
In 30 seconds

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.

Exam objective: Governance

Domain: Governance (16 percent of the exam). You should be able to:

The problem

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.

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?

The plan for this chapter
  1. Least privilege per agent, enforced in Atlas.
  2. Follow one booking call through permission, approval and audit.
  3. Count the write paths before and after, and the blast radius.
  4. Revocation and break-glass access.
  5. 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.

A book_appointment call passing permission check, approval check and audit write in Atlas Relay asks Atlas to book an appointment. Atlas checks the permission matrix, then checks whether a human approval is required and present, then writes the audit record, and only then calls the scheduling system. Relaybook_appointment Permissionin Relay set? Approvalhuman confirmed? Auditrecord written Schedulingbooking made Fail any gate: denied and loggedno silent fallbacks, no partial bookings
  1. The agent requests the call. Atlas, not the agent, owns the decision.
  2. Is book_appointment in Relay's set? Yes. For Chartwise the same call stops here.
  3. Bookings above the agreed threshold need a human confirmation on record before the call runs.
  4. Atlas writes who, which agent, which tool and which patient context before acting, so no action exists without a record.
  5. 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:

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

Field note, November 2026

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.

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".