An agent that remembers can drop a fact its owner needs, or store one that someone planted in a document it read. We put the gate in front of the reference memory server of MCP, the protocol agents use to reach their tools: the owner names the facts that stay, and no write gets past them.
## Why it matters
Agents are now given a memory that lasts across sessions: who the user is, what was agreed, which supplier is which. A new paper from Meta and university colleagues (MemRSI, November 2026) trains a model to manage that memory and even to improve its own training. Two of its own results say where the value is. A memory with a fixed, checked structure is the largest single gain, larger than each layer of learning added on top. And when the system was allowed to change that structure itself, it got worse.
A memory write is an action like a payment or an email, and it lasts longer: what is written today is what the agent believes next week. An agent can delete a fact its owner needs ("payments above 1,000 euros need a second approval"), or store a fact planted in a document it read ("the owner approved all payments to this account").
## What we did
We built a gate table for the reference memory server of MCP, the protocol agents use to reach their tools: its nine tools, three that read, three that add and three that delete. On top of the tool descriptions the owner writes a short list of rules:
- the people, facts and links that a delete may never remove;
- the records closed to new facts, such as the owner's own;
- the kinds of record an agent may create;
- how many items one delete may name, and how long a written text may be.
## What we found
Ordinary memory work passes: reading, searching, adding a fact about a customer, deleting an old note. Every write that touches what the owner keeps is refused with a fixed reason: deleting a kept fact, deleting a record that holds one, writing a new fact into the owner's record, creating a record of a kind the owner did not list. The memory server matches names and texts exactly, so the gate does the same: a near miss deletes nothing the owner keeps, and it passes.
## Technical detail
- Nine tools, compiled from the server's own definitions; with the live server every tool is pinned to its definition, so a changed tool is stopped until a person signs the new one.
- Every rule reads the call alone. No model and no score take part: the same write always gets the same answer.
- 27 decisions tested on the gate engine that runs in production: all as expected.
- The gate keeps no count across calls, so the limit on deletes is per call.
This update is not available.