Security and Data Handling

A clear view of what HardRAG processes and records.

HardRAG is designed for regulated AI review workflows. This page explains the current data model, deployment options, audit approach, and limitations in plain language.

What HardRAG processes

Validation requires the information needed to judge a RAG answer: the prompt, retrieved context, generated answer, applicable policies, and metadata.

What HardRAG stores

Inference ID and timestamp
Query and retrieved context references or chunks
Generated answer and optional redacted answer
Grounding, privacy, policy, security, and safety scores
Evaluation rationales and unsupported claims
Tenant/client metadata and tamper-evident hash
Deployment

Cloud and sovereign deployment paths.

Cloud mode

Intended for fast pilots and managed deployments using Supabase-backed authentication, database, storage, and dashboard workflows.

Current path for fastest pilot validation.

Sovereign mode

Designed for local or air-gapped environments with local LLMs and customer-controlled infrastructure. Some components are roadmap-dependent and should be scoped per deployment.

Pilot scope should define which local components are active.
Audit model

Tamper-evident today. Stronger ledger controls on the roadmap.

The current implementation records an integrity hash with evaluation metadata. Production hardening should add hash-chain sequencing, signing, verification endpoints, and append-only storage controls.

Current

SHA-256 style integrity hash on audit result fields.

Current

Structured audit record with scores, rationales, privacy data, and judge output.

Roadmap

Hash-chain or ledger-style sequencing for stronger tamper evidence.

Roadmap

Signed exports and verification endpoint for audit packages.

Important limitations

HardRAG supports review workflows; it does not guarantee legal compliance by itself.
Evaluation quality depends on model configuration, context quality, and policy design.
Human oversight remains required for high-stakes decisions.
Production tenant isolation should be enforced beyond request headers, including database policies.