MunitasFeature tourAll walkthroughs

All walkthroughs / Health organisation

Health organisation · AI agents

Grant an AI agent permission to read a dataset

An AI agent that ranks radiology documents is given a new version of its code and run. The run waits until the custodian of the Radiology department grants it access, in the same way a person's request would wait, and a second run has to ask again.

9Steps
2People
about 7Minutes to read
Who is involved
Devi
Data engineer in the Health organisation
Okonjo
Data custodian for the Radiology department

How to read this page

Words used on this page

Organisation
A company or hospital group that uses Munitas. Each organisation sees only its own data.
Department
A team inside an organisation that owns some of its data, such as Cardiology.
Dataset
A named collection of records, such as a table of patient admissions.
Version
One sealed state of a dataset. Changing the contents means making a new version, never editing an old one.
Sealed
Finished and closed for good, so that it can never be edited.
Access level
How restricted a dataset is. Raw is the most restricted, and nobody may read it without permission. Published is the most open.
Custodian
A person who holds the data custodian role, which allows deciding who may read data. A custodian decides for the departments they are an approver for.
Request
A written ask to read one dataset for one stated purpose. The custodian of the department that owns the dataset decides it.
Purpose
The reason a person states for reading data. A lease covers that purpose only, unless the custodian chooses otherwise.
Lease
Permission, given by the custodian, to read one dataset for one stated purpose and for a limited time.
Agent
A program registered on Munitas, with a named owner, that Munitas runs on somebody’s behalf instead of a person reading data directly.
Container
An isolated environment, with no network access of its own, where Munitas runs an agent.
Run
One execution of an agent or a pipeline, started for a stated purpose.
Principal
Munitas’s word for whichever person or program is being checked.
Fingerprint
A value worked out from the exact contents of a file. It changes if even one byte changes, so it shows that a file was not altered.
Deploy
To make one version of an agent the one that runs when somebody starts a run. Only one version of an agent is active at a time.
PART ONE

A run waits until a custodian grants permission

An agent is a program registered on Munitas, with a named owner, that Munitas runs on somebody's behalf. Registering an agent gives it no right to read data. When it needs a Raw dataset, its run waits until the custodian of the department that owns the dataset decides.

1
Devi
Devi opens the radiology triage agent
Munitas console · Agents · /agents

radiology-intake-triage ranks radiology documents so that the most urgent ones reach a human reviewer first. It belongs to Radiology, so the custodian of Radiology decides what it may read, and no other department's custodian does.

Screenshot: Devi opens the radiology triage agent
The row reads radiology-intake-triage, the purpose Ranks radiology intake documents for human review, the department Radiology, and the newest version followed by sealed.
2
Devi
The agent's page shows its owner, its identity and its versions
Munitas console · Agent detail · /agents/<id>

An agent's code is kept as sealed versions, the same way a dataset is. When it runs, the agent acts under an identity of its own, shown here as its runtime identity.

Screenshot: The agent's page shows its owner, its identity and its versions
Owned by reads Radiology, Runtime identity (principal) shows a name ending in -runtime, and the agent has no versions yet: under Versions the page reads No versions.
3
Devi
Devi prepares a new version of the agent's code
Munitas console · Agent detail · the upload form

Devi chooses a zip of a small project. The model field says none, because the code calls no AI model, and the only tool it may use is read_dataset_version. The list of tools is a declaration. What limits the agent is that every read it makes is still checked against the same rules as a person's.

Screenshot: Devi prepares a new version of the agent's code
Project (.zip) shows triage-agent.zip, Model shows none, and Tools it may call shows read_dataset_version.
4
Devi
The new version is sealed
Munitas console · Agent detail · Versions

The version is identified by a fingerprint of its own code, which changes if any part of the code changes, and it is sealed on arrival. The platform runs it in a container, an isolated environment with no network access beyond its own requests for access.

Screenshot: The new version is sealed
The version, v1, is listed with Tools: read_dataset_version and a Deploy button.
5
Devi
Devi starts a run and is told that it must wait
Munitas console · Agent detail · Runs

After deploying the new version, Devi names a purpose for a run and chooses radiology-reports, a Raw dataset that Radiology owns. Munitas warns before the click, not after.

Screenshot: Devi starts a run and is told that it must wait
A notice reads deployed. The orange line reads This agent cannot read that dataset on its own (RAW). Starting will ask Okonjo, who looks after Radiology, to grant it access, in your name. The run waits until they decide, and the button reads Request access and start.
6
Devi
The run waits for permission
Munitas console · Agent detail · Runs

The run is recorded and goes nowhere until the custodian decides. That is not a failure. It is the same pause that a person's request would meet.

Screenshot: The run waits for permission
The top row carries the label waiting for data access and the line Waiting for a custodian to grant this agent access to the dataset. It starts on its own once they do.
7
Okonjo
Okonjo sees who asked and who will do the reading
Munitas console · Home · the custodian's home page

Okonjo is the custodian of the Radiology department. The request names both people involved: Devi asked, on behalf of the agent's own runtime identity, to read the Radiology dataset. Nothing from Cardiology appears in this list.

Screenshot: Okonjo sees who asked and who will do the reading
The card reads Devi asked for health-radiology-intake-triage-runtime to read radiology-reports v1 with Raw, says that the request was made automatically so the agent can run, and says Granting gives the runtime identity 4 hours, for this purpose only.
8
Devi
A second run has to ask again
Munitas console · Agent detail · Runs

Okonjo's grant covered one purpose and was not a standing credential. Devi starts a second run on the same dataset for another purpose, and it waits again. This is what Raw data always gets. Reviewed data, which is no longer Raw, can be granted more widely.

Screenshot: A second run has to ask again
A new row at the top reads waiting for data access and ends with second batch, separate from the first run below it.
9
Devi
Once Okonjo agrees, the runs finish
Munitas console · Agent detail · Runs

Okonjo grants the second request, which this page does not show as its own screen, and the waiting run resumes by itself. Under each green label is the text that the agent's code printed. The sample agent prints one fixed result.

Screenshot: Once Okonjo agrees, the runs finish
The top rows read succeeded, with 0 tool calls, and show the agent's printed result, contains an unusually urgent phrase, flagged for a human reviewer first.