Module 5 · Governance · Chapter 15 · Free
Govern the data: classification, retention and who may see what
- Classify data before you connect anything: public, internal, patient data, highly sensitive patient data.
- Give each agent the minimum it needs. Relay drafts from a patient summary, not the whole chart.
- Every class gets a retention rule and an owner, written in one register.
The picture: a hospital records room where every folder has a colour, a shelf life and a name on the sign-out sheet.
Domain: Governance (16 percent of the exam). You should be able to:
- Classify data before connecting systems, and let the class drive handling.
- Apply minimisation: the smallest payload that still does the job.
- Set retention per class, and de-identify data before it enters eval sets or logs.
- Grant access by role, and name the owner of each data item.
Northgate Health is a made-up regional health system: 9 hospitals, 40 clinics, about 1.9 million patients. Two weeks before Relay's pilot at 2 clinics, Priya, the chief information security officer, runs her pre-launch review.
- The eval export from Chapter 11, "Build the eval set: golden cases from real work, not guesses", still carries patient names.
- Atlas gateway logs keep full message bodies, with no deletion date set.
- Relay's drafting prompt receives the entire chart, not a summary.
Priya blocks the pilot. The 18,000 messages a month at those clinics stay manual at about 11 minutes a thread while the team fixes data handling. Nothing leaked. The cost is delay and trust: Elena, the sponsor, now wants a register she can read before she signs anything again.
- Four data classes, and what each one allows.
- Follow one message through five stops, class label in hand.
- Minimise a patient summary, field by field.
- Retention, de-identification and role-based access.
- The lab: build the data classification register, then break a bad setup.
Next: the four classes.
Step 1: Classify before you connect
Think of a kitchen. Some ingredients sit on the counter for anyone. Some live in a locked fridge with a sign-out sheet. You decide which is which before the cooking starts, not while a pan is burning.
Data classification is the same habit. Every data item gets a class before any agent touches it. The class then decides where it may flow, how long it stays, and who may see it.
| Class | Northgate examples | Default handling |
|---|---|---|
| Public | Clinic opening hours, directions, published policies | May flow anywhere, no retention limit |
| Internal | Staff rotas, queue counts, runbooks | Staff and agents only, reviewed yearly |
| Patient data | Portal messages, summaries, appointment details | Named systems only, logged, retained on a schedule |
| Highly sensitive patient data | Mental health notes, full lab history, identifiers | Narrowest access, masked or excluded by default |
One honest boundary. Northgate's compliance team owns the legal interpretation of healthcare regulation. Your job as architect is the design habits: classify, minimise, retain on a schedule, audit. This chapter teaches the habits and never states specific legal requirements as facts.
Next: one message, five stops.
Step 2: Follow one message through the system
Press Next to walk a portal message from the portal to the eval export.
- A message arrives and is labelled patient data at the door. No label, no travel.
- The class triggers minimisation: Relay receives the fields its drafting task needs.
- The gateway from Chapter 4 refuses flows the class does not allow.
- The log store records that a message moved, not what it said.
- Before data joins the golden set, names and identifiers come out.
The label does the work. Each stop reads the same class and applies its own rule, so nobody has to remember five separate policies.
Next: minimisation, field by field.
Step 3: Minimise: the summary, not the whole chart
Minimisation means the smallest payload that still does the job. Relay drafts replies to routine portal messages. For that, it needs context about the patient's current situation. It does not need their address, their billing balance or their full history.
Every extra field is a liability, not a feature. It can leak into a draft, land in a log, or sit in an eval export. It also costs tokens on every one of the pilot's 18,000 messages a month.
Worked example. Ruth lists the 14 fields the EHR can return for get_patient_summary (list made up for this course) and marks each one for Relay's drafting task:
| Field | Decision | Why |
|---|---|---|
| Active problem list | Keep | Drafts must match the patient's actual conditions |
| Current medications | Keep | Refill drafts, 55 percent routine traffic, need this |
| Allergies | Keep | A draft must never suggest something unsafe |
| Last visit summary | Keep | Gives the reply continuity with recent care |
| Upcoming appointment date | Keep | Scheduling drafts need the real date |
| Preferred language | Keep | The draft must be written in it |
| Full name | Mask | First name only: enough to greet, less to leak |
| Date of birth | Mask | Age band only: drafting rarely needs the exact date |
| Medical record number | Mask | Replaced by a token Atlas can resolve when needed |
| Home address | Drop | Drafting never uses it; in a log it is pure exposure |
| Insurance member ID | Drop | An identifier with no drafting purpose |
| Full lab history | Drop | Highly sensitive, and far beyond a routine reply |
| Mental health notes | Drop | Highly sensitive class; Relay has no task that needs them |
| Billing balance | Drop | Belongs to billing workflows, not nurse drafts |
Count: 6 kept, 3 masked, 5 dropped. The payload Relay sees falls from 14 fields to 9, and only 6 arrive in clear form.
Size check (made up): a full chart payload of about 8,000 tokens drops to about 900. At 18,000 pilot messages a month, that is roughly 128 million fewer tokens moving through prompts and logs.
Data you send is data that can be copied, logged and leaked. Just in case is how the full chart ended up in the drafting prompt in the cold open. If a real need appears, add the field through the register, with its class and owner.
Next: retention and who may see what.
Step 4: Retention, de-identification and roles
Retention answers one question: when does this stop existing? Each class gets a schedule, set with Northgate's compliance team, and deletion is automatic, not a spring clean someone remembers.
- Drafts and summaries live only as long as the thread they serve, then follow the record schedule compliance sets.
- Logs keep metadata: who, when, which tool. Message bodies are not stored at all, so there is nothing to retain.
- Eval exports are de-identified before they leave the clinical systems: names, record numbers and exact dates come out first, as Chapter 11 requires for the golden set of 400 threads.
Role-based access then decides who may see what remains. Nurses see threads in their pool. Tom's service desk sees queue metadata, not message bodies. The eval team sees only de-identified exports. Priya's team can audit everything, and that access is itself logged.
Ruth's rule: if a role cannot name the task that needs the data, the role does not get the data.
Next: the lab.
Hands-on lab: the data classification register
Part A: build it locally
Do this: write the register as a table your steering group can read. One row per data item: its class, where it may flow, how long it is retained, and its owner. Retention values below are illustrative placeholders: Northgate's compliance team sets the real ones.
DATA CLASSIFICATION REGISTER (Northgate, illustrative retention)
Data item Class May flow to Retention Owner
Portal messages Patient data Relay, nurse pool Per record Tom
Patient summary Patient data Relay via Atlas Thread life Marcus
Relay drafts Patient data Nurse review queue Thread life Tom
Gateway logs Internal Atlas, audit store 90 days Priya
Eval exports De-identified Eval team only Eval cycle Ruth
Mental health Highly sensitive Clinician only Per record Marcus
notes (never Relay)
What to notice: the eval export row changes class once de-identified. The register records that change, so the export's lighter handling is a decision, not an accident.
Break it: debug this data handling setup
A teammate wires Relay up quickly. Three things are wrong. Find them against your register before reading the reveal.
# Broken setup (illustrative)
prompt_payload = ehr.get_full_chart(patient_id) # whole chart
eval_export = threads.export(fields="all") # names included
atlas.log(body=True, retention=None) # bodies kept forever
Hint
Check each line against one register row: what Relay may receive, what an eval export may carry, and what logs may keep and for how long.
Reveal the fixes
- Full chart to the prompt: replace with the minimised summary from the worked example: 6 kept, 3 masked, 5 dropped.
- Eval exports carry names: de-identify before export, so the export matches its register row and Chapter 11's golden set rules.
- Logs keep bodies with no limit: log metadata only, with a retention value set, so deletion is automatic.
Part B: match the handling
Lab: Priya has blocked Relay's pilot and Elena wants a register she can read before she signs anything again. This lab runs in your browser and needs JavaScript enabled.
Next: mix-ups and the quiz.
Mix-ups to avoid
- "Minimised means anonymous." No. A masked summary is still patient data and keeps its class and rules.
- "Logs are harmless because nobody reads them." Logs are a copy of your data in a second system, often with weaker access control.
- "Retention means keeping things safely." Retention is a deletion schedule. Keeping data forever is the failure mode, not the safe option.
- "The architect decides the legal rules." Northgate's compliance team owns legal interpretation. You own the design habits that make their rules enforceable.
Teams shipping agents into regulated work tend to report the same pattern: the classification register feels like paperwork for one week, then becomes the document every review, incident and new feature checks first. 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: four data classes, minimisation field by field, retention and de-identification, and the classification register.
- Classes: public, internal, patient data, highly sensitive patient data. Classify before connecting.
- Minimisation: 14 EHR fields became 6 kept, 3 masked, 5 dropped for Relay.
- Retention: a schedule per class, deletion automatic, set with compliance.
- De-identification: before eval sets and exports, never after.
- Roles: access follows the task. If a role cannot name the task, it gets no data.
- Artifact: the data classification register, one row per data item.
Decision rule: no class, no connection. Data without a class, a retention and an owner does not flow.
Independent exam preparation. Not affiliated with or endorsed by Anthropic.
Review
Glossary
- Data classification
- Labelling data by sensitivity before use. Example: a portal message is patient data.
- Minimisation
- Sending the smallest payload that does the job. Example: a summary, not the whole chart.
- Masking
- Replacing a value with a weaker form. Example: a date of birth becomes an age band.
- De-identification
- Removing identifiers before data changes systems. Example: names out of eval exports.
- Retention
- How long data is kept before automatic deletion. Example: gateway logs at 90 days, illustrative.
- Role-based access
- Access granted by job role, not by person. Example: the eval team sees only de-identified data.
- Data classification register
- The one table of data items, classes, flows, retention and owners.
Next: "Control the tools: permissions, approvals and audit trails that hold up".