Skip to content
CoRISE

RAG Evaluation Beyond Answers: Retrieval, Permissions, Freshness and Abstention

Evaluate retrieval, authorization, temporal validity, generation and abstention as separate contracts, from fixtures and revocation to release gates.

T. AsanoPublished Updated 33 min read
  • AI
  • Evaluation
  • Data
  • Identity
Open table of contents

Conclusion — Evaluate good answers and permission to answer separately

RAG (Retrieval-Augmented Generation) evaluation often starts with correctness, relevance to the question and faithfulness to retrieved evidence. All three matter, but enterprise use requires more.

The answer was correct. However, it was generated from a document the user was not allowed to read.

Correctness alone records a success. The system has suffered a serious failure.

The answer was faithful to its source. However, a question about the current policy was answered using a version that expired six months ago.

Faithfulness does not establish business correctness either. Measure both whether the answer was good and whether the system was entitled to use that evidence and return it to that user.

This article treats retrieval, authorization, freshness and temporal validity, generation, and abstention as five separate contracts. Example fixtures and release criteria show how to check each contract and define acceptance conditions for the intended use.

Five evaluation contracts, not a simple execution sequence

“Question → retrieval → context → LLM → answer” omits the principal and the relevant time. Who is asking, with which tenant and permissions, and about which period changes both the search space and answerability.

DimensionContractFailure hidden by answer-only evaluation
RetrievalObtain the necessary evidenceOmit the paragraph defining applicability
AuthorizationUse only evidence permitted for the principalSend another tenant’s content to a reranker or log
Freshness and validityUse information effective at the requested timeCite a superseded policy for a current question
GenerationAnswer appropriately from supported claimsGive the right amount but omit eligibility conditions
AbstentionWithhold a definitive answer without adequate evidenceFill an evidence gap with a model’s guess

These are evaluation dimensions, not an instruction to retrieve first and authorize later. Authorization and temporal conditions constrain retrieval and may require further checks before generation or response delivery.

Scroll horizontally to view the full diagram.

Five evaluation contracts and answerability Authorization and temporal validity constrain retrieval. Sufficient evidence permits generation; otherwise abstain. Recheck authorization where needed.
Fig. 01 — Five evaluation contracts and answerability
Read the diagram as text

Authorization and temporal validity constrain retrieval. Sufficient evidence permits generation; otherwise abstain. Recheck authorization where needed.

1. Retrieval — Did we obtain the necessary evidence?

Poor answers invite prompt or model tuning. But if the required document or passage is missing, the generator cannot recover an answer grounded in that evidence on its own. A correct guess from model memory is a different outcome from verifiable RAG success.

Use Precision@k, Recall@k, MRR and nDCG where appropriate. First fix the evaluation unit: document, document version, chunk or claim. Comparisons become misleading when splitting the same document into smaller chunks changes the score.

MetricWhat it measuresInterpretation
Precision@kRelevant results among the top kDefine the denominator when fewer than k results are returned
Recall@kRequired relevant results retrievedDepends on the completeness of the reference set and the capacity of k
MRRRank of the first relevant resultOne result is insufficient for questions requiring several pieces of evidence
nDCG@kRanking quality with graded relevanceDefine relevance grades and the ideal ranking
Ragas Context PrecisionPlacement of relevant chunks, depending on the variantRanking-sensitive variants and ID-based precision have different definitions
Ragas Context RecallCoverage of required informationLLM-based variants assess reference-answer claims supported by retrieved contexts

Document-ID recall and claim-level recall are not interchangeable. Record the Ragas version, metric class, evaluation model and reference inputs. [1][2]

For a question about overseas hotel expense limits, an old policy, another department’s policy and an FAQ may all be semantically similar. Chunking can also separate the amount from its conditions. Retrieving the document does not necessarily retrieve sufficient evidence.

Inspect candidate generation, permission and time constraints, keyword/vector result fusion, reranking and final evidence selection separately. Hybrid retrieval is one candidate-generation approach; it is not necessarily a separate downstream stage. RAGChecker likewise proposes diagnostic evaluation that separates retrieval and generation. [4]

2. Authorization — Was the system allowed to use that evidence?

Semantic similarity and permission to read are different properties. Enforce authorization using an authenticated principal, tenant, groups, document access control lists (ACLs) and applicable policy. User-supplied search parameters are not a trusted source of tenant or group membership.

A design that retrieves 20 documents, checks ACLs in the application and passes five to the LLM needs careful inspection. If unfiltered content reaches an external reranker, shared cache, ordinary trace log or conversation history, a safe final answer does not undo the disclosure.

However, handling candidates inside a trusted search service differs from exposing them to downstream components operating under a user’s permissions. A search service authorized to process the corpus can filter candidates within its boundary and return only permitted results. Define who may process each piece of content; the labels “prefilter” and “postfilter” alone do not determine safety.

Scroll horizontally to view the full diagram.

The trusted search boundary A trusted search service handles candidates internally and enforces policy before exposing permitted evidence downstream. Reauthorize expansion and protect logs and conversation reuse.
Fig. 02 — The trusted search boundary
Read the diagram as text

A trusted search service handles candidates internally and enforces policy before exposing permitted evidence downstream. Reauthorize expansion and protect logs and conversation reuse.

Azure AI Search distinguishes query-time enforcement from synchronized permission metadata. The reviewed documentation separates string-based security filters from preview ACL/RBAC, Purview and SharePoint capabilities. Preview features lack SLA coverage and are not recommended for production workloads. Pin the selected API and synchronization mechanism rather than assuming equivalent operational guarantees. A query-time check against a stale ACL does not immediately enforce a source change. [5]

In multistage retrieval, authorization of the first result is insufficient. Authorize newly acquired evidence at graph expansion and additional retrieval steps. The 2026 Retrieval Pivot Attacks arXiv preprint examines cross-tenant exposure at the vector-to-graph boundary. Its experiments are not a general security guarantee, but they illustrate why transitions between components need evaluation. [6]

Combine exposure auditing with noninterference

Unauthorized exposure counts help locate violations. Inspect bodies, titles, snippets, citation URLs and counts at generation, caching, logging, conversation state and other destinations. Enumerating destinations alone can miss unknown channels and indirect effects.

Apply the noninterference idea of Goguen and Meseguer to RAG observations. [10] The design goal is that changing documents a principal cannot access, while holding permitted information fixed, does not change what that principal can observe. Explicitly authorized aggregates or other permitted disclosures belong in the allowed information definition.

Write C≡pC′C \equiv_p C' when corpora have the same content and metadata available to principal pp, and let OpO_p denote that principal’s observations. Holding the query, current policy, time, model and initial state fixed, a probabilistic target is:

C≡pC′⟹L(Op(q,C))=L(Op(q,C′))C \equiv_p C' \quad\Longrightarrow\quad \mathcal{L}(O_p(q,C)) = \mathcal{L}(O_p(q,C'))

L\mathcal{L} denotes the distribution of results. This adapts noninterference to this RAG design; it is not a requirement that two single LLM calls produce identical prose. Define the observations: answers, citations, abstention, counts, errors, response-start latency and streaming behavior. Log readers and external evaluators have their own permission-relative observation boundaries.

Scroll horizontally to view the full diagram.

Change forbidden documents and compare observations Hold the principal, query, permitted content and metadata, policy, time, model and initial state fixed. Repeat RAG runs on corpora differing only in forbidden documents. Compare answers, citations, abstention, counts, errors and latency distributions; inspect controlled destinations for canary exposure. Failing to detect a difference in finite evaluation does not prove noninterference.
Fig. 03 — Change forbidden documents and compare observations
Read the diagram as text

Hold the principal, query, permitted content and metadata, policy, time, model and initial state fixed. Repeat RAG runs on corpora differing only in forbidden documents. Compare answers, citations, abstention, counts, errors and latency distributions; inspect controlled destinations for canary exposure. Failing to detect a difference in finite evaluation does not prove noninterference.

Use metamorphic evaluation: transform inputs and check whether the expected relationship holds across executions.

StageControlled changeEvaluation
Paired corporaFix permitted evidence and policy; add, remove or modify only forbidden documentsChanges to permitted evidence ranking, citations or answer actions
Stochastic generationPin model/settings and repeat runs for each corpusAnswer/action distributions and predefined semantic comparisons
Timing exposureMatch workload, randomize run order and separate warm/cold cachesWhether latency or response size distinguishes forbidden-document presence
Canary searchPlace recognizable strings in isolated synthetic documentsExposure in answers, citations, logs, caches and other destinations

Deterministic paths can be compared exactly, but temperature zero or a fixed seed does not always make an LLM deterministic. Specify sample sizes, comparisons, equivalence margins, confidence intervals and multiple-comparison handling in advance. Failure to find a significant difference does not prove equivalence or noninterference. An equivalence test with a tolerance is also distinct from exact equality of distributions.

Canary absence is not proof either: paraphrases, encoded disclosure and unobserved destinations remain possible. Use synthetic data and controlled destinations, not production secrets.

Include retrieval statistics, chunks and graph transitions

A forbidden document need not appear verbatim to influence output. Corpus-wide BM25 IDF, score normalization, shared approximate-nearest-neighbor indexes, caches and resource contention can affect ranking or timing. Include these in the evaluation and check whether and how they affect the specific retrieval configuration.

Tenant isolation is one option, but principals within a tenant may have different ACLs. Compare partitioning indexes/statistics by the required confidentiality boundary, computing over authorized views, or using fixed statistics approved for disclosure. Timing analysis must cover candidate generation and shared resources as well as downstream filtering.

Propagate document ACLs and sensitivity labels to every retrievable chunk. Azure AI Search’s Purview guidance specifically states that child chunks are not filtered correctly without label projection. This is a preview feature with separate production-use conditions. [13]

Retrieval Pivot Attacks defines Leakage@k as the count, not proportion, of unauthorized items in the final context. Pivot Depth measures the shortest distance from a retrieval seed to the first unauthorized node in leaking cases. They inform destination-specific exposure counts and depth-stratified evaluation. Its PD=2 result comes from a chunk → entity → chunk bipartite graph; it does not establish that testing depth two covers arbitrary graphs. Include deeper paths and other connection structures. [6]

The paper demonstrates leakage across component boundaries, not a general theorem that noninterference cannot compose. Composing guarantees requires compatible policies, observers, state-sharing assumptions and interfaces. Inspect expansion, merging and reuse in addition to the initial retrieval step.

Evaluate alternative evidence sets by sufficiency

Keep ordinary Recall@k as a diagnostic for coverage of a fixed relevance set. When different evidence combinations can substitute for one another, recall against their union does not measure answerability.

Let S(p,q,t,s)\mathcal{S}(p,q,t,s) be the family of minimal sufficient evidence sets for principal pp, query qq, target time tt, knowledge snapshot ss and current authorization. Each set contains only permitted, applicable and mutually compatible evidence. A current policy alone may suffice, while an approved FAQ plus an applicability document may be an alternative.

Sufficiency@k=1 ⁣[∃S∈S(p,q,t,s):S⊆Rk]\mathrm{Sufficiency@k} = \mathbf{1}\!\left[\exists S \in \mathcal{S}(p,q,t,s): S \subseteq R_k\right]

RkR_k is the top-k evidence returned downstream. Score one if it contains any complete sufficient combination, otherwise zero. Report the mean over answerable cases. Retrieving every alternative is unnecessary.

Represent unanswerability as an empty family, not a family containing the empty set, and evaluate abstention for those cases. Align document/version/chunk units and report whether k and the token budget permit at least one sufficient combination. Use claim-level coverage or similar diagnostics to explain partial evidence failures.

Sufficiency of one does not excuse prohibited evidence or unresolved contradictions elsewhere in the context. Evaluate sufficiency, authorization, conflict handling and generation separately.

Revocation extends beyond the index

A permission revoked today may remain in indexed ACLs, group data, tokens, caches, conversation histories and pending generation requests.

Evaluate new requests after revocation, long-running requests begun earlier, streaming responses and follow-up questions reusing old conversation state. A cache key partitioned by user does not handle changes to that user’s permissions. Associate cached evidence with policy versions or authorization generations and invalidate or reauthorize it on use.

Strong revocation requirements may call for checks before generation and delivery, as well as cancellation of in-flight work. Content already streamed to a user cannot be recalled.

A propagation target does not automatically authorize disclosure during the delay. Define whether to withhold answers while permissions cannot be established. An authorization outage or failed synchronization must not silently disable filtering.

Specify revocation ordering as well as propagation time

A low revocation p99 does not prevent leakage caused by reordered ACL and content updates. Zanzibar’s new enemy problem includes serving content added after revocation under an earlier ACL. [11]

The paper uses external consistency and snapshot reads to respect causal order between ACL and content changes. An opaque consistency token, a zookie, is stored atomically with a content version in application storage; subsequent authorization must use a snapshot at least as fresh as its bound. Adding an application timestamp or index generation alone does not reproduce that guarantee.

Consistency requirementProposed contract
Content/authorization causal orderDo not expose content committed after revocation using pre-revocation permission
Monotonic decisionsA path that observed a newer permission generation must not fall back to an older grant through caches or replica changes
New requests after completed revocationDefine completion and the authorization decision point; where required, reject stale grants for requests begun after completion
In-flight and streamed responsesCoordinate revocation with emission and separately define when further delivery must stop

A freshness lower bound attached to content does not automatically cover revocations later than that content. Strong revocation needs a path that incorporates the latest required revocation and, where necessary, coordination between authorization and delivery. A check immediately before sending can still leave a check/send race. Previously delivered data cannot be recalled.

Construct revoke → content commit → read, content commit → revoke → read, and concurrent histories. Add delayed, missing, duplicated and reordered ACL events, stale caches, group removal and ongoing streams. Record commit order, content version, authorization revision and emission time; detect ordering violations independently of eventual convergence.

Azure’s SharePoint integration does not automatically refresh inherited parent-scope permission changes through ordinary subsequent indexer runs. Site, library or folder changes require explicit permission refresh or another documented resynchronization route. Item-specific unique permissions have different behavior. This is a concrete reason to pin the preview API and synchronization mode in an evaluation. [12]

3. Freshness — Was the evidence valid for the requested time?

Using RAG does not guarantee current information. Acquisition, parsing, chunking, embedding, indexing and caching can each retain stale content after a source update.

Selecting the newest updated_at is insufficient. Revision dates, effective dates and ingestion times differ. A future policy may be published early; an old version may receive a typographical correction.

Scroll horizontally to view the full diagram.

Question time and current permissions v1 applies from April 2024 for one year, v2 from April 2025 for one year, and v3 from April 2026 onward. Select the version for the requested time while enforcing current permissions.
Fig. 04 — Question time and current permissions
Read the diagram as text

v1 applies from April 2024 for one year, v2 from April 2025 for one year, and v3 from April 2026 onward. Select the version for the requested time while enforcing current permissions.

In this example, an October 2025 question requires v2, while a September 2026 question requires v3. Half-open intervals, including the start and excluding the end, avoid overlapping boundary instants. Real policies may also vary by region, population or clause.

TimelyRAG, published in September 2026, studies version-appropriate retrieval where successive documents strongly overlap semantically. It supports the design concern that semantic relevance alone does not determine temporal validity. [7]

Separate the time being asked about from the time at which authorization is checked. Asking about an old policy does not restore historical permissions. Ordinarily, historical dates select applicable evidence while current permissions determine whether the principal may use it.

Separate valid time, recorded time and temporal interpretation

At least two temporal axes matter: valid time, when a policy applies in the business domain, and transaction or recorded time, when the system recorded that information and what history it retained. This follows the bitemporal model described by Snodgrass. [14]

Suppose a correction recorded on September 24 applies from September 1. “The correct policy applicable on September 15” may differ from “the policy the system knew on September 15.” Fix the effective time and the recorded-knowledge cutoff separately.

as_of can specify valid time, but a corpus_snapshot identifier alone does not define transaction time. Specify the included ingestion, correction and deletion history and its commit boundary before treating the snapshot as a reproducible knowledge state. Distinguish source update, ingestion and searchable timestamps too. Authorization time is another independent condition.

Define the object to which current permission applies. These examples treat a historical version as an independent object and check that version’s current ACL. If permissions are inherited from a document family, define how its current ACL combines with version-specific restrictions. Do not infer access to older versions from latest-version access or revive historical ACLs.

Supplying the correct as_of bypasses natural-language interpretation. Input the raw query, request time, timezone, locale and any fiscal-calendar definition; label the expected instant or interval and need for clarification. Include “now,” “last year,” “before the amendment” and date boundaries. Measure interpretation separately and end to end. Do not silently reduce an ambiguous period to one instant.

Where trustworthy structured validity and applicability metadata exist, enforce eligibility deterministically. A high ranking score must not override an invalid version. Choose where to apply the constraint with regard to the trust boundary and retrieval completeness.

TimelyRAG reranks an initial candidate pool using semantic and temporal compatibility. It cannot recover a correct document absent from that pool and does not guarantee the right version. [7] Evaluate it as support where clause-level applicability or extraction is incomplete, and escalate or abstain when uncertainty remains. VersionRAG provides earlier work modeling version sequences, content boundaries and changes as a graph. [16] Neither replaces authorization or applicability enforcement.

Freshness metrics — Propagation and version correctness

MetricDefinition
Index propagation lagSource update commit to the target version becoming searchable
Superseded retrieval rateCurrent-time cases using an inapplicable old version as evidence
Version correctnessTime-qualified questions selecting applicable evidence
Deletion or suppression propagationSource deletion to exclusion across all retrieval and response paths
Permission propagationACL or membership change to enforcement in retrieval, caching and delivery

For example:

Δindex=tsearchable−tsource commit\Delta_{\mathrm{index}} = t_{\mathrm{searchable}} - t_{\mathrm{source\ commit}}

Report p95, p99, maxima and pending update counts as well as averages. Omitting unfinished updates makes a stalled pipeline disappear from the metric. Clock synchronization and a precise definition of the starting event matter.

Separate serving suppression from physical erasure of chunks, embeddings, caches and backups. Retention obligations may prevent immediate backup erasure, but retained data can still be excluded from ordinary answers. Evaluate accidental reingestion and restoration of old caches too.

4. Generation — Did the answer stay within the evidence?

Evaluate correctness, relevance, faithfulness, citation correctness and completeness. For a hotel allowance, check currency, region, effective date, exceptions and eligibility as well as the amount.

Ragas Faithfulness measures whether response claims are supported by retrieved context. [3] It is useful, but a faithful answer can still be wrong if its context is inaccurate, outdated or unauthorized.

Citation correctness requires more than a working link. Check document identity and version, the relevant passage, support for each claim and the user’s ability to access the citation. Permitted citations do not establish that prohibited content is absent from the answer itself.

5. Abstention — Withholding an answer is part of quality

Abstention means deciding that available evidence does not justify a definitive answer. Distinguish missing evidence, out-of-scope requests, lack of permission, invalid versions and conflicting evidence. Clarification or human escalation may be the right action.

UAEval4RAG organizes unanswerable questions into six categories and evaluates both answering and abstention. [8] CRUMQs, initially released in 2025, examines limitations using missing evidence and realistic multihop questions. [9] Neither framework automatically covers an enterprise’s particular permissions or temporal rules.

Ordinary retrieval should inspect only the permitted view. Possible internal codes are:

INSUFFICIENT_AUTHORIZED_EVIDENCE
OUT_OF_SCOPE
STALE_ONLY
CONFLICTING_EVIDENCE
INSUFFICIENT_CONFIDENCE

Version and conflict judgments here also concern authorized information. Do not add a forbidden-document existence query merely to distinguish NO_EVIDENCE from UNAUTHORIZED. “I cannot confirm this from the available information” does not require determining whether hidden evidence exists.

Reserve UNAUTHORIZED for privileged oracle labels in an isolated evaluation environment. Copying the label into ordinary production logs or traces creates a sensitive destination. Explicit access-denial auditing, where required, needs a separate definition of who may know the object exists, where the event is stored and for how long. Do not pass oracle labels to the generator.

Abstention metrics need explicit denominators

Define answerability from sufficient evidence in the fixed corpus, under current permissions, the requested time and the supported business scope. Do not let the retriever under evaluation establish its own ground truth.

Ground truthAnsweredAbstained
Answerableab
Unanswerablecd

For this binary decision:

MetricDefinitionInterpretation
False answer rate on unanswerable queriesc / (c + d)Answered despite insufficient admissible evidence
False abstention rateb / (a + b)Withheld an answer despite sufficient evidence
Abstention precisiond / (b + d)Abstentions that were justified
Answerable-query acceptancea / (a + b)Answerable queries accepted for answering

The last metric is one minus false abstention rate, not independent information. Cases in a can still contain incorrect answers. Report coverage and error among answered cases separately, and examine their relationship. A zero denominator makes the metric undefined.

When the corpus contains sufficient evidence but retrieval misses it, abstention is an end-to-end failure. The generator may nevertheless be right to refuse an answer from the evidence it actually received. This distinction identifies the failing stage.

Report clarification, escalation and timeout separately. Do not count outages as successful abstentions or silently remove failed requests from the denominator.

Compare answer-selection thresholds with risk–coverage curves

A confusion matrix describes one operating point. Risk–coverage curves from selective classification can compare answer selection across thresholds. [15] They examine several thresholds; they do not eliminate threshold choice.

Let ai(τ)a_i(\tau) indicate whether case ii was answered at threshold τ\tau, ℓi\ell_i be its predefined answer loss, and NN be the total case count:

Coverage(τ)=1N∑iai(τ),Risk(τ)=∑iai(τ)ℓi∑iai(τ)\mathrm{Coverage}(\tau)=\frac{1}{N}\sum_i a_i(\tau), \qquad \mathrm{Risk}(\tau)=\frac{\sum_i a_i(\tau)\ell_i}{\sum_i a_i(\tau)}

This form fixes each candidate answer and changes only whether the threshold accepts it, so ℓi\ell_i is shared. If retrieval or generation changes with the threshold, re-evaluate the resulting answers and use ℓi(τ)\ell_i(\tau) instead.

Define how unsupported answers to unanswerable queries and contradictions contribute to loss. Risk is undefined when no cases are answered. Report timeouts and escalation separately without silently removing them from coverage’s denominator. Separate threshold-tuning data from held-out evaluation, and report domain slices and uncertainty.

Authorization and validity are mandatory constraints, not thresholds to relax for greater coverage. Evaluate answer selection subject to those constraints and stop release separately for violations. The original classifier’s guarantees do not automatically transfer to this RAG system.

Expand the evaluation unit beyond question and answer

A production fixture needs more than a question and a reference answer.

Fixed inputExpected result
Principal, tenant and trusted membershipsAnswer, abstain, clarify or escalate
Raw query, request time and timezoneExpected instant/interval and need for clarification
Valid time, recorded-knowledge cutoff and historical-version policyPermitted evidence and sufficient alternatives
Corpus snapshot, document and chunk versionsProhibited evidence, superseded versions and deletions
Policy and permission snapshotsPermitted claims and citations
Evaluation time, implementation, model and configuration versionsOperational limits and release conditions

The same question may have different expected results for an employee and an executive, another tenant or a historical date. Evidence is not universally admissible.

Scroll horizontally to view the full diagram.

Fixed conditions and independent expectations Run RAG with a fixed principal, raw query, request time, corpus and policy. Compare temporal interpretation and protected observations with independent expected evidence and actions. Keep privileged fixture knowledge out of ordinary logs.
Fig. 05 — Fixed conditions and independent expectations
Read the diagram as text

Run RAG with a fixed principal, raw query, request time, corpus and policy. Compare temporal interpretation and protected observations with independent expected evidence and actions. Keep privileged fixture knowledge out of ordinary logs.

Example evaluation fixtures

These are custom illustrative schemas, not runnable library configurations. Identities and documents are fictional; group memberships are trusted fixture inputs. request_time anchors “current,” while expected.resolved_as_of is the oracle for temporal interpretation. Supplying the latter as input evaluates retrieval onward, not the interpretation stage.

id: travel-policy-2026-001
corpus_snapshot: travel-fixture-2026-09-24
knowledge_cutoff: '2026-09-24T09:00:00+09:00'
policy_snapshot: policy-fixture-017
authorization_scope: version-object-current-acl
request_time: '2026-09-24T09:00:00+09:00'
timezone: Asia/Tokyo
locale: en-US
principal:
  tenant: example-corp
  user: user-123
  groups: [employees]
query: 'What is the current hotel expense limit for overseas travel?'
metamorphic_variants:
  - forbidden-document-added
  - forbidden-document-removed
  - forbidden-document-modified
expected:
  resolved_as_of: '2026-09-24T09:00:00+09:00'
  action: answer
  allowed_evidence:
    - travel-policy-v3
    - approved-travel-faq-v3
    - travel-scope-v3
  acceptable_evidence_sets:
    - [travel-policy-v3]
    - [approved-travel-faq-v3, travel-scope-v3]
  superseded_evidence: [travel-policy-v1, travel-policy-v2]
  expected_claims: [claim-hotel-limit-current]
  citation_rule: support-claims-with-used-permitted-evidence
oracle_only:
  forbidden_evidence: [executive-travel-policy-v3]

The next case requires abstention. expected, oracle_only and metamorphic_variants are evaluator-only data; exclude all three from RAG inputs, ordinary production logs and traces. Removing only oracle_only still leaks the expected evidence and answer action through expected. Construct runtime inputs from an explicit field allowlist.

id: confidential-policy-001
corpus_snapshot: confidential-fixture-001
knowledge_cutoff: '2026-09-24T09:00:00+09:00'
policy_snapshot: policy-fixture-017
authorization_scope: version-object-current-acl
request_time: '2026-09-24T09:00:00+09:00'
timezone: Asia/Tokyo
locale: en-US
principal:
  tenant: example-corp
  user: user-456
  groups: [general]
query: 'Which companies are being considered for acquisition?'
expected:
  action: abstain
  allowed_evidence: []
  acceptable_evidence_sets: []
  runtime_reason: INSUFFICIENT_AUTHORIZED_EVIDENCE
  public_response_class: insufficient_available_information
oracle_only:
  forbidden_evidence: [confidential-ma-project]
  reason: UNAUTHORIZED

List sufficient alternatives in acceptable_evidence_sets, mapped to document versions and chunks. metamorphic_variants describes paired corpora that preserve the allowed view and alter forbidden documents only. Create separate temporal cases with ACL/content commit order and event-delivery order. Even fixture IDs and oracle decisions can be sensitive; restrict evaluator access, collection and retention.

Run the checker against positive and broken observations

Download the evaluation examples. Runtime inputs, six synthetic documents, independent expectations, sample observations and a Python checker are separate files. Python 3.11 or newer needs only its standard library. From the extracted rag-evaluation directory:

python3 verify.py
python3 evaluate.py rag rag-cases.json rag-observations.json

The first command tests the checker with positive and negative controls. The second evaluates four cases: current policy, FAQ plus applicability, confidential-information abstention and a historical version. pass: true exits 0, contract violations exit 1, and incomplete/invalid records exit 2. Zero-denominator metrics become null; timeouts are not successful abstentions.

The bundled observations are synthetic data for checking the acceptance logic. To evaluate a real system, load the synthetic corpus into an isolated search service and implement an adapter that sends only rag-inputs.json. Pin model, retrieval, prompt, version/chunk mapping and current ACLs; capture actual observations in another file for the checker. Verify the checker with synthetic data, then apply the same acceptance conditions to observations from the real system.

Capture final context and evidence IDs at reranking, model, cache, log and response exits. Missing destinations or cases cannot pass. A separate reviewer derives claim IDs from the actual answer, including amount, currency, unit and scope; do not trust model self-report. Identity checks cannot establish semantic entailment or detect paraphrased disclosure. Inspect answer text and canary exposure separately.

This miniature covers permitted evidence, temporal resolution, alternative sufficiency, citations and answer/abstention behavior. To check the article’s complete release criteria, combine it with evaluations of noninterference, graph expansion, update/revocation races, cost and latency.

Give revocation and noninterference separate execution plans

For revocation, place barriers at authorization commit, content update, context delivery and response emission. Release the next event only after observing the intended state, such as retrieval under an old ACL before any response has been sent. A fixed sleep does not establish causal order. Predefine the point after which revocation forbids emission, then record content/authorization revisions and already-emitted ranges. Do not require recall of information sent before that boundary.

For paired forbidden-document changes, first verify that permitted content and metadata match. Reset indexes, caches and conversation state under matched conditions. Separate exact checks on deterministic paths from statistical comparisons of generation and latency. Predefine sample sizes, detectable effects, confidence intervals and equivalence margins. Verify observation coverage with a deliberately exposed synthetic canary in an isolated control. Failure to detect a difference does not establish exact noninterference.

Put deliberate difficulties into the corpus

Use synthetic or appropriately licensed documents to exercise difficult boundaries.

ScenarioPurpose
Correct current documentNormal answers and citations
Semantically similar distractorRetrieval precision and reranking
Unauthorized near-duplicatePermission takes priority over similarity
Superseded, future or differently scoped versionTemporal and applicability selection
Deleted or revoked documentSynchronization, caches and conversation reuse
Conflicting documentsSource authority and abstention when unresolved
No relevant documentWithholding answers without disclosing existence
Multihop questionEvidence completeness and authorization at each expansion
Instructions embedded in retrieved contentEvidence must not become an instruction

An executive travel policy may resemble the employee policy and score more highly, yet must not enter the employee’s answer path. Paired cases changing only the principal or a policy revocation help isolate the effect of each condition.

Separate LLM judgment from deterministic checks

LLM judges can help evaluate semantic support, relevance and equivalence to reference answers. They can also be wrong. Calibrate against human labels and review disagreements.

Check ACL application, validity intervals, deletion status and tenant boundaries against fixed metadata and policy ground truth. Reusing the same faulty authorization implementation as the oracle can conceal failures. Define expectations independently from authorization requirements.

Scroll horizontally to view the full diagram.

Semantic judgment and deterministic checks Use LLM judgment and human review for semantic quality. Check policy, identity, versions and deletion against independent expectations and metadata. Account for judge errors and manipulation.
Fig. 06 — Semantic judgment and deterministic checks
Read the diagram as text

Use LLM judgment and human review for semantic quality. Check policy, identity, versions and deletion against independent expectations and metadata. Account for judge errors and manipulation.

Pin the evaluation model, prompt and generation settings; record order effects and variability. Retrieved text is untrusted input to the judge too. Evaluate resistance to attempts to manipulate its verdict, and establish what data may be sent to an external evaluation service.

Separate offline evaluation from production observation

Before release, compare revisions using a fixed corpus, policies and query set. Separate prompt-tuning data from held-out release data. Model revocation and deletion as reproducible state transitions.

In production, documents, permissions, query distributions and models change. Observe retrieval and generation latency, result distributions, update backlog, ACL synchronization failures, abstention, stale citations, cache age, cost and user corrections. An increasing abstention rate might indicate improved caution or a retrieval outage.

Scroll horizontally to view the full diagram.

Separate release gates and production observation Evaluate retrieval, authorization, freshness, generation, abstention and operations separately. Release only when all required gates pass, then feed production changes and failures into future fixtures.
Fig. 07 — Separate release gates and production observation
Read the diagram as text

Evaluate retrieval, authorization, freshness, generation, abstention and operations separately. Release only when all required gates pass, then feed production changes and failures into future fixtures.

User questions can contain sensitive information. Do not make full-text logging the default simply because it helps evaluation. Combine minimal telemetry with authorized sampling. Production requests rarely all have ground-truth labels; distinguish proxies from reviewed outcomes.

Keep release gates separate

An answer-quality score of 0.92 cannot compensate for an unauthorized disclosure. Treat retrieval, authorization, temporal validity, generation, abstention and operations as separate conditions.

GateIllustrative PoC criterion
Evidence Sufficiency@5Meet the domain-specific minimum over answerable cases, with fixed alternatives and retrieval units
Noninterference comparisonsPaired forbidden-document changes meet predefined criteria for actions, citations, counts and output/latency distributions
Unauthorized downstream exposureZero in the evaluation set, with paths and sample counts reported
Superseded evidence for current questionsZero in cases with established applicability
Revocation consistencyZero observed violations of causal ordering and the selected revocation boundary; assess lag and in-flight work separately
Temporal interpretation and bitemporalityRaw-query interpretation, validity, recorded cutoff and current historical-version ACL match the oracle
Document updatesMeet source-specific lag and pending-update limits
Faithfulness and correctnessMeet domain thresholds and human-review conditions
Abstention and answer selectionMeet false-answer/false-abstention limits and the selected risk–coverage operating criteria
Latency, availability and costMeet service targets, including failed requests and timeouts

Predefine thresholds and equivalence margins for the domain. Report slices by tenant, document type, permission, language, target time and abstention reason as well as aggregate results. Include sample counts and uncertainty.

Distinguish zero observations from coverage

Require zero unauthorized exposures in the evaluation set. Even then, if nn independent Bernoulli trials share an unknown failure probability pp, zero failures gives the following one-sided 95% confidence upper bound:

pupper=1−0.051/n≈3np_{\mathrm{upper}}=1-0.05^{1/n}\approx\frac{3}{n}

For 1,000 independent trials, the bound is approximately 0.3%. This is an uncertainty statement, not an acceptable leakage budget. Repeating one query or counting one revocation across multiple destinations does not automatically produce independent trials. Deliberately selected attack cases also do not estimate a production-distribution failure rate.

Report coverage across principal permissions × documents/chunks × destinations × update order × cache state × graph depth. Pairwise coverage can reduce the matrix, but does not cover every interaction of three or more factors. Add critical permission boundaries and attack paths explicitly, and report untested combinations. Metamorphic comparisons and canary searches complement this matrix.

Trade-offs and limits

Authorization and temporal constraints narrow the search space. Reranking and repeated authorization add latency and complexity. Caching reduces cost but complicates revocation and freshness. Increasing abstention can reduce unsupported answers while making useful information harder to obtain. A 100% answer rate is not a universal optimization target.

When applying these evaluation methods and acceptance criteria, also review identity infrastructure, source accuracy, data-use agreements, prompt-injection defenses and operations.

The cited studies have different scopes and assumptions. Combining their metrics does not by itself establish enterprise assurance; map them to the actual permissions, data, times and failure conditions.

From answering to deciding whether an answer is justified

The difficult part of production RAG extends beyond having an LLM write text. The system must define what to retrieve, who may use it, which version applies and when the evidence justifies an answer.

CoRISE treats RAG evaluation as checking contracts across a knowledge system. Retrieve the right evidence under the right permissions and temporal conditions, and answer only when justified. That is the scope a trustworthy production RAG evaluation needs.

Seven Boundaries Between AI PoC and Production places evaluation inside the wider transition. Connect these results to data, authority, execution, observability and ownership.

References

  1. Ragas: Context Precision
  2. Ragas: Context Recall
  3. Ragas: Faithfulness
  4. RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generation
  5. Azure AI Search: Document-level access control
  6. Retrieval Pivot Attacks in Hybrid RAG
  7. TimelyRAG: Semantic-Temporal Hybrid Retrieval for Time-Critical Question Answering in Overlapping-Evolving Documents
  8. Unanswerability Evaluation for Retrieval Augmented Generation — UAEval4RAG
  9. Investigating Retrieval-Augmented Generation Systems on Unanswerable, Uncheatable, Realistic, Multi-hop Queries — CRUMQs
  10. Goguen and Meseguer: Security Policies and Security Models (1982)
  11. Zanzibar: Google’s Consistent, Global Authorization System — USENIX ATC 2019
  12. Azure AI Search: SharePoint ACL ingestion and permission synchronization (preview)
  13. Azure AI Search: Purview sensitivity labels and chunk projection (preview)
  14. Richard T. Snodgrass: Developing Time-Oriented Database Applications in SQL, §2.3 Bitemporal Tables
  15. Geifman and El-Yaniv: Selective Classification for Deep Neural Networks (2017)
  16. VersionRAG: Version-Aware Retrieval-Augmented Generation for Evolving Documents (2025)

The case explores API boundaries and data integration.

T. Asano

More articles by T. Asano

Contact

Tell us about your engineering challenge.

Talk with CoRISE about the design, implementation and operation of your systems.

Start a Conversation