All Questions
Ai Coding And Product Systems hard

A workspace AI does RAG over user pages. ACLs are copied into the vector index as metadata at ingest time and re-synced nightly. A user removed from a confidential page can still get answers that quote it 10 minutes later. What fix closes the leak without rebuilding the index on every permission change?

  1. A Pass the user's group memberships into the system prompt and instruct the model to refuse to quote any document the user cannot access.
  2. B Re-embed the revoked page immediately so its vectors drift away from that user's likely queries in the embedding space.
  3. C Move the ACL sync from nightly to hourly and document up to one hour of exposure as an accepted eventual-consistency window.
  4. D Check every retrieved chunk against the live authorization service at query time, using index ACLs only as a recall prefilter.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions