Deployed Lab

Module 5 · Governance · Chapter 15 · Free

Govern the data: classification, retention and who may see what

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

The picture: a hospital records room where every folder has a colour, a shelf life and a name on the sign-out sheet.

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. Two weeks before Relay's pilot at 2 clinics, Priya, the chief information security officer, runs her pre-launch review.

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.

The plan for this chapter
  1. Four data classes, and what each one allows.
  2. Follow one message through five stops, class label in hand.
  3. Minimise a patient summary, field by field.
  4. Retention, de-identification and role-based access.
  5. 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.

ClassNorthgate examplesDefault handling
PublicClinic opening hours, directions, published policiesMay flow anywhere, no retention limit
InternalStaff rotas, queue counts, runbooksStaff and agents only, reviewed yearly
Patient dataPortal messages, summaries, appointment detailsNamed systems only, logged, retained on a schedule
Highly sensitive patient dataMental health notes, full lab history, identifiersNarrowest 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.

One portal message travelling through Relay, Atlas, the log store and the eval export A patient portal message passes to Relay, then through Atlas to the log store, and later to an eval export. Its class label, patient data, changes what happens at each stop: minimised at Relay, checked at Atlas, body dropped in logs, de-identified in the export. Portalmessage in Relaysummary only Atlasclass checked Log storeno body kept Eval exportnames removed Class label: patient datatravels with the message and rules every stop
  1. A message arrives and is labelled patient data at the door. No label, no travel.
  2. The class triggers minimisation: Relay receives the fields its drafting task needs.
  3. The gateway from Chapter 4 refuses flows the class does not allow.
  4. The log store records that a message moved, not what it said.
  5. 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:

FieldDecisionWhy
Active problem listKeepDrafts must match the patient's actual conditions
Current medicationsKeepRefill drafts, 55 percent routine traffic, need this
AllergiesKeepA draft must never suggest something unsafe
Last visit summaryKeepGives the reply continuity with recent care
Upcoming appointment dateKeepScheduling drafts need the real date
Preferred languageKeepThe draft must be written in it
Full nameMaskFirst name only: enough to greet, less to leak
Date of birthMaskAge band only: drafting rarely needs the exact date
Medical record numberMaskReplaced by a token Atlas can resolve when needed
Home addressDropDrafting never uses it; in a log it is pure exposure
Insurance member IDDropAn identifier with no drafting purpose
Full lab historyDropHighly sensitive, and far beyond a routine reply
Mental health notesDropHighly sensitive class; Relay has no task that needs them
Billing balanceDropBelongs 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.

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

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

Field note, November 2026

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.

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