The SuperLocalMemory mascot holding a shield
Governance and privacy

Governed, not just stored.

The core memory path can stay in your configured local data root — memory your team controls. Enterprise deployments add per-workspace isolation, role-based access, GDPR controls, and a per-mode EU AI Act self-assessment. Optional providers, connectors, backups, proxies, model downloads, and client applications require separate review. A technical-control map for EU AI Act and GDPR obligations — not legal advice or a certification. Applicability depends on your deployed use case, data, operator role, and surrounding system.

Built for teams AGPL v3 Per-workspace isolation RBAC GDPR controls EU AI Act self-assessment Mode C: flagged
For teams and companies

One memory, governed on every call.

Every save passes an admission check and gets a receipt. Every read respects roles, workspaces and scopes. Every erasure reaches every copy. Every action lands in a hash-chained audit trail. These are engineering controls that support a compliance program, not a certification.

Saveadmission check, redaction, receipt
Readrole, workspace and scope checked
Audithash-chained entry
Eraseevery derived copy, with a receipt
Roles and workspaces

A role in one workspace grants nothing in another

Admin, member and viewer, per workspace. A workspace is a profile with its own memory, members, retention policy and audit trail. Maintenance and approvals act only where you are. With company mode, every read and write is attributed to a signed-in person, and with login required the check runs before the request body is read.

Teams guide → Company mode →
Receipts

Proof for each save and each erasure

A save returns a durable receipt as it moves raw, then queryable, then complete. An erasure stores a receipt written after every step, so it cannot read complete over a failed sweep. slm gdpr erase --json reports success: false for an incomplete erasure and says what remains and which step retries it.

What an erasure says →
Erasure of every derived copy

Not just memory.db

Erasure removes the relational rows, the full-text and vector indexes, queued saves, caches, the reversible originals kept by compression, summaries, the persona, scene titles, write receipts, and an erased picture’s stored original and backup mirror. SLM checks the bytes of the data folder afterwards. Backups cannot be rewritten, so each one that holds the profile becomes an erasure obligation, replayed on every restore until it is deleted or found clean.

Compliance guide →
Hash-chained audit

Tamper-evident, with the limits stated

Access-control events (user and role changes, policy changes, sign-ins) and memory operations are chained with SHA-256 plus an external count-and-head anchor. The chain detects edits and truncation; someone able to rewrite both files could recompute it. Per-profile retention rules and an EU AI Act posture report sit beside it.

Audit trail →
Memory health

Add-only repairs, with Fix and Undo

While your computer is idle, older memories get dates, names, projects and kinds filled in, only by adding and never over a value you set. Repairs that move or delete wait for your Fix, and every run can be undone. Pausing, Fix and Undo need management permission for the workspace.

Memory health guide →
Many agents, one memory

Trust against poisoning

Every memory records which agent wrote it, and Bayesian trust scores defend against memory poisoning, so several agents can share one memory. Recalled text is treated as untrusted evidence: secrets redacted, forged markers neutralised, provenance attached. Mutation authority never comes from a caller-chosen agent name.

Scopes guide → The trust paper →

GDPR from the command line

export, preview, erase
# Subject access and portability (Art. 15, 20) $ slm gdpr export --profile team-a --output export.json # Erasure (Art. 17): preview first, then run it $ slm gdpr erase --profile team-a --dry-run $ slm gdpr erase --profile team-a --yes --json # One memory or one query, not a whole profile $ slm forget "query" --dry-run $ slm delete <fact_id> --yes

Files you exported, cloud backups already uploaded and another computer’s data folder are yours to remove; SLM says so in the receipt. Not legal advice or a certification.

Mode A posture

In Mode A, core remember and recall can store and retrieve through your local data root with no model-provider call: no API key, no cloud account, no Docker. Anything that sends data out is a choice you make, and each one states exactly what goes.

What leavesOnly when
A question and the top three memoriesYou turn on Jev, the online answer check, and tick its consent
Memory textYou choose Mode C, a cloud embedder or reranker, a model on another computer, or Jev kind typing (its own consent)
Encrypted backup filesYou connect GitHub or Google Drive backup
Mesh messagesYou configure mesh peers, or allow a web app to message your bots
Tool calls from web appsYou turn on Web access and add an app; the database stays on your computer

Pictures, documents, Laya and Mode A never send anything. Secrets in memory text are redacted on every outbound path. Profiles are a recall boundary inside one installation, not a substitute for operating-system accounts: on a Mac shared by several accounts, turn on company mode.

Part 1 Security & privacy
SECURITY CONTROLS

Six control areas.

Engineering controls documented for each deployment surface. Per-workspace isolation and role-based access apply to all modes.

01 · Storage

Local Core Storage

The canonical memory source is SQLite-backed. Include indexes, models, logs, and other profile state in backup, export, and deletion procedures.

02 · Isolation

Mode A Provider Boundary

Mode A does not require an OpenAI or Anthropic key for the core memory-content path. Other modes and optional integrations can require credentials and network calls.

03 · Audit

Inspect Network Behavior

The core tool does not require product analytics for memory operations. Audit the installed release and every optional integration for the configured deployment.

04 · Core Path

Local Mode A Core Path

Mode A does not require a model provider for core memory processing. Optional connectors, backups, proxies, and downloads can still use the network.

05 · Governance

Governance & EU AI Act

Per-workspace isolation, role-based access, GDPR access/erasure/portability, and a hash-chained audit trail. A per-mode EU AI Act self-assessment maps each mode. These are engineering controls, not a certification of the operator or surrounding system.

06 · Source

Open Source (AGPL v3)

Full source code is public and auditable. Verify the installed release, optional dependencies, configured providers, connectors, and client applications.

DATA ARCHITECTURE

Where data lives, and how it moves.

Five surfaces. Each requires its own assessment for a complete deployment review.

Storage SQLite-backed canonical memory plus profile indexes, models, logs, and related state.
Embeddings Mode A uses a local embedding path. Mode C and custom embedding endpoints can make provider calls.
Learning Behavioral state is locally managed by default. Include its database, export paths, backups, and optional integrations in the deployment review.
MCP Transport stdio is the default MCP transport. Optional HTTP, providers, connectors, backup, proxies, and downloads have separate network paths.
Deletion Use supported deletion and export workflows, then verify derived indexes, logs, backups, providers, and client-side copies.
PRIVACY MODELS

Compare privacy attributes.

Attributes are deployment-configuration-dependent. Review network behavior independently for each configured integration.

Privacy Attribute SuperLocalMemory Cloud-Based Alternatives
Data location Configurable local core; optional external paths Provider-dependent
API keys needed Not for Mode A core; mode-dependent Provider-dependent
Offline core path Available in Mode A after dependencies/models are present Provider-dependent
Network calls Configuration-dependent and inspectable Provider-dependent
Open source AGPL v3 source Varies
Self-hosted option Local-first core Varies
License AGPL v3 Varies by provider
Access Control

Role-based access and workspace isolation.

Three roles per workspace. Workspaces are isolated — one workspace cannot read another workspace's memories. Single-user installs require no login.

Admin
Manage workspace users, settings, and configuration. Trigger export and erasure procedures. First-run setup creates an admin account; no default credentials are shipped.
Member
Read and write memories within the workspace. Cannot access another workspace's memory or alter access settings.
Viewer
Read-only access to workspace memories. Cannot write, modify, or trigger exports.
Workspace Isolation & Memory Scopes
Per-workspace isolation — workspaces are independent memory containers; a user in workspace A cannot read workspace B's personal memories.
Optional login gate — the require_login setting activates authentication; first-run admin account creation is required; no default credentials shipped.
Single-user installs — no login gate required; all local, no multi-tenant surface.
Memory scopes — personal (default, private to the user), shared (named profiles), global; recall is default-deny across scope boundaries.
GDPR Controls

Subject rights and data controls.

Technical controls that can support GDPR subject-rights procedures. The operator must validate completeness against the full deployment, including derived stores, backups, clients, and logs.

Art. 15 — Right of Access
Full profile export with slm gdpr export --profile NAME --output export.json. The file describes what it omits under export_manifest. Verify completeness across indexes, logs, backups, and surrounding systems.
Art. 17 — Right to Erasure
slm gdpr erase --profile NAME --dry-run previews; --yes erases irreversibly across every store and derived copy, and the result lists what was removed and what remains. Backups carry an erasure obligation until cleared. Verify backups and any surrounding systems separately.
Art. 20 — Right to Portability
Structured, machine-readable JSON export (embeddings omitted unless you ask with --include-embeddings), suitable for data portability requests. Verify completeness against all local data stores in the deployment.
Hash-chained Audit Trail
Tamper-evident log of write, update, delete and access-control events. Each entry is hash-chained to the previous one, so edits and truncation are detected. Tamper-evident, not tamper-proof.
Opt-in PII Redaction on Save
When enabled, SLM strips recognized PII patterns before storage: email addresses, phone numbers, national ID numbers, payment card patterns, and IP addresses. Off by default — configure per workspace.

Per-mode EU AI Act self-assessment and article-by-article mapping: EU AI Act →

Part 2 EU AI Act self-assessment
Self-Assessment · Per Mode

Three modes, three postures.

SuperLocalMemory ships a per-mode EU AI Act self-assessment. It is a technical-control map, not a legal certification — applicability depends on deployment, data, operator role, and surrounding system.

Mode A · Local core
Memory processing stays local with no generative AI in the core memory-content path. Per the built-in self-assessment checker: assessed as fitting EU data-residency obligations — no external provider in the core path.
data-stays-local: yes generative-AI: none in core path risk-category: assessed
Mode B · Local model (Ollama)
Local Ollama enrichment keeps processing on the machine with no external provider in the core path. Per the built-in self-assessment checker: assessed as meeting requirements. Model acquisition and any non-local Ollama endpoint must be assessed as separate network paths.
data-stays-local: yes provider-in-core: none risk-category: assessed
Mode C · Provider-assisted
Sends configured content to an external provider. Per the built-in self-assessment checker: flagged. Assess provider terms, international transfers, legal basis, logging, and retention for the complete deployment before any compliance claim.
data-stays-local: no generative-AI: provider-assisted risk-category: flagged

Self-assessment tooling, not a certification. Checker results cover the core memory-content path only. Optional connectors, backups, client applications, and model downloads retain their own network behavior and must be assessed separately.

Regardless of mode: GDPR access / erasure / portability (Art. 15, 17, 20), a hash-chained audit trail, per-workspace isolation, opt-in PII redaction, and admin/member/viewer role-based access. See Governance & EU AI Act controls →

Auditability

Bounded loops and durable ledgers.

Bounded-loop runs write a durable, auditable ledger. Each iteration is tagged and reviewable — relevant for human-oversight and traceability obligations under EU AI Act Art. 14.

bounded loop — audit ledger
# Run a bounded loop — each iteration is tagged and logged durably $ slm loop run review-cycle --max-iterations 5
✓ Loop started · tag: loop:review-cycle · ledger: durable iter 1/5 · op_id: <opaque-id> · state: complete iter 2/5 · op_id: <opaque-id> · state: complete ✓ Bounded loop complete · 5/5 iterations logged to audit ledger
# Inspect the loop audit history $ slm loop history review-cycle --json "iterations": 5 · "all_logged": true · "ledger_hash": "sha256:..."
Mapping

Article-by-article self-assessment.

How each relevant EU AI Act and GDPR requirement maps to Mode A and Mode C in the built-in checker. Self-assessment posture only — not a legal compliance determination.

Article Scope Mode A self-assessment posture Mode C self-assessment posture
Art. 10 — Data Governance Data quality, relevance, and representativeness requirements may apply to the complete system. ✓ local path Local controls and export tools provide evidence; the operator verifies data quality and governance. ⚑ provider-flagged Provider processing and terms become part of the assessment.
Art. 13 — Transparency Applicable systems may need information that lets deployers interpret outputs. ✓ local path Candidate, fusion, and reranker diagnostics provide retrieval evidence. ⚑ provider-flagged Model synthesis adds another component to document.
Art. 14 — Human Oversight Humans must be able to understand, intervene, and override AI decisions. ✓ local path Full dashboard visibility. Trust gates. Manual memory management. ✓ local path Same oversight tools available. Cloud LLM output can be reviewed before use.
GDPR Art. 15 — Right of Access Applicable deployments may need a complete subject-access procedure. ✓ local path SLM export tools supply part of the evidence; indexes, logs, backups, clients, and surrounding systems remain in scope. ⚑ provider-flagged Include provider-held data and logs in the complete procedure.
GDPR Art. 17 — Right to Erasure Applicable deployments may need verified erasure across every copy and processor. ✓ local path Hard delete with verification; operation logged before execution. Derived copies that quote the memory are withheld and removed automatically, and backup residue is tracked as an obligation. Verify backups and surrounding systems separately. ⚑ provider-flagged Verify local deletion and the provider's deletion and retention process.
GDPR Art. 20 — Right to Portability Applicable deployments may need structured, machine-readable export for portability. ✓ local path SLM export produces structured, machine-readable JSON output. Verify completeness against all local data stores. ⚑ provider-flagged Include provider-held data representations in the portability scope.

"Local path" and "provider-flagged" are outputs of the built-in checker — not legal determinations. Mode B follows the same local-path assessment as Mode A. Engage qualified legal counsel for the complete compliance evaluation of your deployed system.

Common Questions

Questions about governance.

Technical Controls

Start with Mode A when a local core path fits.
Validate before any compliance claim.

Validate optional network features, provider terms, operator duties, and the surrounding AI system before making any compliance or data-residency claim. Qualified legal advice is required for the complete assessment.

Access control

Roles, workspaces and the login gate

Source: docs/rbac-teams.md

There are three roles, and they are assigned per workspace. A workspace is a profile, with its own memory database, member list, retention policy and audit trail. Being an admin in workspace A grants nothing in workspace B.

RoleRead memoryWrite memoryManage users and config
adminyesyesyes
memberyesyesno
vieweryesnono

The login gate is the require_login setting. When it is false, a caller on the loopback address is trusted as the owner, which suits a personal install. When it is true, reading and saving memories needs a signed-in user, and the machine owner can still manage users and settings without signing in. With the gate on, every state-changing route asks for a role, and the check runs before the request body is read. A refusal is therefore always a 401 (sign in) or a 403 (your role does not allow it), never a 422 or 500.

No default credentials ship. When login is enabled, the first run starts an admin creation flow where you choose the password. The doc is blunt that SLM does not enforce password complexity. Session cookies are HttpOnly, and setting SLM_DASHBOARD_HTTPS=1 adds the Secure flag. Failed sign-ins are tracked and repeated failures trigger a lockout window. The install token lives in memory only and is limited to loopback addresses in company mode; slm rotate-token replaces it. An admin of one workspace cannot modify users in another, which is the IDOR protection the doc describes.

The user and membership routes live under /api/rbac/* and need SLM's own credential, and administration needs the MANAGE permission on the target profile. slm profile only lists, switches and creates workspaces; it does not manage users.

Deployment tiers

Personal and Enterprise are presets, not different builds

Source: docs/deployment-tiers.md

One binary ships. The tier is a configuration preset in the [deployment] table of config.toml in the data folder, and Personal is the default when the table is absent.

CapabilityPersonalEnterprise
Login gate (require_login)offon
PII redaction before storage (pii_redaction)offon
Retention scheduler (retention_enabled)offon
Hash-chained audit trail (audit)onon
RBAC, GDPR export and erasure, meshonon
Cloud backup, Scale Engine projectionsopt-inopt-in

A [deployment] table that cannot be read, has an unknown mode or holds a non-boolean value is treated as Enterprise, so a typo cannot quietly weaken the controls. When retention is on, the scheduler checks each profile hourly and applies its named rules: archive moves an expired memory to the archived zone, tombstone archives it and marks it purgeable, and notify changes nothing and reports a count. Enforcement is soft. It changes a memory's state and never deletes the raw row. PII redaction is pattern-based and the doc says it does not catch every pattern, so check coverage against your own content.

Encryption and secrets

What protects the files, and where the limits are

Source: docs/SECURITY-encryption-at-rest.md

The threat model has three cases: a stolen or removed disk, another account on the same machine reading the database files, and a backup copied somewhere unprotected. The doc names full-disk encryption (FileVault, LUKS or BitLocker) as the primary control for the first. It does not claim application-level database encryption by default, and it explains why: a page-level scheme such as SQLCipher needs a non-standard driver, and without a hardware keystore the key sits on the same machine as the data, which mostly repeats what the disk layer already does.

  • The data directory is mode 0700 and database files, with their WAL and shared-memory sidecars, are set to 0600 when opened.
  • The secret screen replaces anything shaped like a credential with a typed placeholder such as [REDACTED:GITHUB:ab12] before it is stored, and the original is kept nowhere.
  • Every request that can carry memory text off the machine goes through one outbound gate that redacts credentials for any non-loopback host. A test fails the build if new code opens an outbound request outside that gate.
  • PII redaction before storage (email, phone, SSN, card, IP) is opt-in, through SLM_PII_REDACTION=1 or the config.
  • Cloud backups are encrypted on your machine with AES-256-GCM before upload, so GitHub and Google Drive hold only ciphertext. The key stays in your credential store. slm backup recovery-key shows the recovery key, and without it a backup cannot be restored on another machine. Pictures and PDFs are never uploaded.

Shared Macs. In a personal install the local service trusts every request from the computer, including programs run by another user account. The doc says a per-request account check is not in the release it describes. On a Mac shared by several people, turn on company mode, which makes reading and saving memories need a signed-in user.

Tamper evidence

Signed memories and the hash-chained audit trail

Source: docs/signed-memories.md

Signing is controlled by the trust.signing flag. Each memory gets an HMAC-SHA256 signature over the profile, the memory id, the SHA-256 of its text and its creation time, using a key held in the operating system keychain (macOS Keychain, Windows Credential Manager, or Secret Service on Linux). If no keychain is available, signing reports itself as unavailable and does not fall back to a key file.

What it catches is a memory changed, added or moved by something that has the file but not your login session: a synced copy, another account, a disk image, an edited backup. What it does not do is stop a process running as you, which can ask the keychain for the key the same way SLM does. The doc calls it tamper evidence, not access control. It also lists what is left out on purpose: the pinned flag, the memory kind and the trust class are not signed, so a rewritten file could promote a memory to a standing rule with its text signature intact. Treat a copied or restored file you did not make as untrusted for rules and pins, and review them after a restore. slm doctor --truth and slm why FACT_ID show the result.

The audit trail is a hash chain. Each entry's hash covers every stored field, details included, so editing any of them breaks the chain. The chain is plain SHA-256 with an external count-and-head anchor. It detects edits and truncation, but someone able to rewrite both files could recompute it. Access-control events are recorded in it: user creation, update and deletion, role changes, membership removal, policy changes and sign-ins, each as requested and then with the outcome. A change is refused if the trail cannot record it. Entries name the accounts and roles involved and never a password or token.

Erasure and export

What an erasure removes, and what it says it did

Source: docs/compliance.md

slm forget "query" --dry-run
slm delete <fact_id> --yes
slm gdpr export --profile <name> --output export.json
slm gdpr erase --profile <name> --dry-run

Erasing a profile does not stop at memory.db. SLM checks the data folder after the erasure and removes the profile from the relational rows, the full-text index including free pages, the vector index and its history, the graph store's entity nodes, queued saves in pending.db, the encrypted request journal, the recall queue, the MCP cache, the reversible originals kept by compression, write receipts, and an erased picture's stored original and backup mirror.

The result reports what happened. slm gdpr erase --json returns success: false for an incomplete erasure and lists what was removed and what remains, with the step that retries it. The stored receipt is written after every step, so it cannot read COMPLETE over a failed sweep.

Backups are the one place an erasure cannot rewrite, because an edited copy would stop matching its checksums and could not be restored. Each backup that holds the profile is recorded as an erasure obligation. The obligation is replayed on every restore and ends only when the backup is deleted or re-read and found clean, never by age. A backup SLM cannot read counts as an obligation too. Files you exported, cloud backups already uploaded and another computer's data folder are yours to remove.

The full export is plain JSON. It covers every table in memory.db with a profile column, the profile record, the code graph, a media section of records without picture bytes, learning signals, the audit chain entries about you and pending saves. Embeddings are left out unless you pass --include-embeddings. The file describes its own omissions under export_manifest, and on failure the CLI writes no file.

The doc's own framing applies here: these are controls that can support a compliance program. It does not provide a BAA, a DPA or a certification. Profiles are a recall boundary inside one install, not a substitute for operating-system accounts or a multi-tenant authorization service.

Written and maintained by , Founder, Qualixar. Last reviewed against the SuperLocalMemory repository and the published papers. Sources: docs/compliance.md, docs/rbac-teams.md, docs/deployment-tiers.md, docs/SECURITY-encryption-at-rest.md, docs/signed-memories.md.

Star on GitHub