DRAFT STAGING ARTIFACT — describes a tested local implementation, not a deployed service handling real data.
SecondBrainDB

Not every employee's conversation is everyone's business.

Cross-employee and cross-AI memory is only trustworthy if it comes with strict permission boundaries by default. This is the one thing SecondBrainDB treats as non-negotiable, in every edition.

Three visibility levels, plus explicit sharing

VisibilityWho can see itTypical use
PrivateOnly the authoring agent — plus anyone explicitly granted access.A personal note, a sensitive one-on-one exchange, a draft observation not ready to share.
WorkspaceAny agent whose own home is that same workspace.Team-level context: "everyone on this project should know this."
TenantAny agent anywhere in the organization.Genuinely organization-wide knowledge: policies, shared facts, company-level decisions.
Explicit shareOne specific other agent, regardless of the default above."Show this one memory to that one colleague's AI" — without widening it to a whole workspace or tenant.

Fail closed, not fail open

If a memory's visibility value is ever missing, unrecognized, or corrupted, the system denies access — it never defaults to "probably fine, let them see it." An agent with no home workspace does not automatically get workspace-visible memories either; it needs an explicit share. And a boundary violation looks the same from the outside whether something doesn't exist or just isn't yours: both return a plain "not found," never a tell-tale "forbidden" that would let someone probe for what's there.

Why this matters more for AI than it did for databases

A traditional app usually has one, carefully reviewed code path that decides who sees what. An AI agent, by contrast, can be asked to retrieve "everything relevant" — and if the underlying memory store has no per-item permission model, "everything relevant" silently becomes "everything," including things the asker was never supposed to see. Permission-aware retrieval has to live in the data layer itself, not just in a prompt instruction an agent might ignore or be tricked past.

Proven, not just described

This isn't a design intention — it's tested. The automated suite includes specific cases for: a private memory staying invisible to a second agent in the same workspace; a workspace-visible memory reaching every agent in that workspace but nobody outside it; a tenant-visible memory reaching the whole organization; an explicit share granting access to an otherwise-private memory; search results excluding memories the searching agent isn't allowed to see; and an agent being unable to share a memory onward that it couldn't see in the first place.

Join the waitlist See the API