Architecting Sovereign, Air-Gapped AI & Knowledge Systems for Universities and Public Sector Agencies

An engineering blueprint for deploying zero-egress RAG pipelines, local open-weight LLM inference, EduGAIN/SAML document-level RBAC, and deterministic citation provenance inside institutional networks.

Gigantic Work Public Sector ArchitecturePrincipal Sovereign Infrastructure Lead • Nov 8, 2026

For universities, statutory agencies, and humanitarian NGOs, adopting public SaaS AI APIs often creates immediate procurement blockers: sensitive research grants, student academic records (FERPA/GDPR), classified policy drafts, or vulnerable beneficiary data cannot legally cross third-party cloud borders.

To pass institutional Security Risk Assessment & Audit (SRAA) boards and university ethics committees, AI systems must be architected as sovereign, verifiable software appliances running strictly inside campus HPC clusters, sovereign cloud regions, or air-gapped on-premise VPCs.

Core Institutional Design Principle

In public-sector and academic systems, data residency and deterministic provenance outweigh raw benchmark novelty. Every retrieved answer must carry a cryptographically auditable document trail and enforce identical access controls to the underlying source repository.


1. Zero-Egress Sovereign Topology

A compliant institutional deployment physically separates external public access from the internal inference and storage plane using strict egress firewall rules (NetworkPolicy in Kubernetes or VPC security groups with 0.0.0.0/0 outbound blocked).

┌─────────────────────────────────────────────────────────────────────────┐
│                    INSTITUTIONAL PERIMETER (AIR-GAPPED VPC)             │
│                                                                         │
│  [EduGAIN / SAML 2.0 / OIDC] ──► [WCAG 2.2 AA Portal & Policy Gateway]  │
│                                              │                          │
│                                              ▼                          │
│                         ┌────────────────────────────────────┐          │
│                         │  PII Scrubbing & Document ACL Gate │          │
│                         └────────┬──────────────────┬────────┘          │
│                                  │                  │                   │
│                                  ▼                  ▼                   │
│                 ┌──────────────────────┐   ┌────────────────────────┐   │
│                 │ Hybrid Vector + BM25 │   │ Local vLLM / TGI Pool  │   │
│                 │  (pgvector / Qdrant) │   │ (Open-Weight Models)   │   │
│                 └───────────┬──────────┘   └───────────┬────────────┘   │
│                             │                          │                │
│                             └────────────┬─────────────┘                │
│                                          ▼                              │
│                         ┌────────────────────────────────────┐          │
│                         │ Deterministic Citation Verifier &  │          │
│                         │   Immutable OpenTelemetry Ledger   │          │
│                         └────────────────────────────────────┘          │
└─────────────────────────────────────────────────────────────────────────┘

Key Architectural Guarantees

  1. Zero Outbound Telemetry: Model weights (e.g., Qwen, Llama, Mistral open-weight families) are mirrored into an internal OCI/Artifact registry after SHA-256 checksum verification.
  2. Pre-Ingestion PII & Classification Masking: Documents pass through deterministic NER + pattern scrubbers before embeddings are computed, preventing accidental cross-department exposure.
  3. Immutable SRAA Audit Logging: Every prompt, retrieved chunk ID, user SAML assertion group, and output hash is appended to a tamper-evident audit table.

2. Document-Level RBAC with EduGAIN & Enterprise SAML

A classic failure in naive RAG deployments is permission flattening: indexing restricted HR memos, faculty grant budgets, or ministry briefs into a single shared vector index where any authenticated user can retrieve excerpts.

Instead, we enforce late-binding authorization filters directly inside the vector database query predicate using the user’s verified OIDC/SAML claims:

from pydantic import BaseModel
from typing import List

class InstitutionalPrincipal(BaseModel):
    subject_id: str
    institution: str          # e.g., "faculty-of-engineering"
    saml_groups: List[str]    # e.g., ["grant-pi-2026", "ethics-committee"]
    clearance_tier: int       # 1=Public, 2=Internal, 3=Restricted

def build_acl_filter(principal: InstitutionalPrincipal) -> dict:
    """
    Enforces strict attribute-based access control (ABAC) inside pgvector/Qdrant
    prior to similarity ranking, ensuring unauthorized chunks never enter context.
    """
    return {
        "must": [
            {"key": "tenant", "match": {"value": principal.institution}},
            {"key": "clearance_tier", "range": {"lte": principal.clearance_tier}},
            {
                "should": [
                    {"key": "allowed_groups", "match": {"any": principal.saml_groups}},
                    {"key": "is_public", "match": {"value": True}},
                ]
            },
        ]
    }

By pushing authorization down to the retrieval index rather than post-filtering LLM outputs, an unauthorized document never enters the model context window.


3. Interactive Verification & Compliance Sandbox

Before any institutional AI workflow reaches UAT, Gigantic Work wraps it in an automated compliance and verification harness. Test our Public Sector & University Verification Scenarios below:

Interactive Safety & Workflow Simulator
Real-World Task
Answer a student or faculty inquiry accurately using only your official department handbook.
Result: Answered in 1.1 seconds with exact handbook page numbers—zero guesswork.
Speed: 1.1 sec reply
Accuracy: 100% cited sources
Control: Stays inside campus
Step-by-Step Activity Click any step above or press Play
Currently viewing: 1. Check Permissions — Press "Play 4-Step Walkthrough" or click any box above to see each safeguard in action.

4. Deterministic Citation Provenance (Zero-Hallucination Policy)

Academic researchers and policy analysts cannot afford fabricated DOIs, misquoted statutes, or synthesized references. Every model response passes through a deterministic provenance verifier before rendering in the user interface:

export interface RetrievedPassage {
  chunkId: string;
  sourceUri: string;
  checksumSha256: string;
  content: string;
}

export interface ProvenanceReport {
  verified: boolean;
  invalidCitations: string[];
  groundedRatio: number;
}

export function verifyCitationProvenance(
  responseText: string,
  retrievedPassages: RetrievedPassage[]
): ProvenanceReport {
  // Match structured inline citation tokens like [SRC:chunk_884]
  const citedIds = Array.from(
    responseText.matchAll(/\[SRC:([a-zA-Z0-9_-]+)\]/g),
    (m) => m[1]
  );

  if (citedIds.length === 0) {
    return { verified: false, invalidCitations: ['NO_CITATIONS_EMITTED'], groundedRatio: 0 };
  }

  const validSet = new Set(retrievedPassages.map((p) => p.chunkId));
  const invalidCitations = citedIds.filter((id) => !validSet.has(id));
  const groundedCount = citedIds.length - invalidCitations.length;

  return {
    verified: invalidCitations.length === 0,
    invalidCitations,
    groundedRatio: groundedCount / citedIds.length,
  };
}

If verifyCitationProvenance() returns verified: false, the harness automatically blocks the response and either triggers a constrained regeneration or emits a deterministic fallback message stating that insufficient verified evidence exists in the authorized repository.


5. Procurement Readiness & Delivery with Gigantic Work

Gigantic Work delivers sovereign AI platforms, campus research portals, and public-sector workflow automation as turnkey, auditable software systems:

  • 100% Data Sovereignty: Deploys inside your on-premise GPU cluster, university HPC, or sovereign cloud VPC.
  • Full IP & Source Code Ownership: Delivered with OpenTofu/Terraform IaC, container manifests, and complete engineering runbooks.
  • SRAA & Tender Compliance: Engineered from day one for security audits, pen-testing, and WCAG 2.2 AA accessibility sign-off.

Ready to scope a project or invite us to an ITQ / RFP? Review our Public Sector & University Tender Hub or contact our engineering desk at [email protected].

BUILT FOR YOUR TEAM

Want a system like this running safely inside your organization?

Gigantic Work helps university faculties, IT directors, NGOs, and public agencies set up private AI, modern portals, and automated workflows—with clear staff training and 100% ownership.