Security & isolation
Isolation you can prove, not just promise.
Memrail's per-client boundary is enforced at the Postgres engine, watched continuously, and provable on handoff. Here is exactly how — including what we do not guarantee.
The boundary
Every read is client-id-asserted at the engine.
A SECURITY DEFINER retrieval function asserts client identity below the application. A cross-client read returns nothing — structurally, not by policy.
org.acme.northwind_legal
client_id assert
Postgres engine
org.acme.meridian_capital
A cross-client read returns nothing, structurally.
Guarantee scope
What we guarantee — and what we don't.
The honesty is the trust signal. We state the boundary plainly.
No cross-client data is ever returned by a Memrail read. Client identity is asserted at the Postgres engine on every retrieval — enforced in the storage layer, not hoped for in application code.
Memrail does not control what a consuming agent does with multiple clients' data already inside its own context window. That sits outside our storage boundary — and we won't claim otherwise.
The detector
Three layers police the boundary.
Provenance assertion
Deterministic scope/provenance check on the read path. This is the hard guarantee — it runs before any row is returned.
hard · on the hot path
Embedding-distance scan
Async cosine-distance scan off the hot path (QStash), comparing chunks across boundaries to surface suspicious overlaps for review.
async · off the hot path
Model scoring
On flag, a model (Gemini Flash-Lite, Claude Haiku escalation) scores whether the overlap is a genuine cross-client violation before it reaches you.
on-flag · escalation
Credentials
Built for the compliance review.
SOC-2 Type II
Independently audited controls; report available under NDA.
GDPR Art 28 DPA
Data-processor agreement template ready to sign.
Audit export
Contamination, access and handoff events as CSV/JSON.
Data residency
Region-pinned storage; ISO-ready posture.
Audit trail
An immutable record of every boundary event.
Reads, contamination flags and handoffs are written to an append-only log — exportable as a SOC-2 narrative when an auditor asks.
2026-01-15T09:22:04Z memory.read client=northwind_legal result=ok rows=5
2026-01-15T09:24:11Z memory.read client=meridian_capital result=ok rows=3
2026-01-15T09:31:52Z contamination.flag a=northwind_legal b=meridian_capital score=0.91
2026-01-15T09:40:18Z delegation.sign client=brightside_retail hash=sha256:a83f…c2Deploy on regulated client data.
Walk through the isolation model and the contamination detector with our security team.