What you'll learn: how to run the seven-step design drill on an internal knowledge assistant: why permissions must be enforced inside retrieval, how leaks happen even when the answer is safe, and how a scored answer looks.
At a glance
Figure 1. The drill: seven outputs in 30 minutes
How to read this: the same four timed boxes as the blank-page defense.
- The search must filter by the asking user's permissions before any text reaches the model.
- Titles, citations and "no access" messages can leak that a document exists.
- Permission changes must reach the index.
- Evaluation needs negative tests: questions that must return nothing.
Scenario
Composite scenario, not a real company. Marlow Engineering Group has about 2,000 employees and 30,000 documents in a wiki, shared drives and a ticket system, with permissions by group. HR, finance and legal spaces are restricted. Staff hunt for procedures or ask colleagues.
Leadership wants an assistant that answers questions in plain words and cites the documents. Each person must see answers built only from documents they could open themselves. About 20,000 questions a month are expected (illustrative).
What you will be able to do
- Run the seven-step drill on an access-controlled retrieval brief.
- Place the permission check where it cannot be bypassed.
- Write negative tests for access.
Prerequisites
- The blank-page design defense, for the timed flow and the rubric.
- RAG access control, identity and tenant isolation and the catalog: answer (retrieval), act (AI gateway).
Core ideas
The seven-step checklist for a knowledge assistant
| Step | What is hard here | Usually fits |
|---|---|---|
| 1. Frame | "Find answers faster" has no baseline; some questions need a person | Measure search time today; define a refusal |
| 2. Requirements | Group-based permissions in several source systems; HR, finance and legal spaces | Identity from single sign-on (SSO); per-document access lists |
| 3. Patterns | Answers must be grounded and permitted | Retrieval with citations; hybrid retrieval; AI gateway |
| 4. Architecture | A prompt that says "do not reveal" is not a control | Filter in the search query, from the user's groups |
| 5. Evaluation | Quality and leaks are different tests | Question set plus negative access tests |
| 6. Threats | Stale permissions; cached answers; injection in a document; leaking existence | Per-user cache keys; refusal wording that reveals nothing |
| 7. MVP (smallest first release) | One low-risk space first | A department wiki, read-only, a small pilot |
At the customer: "Can it show me something I should not see?" Good: permissions are applied in the search itself, negative-test results are shown, and the delay for a revoked right is stated.
Worked example
Attempt the drill first, then open the answer.
Open after your attempt: the model answer and its score
Frame. Outcome: time to find a procedure (collect the baseline) and the share of answers staff rate useful. Out of scope: HR, finance, legal content. Question: how fast must a removed permission take effect.
Requirements. Users: all staff, SSO identity. Data: wiki and shared drives, each document with an access list. Constraint: no document, title or snippet is shown to someone who cannot open it.
Patterns. Retrieval with citations over a keyword and vector index, access lists stored with each chunk, and a model gateway. Discarded: a shared index filtered by prompt after retrieval (a leak waiting for a bug) and one index per user (cost and sync grow with staff).