All notes

Note 03 · AI assistants · Nov 2026 · 4 min read

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.

A real answer from the second run, trimmed. Everything above the last line is correct.

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
Second run: one paragraph added to the instructions. Every new leak traced back to it.

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.

Two paths into the modelTwo paths reach the model. The search path: the policy documents pass through the permission filter, which keeps only the three documents a compliance user may read, then the search picks the best passages for the model. The instruction path: the assistant's instructions go to the model for every role with no filter. In run 2 the escalation contacts were added to the instructions, copied from the support FAQ, which compliance users may not read.SEARCH PATH · FILTEREDPolicy library10 documentsMY CALLPermission filterCompliance: 3 of 10SearchBest passages forthe questionModelwrites the answerINSTRUCTION PATH · NOT FILTEREDSENT WITH EVERY QUESTION, TO EVERY ROLEAssistant instructionsRun 2 added: who handles which escalation, copied from the support FAQThe leakcame this wayTwo paths into the modelTwo paths reach the model. The search path: the policy documents pass through the permission filter, which keeps only the three documents a compliance user may read, then the search picks the best passages for the model. The instruction path: the assistant's instructions go to the model for every role with no filter. In run 2 the escalation contacts were added to the instructions, copied from the support FAQ, which compliance users may not read.SEARCH PATH · FILTEREDPolicy library10 documentsMY CALLPermission filterCompliance: 3 of 10SearchBest passagesINSTRUCTIONSEVERY ROLEInstructionsRun 2 addedwho handleswhichescalation,copied fromthe supportFAQModelwrites the answerThe leak came down theunfiltered path
Two paths reach the model. Only one of them has a gate.

What I’d try first

Option A

Keep shared facts in the instructions, and check every line against the permission map before it goes in. Costs: a review step on every prompt edit, and it fails silently the day someone skips it.

Option B · my pick

No business content in the instructions at all. Routing lives in documents, tagged by role like everything else, so the filter governs it. Costs: routing answers now depend on search finding them.

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

GoalSignalMetric
No answer contains content the asker’s role can’t readPer-role leak tests pass on every prompt or document changeLeaks per 100 test questions, by role
GuardrailRight-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

In my work: Policy assistant: permission before retrieval. About Uday Dave · Explore the portfolio.