A governed sovereign RAG for public administration and citizen services: three-way epistemic routing, faceted guided clarification, and deterministic numerical verificationGoverned Sovereign RAG for Public Administration: Tripartite Epistemic Routing, Facet-Guided Clarification, and Deterministic Numeric Verification in Citizen Services
The authors propose and evaluate a sovereign RAG system deployed on the government portal of Tlaxcala state, Mexico; the authors report that it achieves Strict Top-1 of 86.50% on the N=200 benchmark, and that 89.47% of 380 production trajectories were handled by deterministic templates.
The victim system is a state government one-stop government Q&A portal. Risks come from the model confabulating fees or requirements, sending queries to commercial clouds, and incorrectly answering requests that exceed state jurisdiction or are unclearly worded. The defense assumes queries may be colloquial, over-reaching, or contain demographic prefixes, and requires running on local CPU/NPU.
- One-stop government Q&A must avoid fabricating fees and requirements, must not send citizen queries to commercial clouds, and often encounters unclear phrasing or requests beyond state jurisdiction. The authors argue that existing public-sector RAG either relies on high-cost GPUs and binary refusal or delegates generation to commercial clouds lacking deterministic numeric verification.
- The authors built a sovereign RAG: first use deterministic Level 0 templates to handle most requests, then use clarify_policy and AnyJev to route among SPECIFIC, CLARIFY, and ABSTAIN; only Level 1 uses a local small model for generation, with verify_numeric_guardrail checking whether fee and validity-period numbers belong to retrieved records.
- On the N=200 stratified benchmark, the full system C7 achieves 86.50% Strict Top-1 and 93.00% Top-5 safe bound; accounting for the 53.33% post-CLARIFY drop-off, effective resolution is 70.87%. In production N=380, 89.47% go through Level 0, the Level 1 census shows 0/40 numeric confabulations, but global p95 reaches 30.412 s.
- The authors note that numeric guardrails cannot prevent concept substitution within the same record, Top-1 retrieval errors, or regulatory updates; C6–C7 rules carry a risk of local overfitting; paired invariance under implicit demographic bias remains 60.00%; the p95 tail is affected by CPU queuing; anonymization cannot identify names in free text, and the audits were also performed by in-state analysts.
- Evaluated models
- BAAI/bge-m3BAAI/bge-reranker-v2-m3qwen2.5:3b
- Benchmarks
- ablation_study_200_r3.jsonN = 380 production tracesproduction_audit_metrics_r3.jsonguardrail_probe_results.json
- Metrics
- Strict Top-1 accuracyTop-5 safe boundHit@1Hit@5effective resolutionfalse ABSTAINfalse SPECIFIClatency p50/p95/p99numeric invention rate
Researchers deployed and evaluated a governed sovereign RAG architecture on the government portal of the State of Tlaxcala, Mexico (tlaxcaladigital.gob.mx), covering 1,143 procedures and a directory of 924 offices. The system constrains generation with three pillars: a two-stage three-way epistemic gate arbitrates among direct answer, faceted guided clarification, and abstention; a post-generation deterministic numerical verifier combined with a SHA-256 cache invalidation mechanism ensures that fee or validity-period numbers all come from retrieved official records.
Paper analysis
What problem does this paper attempt to solve?
The authors aim to resolve the conflict in government portals between regulatory determinism, data sovereignty, and a large volume of under-specified or over-reaching requests.
The core problem is how to deploy a controllable sovereign RAG in one-stop citizen services for state government while avoiding fabricated fees, protecting data sovereignty, and handling underspecified or out-of-scope requests.
- Scenario and importance: The authors note that government digitalization shifts procedural friction and cognitive burden onto citizens; in state-level government affairs, citizens often do not know the formal name of a procedure, nor the jurisdictional boundaries among federal, state, and municipal levels.
- Shortcomings of existing methods: The authors state that existing public-sector RAG either relies on high-cost GPU clusters and binary refusal classifiers, causing colloquial queries to be wrongly refused, or delegates generation to commercial clouds and lacks a deterministic numeric verifier.
- Core observation: The authors argue that the key is not scaling up the model but governing epistemic uncertainty: making a statistical arbitration among answering, requesting clarification, and refusing, and routing most traffic to deterministic templates.
- Paper's approach: The paper proposes and evaluates a governed sovereign RAG deployed on the Tlaxcala state portal, covering 1,143 procedures and 924 office directories, with three pillars: tripartite epistemic routing, facet-guided clarification, and verify_numeric_guardrail.
- Threat model:
- Protection goals: Avoid fabricating regulatory fees, fines, or required materials, and prevent out-of-state jurisdictional requests from being wrongly answered as in-state procedures.
- Attack/risk sources: The paper does not posit an active attacker; risks come from colloquial queries, out-of-scope requests, demographic prefixes, and multi-turn follow-ups.
- Defensive capabilities: The system can control retrieval, routing, template answers, clarification menus, refusals, and post-generation numeric verification.
- Victim system: The citizen service assistant on the official Tlaxcala state portal, required to run entirely on local CPU/NPU infrastructure.
What related research exists?
Related work is divided into public-sector RAG deployment, clarifying retrieval, selective prediction and uncertainty, and RAG evaluation and bias governance.
Public Sector and Government RAG
- Branco et al. (2026): Reports a sovereign government deployment for Portugal's gov.pt / Evaristo.ai, using local GPUs and Gervásio 70B/8B; the paper notes that it uses a prompt-based binary classifier and has no CLARIFY routing.
- Mala et al. (2025), Camino-Moreno (2026), Rappan et al. (2025): Correspond respectively to Italian public administration RAG, an Ecuadorian tax assistant, and Buenos Aires Boti; the paper uses them to show that public sector RAG practices already exist in Europe and Latin America.
- La & Tran (2024), Sánchez-Navalón et al. (2024): Discuss online administrative procedure retrieval and trustworthy evaluation of administrative text RAG.
Clarifying Questions and Multi-turn Retrieval
- Aliannejadi et al. (2019), Zamani et al. (2020), Sekulić et al. (2021): Study clarifying questions in open-domain search, clarifying question generation, and user engagement prediction; this paper's facet-guided clarification builds on this line.
- Wigger et al. (2026), Lupart et al. (2026): Context rewriting and retrieval in multi-turn RAG; this paper uses attribute anchoring to avoid calling an LLM rewriter on every follow-up.
- Ye et al. (2025), Goyal et al. (2026): Query rewriting and Query2Doc-style expansion; this paper triggers expansion conditionally only when dense and lexical anchoring are lacking.
Selective Prediction, Uncertainty, and Abstention
- Joren et al. (2025): Distinguishes relevance from context sufficiency; this paper uses it to design clarify_policy.
- Farquhar et al. (2024): Uses semantic entropy to detect hallucination; the authors accordingly argue for semantic uncertainty oriented toward discrete entities rather than token-level lexical uncertainty.
- Phillips et al. (2026): The authors cite its view that entropy alone is insufficient for safe selective prediction, so AnyJev uses confidence, margin, and entropy together.
- Kamath et al. (2020), Feng et al. (2024): Research related to selective question answering and abstention.
Retrieval Fusion, Evaluation, and Bias
- Cormack et al. (2009): Proposes Reciprocal Rank Fusion; this paper uses the standard constant krrf = 60 to fuse dense and lexical ranking.
- Friel et al. (2024), Saad-Falcon et al. (2024), Yang et al. (2025): Correspond respectively to RAGBench, ARES, and CuBE; this paper adopts their adherence decomposition, human-machine calibration evaluation, and bounded evaluation principles.
- Yang et al. (2026): Studies causal front-door prompting to mitigate question-answering bias; this paper's demographic prefix neutralization rule is related to its counterfactual invariance goal.
Baselines and benchmark: The internal baselines are B1 (hybrid RRF, no abstention) and B2 (binary Cross-Encoder cutoff τCE = 0.15, no CLARIFY), and the benchmark is ablation_study_200_r3.json with N = 200; production evaluation uses N = 380 real trajectories. The authors position this paper as a sovereign government RAG that prioritizes deterministic Level 0 on a local CPU server, distinguished from deployments that rely on GPU clusters or commercial clouds.
How does the paper address this problem?
The method uses Deterministic-First, Generative-Last as its framework: templates and routing first, then supervised generation, then deterministic numeric verification.
The overall approach is Deterministic-First, Generative-Last: 89.47% of production traffic is handled by the Level 0 deterministic path, and only 10.53% escalates to supervised generation at Level 1/2. The system separates the transferable statistical neural core C1–C5 from the local portal rules C6–C7.
Decoupling of knowledge base and directories
- Atomic procedure library: PostgreSQL/pgvector stores 1,143 procedures, on the principle of 1 record = 1 vector, with the embedding model BAAI/bge-m3, d = 1024; each record contains 11 normalized fields.
- Head-tail distribution: The topic menu, historical Top-150, and 19 situational guides are merged into 179 head records; the remaining 964 form the strict long tail, with pop_boost(vi) = 0.
- Phone directory decoupling: 924 administrative-area directories are kept in memory and are not placed into pgvector together with procedure records; the authors state this prevents short directory lines from pushing out procedures that share institutional abbreviations.
Preprocessing and hybrid retrieval
- Multi-turn attribute anchoring: If the session already has an active procedure and the current turn contains no more than 2 attribute-dictionary tokens, the system resolves directly to the active procedure without calling the LLM rewriter.
- Demographic prefix neutralization: strip_demographic_confounder strips the prefix only when a sentence-initial self-introduction has been removed and the remaining predicate contains none of the 22 social-eligibility words.
- Conditional Query2Doc: Only when Scosmax(q) < 0.55 and tb(q, d(1)) < 0.16 does it expand using local qwen3:4b or qwen2.5:3b, with temperature = 0.0 and max_tokens = 25; the cosine similarity of expansion candidates is multiplied by 0.90 before reranking.
- RRF fusion: Dense BGE-M3 and lexical FTS are fused within PostgreSQL using RRF, krrf = 60, with title_boost, pop_boost, and cos_boost added.
Two-stage epistemic routing
- Stage 1: clarify_policy: Uses τhigh = 0.35, τlow = 0.05, τrel = 0.50, τcos = 0.45, δcos = 0.05 to decide among ABSTAIN, CLARIFY, and SPECIFIC.
- Stage 2: AnyJev v0.3.0: When Stage 1 outputs SPECIFIC, it computes a Boltzmann distribution over K ≤ 5 candidate procedures, τ = 0.045; it records p(1), margin LM(p), and Shannon entropy H(p).
- Clarification menu: If tb(q, d(1)) < 0.10 and LM(p) < 0.35, the system displays a comparison menu with [Agency | Cost] facets; only when LM(p) ≥ 0.35 does it give a Level 0 template or enable Level 1 synthesis.
- Core formulas: pi = (exp((si−smax)/τ))/(∑j=1Kexp((sj−smax)/τ)), representing the Boltzmann confidence distribution over candidate procedures; LM(p)=ln max(p(1),10−12)−ln max(p(2),10−12), representing the log gap between the top two candidates.
Numeric defense and governance
- Three barriers: Barrier 1 is the Level 0 deterministic template; Barrier 2 is Level 1 extractive generation with qwen2.5:3b, temperature = 0.0; Barrier 3 is verify_numeric_guardrail.
- Guardrail definition: GuardrailPass(y,d(1)) = I(N$,UMA(y) ⊆ N(d(1))), i.e., the amounts and UMA multiples in the generated answer must belong to the numeric set of the retrieval record; on failure, the official Level 0 template is substituted.
- Four levels of validity: The paper distinguishes four layers: numbers belonging to the retrieval record, numbers corresponding to concepts, correct identity of the retrieved procedure, and regulatory text still being in force; the semantic cache is bound to doc_sha256 and has a 14-day expiry.
- Privacy and sovereignty: Session identifiers are pseudonymized with HMAC-SHA256, structured PII is masked with regex, and retention is at most 14 days; the authors also note that regex cannot identify names in free prose.
What experiments did the paper conduct?
The experiments include an N=200 seven-stage ablation, N=380 eight-week production observations, four double-blind human audits, and 40 controlled numeric perturbation tests.
Experimental Setup
- Systems under test: B1 (hybrid RRF, no abstention), B2 (binary CE cutoff, τCE = 0.15), and seven ablation stages C1–C7; C7 is the full system.
- Benchmark: ablation_study_200_r3.json, N = 200, of which nin = 130 and nout = 70; divided into 8 strata, including IN_HEAD, IN_LONG_TAIL, FAIRNESS_IMPLICIT, FAIRNESS_EXPLICIT, POSITIVE_CONTROL, and three types of OOC.
- Production data: N = 380 trajectories and 312 unique sessions from February 15 to April 15, 2026; low concurrency, with a business-hours mean of 0.28 queries/hour and a peak of 2–3 simultaneous requests.
- Models and components: BAAI/bge-m3 for dense retrieval, BAAI/bge-reranker-v2-m3 for Cross-Encoder rerank, AnyJev v0.3.0 for second-stage decisions; qwen2.5:3b for Level 1 generation, qwen3:4b for conditional expansion and nighttime auditing.
- Metrics: Turn-1 resolution, drop-off-adjusted effective resolution, Strict Top-1, Top-5 safe bound, Hit@1/Hit@5, false ABSTAIN, ABSTAIN/Containment, false SPECIFIC, MRR@5, and latency quantiles.
- Review method: four production audits were performed double-blind by two SEDECO/CEMERT analysts who did not participate in development, using a three-level ordinal rubric against the Official Gazette; the paper reports Gwet's AC1 > 0.94 and provides 2 × 2 matrices.
Main Results
Swipe horizontally to read the table
Configuration Turn-1 / Eff. Strict Top-1 Top-5 safe bound Hit@1 / Hit@5 catalog False ABSTAIN cat. ABSTAIN / Cont. OOC False SPECIFIC OOC B1 Hybrid RRF 23.5% / 23.5% 47 (23.50%) 72 (36.00%) 36.2% / 55.4% 0 (0.00%) 0.0% / 0.0% 70 (100.0%) B2 Binary CE cutoff 76.5% / 76.5% 153 (76.50%) 156 (78.00%) 68.5% / 70.8% 38 (29.23%) 91.4% / 91.4% 6 (8.57%) C4 CE reranking + clarification 45.5% / 65.3% 158 (79.00%) 177 (88.50%) 84.6% / 88.5% 12 (9.23%) 68.6% / 88.6% 8 (11.43%) C5 + Query2Doc 41.5% / 63.4% 155 (77.50%) 177 (88.50%) 87.7% / 90.0% 9 (6.92%) 58.6% / 85.7% 10 (14.29%) C6 + SCOPE_TERMS 51.5% / 69.7% 168 (84.00%) 181 (90.50%) 87.7% / 90.0% 9 (6.92%) 77.1% / 91.4% 6 (8.57%) C7 Full system 51.5% / 70.9% 173 (86.50%) 186 (93.00%) 91.5% / 93.8% 4 (3.08%) 77.1% / 91.4% 6 (8.57%) According to Table 3A.
- Authors' interpretation: The authors state that C7 is +10.00 pp higher than B2 on Strict Top-1, with exact McNemar p = 0.00453 and pHolm = 0.01172; and +15.00 pp higher on Top-5 safe bound.
- Authors' interpretation: The authors state that C1–C5 constitute a portable statistical neural core, with C5 alone reaching 77.50% Strict Top-1 and 88.50% safe Top-5; C6–C7 are portal-specific rules.
- Authors' interpretation: The authors emphasize that 93.00% is a conditional safety upper bound and must be interpreted together with the 53.33% post-CLARIFY drop-off; after weighting by γ = 14/30 = 46.67%, the effective resolution is 70.87%.
Production Performance and Latency
- What was measured: Execution engine distribution, latency, and AnyJev statistics over 8 weeks of production with N = 380, see Table 2 and Figure 3.
- Results: 68.95% were L0 Direct, p50 = 0.445 s, p95 = 6.420 s; 20.53% were L0 Containment, p50 = 6.410 s, p95 = 31.840 s; 10.53% were L1 CPU, p50 = 20.150 s, p95 = 38.848 s; global p50 = 0.665 s, p95 = 30.412 s, p99 = 35.626 s.
- Authors' interpretation: The authors state that latency is bimodal, with direct L0 delivery maintaining a sub-second median, while Query2Doc or Level 1 queuing on 8 vCPUs causes the slow tail.
Human Audits and Numeric Guardrails
- What was measured: Four double-blind human audits covering SPECIFIC, Level 1 generation, CLARIFY multi-turn, and ABSTAIN; plus controlled numeric perturbation tests from run_guardrail_probe.py.
- Results: In Audit 2's Level 1 census of n = 40/40, numeric confabulation or concept substitution was 0/40, with a 95% binomial upper bound ≤ 8.81%; in controlled perturbations, verify_numeric_guardrail intercepted 40/40, with 0/40 false positives on clean outputs.
- Authors' interpretation: The authors state that this indicates no failures were observed during the audit period, but cannot statistically rule out an overall incidence rate below 8.81%; the 2/40 errors in Audit 1 came from adjacent procedure retrieval.
Fairness and Jurisdictional Boundaries
- What was measured: 5 sentence-initial self-introduction counterfactual pairs in FAIRNESS_EXPLICIT, 10 mid-sentence socioeconomic feature pairs in FAIRNESS_IMPLICIT, and the OOC strata.
- Results: C7 rose from C6's 2/5 pairs to 5/5 pairs on FAIRNESS_EXPLICIT; remained at 6/10 pairs on FAIRNESS_IMPLICIT; false SPECIFIC in OOC_UNINDEXED_STATE was 4/20.
- Authors' interpretation: The authors state that the sentence-initial prefix rule is only a functional regression check, not a proof of general invariance; for implicit mid-sentence socioeconomic features, syntactic rules cannot replace counterfactually invariant representations.
Other Ablations and Analyses
- Catalog decoupling: On nin = 130, merging 1,143 procedures with 924 catalog rows into 2,067 entries reduces Hit@1 from 91.54% to 85.38%, Δ = -6.15 pp, exact McNemar p = 0.0078.
- C1 → C2 → C3: catalog Hit@1 rises from 23.08% to 36.15%, then to 83.85%; IN_LONG_TAIL reaches 100.0% Hit@1/Hit@5 at C3.
- C3 → C4: OOC containment rises from 30.00% to 88.57%, Δ = +58.57 pp.
- C4 → C5 → C6: Query2Doc raises IN_HEAD Hit@1 to 95.0%, but strict ABSTAIN drops from 68.57% to 58.57%; SCOPE_TERMS restores it to 77.14%.
- Cross-validation: On N = 200, 5-fold strict Top-1 is 86.41% ± 7.50%, drop-off-adjusted effective resolution is 70.79% ± 7.39%, and Top-5 safe bound is 92.95% ± 4.98%.
- Multi-turn anchoring: Figure 5 reports _FOLLOWUP_ATTR at 0.42 s versus 30.76 s for LLM rewriting, which the authors describe as a 73× second-turn speedup.
What are some points that can be further explored?
The authors list seven limitations and propose continued improvement in guardrail scope, CLARIFY drop-off, rule transfer, implicit bias, and external auditing.
Limitations and future directions noted by the authors
- Limited scope of the numeric guardrail: Limitations item 1 notes that verify_numeric_guardrail only guarantees that generated numbers belong to the retrieval records; it cannot prevent concept substitution within the same record, Top-1 retrieval errors, or regulatory updates.
- CLARIFY attrition: Limitations item 2 notes that the 53.33% second-turn attrition lowers the 93.00% conditional safe coverage to 70.87% effective resolution; the authors believe the selection UI needs streamlining.
- Benchmark scale and local-rule overfitting: Limitations item 3 notes that thresholds come from an Ncal = 60 pilot, and that C6–C7 were written for this portal's vocabulary and jurisdictional patterns, so porting to other jurisdictions requires local recalibration and external validation.
- Implicit demographic bias: Limitations item 4 notes that FAIRNESS_IMPLICIT paired invariance remains 60.00%, and that syntactic rules cannot replace counterfactually invariant representations.
- Same-name unindexed state agencies: Limitations item 5 notes that 20.00% of OOC_UNINDEXED_STATE received false SPECIFIC, accounting for four of the benchmark's six false positives.
- CPU slow tail and privacy audit: Limitations items 6 and 7 note that p50 does not represent slow routes under concurrency, that regex anonymization cannot identify names in free text, and that the double-blind audit was performed by public-sector analysts within the state; the Conclusion proposes moving the jurisdictional filter before Query2Doc, adding cross-agency referral records, adopting counterfactually invariant representations, and conducting external validation with an independent citizen panel and other government-level directories.
Scope of experimental coverage
- Configurations tested: 9 configurations in total—B1, B2, and C1–C7—all compared on the same N = 200 benchmark and the same server.
- Production observations: N = 380 trajectories and 312 sessions, covering 8 weeks of low-concurrency real traffic; business-hours mean 0.28 queries/hour, with peaks of 2–3 simultaneous requests.
- Manual audits: The four double-blind audit samples were n = 40, 40, 30, and 48 respectively; the auditors were two legal-technical analysts from SEDECO/CEMERT.
- Generation models: Level 1 generation used qwen2.5:3b; conditional expansion used qwen3:4b or qwen2.5:3b; the paper does not report controlled experiments against other larger generation models.
- Safety testing: The numeric guardrail functional test included 40 clean outputs and 40 controlled numeric perturbations; the paper explicitly states that this study does not include network penetration testing.
Summarize the main content of the paper
The paper reports the system design, seven-stage ablation, production observations, and human audits of a state-level government sovereign RAG, with the core being the use of deterministic routing and numeric guardrails to constrain generation.
This paper targets one-stop citizen services for state government, studying how to run RAG on local sovereign infrastructure while avoiding confabulating regulatory fees, handling underspecified requests, and refusing out-of-scope requests.
- Problem: The authors argue that public-sector assistants are subject to threefold constraints: regulatory determinism requires that fees or materials not be fabricated, data sovereignty prohibits sending citizen queries to commercial clouds, and real requests are often colloquial or beyond state jurisdiction.
- Method: The system adopts a Deterministic-First, Generative-Last architecture; 1,143 procedures and 924 phone directories are decoupled, and after hybrid retrieval, clarify_policy and AnyJev route among SPECIFIC, CLARIFY, and ABSTAIN, with Level 1 generation then verified for numbers by verify_numeric_guardrail.
- Main results: On the N = 200 stratified benchmark, the full system C7 achieves Turn-1 resolution of 51.50%, Strict Top-1 of 86.50%, and Top-5 safe bound of 93.00%; relative to the binary cutoff B2, Strict Top-1 is +10.00 pp higher, pHolm = 0.01172.
- Production results: Among N = 380 real trajectories, 89.47% were handled by Level 0, and 68.95% were direct L0 deliveries; global p50 = 0.665 s, but CPU queuing makes global p95 = 30.412 s and p99 = 35.626 s.
- Safety and fairness: In the Level 1 generation census n = 40, 0/40 numeric confabulations were observed, with a 95% upper bound ≤ 8.81%; controlled perturbation tests blocked 40/40. The sentence-initial demographic prefix rule reached 5/5 on 5 counterfactual sample pairs, but paired invariance for implicit features in mid-sentence remained 6/10.
- Authors' conclusion: The authors state that what is portable is the C1–C5 statistical neural core, while the C6–C7 local rules require recalibration; safety coverage must be reported together with the 53.33% CLARIFY attrition, giving an adjusted effective resolution of 70.87%.