The scenario
- Agent
health-aiwith toolslab_trends,care_plan_update,renew_meds,member_record. - The consequential action is
renew_meds. Chatting about lab results is routine and passes through uninspected by the renewal latch. - The baseline
latch-1(Regulated Product & Substance Authorization) governs prescription renewals in this deployment; thehealthcare-0domain pack adds HIPAA privacy handling at the text stages.
The policy in prose
An agent may renew a medication only when the medication identity, the member context, and renewal eligibility are verified. Controlled substances are never renewed by an agent. Ambiguity about prescriber authority routes to a clinician. Responses must never disclose another member’s PHI, and context sent to the model is minimized to what the task needs.
Crafted into a policy pack
The privacy half of that prose becomes thehealthcare-0 pack. Each checks[]
entry surfaces as a runtime verifier;
the verdicts[] mapping makes the latch’s behavior legible before it ever
fires:
The latch at runtime
latch-1 stays dormant until the agent attempts the exact action it governs:
1
Chatting about labs, dormant
checkOutput("your LDL improved to 142") matches no consequential action.
Verdict: ALLOW. The renewal latch never fires.2
Renewal requested, latch engages
authorizeAction("renew_meds", { medication: "atorvastatin" }) matches
latch-1. The PDP checks medication identity and prescriber authority.3
Verdict binds the action
- Eligible, non-controlled:
ALLOWplus a one-timepermitId - Missing prescriber authority:
ESCALATE(route to a clinician) - Controlled substance:
BLOCK
4
Permit gates the side effect
The renewal service refuses to run without the permit, so a blocked or
escalated renewal cannot leak through.
Authorize the renewal
Block a PHI disclosure
Thehealthcare-0 pack latches at the output stage, independent of any tool
call:
context_egress, the same pack returns WARN with a PHI-minimized
transformedContent; your runtime must use the rewritten version. See
Verdicts.
Every decision above lands in the evidence feed and can be sealed into a
signed verification record. See
Audit and evidence.
