One ACL. Every surface. Fail-closed.
The same RBAC engine gates people, AI, and analysts. Access is denied by default; nothing is indexed out of your network; nothing is written back to your sources.
Enforced at the engine, on every request.

Scopes
Bounded contexts (projects, campaigns, incidents) as first-class entities. Compose and inherit.
RBAC
Scope-level roles and grants, with dynamic CEL rules. Evaluated on every request.
Tamper-evident audit
Every entry cryptographically chained to the one before it. Actor, timestamp, and permission context on every action; alteration or deletion is detectable.
Directory identity
SAML 2.0 single sign-on (certified against Azure AD and Okta), plus LDAP, Active Directory, Apple Open Directory, FreeIPA, and local Argon2id break-glass. Your directory stays the source of truth. SSO can be forced per source, and users are offered "Sign in with <source>" without being told which directory to pick.
Face matching (macOS)
A built-in tool that finds people your team has already named across your images. It runs only when an administrator starts it, erasing a person removes their face data and everything derived from it, and the access model stays exactly as it is.
Where haystak sits: in the retrieval path, not beside it.
Each layer of an AI stack answers a different question. haystak answers the one the others leave open: what this person, or the agent acting for them, may see.
Your identity provider
Decides who is asking. haystak takes identity from your directory or single sign-on and never keeps its own copy of who someone is.
Your MCP gateway
If you run one, it routes and logs agent traffic. haystak works behind it; a gateway in front of an index that sees everything still reaches everything.
haystak
Decides what each record, count, and passage returns, for people, agents, analysts, and applications, before anything leaves the engine.
Your data security tools
Report what is exposed at the source. haystak does not replace them; it enforces at query time, where they only observe.
The same permissions, whoever (or whatever) is asking.
Row-level access control is enforced by one engine across every door. AI agents query under the identical grants as the humans they work for.
REST & search
Every read is authenticated and scope-gated; aggregations are denied unless explicitly permitted.
MCP
Every tool is permission-trimmed to the caller and fails closed on a missing identity or engine.
SQL (TDS)
Connections authenticate via LOGIN7; queries see only the sources their grants allow, trimmed at the wire.
What records rules ask for, built into the engine.
Records regimes differ in vocabulary, not in mechanism. Four asks recur across them: a trail that shows tampering, records kept and disposed of on schedule, a reason for every read, and proof of what a search missed. haystak builds each one into the engine.
Trail integrity
Every audit entry is chained to the one before it under a key sealed to the host, and verification walks every entry of every trail. An altered or deleted entry shows.
Retention and disposition
Records carry a retention class and are disposed of on schedule, with a certificate of what was destroyed and when. A legal hold outranks disposal, and nothing is destroyed automatically until you switch it on.
Purpose
A request says why it reads, not only who is reading. You define the purposes, each access records its purpose, and a purpose can limit which sources a request reaches. Requiring one on every request is a switch you set.
Validation
Prove what a search did not miss: a seeded, reproducible sample from everything it did not return, reviewed and reported as an elusion rate with a confidence interval.
Know what's human, what's AI, and what's verified.
Every value carries its origin: filesystem, EXIF/XMP, extracted, user, computed, AI, or workflow. At ingest, haystak validates C2PA Content Credentials: signer, AI-generation claims, and edit lineage.
Validation only. haystak reads and verifies Content Credentials. It never signs or issues them.
Provenance set
Filter and audit by source at the record level, forever.
See the audit trail on your own corpus.
We will walk the scope model, RBAC, and tamper-evident audit against data that looks like yours.