A junior sales rep pulling a quote together asks the company's assistant what a similar customer paid last time, hoping for a ballpark. The assistant answers with the exact figure: a discount a regional manager approved on a deal last quarter, written down precisely so two people could agree on a number nobody intended as a precedent. She never typed anything that should have reached that document. She asked a plain question, the retrieval system matched it to the closest thing in the index, and the closest thing happened to be a negotiation nobody junior was meant to read. Nothing about the system stops the same phrase, typed by anyone else in the building, from pulling the same answer back out. It was not careless on purpose. It never knew there was a difference between a question she was allowed to ask and an answer she was allowed to be given.
Why we build it this way
Most retrieval demos run with one account and one set of documents, so the question of who is asking never comes up. Access control, when it shows up at all, gets added afterward — a filter on the answer, applied once the system has already found the right document and already knows what it says. That is backwards. A system that has matched a question to a restricted document, and is only deciding at the last moment whether to repeat it out loud, has for every purpose that matters already seen it.
We think access has to be the first filter, not the last one. The question a person asks should never be allowed to touch a document their role does not cover — not matched against it, not scored against it, not held back only at the final step. An answer is only safe to give if the question itself was never pointed at anything unsafe for that person to see.
An answer is only as safe as the question that produced it. Checking afterward is already one step too late.
This is the same idea behind identity on VarahiOne, applied one level deeper. One record already describes who a person is and which role they carry into every app they use. Retrieval reads that same record rather than keeping a separate list of who may see what — a second record is one more place for the two to drift apart, and the rep in the story above is what that drift looks like once it happens.
How it works, roughly
Before anything is indexed, a corpus survey already establishes what documents exist and in what state. The same pass records what each one is restricted to — a contract line that only finance should quote, a service note that stays with the safety team — using the categories the business already has, not a new scheme invented for the assistant. At query time, a question is matched only against what the asker's role already covers.
- What documents exist, and the restriction already attached to each one, from the corpus survey
- The role the asker holds, read from the same identity record that signs them into every app on the stack
- The question itself, matched only against what that role already covers
When someone believes they are missing something they should have, that is a role change made by whoever administers access — the same person who sets a new hire's role on any other app — not an argument with the assistant. And when a document exists but sits outside what a person's role covers, the system says so plainly: a version exists, but this answer cannot show it to you. It does not quietly leave a gap and let the asker assume there was nothing to find.
A year in, nobody has to remember which price sheet is sensitive and which service note is not — the restriction travels with the document, never with a person's memory of it. Widening what the assistant can draw on for any one person is still a real decision, and it stays with whoever already decides who joins the stack and what they can see once they are in.
Read about AI Transformation →