Clinical referrals
A referral agent that can use an outside coding service without sending patient identity with the task.
One namespace policy protects every model-facing read while authorized local work stays identified.
CI assertedA referral desk needs outside coding or model judgment, but privacy logic duplicated across every tool will eventually miss an identifier.
One namespace policy pseudonymizes every model-facing read into typed placeholders. The authorized clinic view remains identified and the final letter is rehydrated inside the trusted process.
The job, the gate, and the learning path.
The plan is content-addressed. Each run becomes a journal. The person is an explicit node—not an optimistic note in the system prompt.
Production history changes the next run—after review.
A clinician’s signed correction becomes the clinic’s own triage rule, allowing the next matching referral to move correctly without waking someone again.
Assertions, not a happy-path demo.
The repository runs the keyless floor on every release. The exact fixtures and expected outcomes are committed beside the agent.
- 01
The wire log is checked against every identifier in every fixture.
- 02
Zero patient identifiers leave the process in the keyless test.
- 03
A signed correction becomes a rule used by the next referral.
What you will learn by rebuilding it.
- How egress policies cover recall, CAL, trigger context, and run journals together.
- How typed placeholders support deterministic rehydration inside an authorized boundary.
- How domain corrections become governed protocol instead of prompt folklore.
no API key required$ git clone https://github.com/AreevAI/areev
$ cd areev/examples/agents/clinical-referrals
$ python/smoke.sh
$ python/improve.sh