The prompt is a document too
Filtering by role guards the search. Anything written into the assistant’s instructions reaches every role, filter or no filter.
- Who
- Someone in compliance asking the company’s policy assistant a question. Their role can read three of the ten policy documents.
- Trying to do
- Find out which roles in the UAE are regulated, and what they have to complete.
- Where it breaks
- The answer is right, then its last line hands them routing that only exists in a document their role can’t read.
- Why the business cares
- A permission leak. Harmless this time; the same path would carry anything put on it.
What I saw
I built my policy assistant two ways and tested both on 40 questions from five roles. In the first run, the version I chose leaked nothing. Then, to fix a routing mistake, I added one paragraph to the assistant’s instructions: who handles which kind of escalation. I copied it from the support FAQ.
ComplianceWhich roles in the UAE are regulated, and what must they complete?
The regulated roles in the UAE are Compliance Analyst, Payments Ops Executive and Finance Analyst. Each must complete CODE-101, DP-110, IS-120, AML-300, GC-330, COMP-410 and an annual refresher assigned by Compliance.
Sources: Compliance Role Matrix v3.0 · Mandatory Training Policy v3.4
For regulated-role disputes or compliance exceptions, escalate to the Compliance Owner.
LeakedThat routing is in the support FAQ, and nowhere else. Compliance can’t read the FAQ, and this version never searched it.
Answers that showed someone text their role can’t read, out of 40
- Filter first · run 10
- Filter first · run 21
- Redact after · run 11
- Redact after · run 25
Why the filter missed it
The filter sits on the search. It decides which passages the model may read for this person. The instructions never go through search: they’re sent with every question, to every role. So the paragraph I added was, in effect, a document every role could read.
What I’d try first
B. One gate is easier to trust than a gate plus a habit. The instructions keep only how to answer: cite, admit what’s missing, never act. What the assistant knows comes through the filter, every time.
How I’d know it worked
| Goal | Signal | Metric |
|---|---|---|
| No answer contains content the asker’s role can’t read | Per-role leak tests pass on every prompt or document change | Leaks per 100 test questions, by role |
| Guardrail | Right-behaviour score doesn’t drop once routing moves out of the instructions. | |
What I’m not sure about
- Where a fact stops being restricted. The automated judge also flagged “TOM” spelled out as Training Operations Manager. I don’t count that as a leak; the full escalation map, I do.
- Forty questions is small. One leak in 40 is a finding, not a rate.
Keep reading
- Should I ship? — AI UX
- “Why do you need all this?” — Fintech UX
In my work: Policy assistant: permission before retrieval. About Uday Dave · Explore the portfolio.