Skip to main content
A member-facing health agent answers questions about labs and care plans, and can renew medications. Two things must never happen: a renewal of a controlled substance without a clinician, and another member’s PHI appearing in a response. This cookbook shows both as latched policies. The mechanisms here are the standard ones: latching, verdicts, and permits. Only the domain content is healthcare-specific.

The scenario

  • Agent health-ai with tools lab_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; the healthcare-0 domain 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 the healthcare-0 pack. Each checks[] entry surfaces as a runtime verifier; the verdicts[] mapping makes the latch’s behavior legible before it ever fires:
Attach it, together with the escalation pack, on top of the always-on baseline:

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: ALLOW plus a one-time permitId
  • 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

The healthcare-0 pack latches at the output stage, independent of any tool call:
At 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.