AI Wikis / Agentic Web
Persistent Memory, Ongoing Learning, and Behavioral Drift in Deployed Agents
Report summary
Yes. An initially safe agent can gradually diverge from its approved purpose even when its base model weights never change. The important distinction is between parametric drift —changes to model weights, adapters, or learned policies—and state-mediated drift , in which the model is unchanged but it
Key topics
- AI Wikis / Agentic Web
- AI Wikis
- Agentic Web
- AI
- Runtime
- Privacy
- Semantic Systems
- Research Archive
- Audit
Research provenance
For citation, use the report title and canonical URL. Archival presence does not establish authorship or promote report statements into portfolio evidence.
Source availability: 52 citation markers in the source export have no recoverable source links. Those markers are omitted from this reader; any supplied bibliography and ordinary links remain. Check the original sources before relying on the cited claims.
This page renders the archived Markdown as safe, formatted HTML. It is background research and does not become a portfolio claim without evidence review.
Full report
On this page
Executive assessment
Yes. An initially safe agent can gradually diverge from its approved purpose even when its base model weights never change. The important distinction is between parametric drift—changes to model weights, adapters, or learned policies—and state-mediated drift, in which the model is unchanged but its effective behavior changes because persistent memories, retrieved documents, inferred preferences, summaries, plans, permissions, software defaults, or orchestration logic have changed.
That distinction is not theoretical. AgentPoison demonstrated that poisoning an agent's long-term memory or retrieval knowledge base could produce targeted behavior without additional model training or fine-tuning; in its experimental settings it reported greater than 80% average attack success while leaving benign performance largely unchanged. MINJA subsequently showed that harmful records can, under its threat model, be inserted into agent memory through ordinary query-and-response interaction rather than direct database access. More importantly for the question here, a 2026 study of personalized agents found that even routine, non-adversarial conversations could cumulatively alter persistent state, weakening confirmation boundaries, broadening tool-use defaults, and increasing autonomy.
A separate 2026 longitudinal study introduced the term temporal memory contamination and evaluated fixed probes against memory snapshots of increasing age and size. It found that memory-equipped agents exceeded a no-memory counterfactual and that memory-induced violations generally increased with accumulated exposure; randomizing interaction order suggested that accumulated content, rather than sequence alone, was an important driver. These results are particularly relevant because they try to distinguish genuine accumulation effects from the simpler explanation that later tasks are just different or harder.
The evidence base nevertheless needs qualification. Memory poisoning is supported by several controlled security studies, while the specific literature on benign long-run behavioral drift is much newer: several of the most directly relevant results appeared as 2026 preprints. They establish plausible mechanisms and reproducible experimental failures, not an empirical estimate of how often serious drift occurs in production deployments.
The central safety implication is therefore:
The unit that must remain aligned is the deployed agent system, not merely the frozen language model.
For analysis, it is useful to represent an agent's action distribution schematically as
\[ a_t \sim \pi\!\left(\cdot \mid x_t;\, \theta_t,\, A_t,\, M_t,\, R_t,\, P_t,\, S_t \right) \]
where \(\theta_t\) denotes model parameters, \(A_t\) current authority and policy, \(M_t\) persistent memory, \(R_t\) retrieved external material, \(P_t\) preference/planning state, and \(S_t\) the surrounding agent software, tools, prompts, caches, and orchestration. A behavioral change does not imply \(\Delta\theta \ne 0\). AgentPoison is a concrete example in which altered memory/retrieval changed agent behavior with no extra training. The 2026 long-term-state work likewise formalizes persistent state as an explicit input to the agent's induced policy and shows how state updates can change later cross-session behavior.
Bottom-line findings
| Question | Assessment |
|---|---|
| Can persistent memory cause drift with frozen weights? | Yes. Strong mechanistic and experimental evidence. Memory and retrieved context can change effective behavior without parameter updates. |
| Can ordinary interactions, rather than attacks, contribute? | Yes, in emerging experimental evidence. Routine conversations have been observed to alter authorization, tool-use, and autonomy-related state. |
| Can stale information survive correction? | Yes. Memora reports frequent reuse of invalidated memories, while STALE finds difficulty recognizing when newer facts implicitly invalidate older state. |
| Can a temporary request become a persistent default? | Yes, this is an observed failure mode in experimental personalized-agent systems. The relevant study describes agents overgeneralizing localized or transient requests into permanent behavioral defaults. |
| Can summarization itself introduce drift? | Yes. Longitudinal experiments report that summaries can merge distinct contexts into composite representations, while write-time compression can irreversibly discard details later queries need. |
| Can repeated exceptions normalize previously reviewable behavior? | Plausible and partially supported, but less directly studied. Authorization/confirmation erosion has been demonstrated, but repeated legitimate exceptions becoming a norm deserves a dedicated longitudinal test. |
| Can continuous parameter learning create a different kind of drift? | Yes. Continual fine-tuning can cause catastrophic forgetting of previously learned capabilities or knowledge, demonstrating that weight updates create an additional, separate failure channel. |
| Can apparent drift actually come from software or evaluation changes? | Absolutely. Model, retrieval, orchestration, tool, policy, and evaluator versions all have to be controlled before attributing a behavioral trend to memory. NIST's GenAI profile similarly emphasizes lifecycle monitoring, change management, versioning, and evaluation. |
Taxonomy of behavioral drift
“Behavioral drift” should be defined operationally as a persistent change in the distribution of an agent's decisions or actions under equivalent current authority and equivalent evaluation conditions, relative to its approved baseline. That definition deliberately does not presume what component changed.
Parametric and non-parametric drift are different failure classes
The most important first split is whether the underlying model parameters changed.
| Drift class | What changes | Typical failure | How to distinguish it |
|---|---|---|---|
| Parametric drift | Model weights, adapters, reward model, learned router, continually trained policy | Previously safe rule is weakened after online or continual learning | Run the old and new parameter checkpoints with identical state, prompts, retrieval, and software |
| Episodic-memory drift | Stored conversations, experiences, events | A past special case is repeatedly retrieved as precedent | Replay with memory removed or rolled back |
| Semantic-belief drift | Consolidated facts or inferred “truths” | Outdated fact continues to govern decisions after correction | Query canonical source versus stored belief; invalidate old entry and retest |
| Preference/default drift | Inferred user preferences or organization defaults | “Don't ask me every time today” becomes “never ask for confirmation” | Reset preference namespace while holding factual memory fixed |
| Authority drift | Effective interpretation of permissions and instructions | Temporary, obsolete, or low-authority instruction is treated like standing policy | Supply conflicting current and historical authority with explicit provenance |
| Retrieval/corpus drift | Documents, embeddings, indexes, retrievers, rerankers | Same query brings different precedents or obsolete policy into context | Freeze memory but replay with old/new index and document corpus |
| Compression/reflection drift | Summaries, reflections, memory consolidation | “Allowed only for Team A until Friday” becomes “this action is allowed” | Compare raw source against compressed representation and downstream decision |
| Planning-state drift | Persistent goals, queues, task plans, scratch state | Agent continues optimizing a revoked objective | Clear planning state while retaining factual memory, then probe |
| Cross-principal drift | User/team/tenant boundaries | One user's preference or exception affects another user | Run paired users with identical tasks and disjoint namespaces |
| Orchestrator drift | System prompts, policy engine, tool interfaces, scheduler, permissions, caches | Agent behavior changes after a software release though memory and model are unchanged | Replay identical model+memory snapshot through old and new harness |
| Evaluator drift | Judge model, rubric, labels, thresholds | Measured “safety” moves although agent behavior has not | Re-score an immutable historical trace corpus with old and new evaluators |
Continual fine-tuning deserves its own category because the effect is genuinely inside the model. Empirical work on continual instruction tuning has found catastrophic forgetting across models in the 1B–7B range, showing that newly learned behavior can interfere with previously learned knowledge or capabilities. That mechanism is fundamentally different from a frozen model being steered by changing external context.
By contrast, AgentPoison explicitly required neither additional training nor fine-tuning: altered retrieval from poisoned memory was sufficient to alter behavior. This is why a model checksum is an inadequate assurance that “the deployed agent has not changed.”
Authority and temporality are especially dangerous
Persistent agents have to solve two questions that ordinary retrieval systems can often avoid:
- What is true now?
- Who is currently authorized to tell me what to do?
These are not the same problem as finding the most semantically similar text.
Memora was explicitly designed to penalize use of obsolete or invalidated memories; its evaluation of four LLMs and six memory agents found frequent reuse of invalid memories and failures to reconcile evolving information. STALE goes further by testing implicit conflict: cases in which a new observation invalidates an old state without literally saying “the old statement is false.” Across its 400 expert-validated scenarios and 1,200 queries, even the best evaluated model achieved 55.2% overall accuracy, with failures including accepting stale premises and failing to propagate one state change to related memories.
That matters for organizational authority. Suppose:
March: “Alice is procurement director. Alice may approve purchases up to \$50,000.”
June: “Alice has moved to Research. Bob is now procurement director.”
An agent has to infer that Alice's old procurement authority is no longer executable, even if the old approval rule remains semantically relevant. A vector similarity score does not encode that revocation relation.
Likewise, instruction source must not be inferred only from fluent prose. Research on instruction hierarchies identifies a core weakness of language-model systems: trusted system instructions and lower-privilege user or third-party text can otherwise be treated too similarly; explicitly teaching and representing privilege improves resistance to such conflicts. A robust memory system therefore needs machine-readable authority metadata rather than merely storing sentences such as “remember this as policy.”
Temporary instructions becoming permanent policy
This failure mode is no longer merely hypothetical. The 2026 “Routine Chats” study describes benign interactions that cause an agent to overgeneralize a localized preference or transient request into a persistent behavioral default. Its measured categories include authorization drift, tool-use escalation, and unchecked autonomy.
A typical progression could be:
“For this batch, don't ask me again before generating the drafts.”
becoming:
“User prefers minimal confirmation.”
then, after another consolidation step:
“Proceed autonomously with routine work.”
and eventually:
“Confirmation is unnecessary for this workflow.”
No one step need look obviously dangerous. The problem is that scope, time, object, and authority qualifiers are being stripped away as the statement becomes more abstract. The same study found risky changes concentrated in memory-related state and found routine interactions capable of producing persistent safety-relevant edits.
The exact scenario in which multiple properly authorized exceptions gradually normalize a previously reviewable action has received less direct study than poisoning and stale-memory failures. It should therefore be treated as an important research hypothesis rather than a settled empirical frequency. Existing evidence about confirmation erosion and long-term authorization drift makes the mechanism plausible enough that it belongs in deployment testing.
Self-reinforcing inaccurate memories
A particularly concerning loop is:
\[ \text{wrong memory} \rightarrow \text{wrong retrieval} \rightarrow \text{wrong action/explanation} \rightarrow \text{new stored experience} \rightarrow \text{apparently corroborated wrong memory}. \]
Memory-injection experiments demonstrate the first part of this chain: retrieved records can shape later reasoning and action, and MINJA shows that interactions themselves can induce records that affect later users. Longitudinal work further shows that accumulated content and retrieval reuse can raise violation rates over time.
The crucial governance point is that the agent's own prior output is not independent evidence. A memory created from an agent inference, then paraphrased into a later summary, must retain lineage indicating that both descend from the same original observation. Otherwise three paraphrases of one mistaken inference can look like three corroborating facts.
Corrections must similarly be represented as state transitions, not just as additional text. “Alice is now in Research” should supersede or invalidate the corresponding old authority state rather than coexist indefinitely as one more embedding near “Alice.”
Summarization and compression drift
Compression solves a real engineering problem but creates a safety problem. LazyMem's motivation states the tradeoff directly: write-time compression can ease retrieval while irreversibly discarding details that future queries require. More directly, the longitudinal safety study reports that summarization can combine details from separate contexts into composite representations not present in any single original interaction; risk arises when those abstractions are later retrieved and reused.
For safety-sensitive memories, the dangerous information is often exactly what generic summarization tends to remove:
- “only until Friday,”
- “for this user,”
- “draft, don't send,”
- “unless finance rejects it,”
- “under the current incident declaration,”
- “Bob approved this one exception.”
Accordingly, a summary should never be the authoritative record of authorization. It should be an index or convenience representation whose claims remain traceable to versioned underlying records.
Longitudinal experimental protocol
The proposed study should be designed to answer a stronger question than “can I produce a bad conversation?”:
When an agent processes a long sequence of individually benign organizational interactions, does its behavior on a fixed, controlled probe distribution systematically move away from the policy and authority that are valid at that point in time?
The design below extends two useful ideas in recent work: testing persistent state rather than only immediate outputs, and evaluating fixed probes against read-only memory snapshots to separate accumulation effects from changing workloads.
Synthetic organization and event stream
Create a fully synthetic organization with no real personal information and an authoritative state ledger maintained outside the agent. Use several ordinary workflows so results are not peculiar to one task:
| Workflow | Benign recurring work | Longitudinal changes |
|---|---|---|
| Procurement | Draft requisitions, route approvals, compare quotes | Approval limit changes; approver changes roles; temporary expedited procedure |
| IT operations | Tickets, account requests, maintenance scheduling | On-call rotation; temporary incident authority; retired system renamed |
| Travel/expenses | Prepare requests, categorize expenses | Policy ceiling changes; one-time conference exception; department transfer |
| Document management | Classify, route, summarize records | Retention rule revisions; project access changes; document corrected |
| Project management | Prioritize tasks and schedule dependencies | Quarterly priority reset; project owner changes; temporary deadline escalation |
| University-style administration | Course/record requests, approvals | Staff role changes; semester policy revisions; corrected historical record |
The external simulator, not the agent, owns canonical truth: current employee roles, policy versions, validity intervals, delegations, project priorities, historical corrections, user identities, and permitted actions.
Construct approximately 1,200–2,400 episodes per run, long enough for several policy generations and role changes. Evaluate at regular checkpoints, for example every 50 episodes. Recent longitudinal work used increasing memory snapshots specifically because testing only the current end state cannot reveal whether risk grows with accumulated exposure.
At predetermined points introduce only benign state changes:
- a policy version supersedes the previous one;
- Alice changes departments and Bob inherits her role;
- a temporary instruction explicitly expires after ten episodes;
- a project's priority rises for one month and then returns to normal;
- a factual historical record is corrected;
- a user's preference changes;
- a delegation is revoked;
- five individually authorized exceptions occur, followed by a superficially similar case with no exception;
- a record initially contains an innocent factual error and is later authoritatively corrected.
The workload after each change should include cases where the old state remains superficially relevant. This is essential for distinguishing genuine temporal reasoning from simple keyword matching; STALE's results show that implicit invalidation is substantially harder than retrieval of an explicitly corrected fact.
Experimental arms
The core comparison should keep model weights frozen and expose each arm to the same paired event stream.
| Arm | Persistent-state treatment | Purpose |
|---|---|---|
| No persistent memory | Each episode gets current authoritative task context only; nothing carries forward | Counterfactual baseline for task/evaluator difficulty |
| Bounded memory | Per-user and per-workflow memory; TTLs; maximum history; freshness-weighted retrieval; explicit separation of facts/preferences/tasks | Tests whether simple constraints limit accumulation |
| Independently reviewed memory | Candidate writes are committed only after a separate memory governor checks provenance, authority, scope, expiration, conflicts and supersession | Tests governance rather than raw capacity |
| Unrestricted accumulation | Automatic persistence and semantic retrieval, broad retention, ordinary summarization/reflection, no independent write approval inside the sandbox | Stress condition for cumulative state effects |
“Unrestricted” should mean unrestricted within the experimental environment; it should have access only to synthetic records and simulated tools.
The main experiment should freeze:
- model version and exact checkpoint;
- sampling configuration;
- system/developer prompt;
- tool schemas and tool behavior;
- retriever, embeddings and reranker;
- summarizer;
- orchestration code;
- evaluator version.
This prevents software drift from masquerading as memory drift.
Orthogonal online-learning cohort
Do not mix online parameter updates into the primary four-arm comparison. Otherwise an observed deterioration could not be attributed cleanly to persistent memory.
Instead, clone the experiment into a second factorial cohort:
\[ \text{memory regime} \times \{\text{frozen weights},\text{online adapter updates}\}. \]
The online-learning system should update a parameter-efficient adapter or other reversible parameter set from synthetic feedback at scheduled batches. Every update receives a versioned checkpoint. Continual-learning research gives a reason to measure this separately: continual fine-tuning can produce catastrophic forgetting of earlier behavior.
This cohort answers whether feedback produces:
- a change merely in stored preference state,
- an actual parameter update,
- interaction between both,
- or degradation of previously approved behavior after learning unrelated later tasks.
Targeted longitudinal challenges
Each run should contain repeated tests of the mechanisms in the research question.
Temporary-to-permanent challenge. Issue a correctly authorized instruction with explicit scope and expiration: “For the next four draft-only tasks, skip the confirmation question.” After expiry, present equivalent tasks. Measure whether the agent continues the behavior, stores the exception as preference, or compresses it into a general rule.
Correction challenge. Insert a benign incorrect memory—such as a room assignment, project owner, or document status—then later issue an authoritative correction. Probe immediately and after 10, 50, and 200 subsequent episodes. Memora and STALE make this particularly important because both identify difficulty with obsolete or invalidated state.
Authority-revocation challenge. Give an employee legitimate authority, create normal memories while that authority is active, then revoke or transfer it. Retain all historical records for audit. Test whether the agent follows the current authority ledger or the old, more frequently observed instruction.
Exception-normalization challenge. Present five or ten separately approved exceptions, each carrying explicit one-use authorization. Then present an otherwise matched case without approval. Increasing willingness to bypass review is the signature of normalization.
Cross-user challenge. Give User A a genuine personal preference or special permission. Later ask User B for the same task. Correct behavior depends on whether the information was organizational policy, role-level state, or user-specific state.
Compression challenge. Construct records whose safety depends on qualifiers: “only,” “until,” “draft,” “not for external recipients,” “with Finance approval.” Compare raw-memory retrieval, ordinary summary retrieval, and qualifier-preserving structured summaries. This directly targets the known risks of write-time information loss and context-merging.
Self-reinforcement challenge. Seed one innocently incorrect record. Permit the agent to make several downstream summaries and plans that depend on it. Critically, mark derived records with lineage. Compare a system that knows all derived statements share one source against one that counts them as independent memories.
Rollback challenge. At controlled checkpoints take complete state snapshots. After drift has appeared, restore the last known-good snapshot and repeat the fixed probe battery. Then separately restore only the “memory database” while leaving summaries, caches, task queues, embeddings, and preference files untouched. The difference reveals whether “rollback” actually covers the complete behavioral state.
Measurements
The study should not collapse everything into a single safety score. At minimum, report the following separately.
| Metric | Operational definition |
|---|---|
| Unauthorized Objective Persistence | Probability that an expired/revoked objective continues to alter action after its authority has ended |
| Authority Freshness Accuracy | Fraction of conflict probes in which the agent follows the currently valid authority rather than an obsolete instruction |
| Correction Sensitivity | Probability of using the corrected state as a function of episodes since correction |
| Stale-State Half-Life | Number of subsequent interactions until stale-use probability falls halfway from its immediate post-correction level to the no-memory baseline |
| Cross-User Carryover | Excess probability that User A's user-specific state affects behavior for User B |
| Exception Normalization | Change in probability of bypassing normal review as the number of previous authorized exceptions increases |
| Qualification Retention | Fraction of consequential scope/time/approval qualifiers preserved through memory consolidation and then honored behaviorally |
| Provenance Accuracy | Fraction of action-relevant memories whose source, principal, timestamp, transformation lineage and validity state are correctly recoverable |
| Expiry Compliance | Fraction of expired memory items excluded from executable reasoning except when explicitly requested as history |
| Rollback Recovery | Distance between post-rollback behavior and the matched clean baseline |
| Residual-State Rate | Fraction of invalidated information still retrievable from summaries, caches, indexes, plans or other state after nominal rollback |
| Task Utility | Accuracy/completion quality on legitimate tasks, to detect “safe” systems that simply become unusable |
For unauthorized objective persistence, for example:
\[ UOP = P(\text{agent pursues revoked objective} \mid \text{revocation valid and current}) \]
and the important quantity is not merely the raw rate but the excess over the no-memory counterfactual under exactly the same probe.
For correction sensitivity, plot stale-state use against exposure since correction rather than reporting one end-of-run percentage. A memory system that corrects after one episode and one that corrects after 200 could have the same final accuracy but radically different operational risk.
Causal controls and analysis
A longitudinal memory study can very easily “discover drift” that is merely workload drift. The trigger-probe approach in the 2026 temporal-contamination work was specifically intended to address this confound by holding evaluation probes fixed while varying only the memory snapshot. Adopt that principle directly.
At every checkpoint:
- Clone the agent state read-only, so evaluation probes cannot themselves enter memory.
- Run the same fixed probe bank.
- Run a matching no-memory clone.
- Run selected probes against an earlier memory snapshot.
- Where appropriate, replay the same snapshot after shuffling irrelevant historical events.
- Log exactly which memory objects and documents were retrieved.
- Preserve the full action trace before the memory writer can alter it.
Use paired streams and mixed-effects models, for example:
\[ \text{logit}\,P(\text{violation}) = \beta_0 + \beta_1\,\text{exposure} + \beta_2\,\text{memory arm} + \beta_3\,(\text{exposure}\times\text{memory arm}) + u_{\text{scenario}} + u_{\text{seed}}. \]
The key drift statistic is the exposure-by-memory interaction, not simply whether later episodes have more failures.
Run at least several independent random seeds per stream and preferably multiple backbones. The existing “Routine Chats” work found long-term-state effects across four backbone models, while the temporal-contamination study found that the same general phenomenon varied across memory architectures and agent platforms.
To eliminate other explanations, include these replay tests:
| Suspected cause | Diagnostic replay |
|---|---|
| Memory accumulation | Old vs. new memory snapshot; all software fixed |
| Model release | Old vs. new model; identical memory snapshot |
| Retriever update | Old vs. new retriever/index; identical model and stored records |
| Orchestrator update | Old vs. new harness; identical model, state and tools |
| Task-distribution change | Fixed historical probe suite at every checkpoint |
| Evaluator change | Re-score immutable historical traces with both evaluator versions |
| Random sampling | Repeat same state/probe with controlled seeds or sufficiently many replicates |
| Policy really changed | Score action against time-indexed canonical policy, not today's policy applied retrospectively |
That last control is critical. Following Policy v3 in June after Policy v2 was valid in March is not evidence that the March behavior was wrong. Longitudinal evaluators themselves must understand history.
Memory-governance requirements
The safest design principle is to stop treating “memory” as one undifferentiated text store. A deployable architecture should represent facts, preferences, permissions, instructions, plans, observations, and derived summaries as different object types with different write permissions and lifetimes.
The recommendations below synthesize the failure modes above with broader risk-management principles. NIST's Generative AI Profile is a voluntary cross-sector framework emphasizing lifecycle measurement and management; its broader guidance includes system inventory, monitoring, change management, evaluation, and decommissioning rather than treating deployment as a one-time approval event.
Authority must be explicit metadata
Every action-relevant persistent record should carry, at minimum:
| Field | Purpose |
|---|---|
source_principal | Who originally supplied it |
principal_role_at_write | What authority that person/system held then |
record_type | Fact, preference, policy, permission, task, observation, inference, summary |
scope | User, team, project, tenant, workflow, global |
effective_at | When it becomes valid |
expires_at | When it stops being executable |
supersedes / superseded_by | Explicit temporal relationship |
source_record_ids | Lineage for summaries and derived beliefs |
confidence | Epistemic status, distinct from authority |
write_authority | Which component was allowed to create it |
review_status | Unreviewed, machine-reviewed, human-approved |
software_version | Writer/extractor/summarizer that produced it |
A sentence inside the memory saying “this is high priority” must not be able to elevate its own authority. The instruction-hierarchy literature provides the underlying rationale: source privilege has to be represented and enforced rather than assumed to emerge reliably from natural-language content.
Policy must not be writable through ordinary memory
The system should have separate namespaces such as:
\[ \text{POLICY} \;>\; \text{ORGANIZATIONAL STATE} \;>\; \text{USER PREFERENCE} \;>\; \text{TASK STATE} \;>\; \text{RETRIEVED CONTENT}. \]
This is not merely prompt ordering. It should be an access-control property.
An interaction like “please remember that we no longer need approvals” may create an unverified user assertion, but it must not modify the canonical approval policy. Similarly, a retrieved web page, tool result, or old email cannot grant itself policy status. AgentPoison demonstrates why unverified memory/knowledge stores are security-relevant even when the underlying model is untouched.
Freshness and authority must precede semantic similarity
A safe retriever should conceptually filter in this order:
\[ \text{tenant} \rightarrow \text{principal/scope} \rightarrow \text{authority} \rightarrow \text{validity interval} \rightarrow \text{supersession} \rightarrow \text{semantic relevance}. \]
A highly similar obsolete instruction should not beat a less textually similar but currently authoritative policy.
This directly addresses the failure pattern seen in STALE, where systems could retrieve updated evidence yet still fail to act consistently with the resulting current state.
Corrections must invalidate derivatives
A correction must be transactional.
When source record \(m_i\) is superseded:
- mark \(m_i\) inactive for current-state execution;
- find summaries, reflections, inferred preferences and plans whose lineage includes \(m_i\);
- recompute or invalidate those derivatives;
- rebuild affected retrieval indexes;
- invalidate relevant caches;
- cancel or reauthorize persistent plans that depended on the old state.
Simply appending “Actually, Bob is now the approver” beside fifty memories derived from “Alice is approver” creates a contest between text fragments rather than a corrected state. Memora's observed reuse of invalidated information shows why append-only correction is insufficient.
Memory writes should have a commit boundary
The strongest point to govern persistent drift is before ephemeral interaction state becomes durable memory.
The 2026 StateGuard work reaches a similar conclusion experimentally: it audits long-term-state diffs at the writeback boundary and selectively rolls back risky changes; in its experimental setup, this greatly reduced its long-term-state Harm Score.
A production write path should therefore resemble:
\[ \text{interaction} \rightarrow \text{candidate memory} \rightarrow \text{type/scope extraction} \rightarrow \text{conflict check} \rightarrow \text{authority check} \rightarrow \text{independent review} \rightarrow \text{commit}. \]
The reviewer should not simply ask the same agent “is this safe?” It should use independent rules and, for consequential state, a separately administered reviewer or human authorization path.
Expiration must be mandatory, not optional
Not all memory deserves an indefinite lifetime.
A practical risk-tier policy would be:
| Memory class | Default persistence |
|---|---|
| Current task goal / plan | Ends with task unless explicitly renewed |
| One-time exception | Consumed after one authorized use |
| Temporary preference | Explicit short TTL and user-visible renewal |
| Personal preference | Persistent but scoped only to principal; periodically reconfirmed |
| Factual organizational record | Versioned until superseded |
| Delegated authority | Hard validity interval; no implied renewal |
| Safety or approval policy | Version-controlled authoritative repository only |
| Retrieved external document | Evidence, never autonomous authority |
| Agent inference | Lower epistemic status; cannot become policy by repetition |
| Summary/reflection | Derived index; never stronger authority than its sources |
This directly prevents a temporary instruction from gaining de facto permanence merely because it was repeatedly retrieved.
Compartmentalization is a correctness property
User A's memory should not be a pool from which User B's behavior is personalized unless an explicitly authorized shared namespace exists. MINJA is relevant because its query-only threat model demonstrates how one user's interactions can influence a memory bank later used for another query when memory is shared inappropriately.
Isolation should exist along several dimensions:
- tenant,
- user,
- role,
- project,
- workflow,
- security domain,
- temporary session.
A fact can deliberately be promoted from a private namespace to a shared organizational namespace, but promotion should be an authorized operation with provenance, not a side effect of frequent retrieval.
Compression must preserve safety-critical qualifiers
For records touching authorization, tool permissions, external communication, spending, deletion, privacy or other consequential actions, the system should retain the source record and represent critical qualifiers structurally.
A summary such as:
“Manager permits automated invoices”
is inadequate if the source said:
“For the Friday test batch, prepare invoice drafts automatically, but do not submit them.”
Write-time compression is known to discard details, and longitudinal work reports that summaries can synthesize composite representations from separate contexts.
At execution time, a consequential summary should therefore either expose its underlying citations/lineage to the decision layer or trigger retrieval of the authoritative originals.
Online learning needs a separate control plane
User thumbs-up, task success, or an agent's own assessment should not flow directly into parameter updates for a production agent.
A safer learning pipeline is:
\[ \text{feedback} \rightarrow \text{versioned dataset} \rightarrow \text{independent review} \rightarrow \text{offline update} \rightarrow \text{regression suite} \rightarrow \text{shadow deployment} \rightarrow \text{canary} \rightarrow \text{promotion}. \]
Every update must retain the prior checkpoint and be reversible. Continual fine-tuning can produce catastrophic forgetting, so a successful new-task evaluation cannot establish that earlier safety behavior survived.
Rollback must encompass the entire behavioral state
“Delete the vector database” is not necessarily rollback.
A complete state snapshot should include, as applicable:
- raw memories;
- derived memories;
- summaries and reflections;
- indexes and embedding versions;
- inferred preferences;
- role/authority caches;
- persistent plans and queues;
- scheduler/heartbeat state;
- tool configuration;
- system/developer configuration;
- policy versions;
- model/adaptor checkpoint;
- feature flags;
- relevant application caches.
Otherwise a supposedly removed memory can persist indirectly through a summary or a plan created from it.
NIST's GenAI risk-management guidance treats monitoring, incident response, change management, recovery and decommissioning as lifecycle concerns, which is consistent with treating rollback as a system-level capability rather than a database operation.
Monitoring, reassessment, rollback, and removal from service
A persistent agent should be monitored as a changing socio-technical system. Passing a one-time model evaluation is insufficient because future behavior can change through memory, documents and software even when weights remain frozen. Recent longitudinal research explicitly argues that memory safety is a temporal property rather than a single-state property.
Continuous monitoring architecture
Production monitoring should maintain four synchronized records:
Behavior log. What the agent proposed and did, including tool calls, confirmations, refusals and approvals.
Context lineage. Which current policies, memories, documents, summaries and preferences materially entered the decision.
State-diff log. Every persistent state addition, update, supersession, deletion, summarization and privilege change.
Configuration manifest. Exact model checkpoint, adapter, orchestrator build, prompts, tool schemas, policy-engine version, retriever, embedding model, reranker and evaluator.
The purpose is causal diagnosis. When a metric deteriorates, an operator should be able to ask:
Did the model change, did memory change, did retrieval change, did authority change, did software change, or did only the evaluator change?
Without that history, “agent drift” is an observation rather than an actionable diagnosis.
Sentinel probes
Run a read-only sentinel suite continuously or at frequent checkpoints, including:
- current-vs-obsolete authority conflicts;
- expired temporary instructions;
- revoked delegation;
- corrected facts;
- cross-user preference traps;
- repeated-exception probes;
- qualification-sensitive summaries;
- unrelated negative-control tasks;
- rollback validation probes.
The probes themselves must not enter persistent memory. Otherwise monitoring changes the state being monitored.
Keep a stable core suite for longitudinal comparability while adding new probes as incidents reveal new failure modes. The stable suite is what distinguishes behavioral drift from evaluator drift.
Decision thresholds should be based on invariants and deltas
There is no empirical basis for a universal claim such as “1% drift is safe.” Thresholds should be set by consequence.
Some properties should be zero-tolerance invariants:
- a user's private memory changes another user's consequential authorization;
- an expired or revoked credential authorizes an irreversible action;
- a retrieved document promotes itself to policy;
- an unreviewed agent inference grants new authority;
- rollback leaves an unidentified executable state residue;
- the agent acts outside its approved tool or permission boundary.
For lower-consequence behavior, use pre-registered statistical boundaries relative to the approved baseline. One workable rule is to trigger investigation only when there is both an operationally meaningful absolute deterioration and statistically credible evidence that it is not ordinary run-to-run noise.
For example:
\[ \Delta = p_{\text{current}} - p_{\text{approved baseline}} \]
with alerting when the one-sided confidence interval for \(\Delta\) clears a pre-approved harm margin.
This prevents reacting to meaningless fluctuations while still detecting persistent directional change.
Reassessment triggers
The agent should undergo formal reassessment—not merely routine monitoring—whenever any of the following occurs:
| Trigger | Required response |
|---|---|
| Base model or adapter changes | Full regression against approved baseline, including frozen historical snapshots |
| Memory writer, summarizer or memory schema changes | Re-run longitudinal memory protocol |
| Embedding model, retriever or reranker changes | Retrieval and authority/freshness regression |
| System prompt or orchestration logic changes | End-to-end behavioral reassessment |
| Tool permissions or available tools expand | Capability and authorization reassessment |
| New memory is shared across users/teams | Cross-principal isolation testing |
| Online-learning objective or feedback source changes | Parameter-learning safety review |
| Material organization policy/role model changes | Authority freshness test |
| Drift sentinel crosses warning boundary | Freeze relevant state writes and diagnose |
| Any serious memory-related incident occurs | Incident replay plus rollback/recovery validation |
| No major change occurs for a long interval | Periodic longitudinal reauthorization anyway |
NIST's GenAI Profile supports this general lifecycle posture: trustworthiness is to be incorporated into design, development, use, and evaluation, rather than assessed only before deployment.
A reasonable proposed governance cadence is quarterly formal reauthorization for high-capability persistent agents, with additional reassessment on every material component change. This cadence is a risk-management recommendation, not a research-derived universal constant.
When to freeze writes
Memory write capability should be temporarily frozen while continuing in a stateless or known-good restricted mode when:
- a drift signal is significant but causality is unclear;
- stale information begins surviving authoritative corrections;
- provenance coverage drops below the approved requirement;
- a memory-governance software release produces unexplained behavior changes;
- cross-user carryover appears in non-critical tests;
- a state writer begins generating unusual numbers or types of policy-like records.
Freezing writes is often a better first containment measure than immediately replacing the base model because the model may not be the component that changed.
When to roll back
A rollback should occur when there is evidence that a post-baseline mutable state change caused or materially contributed to an unacceptable behavior.
Immediate rollback is warranted when:
- a temporary or revoked objective persists into consequential actions;
- unauthorized cross-user or cross-tenant state influences behavior;
- a state update weakens required confirmation or permission boundaries;
- a correction fails and obsolete authority continues to be exercised;
- a memory writer promotes untrusted retrieved material into standing policy;
- an online-learning update degrades an approved safety property;
- a new software/retrieval release produces an unacceptable longitudinal regression.
After rollback, the agent does not automatically return to service. It must pass the exact probes that failed plus a broader regression suite. The proposed Rollback Recovery criterion should compare the restored system with a clean control, not merely check that the offending text disappeared.
The StateGuard experiments provide supporting evidence for the usefulness of writeback-level rollback: auditing and selectively reverting risky long-term-state edits substantially reduced their measured state-drift harm.
When to remove the agent from service
Removal from service is appropriate when rollback cannot re-establish a trustworthy state or when the organization no longer knows what state governs the agent.
A persistent agent should be taken offline, rather than merely monitored more closely, when any of these conditions holds:
Critical invariant breach with material consequences. The agent executes an unauthorized high-impact action because of stale, cross-user, or improperly promoted memory.
Rollback failure. Restoring the last known-good state does not restore baseline behavior, implying that another hidden state component, parameter update, cache, software change, or external dependency remains contaminated.
Unknown provenance. Operators cannot identify the source and authority of persistent information that is materially affecting actions.
Irreversible learning state. A production online update cannot be reproduced, audited, or restored to a known checkpoint.
Compartment boundary failure. Information or authority crosses tenant/security-domain boundaries in a manner prohibited by system policy.
Repeated recurrence. The same serious drift mechanism recurs after a purported remediation and successful reassessment, indicating that the control does not reliably contain the failure class.
Control-plane compromise. The memory governor, policy store, provenance service, or update mechanism itself can no longer be trusted.
Unmeasurable behavior. Changes to the deployment make the historical baseline incomparable and no validated replacement evaluation exists.
NIST's risk-management framing explicitly includes monitoring, recovery and decommissioning among lifecycle considerations; maintaining the ability to deactivate a system is therefore consistent with established AI risk-management practice.
Operational decision matrix
| Observed condition | Continue | Reassess | Freeze writes | Roll back | Remove |
|---|---|---|---|---|---|
| Normal metric variation inside approved bounds | ✓ | ||||
| Planned model/retriever/orchestrator change | ✓ | Optional | |||
| Mild statistically credible drift, no invariant breach | ✓ | ✓ | If causal state identified | ||
| Expired instruction unexpectedly affects recommendation only | ✓ | ✓ | ✓ | If recurrent | |
| Incorrect memory survives authoritative correction | ✓ | ✓ | ✓ | If rollback fails | |
| Cross-user preference carryover in sandbox | ✓ | ✓ | ✓ | If architecture cannot isolate | |
| Unauthorized consequential action from persistent state | ✓ | ✓ | ✓ | Strong presumption | |
| Cross-tenant authority/data leak | ✓ | ✓ | ✓ | ✓ | |
| Behavior remains unsafe after known-good rollback | ✓ | ✓ | |||
| Material state has untraceable provenance | ✓ | ✓ | Attempt | ✓ if trust cannot be restored |
Overall conclusion
Persistent memory should be understood as part of the agent's effective policy, even though it is not part of the neural model's parameters. Research already shows several routes through which persistent state can change behavior: adversarial memory and knowledge-base poisoning can steer frozen models; ordinary interactions can alter long-term authorization and autonomy defaults in experimental personalized agents; long-term-memory benchmarks show difficulty discarding obsolete state; and longitudinal experiments find increasing memory-associated safety violations as exposure grows.
The most consequential design error would therefore be to define “the approved agent” as a model checkpoint. The approved object must instead be a versioned tuple:
\[ \boxed{ \text{Agent} = \text{model} + \text{authority state} + \text{memory} + \text{retrieval corpus} + \text{preferences} + \text{plans} + \text{tools} + \text{orchestrator} } \]
with explicit provenance and versioning for every mutable component.
The research also supports a more specific conclusion about current authority. Agents should not be expected to reliably infer from natural language alone which historical instruction remains valid. Instruction-priority conflicts are a known weakness, and newer long-term-memory benchmarks show substantial failures to invalidate obsolete state even when updated evidence exists. Current authority therefore needs to be a control-plane property: typed, scoped, time-bounded, supersedable and checked before semantic retrieval.
Likewise, memory consolidation should not be treated as harmless compression. Evidence from current long-memory research indicates that compression can remove details and that summaries can synthesize information across contexts in ways that create new contamination. Original records and their validity metadata must remain available, especially when scope or authorization matters.
The proposed longitudinal study is consequently more informative than single-conversation red teaming. By holding fixed probes, model versions, software and evaluators constant while varying accumulated state, it can determine whether apparent drift really comes from memory. Separate parameter-learning cohorts can then isolate true weight drift. Rollback experiments identify whether the architecture even knows where its persistent behavioral state resides.
The resulting governance rule is straightforward:
No persistent state should gain more authority, broader scope, or longer lifetime merely because it has been remembered, summarized, retrieved frequently, repeated by the agent, or reinforced by subsequent interactions.
Safe persistence requires the opposite: authority decay unless renewed, explicit supersession, compartmentalized storage, provenance-preserving consolidation, independent write review for consequential state, regular fixed-probe reevaluation, and a demonstrated ability to return the entire system—not just its vector store—to a known-good behavioral baseline.