﻿# RAG permission changes: authorization sync is separate from reindexing

A revoked document can remain indexed. Trace source permission synchronization, authorization-cache consistency and the point where evidence enters model context.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/enterprise-ai-rag-permission-sync-index-revision/
Language: en

## Follow a permission removal through separate systems

A company removes a contractor's access to a project document, while an assistant's vector index still contains its chunks. Rebuilding embeddings is unnecessary to understand the immediate risk: the indexed content and the authorization state have separate update paths. The practical question is when a retrieved candidate becomes eligible to enter model context after the source permission changes. A recent indexing timestamp cannot answer that question alone.

## Identify the authority behind each document identifier

The [OpenFGA RAG authorization guide](https://openfga.dev/docs/modeling/agents/rag-authorization) distinguishes first-party permission writes from third-party synchronization. External sources require both content and permission synchronization. Preserve a stable mapping from chunk to source document and from authenticated caller to authorization identity. If the mapping is missing or ambiguous, a vector hit cannot establish access. Permission checks applied after generation cannot prevent the model from having already consumed unauthorized source text.

## Observe authorization synchronization before cache behavior

Record when the source revocation was accepted, when the corresponding authorization relationship changed and when the application evaluated access. Those are different events even if a dashboard combines them into one sync status. If an external connector has not delivered the removal, a fresh authorization query can still observe an obsolete relationship. Define how sensitive requests behave while that synchronization state is unknown. Do not claim that bypassing an authorization cache repairs missing upstream updates.

## Choose consistency for the actual permission check

OpenFGA's [consistency documentation](https://openfga.dev/docs/interacting/consistency) distinguishes MINIMIZE_LATENCY, which may serve from cache, from HIGHER_CONSISTENCY, which skips the cache and queries the database. Select and record the relevant mode in the application's permission path. This controls an OpenFGA query boundary; it does not synchronize a separate vector store or external content source. Keep the authorization-model identity and relation used for the check with the operation record.

## Test the source-to-context transition

Prepare an authorized fixture containing a distinctive harmless phrase. Confirm that the intended caller can retrieve it, remove access in the source system, and observe the permission synchronization event. Then inspect candidate identifiers, authorization outcomes and the final context admitted to the model. Exercise both a deliberately delayed permission update and a current permission store with a cached earlier decision. Acceptance should identify the enforcement point and declared transition window for each case. No revocation timing or end-to-end experiment was measured here.

## Report what remains indexed separately from what is usable

The document may remain in the vector index for another authorized user without being eligible for the contractor's request. [Tenant routing in Milvus](/journal/milvus-partition-key-tenant-query-boundary/) distinguishes search placement from permission. [In-flight scope revocation](/journal/frontier-swarm-permission-revocation-inflight/) addresses already dispatched work, another separate boundary. The useful result here is a trace from source permission change to the evidence admitted for this caller. It does not promise deletion of indexed content, retroactive removal from past answers or instantaneous consistency across systems.
