Retrieval Is Solved. Why Agent Memory Still Isn't Safe. A developer has found that AI agent memory systems optimized for retrieval accuracy can produce more unsafe actions than less accurate retrieval strategies, because relevance and authority are separate objectives that diverge under adversarial conditions. Testing across twelve scenarios revealed that target-accurate retrieval of mislabeled memories creates false-certainty errors, as metadata written by the same system storing the memory cannot be trusted. The research proposes moving security gates to actual tool-call parameters checked against external grant tables, which eliminated false-certainty errors across all seven test cases. This is part of the Self-Correcting Systems research series. If you are new here: Start Here. The public harness is at github.com/keniel13-ui/ai-memory-judgment-demo. The AI memory ecosystem has spent three years solving a hard problem. How does an agent preserve state across sessions? How does it retrieve the right context without overloading the window? How does it manage long histories and surface the right memory at the right moment? LangChain, LlamaIndex, MemGPT/Letta, and Zep have all built real things toward that problem. Vector stores, hybrid search, semantic similarity, context compression — the tooling is mature and the research is serious. I am not here to argue with any of that. I want to name a different problem. One that the retrieval work does not cover. When an agent retrieves a memory and acts on it, two things have to be true. First: the memory is relevant to the query. Second: the memory is authorized to govern the action. The ecosystem is overwhelmingly built around the first question. The second one — whether retrieved memory has authority to govern what happens next — is the underdeveloped layer. And in our research, the two objectives actively diverge. That was the first finding that stopped me cold. A retrieval strategy that finds the right memory more accurately can produce more unsafe actions than a strategy with lower retrieval accuracy. Relevance and authority are different objectives. They pull in different directions under adversarial conditions. That is CLAIM-01. It held up across twelve scenarios, two retrieval modes, and multiple external packets. The research started as a retrieval experiment. It became a framework for testing something retrieval does not test. Here is the arc in plain language. Step 1 — Relevance and authority diverge. Finding the right memory does not mean being allowed to act on it. We documented this across annotated and fresh-authored adversarial scenarios. CLAIM-01, CLAIM-08 Step 2 — We tried to make authority math explicit. A governance-adjusted scoring formula: relevance + authority weight + scope match + specificity + action type + status validity - conflict risk. The formula is diagnostic. It exposes where the architecture depends on brittle metadata. A held-out packet showed that plain BM25 outperformed the full scorer. We published that falsification as the lead finding. CLAIM-15, CLAIM-15B Step 3 — Target-accurate retrieval of mislabeled memories is worse than missing them. When sensitive memories are stored as ordinary context — no authority signals, no governs field — the retrieval system finds them cleanly and answers with full confidence. False-certainty errors. We tested this across credential packets, PII packets, and industrial safety packets. CLAIM-17, CLAIM-18 Step 4 — Stop trusting the memory's self-description. The obvious fix is better metadata. The problem is that metadata is written by the same system that stores the memory. A mislabeled memory will pass any check that only reads its own claim. We moved the gate to the operation context: what is the agent actually about to do? CLAIM-22 Step 5 — Stop trusting the query too. A query can describe an operation vaguely. "Take care of the partner setup" sounds routine. The tool call behind it — send secret , target resource: prod api key , recipient: external partner — is not. We moved the gate to the actual tool-call parameters, checked against an external grant table. 7/7. Zero false-certainty errors. CLAIM-23 The write-time question is still open. Who is allowed to store authority-bearing memory in the first place? That closes the full cycle: write → retrieval → execution. I want to be precise here because overclaiming is exactly the credibility problem we are trying to avoid. LangChain, LlamaIndex, MemGPT/Letta, and Zep solve real memory, retrieval, state, and context problems. Several expose access controls: human approval workflows, RBAC, read/write boundaries, or middleware hooks. Conditional routing frameworks and tool-calling guardrails in several of these ecosystems address adjacent failure modes. These are legitimate and useful. What I have not found — and what the harness tests for specifically — is a public, stress-tested framework that asks whether retrieved memory is authorized to govern the action that follows. Not access at the system boundary. Not role-based permissions at write time. The narrower question: does this retrieved memory have authority to govern this operation ? If any of these frameworks have a public harness for that, I want to see it. The harness is built to receive external pressure. ANP2 challenged the self-description gap before I had fully named it. Felix pushed the work from philosophy to evidence. Those were the most useful inputs the research received. The comparison I can make honestly is about the public evidence layer: | Framework | Memory / Retrieval | Access / Approval Controls | Memory-Authority Stress Tests | Operation-Bound Grant Eval | Public Claim Ledger | |---|---|---|---|---|---| | LangChain | Yes | Partial | Not found | Not found | No | | LlamaIndex | Yes | Partial | Not found | Not found | No | | MemGPT / Letta | Yes | Partial | Not found | Not found | No | | Zep | Yes | Partial | Not found | Not found | No | | Self-Correcting Systems | Yes | Yes | Yes | Yes | Yes | "Not found" means I searched and found no public harness testing this layer. If I missed something, say so. I will update the table. I want to say something about the last column because it is the one that matters most to me. The AI research space has a confidence problem. Frameworks claim memory progress. Papers claim retrieval improvements. Products claim safer agents. Most of these claims are made without pre-registration, falsification conditions, or a public harness anyone can challenge. We pre-register every claim before running the experiment. When the experiment contradicts the prediction, we publish that falsification before the next article drops. Not buried. Not reframed. The failed prediction is the lead. This is still uncommon. The standard is low. "Our approach improved results" is easy to claim when you pick the benchmark, write the eval, and decide when to publish. The harness is designed to receive adversarial pressure. ANP2 wrote external packets. Felix asked whether the results were real or AI-generated. Both pushed the research toward harder evidence. That is what the public ledger is for. 23 claims. Pre-registered. Falsifications published. Anyone can replicate or challenge: github.com/keniel13-ui/ai-memory-judgment-demo https://github.com/keniel13-ui/ai-memory-judgment-demo . The research arc can be replicated. The harness is public. What cannot be copied is the evidence trail built in public, under external pressure, with falsification results on the record before each article dropped. There is no private period where we ran experiments until we got results we liked. The claim ledger is sequential. The timestamps are real. When the held-out test broke the formula, the first article led with that. Three trust boundaries crossed. First, the memory could not be trusted to describe its own authority. Then, the query could not be trusted to describe the operation. Now the gate reads the tool call and checks an external grant. That still is not the whole system. Write-time authorization — who is allowed to store authority-bearing memory in the first place — is the open problem. Q3 2026 target. The Memory Authority Auditor at memory-authority-auditor-web-992750435781.us-central1.run.app https://memory-authority-auditor-web-992750435781.us-central1.run.app is the framework running at product speed: six agents, live web interface, takes any memory file and returns an authority audit report. If you work on agent memory and have pushed on the authorization layer in a way I have not described here, I want to read it. That is what the harness is for. Prior articles in the series: