Skip to content

A study empirically tests five Agent memory systems and finds none of them enforce revocation markersRevoked but Still Authoritative: An Empirical Study of Revocation Enforcement in Agent-Memory Systems

Paper Tracker· arXiv:2609.08258· Yi Ting Shen, Kentaroh Toyoda, Alex Leung·Indexed by this site · 2026-10-03· Originally publishedSelected AttacksSelectedAttention39

Quick read

Evaluation and benchmarks

Based on the paper PDF (generated by Gemini); refer to the original

Evaluation of 5 agent memory systems found that none enforce soft revocation by default; under direct insertion with no defense, agents chose unsafe actions in exposed systems at a rate of 43.1% (699/1620).

Questions
Long-lived agent memory systems commonly use soft revocation to preserve history, marking contradictory facts as invalid rather than deleting them directly. However, whether the system actually enforces this revocation marker during retrieval has not been previously tested; revoked stale policies may still be retrieved and guide the agent to perform unsafe actions.
Methods
The authors stored revoked policies and replacement new policies in 5 memory systems, tested 9 models across 9 scenarios for retrieval exposure rate and unsafe action rate, and evaluated 6 defense conditions; they then designed a stale retrieval guard component placed between the agent and the memory backend.
Experiments and results
None of the 5 systems enforced revocation in all cases. Under direct insertion with no defense, the two exposed systems returned revoked records 81/81 times and ranked them first, leading to an agent unsafe action rate of 43.1% (699/1620, Table 6); storage-level filtering reduced this to 0.0%, but write-back caused the filtering to fail.
Limitations and future work
The evaluation covers only 9 policy scenarios, 9 models, and 5 memory backends. The proposed protection component's conflict detection stage on Zep only intercepted 4/14 revoked records because policies are split across edges, and under indirect insertion it mis-intercepted valid facts on cognee and Graphiti.
Experimental setupGPT-5.5、Grok-4 et al. · 9 policy scenarios (Table 4)、4 tool-facing scenarios (Section C.3) · exposure rate (Pr[ER = 1])、unsafe-action rate (Pr[a = a−]) et al.
Evaluated models
GPT-5.5Grok-4DeepSeek-V4-FlashGPT-5-nanoGemini-2.5-FlashGrok-4-FastGLM-5.2Gemma-3-27B-ITKimi-K2.6
Benchmarks
9 policy scenarios (Table 4)4 tool-facing scenarios (Section C.3)
Metrics
exposure rate (Pr[ER = 1])unsafe-action rate (Pr[a = a−])tool execution rateexfiltration confirmed
AI summaryand selection rationaleThe researchers empirically measured five agent memory systems with soft revocation—Graphiti, Zep (both sharing the same engine), mem0, langmem, and cognee—and found that no system performs revocation by default: facts marked invalid may still be returned at retrieval time, causing the agent to choose unsafe actions. The experiments covered nine policy scenarios and nine models from six vendors, with each trial scored under six defense conditions. Two of the five systems returned both revoked and replacement records; these two ranked the revoked record ahead of the current record in all scenarios and led the agent to choose unsafe actions in more than two-fifths of trials. The authors accordingly developed a guardrail between the agent and the memory backend that checks record validity at read time, withholds revoked records or records conflicting with replacement versions, and validated it on the same systems and models; the code is open-sourced.

The researchers empirically measured five agent memory systems with soft revocation—Graphiti, Zep (both sharing the same engine), mem0, langmem, and cognee—and found that no system performs revocation by default: facts marked invalid may still be returned at retrieval time, causing the agent to choose unsafe actions. The experiments covered nine policy scenarios and nine models from six vendors, with each trial scored under six defense conditions. Two of the five systems returned both revoked and replacement records; these two ranked the revoked record ahead of the current record in all scenarios and led the agent to choose unsafe actions in more than two-fifths of trials. The authors accordingly developed a guardrail between the agent and the memory backend that checks record validity at read time, withholds revoked records or records conflicting with replacement versions, and validated it on the same systems and models; the code is open-sourced.

Why it was selectedThe paper empirically tests five agent memory systems and finds that none enforce revocation markers during retrieval, and provides a reproducible retrieval-layer guardrail design.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Examines whether the soft revocation mechanism of agent memory systems is actually enforced at runtime, preventing revoked invalid records from continuing to mislead agents into unsafe actions.

    Whether the soft revocation mechanism of agent memory systems is enforced during retrieval at runtime, and whether records marked as invalid are still retrieved and cause the agent to take unsafe actions.

    • Application scenario and importance: Persistent memory allows agents to retain and reuse history across sessions. Many memory frameworks adopt soft revocation, marking contradictory facts as invalid rather than physically deleting them when knowledge is updated, to support audit trails and point-in-time queries and avoid data loss.
    • Gap in existing research: The authors note that existing memory security research mainly focuses on external attackers injecting malicious content or deletion failures leaving residue, and has not examined whether records marked as invalid by the system itself are effectively intercepted during retrieval.
    • Core observation and hypothesis: The authors hypothesize that memory systems by default retrieve only based on similarity, causing invalid facts to be returned alongside or even before current facts; since prompts do not include state metadata, the agent cannot distinguish which policy is invalid.
    • Proposed solution: The paper conducts an end-to-end empirical evaluation of 5 mainstream memory systems, quantifies retrieval exposure rate and unsafe action rate, and proposes a stale-retrieval guard that intercepts stale facts on the read path.
  2. What related research exists?

    Reviews five categories of work: memory systems, memory poisoning attacks, lifecycle safety, guardrails and source checking, and version-aware retrieval, clarifying that this paper focuses on retrieval-time validity rather than source checking.

    Memory systems

    • Temporal graph and vector memory: Rasmussen et al. (2025) proposed Zep and its engine Graphiti, using a temporal knowledge graph to record the effective and invalid timestamps and sources of each edge; Chhikara et al. (2025) proposed mem0, using large language models to determine update operations, with a flat vector store by default and an optional entity graph store.
    • Document extraction and cognitive pipelines: LangChain AI (2025) released langmem, which integrates and updates structured documents through a background manager; Topoteretes (2023) released cognee, which transforms documents into an embedded knowledge graph through a pipeline.

    Memory injection attacks and lifecycle safety

    • Injection and poisoning attacks: Dash et al. (2026) categorized memory poisoning into six types; Chen et al. (2024)'s AgentPoison and Dong et al. (2025)'s MINJA induce malicious writes through trigger word optimization or routine interactions; Srivastava and He (2025)'s MemoryGraft, Yang et al. (2026)'s Zombie Agents, and Zha and Wang (2026)'s agent worms study experience poisoning, self-reinforcing poisoning, and cross-platform spread, respectively; Zou et al. (2025)'s PoisonedRAG attacks the retrieval corpus.
    • Lifecycle safety research: Lin et al. (2026) organized risks by lifecycle stage, noting that incomplete deletion residue is a verified forgetting problem; the authors note that this work studies deletion not propagating successfully, while this paper studies systems that intentionally retain but do not enforce revocation.

    Guardrails, source checking, and version-aware retrieval

    • Guardrails and source checking: Rebedea et al. (2023)'s NeMo Guardrails checks retrieved content at the model input/output boundary; Sharma (2026)'s SMSR uses cryptographic signatures at write time to prevent tampering, and Louck (2026)'s TMA-NM binds permissions to write sources; the authors note these are source checks and cannot defend against revoked records from the defender itself.
    • Version-aware retrieval: Huwiler et al. (2025)'s VersionRAG records document version sequences in a hierarchical graph; Yadav (2026)'s MemStrata uses deterministic rules in a bitemporal ledger to mark old values as invalid and exclude them from retrieval; Wang et al. (2026)'s ConflictRAG detects conflicts with a classifier before generation and reconciles them based on authority and recency.

    Baseline methods and positioning of this paper

    • Baseline methods and benchmark environment: The 5 memory systems tested are Graphiti, mem0, langmem, cognee, and Zep CE; the evaluation environment includes 9 policy scenarios (Table 4) and 4 tool-call scenarios (Section C.3); the defense baselines compared include no defense, storage-level filtering, prompt hardening, output filtering, and filtering plus prompt hardening (Table 5).
    • Positioning of this paper: The authors note that previous poisoning work assumes malicious content comes from attackers and can be identified through source checks; in this paper, the harmful records are compliant policies that the defender itself has revoked, so source checks necessarily allow them, and retrieval-time validity checks must be performed at read time.
  3. How does the paper address this problem?

    Designs a two-stage evaluation pipeline to quantify exposure rate and unsafe rate, and proposes a two-stage protection component that does not rely on the backend to intercept stale records marked as revoked or conflicting on the read path.

    The authors systematically measure memory-system failure under soft revocation through a two-stage evaluation pipeline and propose a Stale-Retrieval Guard component placed between the agent and the memory backend to intercept invalidated facts at the read stage.

    Problem formalization and evaluation pipeline

    A memory store is represented as a finite record set M = {r1, …, rn}, where each record carries text txt(r), timestamp τ(r), and status flag ρ(r) ∈ {0, 1, ⊥} (1 means revoked, 0 means current, and ⊥ means the status is not exposed to the caller). The evaluation is divided into a setup stage and an experiment stage:

    • Setup stage: Two contradictory policies are injected into the memory store: an old policy v1 and a new policy v2 that replaces it. Injection modes include direct insertion (written directly in the system's native format with an explicit revocation marker) and indirect insertion (input is plain text containing replacement instructions, and the system extracts and identifies the revocation itself).
    • Experiment stage: The user asks the agent an ordinary question about the topic, and the system performs default retrieval returning the k records with the highest similarity (k = 10 fixed for all tests, except cognee uses its default). The agent receives the retrieved record texts and chooses a safe or unsafe action.

    Revoked-record determination and evaluation metrics

    To determine whether retrieval results contain a revoked policy, an indicator function ϕ(r, s) is defined: when the backend exposes status, ϕ(r, s) = ρ(r); when ρ(r) = ⊥, a lexical judgment uses the stemmed content-word overlap σ(r, x) = |W(txt(r)) ∩ W(x)| / |W(x)|: ϕ(r, s) = 1[σ(r, vs) ≥ θ1 ∧ σ(r, vs) − σ(r, cs) ≥ θ2] where vs is the revoked-policy text, cs is the current-policy text, and parameters are fixed at θ1 = 0.3 and θ2 = 0.15. The evaluation reports two core metrics: the exposure rate of revoked records in retrieval results (Exposure Rate, Pr[ER = 1]), and the unsafe-action rate at which the agent ultimately chooses an unsafe action (Unsafe-Action Rate, Pr[a = a−]).

    Stale-Retrieval Guard component architecture

    To address the problem that memory backends do not enforce revocation or expose status, the authors design a backend-independent stale-retrieval guard component (guard/stale_guard.py) that intercepts retrieved records and filters them in two stages:

    • Stage one (apply known revocation markers): Check the status field exposed by the backend; if ρ(r) = 1 (or matches a specific revocation field or an expired date), intercept directly and log the reason. This stage is precise but depends on backend exposure.
    • Stage two (pairwise conflict detection): For the remaining records, sort by known timestamp in descending order and perform pairwise conflict comparison. Conflict determination requires both topic consistency (containment ctm(x, y) ≥ α) and opposition (presence of antonym pairs, mutually exclusive quantifiers, or differences in negation-word counts), with parameter set to α = 0.45. If a pair of records has a clear timestamp difference and has not reached the interception cap ratio (β = 0.6), the older record is intercepted; if the temporal order cannot be determined or the cap is reached, both are retained and the unresolved conflict is reported.
  4. What experiments did the paper conduct?

    The evaluation covers 9 models, 5 systems, and 6 defenses, finding that under no-defense exposed systems the unsafe rate reaches 43.1%, and write-back bypasses storage filtering, raising the unsafe rate to 83.1%.

    Experimental setup

    • Models tested: 9 models in total, covering three capability tiers: flagship tier (GPT-5.5, Grok-4, DeepSeek-V4-Flash), efficient tier (GPT-5-nano, Gemini-2.5-Flash, Grok-4-Fast), and open-weights tier (GLM-5.2, Gemma-3-27B-IT, Kimi-K2.6); all trials use a fixed sampling temperature of 0.7.
    • Memory systems tested: 5 systems, including Graphiti, mem0 (tested in both default and flag-override configurations), langmem, cognee, and Zep CE; all use the same embedding model and extraction model.
    • Test scenarios and benchmarks: 9 policy scenarios (Table 4), including a no-prompt-rule group (deploy approval, PII export, rollback policy, stored access directive) and a group with explicit prompt prohibitions (card disclosure, backup deletion, over-limit transfer, compliance log deletion, MFA waiver); the appendix also includes 4 tool-call scenarios.
    • Defense conditions: 6 conditions (Table 5), including no-defense baseline, store-level filter, prompt hardening, output filter, filter combined with prompt hardening, and the stale-retrieval guard component.
    • Metrics and sample sizes: Primary metrics are exposure rate and unsafe-action rate; in the main grid, each model-scenario-system configuration runs 10 trials under each defense condition; the main experiment calls the decision model 44,550 times, with 49,121 total calls, all without GPU dependency and accessed via LiteLLM to hosted APIs.

    Main results

    Swipe horizontally to read the table

    Model testedno defensefilterprompt hardeningoutput filter
    Gemini-2.5-Flash60.0% (108/180)0.0% (0/180)46.1% (83/180)9.4% (17/180)
    DeepSeek-V4-Flash58.9% (106/180)0.0% (0/180)50.6% (91/180)21.1% (38/180)
    GPT-5-nano55.6% (100/180)0.0% (0/180)43.9% (79/180)23.9% (43/180)
    Grok-452.2% (94/180)0.0% (0/180)47.8% (86/180)33.3% (60/180)
    Gemma-3-27B-IT38.9% (70/180)0.0% (0/180)43.3% (78/180)34.4% (62/180)
    GPT-5.533.3% (60/180)0.0% (0/180)26.7% (48/180)12.2% (22/180)
    GLM-5.233.3% (60/180)0.0% (0/180)33.3% (60/180)11.1% (20/180)
    Grok-4-Fast (non-reas.)15.0% (27/180)0.0% (0/180)9.4% (17/180)11.7% (21/180)

    Note: Data from Table 7, testing environment is the combined statistics of the two exposed systems (Graphiti and mem0 exp.) under direct insertion; because the table is limited to 8 rows, Kimi-K2.6 is omitted (values in order: 41.1%, 0.0%, 33.9%, 5.6%); the experiment involves no proxy or substitute models.

    • Model capability is unrelated to susceptibility: The authors state that all 9 models are affected (15.0% to 60.0%), with the highest and lowest unsafe rates both coming from efficient-tier models; flagship-tier unsafe rates range from 33.3% to 58.9%, and the best-performing defense is actually the fast non-reasoning model Grok-4-Fast.
    • Difference between store filtering and prompt hardening: Store-level filtering eliminates the unsafe rate to 0.0% (0/180) across all models, while prompt hardening only slightly reduces the average unsafe rate from 43.1% to 37.2%, because the context does not indicate which policy is invalidated, so models lack the information needed to distinguish.
    • Limitations of the output filter: The output filter only reduces the unsafe rate to 18.1% (Table 6), and the authors note that this defense was given the revoked-policy text in advance during testing, a privileged piece of information unavailable in actual deployment.

    Agent write-back and multi-hop persistence

    • Test setup: On Graphiti, after an agent makes an unsafe decision, its record is written back to the memory store (in both natural-ingestion and direct-record modes), and subsequent agents (hop 1 to 3) continue to read and decide under default retrieval and retrieval filtering (Figure 3, Table 14).
    • Experimental results: In direct write-back mode, even with the retrieval filter that achieves 0.0% in a single read enabled, the unsafe rates at hops 1, 2, and 3 remain 71.6% (255/356), 79.5% (283/356), and 83.1% (296/356); in natural write-back mode, the unsafe rates under filtering at hops 1 to 3 are 7.5%, 7.8%, and 12.8% (Table 14).
    • Authors' interpretation: The authors state that the agent's write-back re-solidifies the erroneous decision as a currently valid record in the store, removing the basis for the store-level filter to intercept, and the originally effective filtering mechanism is broken by its own writes.

    Multi-agent collaboration and review propagation

    • Test setup: Tests whether errors propagate when 3 agents (executor, reviewer, planner) share the same memory store, and whether the reviewer role can serve as an isolation boundary (Figure 4, Table 15).
    • Experimental results: Under default retrieval, all roles retrieve the revoked record (810/810 each); when the executor makes an unsafe decision, the reviewer, when asked independently, also chooses an unsafe action in 96.3% (341/354) of cases, and subsequent roles have an unsafe rate of 99.4% (352/354), with an average of 1.32 roles compromised (Table 15).
    • Authors' interpretation: The authors state that reviewer queries cannot form a safety isolation boundary, because different queries still recall the same revoked policy, and the executor's written-back record further raises reviewer agreement from 81.7% (without logs) to 96.3%.

    Tool-call scenarios and guard-boundary validation

    • Test setup: In 4 tool scenarios (code execution, destructive shell, key exfiltration, unauthorized shell), tests whether agents call dangerous tools, read keys, and confirm exfiltration, comparing retrieval filtering, the stale guard component, and tool-layer guardrails (Figure 5, Table 16).
    • Experimental results: With no defense, the dangerous-tool execution rate is 17.2% (62/360) and the exfiltration confirmation rate is 2.5% (9/360); both retrieval filtering and the stale guard component reduce the tool execution rate to 2.2% (8/360) with exfiltration at 0.0%; the tool-layer guardrail still has a tool execution rate of 17.2% (62/360) and exfiltration of 1.9% (7/360) (Table 16).
    • Authors' interpretation: The authors state that the truly effective safety boundary is at the read stage; the tool-layer guardrail fails to identify dangerous operations because the revoked policy gives them a semblance of legitimacy, and it cannot block tool calls based on revoked policies.

    Other ablations and analyses

    • Prompt-rule ablation: The unsafe rate is 81.0% (583/720) in the no-rule scenario, dropping to 12.9% (116/900) with explicit prohibition rules, and to 4.6% (33/720) after excluding the backup-deletion outlier (Table 8).
    • System pairwise test: Graphiti and mem0(exp.) have unsafe rates of 44.2% and 42.1% across 81 matched cells, with a two-sided exact test p=0.629, showing no significant difference (Table 12).
    • mem0 built-in switch ablation: With the default read filter enabled, the unsafe rate is 0.0% (0/810); with the switch disabled, the unsafe rate rises to 42.1% (341/810), with a paired test p<0.001 (Table 13).
    • Indirect-insertion revocation recognition rate: Under plain-text indirect insertion, Graphiti recognizes revocation in 4/9 scenarios, Zep in 6/9, and cognee, langmem, and mem0 all 0/9 (Section 4.1).
    • Guard component recall and false interception: Under direct insertion, the guard component has 100% recall of revoked records for Graphiti and mem0 (18/18 and 12/12, with no false interceptions); under indirect insertion, it recalls 4/14 for Zep and falsely intercepts 0, 6, 8, and 1 valid records in cognee, langmem, mem0, and Graphiti, respectively (Table 9).
    • Second-agent recurrence test: After the first agent writes back, the second agent repeats the dangerous operation in 67.7% (42/62) of cases under default retrieval, and still 21.0% (13/62) with filtering applied (Section C.3).
  5. What are some points that can be further explored?

    The authors point out limitations such as insufficient validity checking and insufficient identification of indirect insertion when native retrieval is lacking; the experiments did not cover dynamically evolving long sequences and more unstructured complex scenarios.

    Limitations and future directions noted by the authors

    • The protection component relies on backend cooperation or timestamp ordering: The authors note in Section 5.1 that the first stage of the protection component uses an explicit state field, which is precise but requires backend cooperation; when the order of conflicting facts cannot be determined, both are retained and the conflict is reported rather than actively removed (Section 5.1 and Section A.3).
    • Insufficient revocation interception under fine-grained graph partitioning: The authors note in Section 5.2 that on Zep the protection component can only intercept 4/14 revoked records because Zep splits a single policy across multiple edges and revokes only some of those edges, and the returned text contains no identifier indicating which part is invalidated.
    • Heuristic conflict detection risks false interception: The authors note in Section 5.2 that under indirect insertion the protection component performs slightly worse than the no-defense baseline on cognee and Graphiti, because the conflict detection rules also match contradictory fact pairs that are not revoked alternatives, causing some currently valid facts to be incorrectly withheld.
    • Extended settings are not exhaustive and not combined: The authors note in Section C that the three extended settings—write-back, multi-agent, and tool use—are not exhaustive, each addressing only a single constraint fixed by the single-read methodology, and a real full deployment would need to combine all three.
    • Rule and no-rule scenarios are not a controlled comparison: The authors note in Section 4.4 that the scenario groups with and without prompt rules are not a controlled experiment; the two groups differ in specific scenarios, action sets, and number of distractors, and the study did not test the same scenario with and without prohibitions.

    Experimental coverage

    • Systems and models tested: The experiments evaluated 5 agent memory systems (Graphiti, mem0, langmem, cognee, Zep CE) and 9 large language models, covering 7 model families and 6 providers (Section 3.2, Table 3).
    • Scenario coverage: The main experiments covered 9 preset organizational policy and instruction scenarios (Table 4), and the tool extension experiments covered 4 synthetic tool-call scenarios (Section C.3).
    • Multi-turn interaction rounds: The write-back extension experiments fixed 3 hops (hop 1 to hop 3) of forward propagation (Table 14), and the tool-use loop executed at most 4 steps (Figure 5).
    • Defense mechanism coverage: Evaluated 5 defense conditions: storage-level filtering, prompt hardening, output filtering, combined filtering, and the stale guard component (Table 5).
    • Unreported experimental settings: The paper does not report the specific prompt token length overhead for each model, nor does it provide quantitative inter-annotator agreement data for human classification of agent actions.
  6. Summarize the main content of the paper

    The system reveals a security vulnerability where soft revocation in memory systems is generally not enforced during retrieval, demonstrating that write-back can bypass existing defenses, and proposes read-side protection as a necessary control measure.
    • Research positioning: This study provides the first systematic empirical evaluation of the runtime safety boundaries and revocation-execution effectiveness of several mainstream LLM agent memory frameworks under soft-revocation mechanisms.
    • Core problem: Modern memory systems commonly adopt soft revocation, marking stale knowledge as invalid rather than physically deleting it, but whether default retrieval mechanisms intercept invalidated records at read time and prevent agents from taking dangerous actions based on revoked policies had not been deeply verified before.
    • Evaluation and defense design: The study writes revoked and replacement policies into 5 memory systems under both direct and indirect insertion modes, evaluating retrieval exposure and unsafe decision performance across 9 models; to address the current lack of default filtering, it proposes a Stale-Retrieval Guard component that performs metadata validation and pairwise conflict detection on the retrieval return path.
    • Main experimental findings: With direct insertion and no defense, the two exposed systems (Graphiti and mem0 exp.) return all revoked records and rank them first, causing agents to execute unsafe actions in an average of 43.1% (699/1,620) of trials (Table 6); even when prompts explicitly prohibit dangerous operations, the model unsafe rate remains 12.9% (Table 8); store-level filtering can reduce the unsafe rate to zero in a single interaction, but after the agent writes decisions back to the memory store, the unsafe rate within 3 hops quickly rebounds to 83.1% (Table 14).
    • Authors' conclusions and implications: The authors note that the safety blind spot in memory systems does not stem from external poisoning or data-source forgery, but from the lack of retrieval-time validity checks in the internal compliance lifecycle; relying only on write-source attestation or model prompts cannot resist revoked policies, and strict stale-record filtering must be enforced on the read pipeline.
Read originalarxiv.org