Filter retrieval by each user’s document permissions to prevent inaccessible content from leaking into answers.
Enforce access before retrieval
Restrict candidates to documents the user may access. Removing a citation after generation does not keep content from the model.
Test role changes and caching
Update indexes and answer caches after role changes. Run access-regression checks with different accounts.