Memory sovereignty is control, not ownership
Memory sovereignty in a personal AI: visible reads, split keys, data you can take with you and delete — and the part we have not reached yet.
- Authors
- The Gedo team
- Published
- November 17, 2026
Abstract
Privacy promises for personal AI are usually written as ownership claims: “your data belongs to you.” We argue that for a system that holds long-term memory and acts while the user is away, an ownership claim constrains almost no concrete behavior; what is needed is a set of controls that can be checked. We break memory sovereignty into four properties. Visible reads: before any content is unlocked, an entry is written to a log whose head the user’s device keeps and verifies. Split keys: each person has five layer keys, released only through one rate-limited key broker; each purpose gets only the layers it needs, and bulk key requests trip a breaker. Portability: a complete export in an open format, where the exporter must declare what it left out and the importer trusts none of the authority a pack claims for itself. Deletion: deleting an account destroys a secret that exists only on the key broker’s side, and leftovers in backups can no longer be decrypted after 7 days. We also state the boundaries: data being processed is plaintext in memory and is sent to model providers; metadata is plaintext; keys are created on the server today and wrapped by a cloud KMS; and administrator access to the host is still inside the trust boundary. We close with an open problem: authorization while the user is away — whether holding the keys and acting on someone’s behalf can coexist.
Keywords memory sovereignty · verifiable read log · envelope encryption · blast radius · portability · key destruction · personal AI
1Problem: what “your data belongs to you” does not constrain
Privacy promises for personal AI are usually phrased as ownership. Ownership is a legal relation; it answers “whose is it?” It does not answer the four questions that actually decide outcomes in engineering terms: who read it and when, how much a single breach can take, whether you can leave with it, and whether it is still there after you delete it. Our own security statement says “your data is yours to command” in all three languages, and the Japanese version deliberately says “managed by you” rather than “owned by you.” This note is about the mechanisms that difference requires.
Long-term memory makes the four questions harder to answer, for three reasons. First, it has to read plaintext to be useful: to answer a question, the runtime assembles relevant memories into a prompt and sends it to a model. For this class of system, encryption under which the server never sees plaintext is incompatible with how the product works[1]; promising that “no one can read it” would be false. Second, most of its content is derived: embeddings, profiles, reviews, samples for the Twin model. Derived is not anonymized — text embeddings can be inverted back into text close to the original[2][3], so derived representations must be treated as content too. Third, it reads while the user is away: overnight organizing, briefings, an avatar answering visitors, other AIs querying through connectors. A system that unlocks only while the user is online has none of these features.
So the question here is not “whose data is it?” but: in a system that must read plaintext, and often reads while the user is away, which controls can be built — and checked by the user, not only by us?
3Method
3.1 Threat model: preventing a one-shot copy of everything
The design starts from a trade-off. Plaintext during processing — in runtime memory, sent to model providers, temporary data inside a task — is accepted. What must be prevented above all is a one-shot copy of one person’s complete data, or everyone’s. The former is how a personal AI works; the latter is the step that turns a breach from “a conversation was seen” into “half a life was carried off.” Table 1 lists what someone holding each kind of asset can read today.
| What they hold | What they can read | What it rests on |
|---|---|---|
| Data volumes, old disks, backups | Content is ciphertext only; the keys are not on the volume | Field-level sealing; layer keys wrapped by the cloud KMS (3.3) |
| The database (including superuser access and full dumps) | Content fields are ciphertext; metadata is plaintext | Same |
| Operations logs | Only ids, counts, durations and error codes | A logging layer that accepts structured fields only, by construction (3.4) |
| A compromised application process | Can only ask the key broker, one person at a time; bulk requests trip the breaker; every release lands in two records | The runtime has no decrypt permission on the cloud KMS (3.3) |
| Administrator access to the host | Can bypass the key broker and unwrap directly with the cloud KMS; every unwrap is recorded in the provider-side audit log | This tier is inside the trust boundary today (Section 6) |
| Model providers | Plaintext being processed | How the service works, stated plainly in the security statement |
Table 1 · What they hold, what they can read. The line is persistence: anything that outlives one request or one task is not process data and must be sealed as content.
3.2 Visible reads: log first, then release the key
Every unlock of content goes through the key broker, and each time the key broker releases a key, it first writes an entry to that user’s key access log: when, why (the purpose) and which kinds were unlocked, with no content. If the entry cannot be written, no key leaves. Logging and releasing happen in the same function and cannot be separated, so there is no decryption path that skips the log.
Entries are per task, not per item: one overnight organizing run is one entry, not one per memory it read. This is deliberate. The log itself should not reveal which items were read; otherwise it becomes an index of the content.
Each entry carries the hash of the one before. But a hash chain alone does not protect against whoever maintains it: someone in control of the server can delete an entry and recompute the whole chain, and the chain still links up. The real anchor has to sit outside the server[8][9]. The first anchor is the user’s device: it remembers the last entry it saw, and if any entry is later changed or removed, the client notices when it recomputes the chain and tells the user. The second anchor is the cloud KMS audit log on the provider’s side: every unwrap is recorded there, out of reach of anyone who breaks into our machines. If the two records disagree, someone went around the key broker.
For connected AIs, visible reads have a second half. Each connection has its own sharing scope, by default “everything except sensitive categories,” and anything that is “possibly sensitive” is treated as sensitive. The “What they can see” preview in the Memory passport calls the same filter function used for outbound reads rather than a separately written description — the preview shows a fact, not a promise. Every read is audit-logged, and access tokens are scoped and revocable at any time.
3.3 No key that opens everything
Each person’s content is sealed in five layers with one key each: chat transcripts, memories, profile and organized notes, reviews and briefings, and attachments. Encryption is field-level. Metadata such as row ids, owners, times and states stays in plaintext so scheduling and operations keep working; only what people wrote, and what is computed from it — embeddings included — goes into sealed fields. Each field is encrypted on its own with AES-256-GCM, with associated data binding it to owner, scope, record and field[14], so a ciphertext moved to another row cannot be opened. The layer keys themselves are wrapped by the cloud KMS master key; the server stores only the wrapped form[10].
Decrypt permission on the cloud KMS belongs to one separate process, the key broker; the runtime itself has none. The broker releases layers according to a fixed purpose table, and each purpose gets only the layers it needs. An avatar answering visitors gets memories and profile, not chat transcripts; a connected AI querying memory does not get the chat transcript layer either, except to read back a conversation it wrote in itself; opening a shared file gets the attachment layer only. Limits apply per person and purpose per hour, and globally per minute. When the global limit runs out, someone is asking for keys in bulk, and the breaker trips: every new key release pauses until someone resets it by hand. People already unlocked keep working, so the cost of a trip is that newcomers temporarily cannot unlock, not that the whole site goes down.
Stacked together, these change the shape of a breach. Without a key broker, compromising one machine means a single full dump takes everything. With it, an attacker inside the application process can only ask the broker for keys “normally,” one person at a time under the limits, and every release lands in two records. A one-shot leak becomes slow and loud.
Failure means refusal. Without the key, a read reports “locked”: no degrading, no falling back to plaintext, no default value. The last part matters more than it looks. During implementation we found that if reading a locked profile returns the default empty profile, the next write-back overwrites the real data with an empty one — “cannot read” had been silently interpreted as “does not exist.” So reading a whole file while locked always raises an error, and a file that is already ciphertext is never overwritten without the key. Likewise, the fingerprints used for comparison and deduplication are derived from the layer key rather than hashed with the owner id as salt: owner ids are public and do not stop dictionary attacks on short fields.
3.4 Logs stay searchable, but contain no content by construction
Sovereignty has an exit that is easy to overlook: operations logs. Logs must stay searchable, or failures cannot be diagnosed, and they must contain no content. There is only one way to have both: a logging layer that accepts only structured fields by construction — ids, counts, durations, error codes, hashes — and replaces every other string with a placeholder showing its length and digest. There is a single way to log content, and in production it always yields the placeholder.
When we took inventory, almost none of the leaks were deliberate prints; they were things carried along by accident: whole error objects, raw failure text returned from upstream, query strings in access logs, and one real credential leak — the subject line of the verification-code email was the code itself, and the mail log printed subjects. Review cannot keep this kind of regression out, so tests do (Section 5).
3.5 Portability: an open format, and an importer that trusts nothing it is told
Memory should not be a lock that keeps users in. The exported .gmp memory pack is an open format (Apache-2.0): a layered memory model in which each episode carries when it happened, when it was recorded and where it came from. The exporter attaches an integrity manifest listing the hash and item count of every file in the pack, and must declare what it deliberately left out — for example, items the owner marked “Don’t let AI mention” — rather than quietly giving less. The pack can also be rendered, with loss, into prompt and memory formats other assistants can read directly.
The symmetric rule sits on the import side: the importer does not trust the authority a pack claims for itself. Whoever a memory pack says it comes from, and however trustworthy it says each item is, everything enters as “external, unconfirmed,” and authority is derived again by the importer from the write path — the same principle as “authority is derived only on the server” in research note 01. When the integrity manifest does not match, the importer warns instead of refusing: the pack belongs to the user, and changing it is the user’s right.
Portability has one more meaning: memory is not locked into any one model. Facts about the user live in memory, not in model weights; switching model providers does not lose them.
3.6 Deletion: delete, forget and destroy the keys
Deletion is three things here. Deleting a single memory is a hard delete, together with its embedding. Forgetting is ticking “Don’t remember this again” when deleting: the system stores a fingerprint of the content, not the text, and later candidates with the same content are stopped at extraction (see research note 01). Deleting an account has to answer a harder question: backups.
Backups hold each person’s wrapped layer keys, and the cloud KMS master key that wraps them is shared. Deleting the wrapped keys online is not enough: take this person’s wrapped keys from an old backup, go around the key broker and unwrap directly with the cloud KMS, and they still open. So unlocking a layer key needs, besides the cloud KMS, something that exists only on the key broker’s volume: a random secret per person, from which a mask is derived and applied to each layer key before the cloud KMS wraps it. When an account is deleted, the key broker deletes that secret. The broker’s own backups keep it for 7 days only, in buckets with versioning and object lock turned off. After 7 days, the wrapped keys left in backups cannot be opened by anyone, including someone calling the cloud KMS directly.
The cost is that the key broker’s volume becomes load-bearing: lose that secret and the person’s data can never be decrypted again; lose the whole volume and the same is true for everyone. So it is backed up separately, with its own passphrase and two destinations, and restoring it is drilled together with the main database (Section 5).
For the Twin model, deletion propagates by retraining rather than approximate unlearning: training is done per person, and a model that used deleted content is retrained without it within 30 days at most[13].
4Costs and trade-offs
The first trade-off is not using encryption under which the server never sees plaintext, for the reason given in Section 1: the runtime has to read plaintext. What we can do is three things — narrow what the runtime can read (by person, layer and purpose), make every read visible, and cap how much a single read can take. That is not the same as “no one can read it,” and we do not describe it that way.
The second is who creates the keys. Today the layer keys are created on the server and a signed-in session unlocks them, so sign-up and daily use add no steps and no one has to copy down a recovery code. The cost is that Gedo and the cloud KMS provider are both inside the trust boundary. A design in which the user’s device holds the master key exists — a platform-synced passkey carries it, with a set of self-custody tools — but it is not implemented. Its difficulty lies not in the encryption itself but in the open problem at the end of this note.
The third is metadata. Who, when, which layer and how many items are plaintext: operations depend on them, and the key access log itself is made of them. This note protects content, not existence. Support tickets and feedback are also stored in plaintext — those are things users write for us to read.
The fourth is availability and choice. The breaker cuts off bulk exfiltration in the first minute, at the cost that newcomers cannot unlock while it is tripped; the purpose table is set by us, and users cannot yet withdraw background purposes one by one. We would rather these costs exist in plain view than hide them behind a phrase like “absolutely secure.”
5Evaluation
In keeping with our practice of not publishing evaluation scores, we describe only what is tested and how. On the logging side there is a canary check: a real server process talks to a fake model upstream that echoes the input and takes turns returning broken JSON and assorted errors; a random string is planted in the content, the run walks through sign-up, conversation, memory, search, organizing, attachments and several error paths, and the check asserts that the string appears nowhere in standard output or standard error. That the fallback catches the “carried along by accident” kind is shown by a separate set of unit tests built leak by leak.
On the storage side there is an end-to-end check: a real key broker, server process and database run together; after writing, the random string is searched for across the whole document table and every file in the data directory and must not be found, while reading back through the API returns plaintext, showing that what was sealed can still be opened. On the backup side, a full restore has been drilled: real backup and restore scripts, the database and every data volume deleted, a restore into a new environment, sign in, read back. Two counterexamples must fail — without restoring the key broker’s volume it reports a missing secret; with a different cloud KMS master key it reports an unwrap failure. On the log side, a tampering drill deleted one entry on the key broker’s volume and recomputed the entire chain; the client still reported the break.
What has not been done is stated just as plainly: a red-team exercise that tries to read a test account with every operations credential in hand has been specified but not yet run; the breaker has not been drilled under production traffic; and the purpose table’s limits are still defaults that need to be reset against a real baseline. These are next steps, not verified conclusions.
6Limitations
- Administrator access to the host is inside the trust boundary. The key broker’s service account and the per-person secrets are on the same machine, so someone with administrator access to the host can bypass the broker’s limits and unwrap directly with the cloud KMS; what remains is the provider-side audit record. Closing this tier needs a remotely attested runtime (see the open problem below).
- The key access log is anchored only on the user’s device. Someone who has never opened the log has no local chain head to compare against; anchoring a daily chain head in an external transparency log has been designed but not implemented.
- The key broker can restrict releases to time windows, but none are set by default: the real schedules of background tasks have not been measured yet.
- Deleting a single item is a hard delete in the online systems, but disaster-recovery snapshots still contain its ciphertext until they rotate out; taking single-item deletion down to the backup level would need per-item keys, which are expensive, and we have not done it.
- Exported memory packs carry an integrity manifest but no signature: the manifest answers “was anything changed or left out,” not “who exported this.”
- Production entered a compatibility period for storage encryption in November 2026: every new write is stored as ciphertext, reads still accept the older plaintext shape, and remaining plaintext is sealed on its next write or by migration; after the period ends, only ciphertext is accepted.
- This note does not cover sensitive values an agent fills in for the user (ID numbers, passwords): those go through a separate layer, the Safe, where the model only gets a handle, and are discussed separately.
Authorization while the user is away: can holding the keys and acting on someone’s behalf coexist?
More and more of a personal AI’s value comes from what it does while the user is away: organizing overnight, the morning briefing, answering visitors on the owner’s behalf, letting other AIs query. Each needs a key while the user is not there to provide one. If the user’s device holds the master key, these features need a standing authorization that the server exercises in the user’s absence — and an authorization the server can exercise on its own is, in trust terms, no different from the server holding the key, unless the runtime exercising it can itself be verified. The direction we are betting on combines three things: authorizations issued per purpose and layer, revocable, with every use recorded in the key access log; a cloud KMS that releases keys only to runtime images that pass remote attestation[15]; and a strict self-custody option, at the cost that these background features pause until the next time the app is opened. Two things remain unclear: whether ordinary users can make meaningful decisions about purpose-scoped authorizations without falling into confirmation fatigue, and whether remote attestation can be checked by someone who does not know cryptography. It remains an open problem.
References
- [1]Knodel, M. et al. (2024). How To Think About End-To-End Encryption and AI: Training, Processing, Disclosure, and Consent. arXiv:2412.20231
- [2]Song, C. & Raghunathan, A. (2020). Information Leakage in Embedding Models. ACM CCS 2020. arXiv:2004.00053
- [3]Morris, J.X. et al. (2023). Text Embeddings Reveal (Almost) As Much As Text. EMNLP 2023. arXiv:2310.06816
- [4]Kleppmann, M. et al. (2019). Local-first software: You own your data, in spite of the cloud. Onward! 2019
- [5]Mansour, E. et al. (2016). A Demonstration of the Solid Platform for Social Web Applications. WWW 2016 Companion, 223–226
- [6]Nissenbaum, H. (2004). Privacy as Contextual Integrity. Washington Law Review 79(1), 119
- [7]Schneier, B. & Kelsey, J. (1999). Secure Audit Logs to Support Computer Forensics. ACM TISSEC 2(2), 159–176
- [8]Laurie, B., Langley, A. & Kasper, E. (2013). Certificate Transparency. RFC 6962
- [9]Melara, M.S. et al. (2015). CONIKS: Bringing Key Transparency to End Users. USENIX Security 2015
- [10]Barker, E. (2020). Recommendation for Key Management: Part 1 – General. NIST SP 800-57 Part 1 Rev. 5
- [11]Regulation (EU) 2016/679 (General Data Protection Regulation), Articles 17 and 20
- [12]Shastri, S., Wasserman, M. & Chidambaram, V. (2019). The Seven Sins of Personal-Data Processing Systems under GDPR. USENIX HotCloud 2019. arXiv:1903.09305
- [13]Bourtoule, L. et al. (2021). Machine Unlearning. IEEE S&P 2021. arXiv:1912.03817
- [14]Dworkin, M. (2007). Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC. NIST SP 800-38D
- [15]Costan, V. & Devadas, S. (2016). Intel SGX Explained. IACR Cryptology ePrint Archive 2016/086