# Control what memory retains and reveals

Make ownership, access, correction, and removal work across derived information.

Author: Murali Sid (https://linkedin.com/in/muralisid)
Source: https://www.agenticarchitectureskills.com/memory/permissions-and-lifecycle
Published: 2026-09-17
Updated: 2026-10-15
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
Cite as: Murali Sid. Control what memory retains and reveals. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/memory/permissions-and-lifecycle

---


An incident report is restricted, but its old summary remains searchable. The next agent can still disclose information from it. &#x2A;*Controlling the original document is not enough when copies and derivatives remain usable.**

<TeachingIllustration src="/images/memory/memory-access-v1.webp" title="Follow the information beyond the original" alt="A source report feeds an index, note, summary, and task cache. A change in access triggers review of each derivative, and a current-caller gate checks access before retrieval." caption="Teaching illustration. The example is a proposed design, not a measured deployment." />

## Give retained information an owner and purpose [#give-retained-information-an-owner-and-purpose]

Before a candidate memory becomes durable, identify why it is needed, who may use it, who maintains it, and when it should be reviewed or removed. A thread checkpoint and a shared organizational fact may need different policies.

Do not let text retrieved from a source authorize new access or rewrite an approved procedure. Stored content is evidence to evaluate, not an instruction to bypass the application's controls.

## Check access when writing and reading [#check-access-when-writing-and-reading]

Write only to the appropriate scope: this thread, this entity, this team, or a permitted shared store. On retrieval, use the current caller and task authority. Recheck changed membership and permissions. Search previews, explanations, logs, and diagnostic traces must respect the same information boundary.

## Govern every write [#govern-every-write]

An attacker does not need write access to poison memory. In the MINJA study, ordinary queries were enough to plant harmful records in an agent's memory ([MINJA, arXiv 2503.03704](https://arxiv.org/abs/2503.03704)). The tests used lab agents. The rate in production is unknown. Microsoft's own documentation gives the reason. The model decides what to save. So bad input can end up in memory ([Microsoft Learn](https://learn.microsoft.com/en-us/azure/foundry/agents/concepts/what-is-memory)) \[vendor].

Treat each candidate memory as untrusted until it passes four checks:

* **Check the write.** Screen it for instructions, secrets and claims that conflict with a trusted source.
* **Record the source.** Keep where it came from, when, and whether a person confirmed it.
* **Allow rollback.** Keep revisions. Then a bad memory and everything derived from it can be removed.
* **Expire by type.** AWS suggests about 90 days for episodes and no fixed expiry for procedures ([AWS, 4 September 2026](https://aws.amazon.com/blogs/machine-learning/designing-lifecycle-policies-for-agentcore-memory/)) \[vendor]. The same post says AgentCore Memory has no built-in automatic expiry. The team has to build it.

Old memory can do harm without any attacker. AWS gives the example of a support agent treating a billing dispute settled four months earlier as still open. More on poisoning is in the [agent data engineering layer (R14)](/layers/r14-agent-data-engineering). Sources read 14 October 2026.

## Track the derived copies [#track-the-derived-copies]

Maintain links from source versions to extracted facts, indexes, summaries, caches, and retained evaluation copies. A correction, permission change, or removal request should identify the affected material. Mixed-source summaries may require regeneration or more restrictive access.

Test the whole path, including backups and caches under their approved lifecycle policy. Where a retention requirement prevents deletion, restrict use according to that policy instead of letting the model invent an exception.

## Make forgetting observable [#make-forgetting-observable]

A successful deletion call is not sufficient evidence that a later query cannot retrieve the content. Test the original question, paraphrases, related entity lookups, and already-open tasks. Verify that stale context is invalidated or safely rebuilt before reuse.

The same test applies when an agent is retired. The retire stage of [the agent lifecycle](/architecture/agent-lifecycle) deletes the agent's own memory. A change to its memory policy sends the agent back to evaluation before release.

## Review before changing shared knowledge [#review-before-changing-shared-knowledge]

An agent can propose a useful lesson, but one successful episode does not create a company rule. Check sources, repeated evidence, scope, and an accountable approval before changing procedural memory.

The [NIST AI RMF Playbook](https://www.nist.gov/itl/ai-risk-management-framework/nist-ai-rmf-playbook), reviewed 18 September 2026, provides broader lifecycle and governance guidance. The derivative tracking and removal checks here are proposed implementation practices.

**Continue the story:** [Test whether memory serves the task](/memory/what-the-benchmarks-measure).
