Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Consistent authorization across RAG and derived data
- Authorization determines whether data can enter calculations, and relevance only determines the order of authorized data. All summaries, caches, and citations derived from the text must be subject to the current permissions.
How does the mechanism work?
Step-by-step explanation
- A user has just been removed from a department group. How to deal with the cache of old answers?
Revocation can make previously authorized derivatives unreadable under current permissions.
- Why is it not enough to hand over unauthorized content to the model and then hide the output?
Trace backward from the final answer to the actual boundary where data enters computation.
- Should block permissions be maintained independently or should document permissions be inherited?
Apply authorization rules to chunking and context expansion.
Design · Explain the trade-offs
Explain design trade-offs · Consistent authorization across RAG and derived data
Objectives of this level: Define propagation, outage and publication boundaries without overstating the local simulation.
Visual guide · Authorize before releasing bodies
All body access paths need current checks, including direct IDs, citations, expansion and caches. Hiding a final answer cannot undo unauthorized model input. Select the figure to open it at full size.
Fixed changed constraints
Use these inputs instead of an unconstrained “enterprise RAG” drawing:
{
"session": "session-fin",
"current_auth_version": 8,
"current_groups": [],
"cache_auth_version": 7,
"cache_ttl_remaining_seconds": 600,
"index_acl_version": 5,
"document_acl_version": 6,
"requests": [
"retrieve",
"context",
"by_id",
"citation",
"cache"
],
"constraints": {
"authorization_service": "unavailable",
"already_sent_reranker_text": true,
"public_summary_approval": "not_implemented"
}
}
The source document is d-fin, tenant-a, finance-only; it has source_version 1/acl_version 6. Its cached summary depends on source_version 1/acl_version 5. All five sensitive requests must deny while current authority cannot be obtained. Ten minutes of remaining TTL does not turn old authorization into current authorization. An old index or derivative must be invalidated until its versions and current access are established.
Deliver a concrete decision record
In rag-acl-design.md, identify trusted identity lookup, current authorization authority, the body-release point for each entry, derived source/ACL dependencies and cache user/auth/policy generation. Define what is checked at ingestion, retrieval, context extension, direct ID, citation and cache; say how errors avoid logging private bodies. Compare a shared index with server-side filtering to tenant-separated indexes, including where identity/version checks remain necessary. Do not invent a latency or recall benchmark from this fixture.
Change constraint one: permission propagation to the index is delayed. Specify invalidation or denial until current metadata is consistent, rather than relying on answer hiding. Change constraint two: finance wants a public summary. It needs a separate approved publication/audience artifact; shorter text does not inherit public permission. That workflow is not implemented here. State who may authorize it and how a subsequent source change affects its validation.
Draw the race and state unimplemented work
If permission changes after your check but before a third-party send, a pure function cannot impose cross-service ordering. Define a sending gate and documented revocation commit/dispatch boundary; a stronger promise needs coordination. Already-sent reranker text cannot be recalled by returning empty items now. Backup/log cleanup and provider-side handling remain separate work.
The standalone exercise at rag_acl_lab.py only tests serve(state, session_id, request) over ranked metadata and local records. Real authentication, vector filtering modes, reranker/model calls, permission synchronization and publication workflow require additional implementation and validation. The capstone is not being described as already having these components.
code example
Physical tenant separation still has application checks
Selecting another tenant’s index using a model-supplied tenant field remains wrong even if indexes are physically separate. Trusted identity chooses the scope; direct reads, references and cached derivatives keep their current checks.
Acceptance task for this level
Deliver a decision record and five-entry acceptance traces for authorization outage, delayed index ACL propagation and proposed public-summary publication.
Reading this browser’s record…
Hide the answer and check your understanding
Can removing finance numbers automatically make the saved summary public?
Expand reference derivation
No. Other content can reveal private facts and no publication authorization follows from shortening. A separately approved output and audience policy is required; it is absent from this exercise.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.