Architecture Note · Finance, Legal & Regulated Teams

Zero-Egress Private Document Vault: Grounded Citations, Refusal Gates, and Verifiable Audit Trails

Why naive cloud RAG breaks privilege and auditability—and the deterministic local architecture that keeps client files verifiable and inside your perimeter.

The Problem: High-Value Archives Locked Behind Compliance Boundaries

Law firms, accounting practices, and regulated energy teams accumulate thousands of lease agreements, tax working papers, well files, and compliance directives. Staff spend hours searching across PDFs for a single limitation period, capital cost allowance treatment, or regulatory threshold. Off-the-shelf cloud assistants promise instant Q&A, yet regulated teams cannot upload privileged client records or proprietary technical files to external model endpoints.

Why Naive Cloud RAG Fails in Regulated Practice

Standard retrieval-augmented generation (RAG) pipelines fail regulated organisations along three predictable fault lines:

  • Silent data egress and jurisdictional exposure: Sending document chunks and user prompts to third-party APIs pushes client identifiers outside the firm’s firewall. Even when a US-headquartered cloud vendor offers a Canadian region, data held on US-controlled infrastructure remains subject to the US CLOUD Act rather than pure local custody.
  • Hallucinated or unanchored citations: Generic RAG summarizes retrieved snippets into fluent prose without binding individual factual claims to exact page locations. When a model blends numbers from two different client letters or invents a statutory clause, a partner cannot verify the answer without re-reading the entire binder.
  • Cross-matter leakage and missing refusal gates: Flat vector indexes often search across every ingested file regardless of matter permissions, and chatty models tend to guess when retrieval comes up empty. In legal and assurance work, an invented answer is worse than no answer at all.

The Deterministic Local Architecture That Fixes It

A production document vault treats the language model as a constrained synthesizer inside an explicit deterministic boundary, never as an unverified authority.

  1. Zero-egress local inference and indexing: Document parsing, keyword and semantic indexing, and model inference execute entirely on hardware controlled by the firm. Firewall egress rules verify 0 bytes of outbound traffic to public AI providers, supporting internal governance under PIPA, PIPEDA, HIA, and AER record-keeping workflows.
  2. Scoped document packs and persona boundaries: Files are partitioned by domain and access role—for example, separating Commercial Lease & Legal Due Diligence, Alberta O&G Well Files & AER Directives, and Canadian CPA Tax & Working Papers. Queries execute strictly within the authorized scope rather than across an undifferentiated global corpus.
  3. Claim-level verbatim citations and exact search: Every grounded statement emits clickable [Doc · p.X] citation chips wired directly to the document viewer. Selecting a citation opens the exact page and highlights the verbatim source passage, allowing reviewers to copy the exact excerpt for memos or working papers in one click. Alongside natural-language Q&A, practitioners can run exact keyword searches across verbatim pages—such as dollar figures like CA$30,400, portal names like OneStop, or statutory sections like s.15(2)—within a single pack or across authorized packs.
  4. Fail-closed out-of-scope refusal: When an asked question is unsupported by the active pack—such as querying an absent regulatory filing or unrelated asset class—the pipeline triggers a strict refusal state and emits zero unverified claims rather than interpolating from weak matches.
  5. SHA-256 chained audit trail: Every query, active persona, pack scope, grounding status, cited passage reference, and execution latency is recorded locally alongside live outbound-byte and strict-refusal counters. Entries chain sequentially with SHA-256 hashes (using Web Crypto with a deterministic FIPS 180-4 fallback) and export cleanly as JSON or CSV for partner or compliance review.

Operational Takeaway

Trusted document AI does not require sending client files to frontier clouds or trusting fluent summaries on faith. When retrieval is permission-scoped, citations jump straight to highlighted source pages, unsupported queries fail closed, and every answer leaves a tamper-evident hash chain, practitioners gain speed without surrendering verification.

Test a private document vault on your own files

Start with a free 30-minute workflow check. Bring one document workflow and leave with one concrete recommendation in writing within one business day.