AI Agent Memory: Types, Retention and Access Rules
AI agent memory is the context an agent keeps between interactions. Short-term memory keeps the current task coherent; long-term memory carries selected facts into later sessions. For a founder or CTO building an agent for a small team, start by deciding what deserves to persist. Approved reporting preferences may be useful. A copied launch date can become a liability.
If your team repeats the same instructions every week, memory may save effort. If the answer already lives in your customer relationship management (CRM) system or project tracker, fetching that record may be simpler. The engineering decision is whether persistent memory removes enough repeated work to justify another component to maintain.
Use this rule: retain approved, reusable context; fetch changing facts from their current source; verify completed actions through the system that performed them. Give each stored fact a source, an owner and a correction path. The choices below help you decide what to build and what an engineer must prove before you rely on it.

Why shared agent memory needs an owner
When you have 12 people and three customer projects, repeating the reporting process every Monday is frustrating. An agent that remembers the approved format could help. Someone still needs to correct it when the format changes. That person can be the project lead who already owns the update.
The risk grows when remembered context starts influencing several people. An outdated instruction in a personal assistant affects one user. An outdated instruction in a shared delivery agent can affect every project that uses it.
The 29 September 2026 edition of The AI Daily Brief put this ownership problem at the centre of its team-agent discussion. The useful takeaway is that shared knowledge needs maintenance, not just collection. A personal agent connected to approved team documents may be sufficient before you introduce a shared, writable memory store.
OpenAI introduced dots on 29 September 2026, powered by GPT-6 Astra, with its own cloud computer and the ability to learn from feedback. Its announcement distinguishes the personal dot rollout from specialist organisational dots in focused enterprise pilots. For a small company, check the product and plan you can actually use, including access and data controls, before designing around the announcement. Source: OpenAI’s dots announcement, checked 8 October 2026.
Short-term memory, long-term memory, and RAG solve different problems
Short-term agent memory helps the agent follow the task in progress: the question, earlier answers, and intermediate context. Long-term agent memory carries selected information into later sessions.
LangGraph documents short-term memory as thread-level state persisted through checkpoints. Its long-term stores use custom namespaces to organise information across sessions. A namespace groups the records; your application must also check who may read them. Source: LangChain’s memory documentation.
Retrieval-augmented generation (RAG) retrieves relevant material and provides it to a model. Agent memory describes the retained context that a system makes available. A memory system can use retrieval, but searching an approved policy document and remembering something a user said have different evidence requirements.
A retrieved document can still be outdated. A remembered statement can still be wrong. In both cases, the agent needs enough source information to distinguish a current record from a plausible sentence.
Our RAG versus fine-tuning guide covers the broader knowledge-design decision. Here, the question is narrower: which facts should persist, and under whose authority?
A delivery example: the agent remembers the wrong launch date
Consider a 12-person software company using an agent to draft customer updates. In this illustrative example, a project manager mentioned a 9 October go-live date during September planning. The agent retained it.
The customer later approved 16 October in the project tracker. On 2 October, a colleague asks the agent to draft the weekly status email.
The agent has two possible inputs: the remembered 9 October date and the approved 16 October record. If it chooses the old date, the founder must correct a customer commitment that was already settled. Better prose will not fix the source selection.
The safer design gives those inputs different roles:
- The remembered date is historical context. It explains what was previously discussed.
- The approved project tracker is the operational source of truth. The agent checks it before stating the current launch date.
- A conflict triggers a correction. The old memory is marked as superseded rather than silently left available as a current fact.
If the agent cannot access the tracker, it should flag the date for confirmation before the update is sent.
The same distinction applies to actions. “Prepare the status email” is an instruction. “The email was sent” requires confirmation from the sending system. Our guide to AI agent idempotency addresses the related problem of repeating actions.
Use a seven-field record for reusable facts
Before choosing a vector database or memory framework, define what a valid memory record must contain. Give the engineer implementing it these seven fields and ask them to show how each is stored, checked and corrected.
| Field | What it answers | Illustrative value |
|---|---|---|
| Scope | Which customer and project does this concern? | Customer A / CRM implementation |
| Fact | What precisely should be retained? | Approved go-live date: 16 October 2026 |
| Source | Where can the claim be checked? | Approved project-tracker record |
| Observed date | When did the system obtain this evidence? | 2 October 2026 |
| Owner | Who can approve or correct it? | Named project owner |
| Status | Is it proposed, approved, disputed, or superseded? | Approved |
| Lifecycle | When does it expire, and what does it replace? | Review at the next approved milestone change; supersedes 9 October |
Keep a model’s inference separate from an approved fact. If the agent infers that a customer prefers short emails, label that as a proposed preference until the relevant person confirms it.
For volatile information such as deadlines, budgets, staffing, and approval status, retaining a pointer to the current record may be more useful than retaining another copy of its value.
Choose the smallest memory architecture that fits
Start with the systems you already run. If a maintained document or database provides the facts, use it. Add a memory framework when the task needs new facts to persist across sessions and you can fund their upkeep. The options below compare documented capabilities at different levels of that decision.
| Approach | Consider it when | Verify before committing |
|---|---|---|
| Approved documents or a conventional database | The agent needs stable procedures or current records, with little need to retain new facts automatically. | Document ownership, permissions, versioning, and how the agent finds the current record. |
| OpenAI dots | An eligible existing product could fit the work without a custom agent application. | Available features, organisational access, data controls, and whether the required team use is supported. |
| LangGraph | You are building an application and need to control thread state and cross-session storage. | Your persistence, authorisation, correction, and deletion implementation. |
| Amazon Bedrock AgentCore Memory | You want a managed memory component within a compatible agent architecture. | Supported memory configuration, access controls, retention requirements, and integration effort. |
These options operate at different levels: dots is an agent product, LangGraph is an application framework, and AgentCore Memory is a memory component. Compare the fit for your workflow rather than treating them as interchangeable subscriptions.
Amazon describes AgentCore Memory as a fully managed service with short-term interaction storage and long-term extraction of information such as preferences, facts and summaries. Your application still needs rules for which extracted information is approved for reuse. Source: Amazon Bedrock AgentCore Memory documentation.
If your CTO owns the design but lacks implementation capacity, AI/ML engineers can join your development team. The brief should explain how facts enter the system, who can retrieve them and how a correction stops the old value influencing answers.
Implement memory in five controlled steps
1. Establish a baseline without persistent memory
Run representative tasks using explicit instructions and approved sources. Record where users repeat the same context and where missing context causes a specific failure. Those observations define the problem memory should solve.
A simple capacity calculation: assume three project leads each repeat five minutes of setup context on five working days. That is 75 minutes a week. If memory removes all that setup but adds 45 minutes of review and correction, the saving is 30 minutes before software and engineering costs. This illustrative calculation gives you a threshold to test with your own timings. At that scale, a saved template may be enough.
If a single task can retrieve everything it needs from a current database, shared long-term memory may add little value. Check the simpler workflow-versus-agent decision before adding another component.
2. Admit only qualified facts
Choose a small initial scope: approved reporting preferences, stable team procedures, or confirmed project context. Define who can approve each class of information.
Exclude credentials, unsupported inferences and cross-customer information from shared memory. Admit a private conversation’s useful facts only after checking their purpose and permitted audience.

3. Enforce scope before retrieval and writing
Apply customer and user authorisation when the agent reads memory and when it proposes a new record. Enforce these checks in the application, before the model receives another customer’s data.
A label such as “Customer A” helps organise records. The application must still enforce the access boundary. Review tool permissions alongside memory permissions using the AI agent security guide.
4. Make corrections and expiry part of normal operation
Define what happens when a newer record contradicts an older one. Mark superseded facts, preserve the evidence needed to understand the correction, and prevent old values from being treated as current.
Set review or expiry rules by information type. A formatting preference can remain useful for months; a launch date needs checking against the current project record.
5. Verify deletion beyond the visible record
Map any derived summaries, retrieval indexes, replicas, logs and backups your implementation creates. Document what deletion removes immediately, what remains under a retention policy and how you verify each boundary. Deleting the visible record alone can leave copies elsewhere.
“Give each retained fact an owner and a source. Test correction across every retrieval path, then check the current record before the agent drafts a customer commitment.”
Bohdan Semenov, Head of Delivery at Powercode Group
Longer context and retrieved memories change the amount of data processed on each run. Compare the cost of an agent task with model and tool usage included before expanding retention or retrieval. Include the work needed to review and correct reused information.
Define eight release checks before the agent remembers more
Ask your engineer to demonstrate these checks on your configuration before expanding the stored context.
- Approved recall: retrieve the right fact for the right project and identify its source.
- Tenant isolation: reject a request for another customer’s retained information.
- Permission change: stop returning information after the user loses access.
- Correction: prefer the approved replacement and identify the old record as superseded.
- Expiry: flag an expired fact instead of presenting it as current.
- Source unavailable: qualify a volatile claim when its current record cannot be checked.
- Action confirmation: distinguish requested, attempted, and tool-confirmed actions.
- Deletion: verify removal from each documented active or derived store.
Measure retrieval accuracy as cases returning a correct, source-backed answer divided by cases with an approved expected answer. Measure stale-answer rate as cases presenting an expired or replaced fact as current divided by cases with a known correction or expiry. Count each case once in each measure. Also record the time from approving a correction until every relevant retrieval path returns the replacement.
Treat any disclosure between customers as a release failure. Strong answers elsewhere cannot offset it. Your test report should state the cases, environment and limitations. Use the agent evaluations guide to structure that evidence.
Name the person who can disable memory writes and contain a suspected disclosure. For a small team, give a second person the access needed to cover their absence. Record that in the agent incident-response plan, before the first incident.
Frequently asked questions
Does long-term agent memory mean the model is retrained?
No. The approach described here stores context outside the model and supplies selected information during later interactions. It does not require fine-tuning the model. Check the implementation before assuming what “memory” means in a particular product.
Should every conversation become shared team memory?
No. Conversations can contain private information, temporary assumptions, and conflicting instructions. Use an explicit admission policy. Retain approved facts for a defined purpose and audience rather than treating an entire conversation as team knowledge.
When should an agent forget something?
When it expires, is superseded, loses its legitimate purpose, or must be removed under the applicable retention or deletion policy. Forgetting must address the stores your system actually uses, including derived records where relevant.
Evidence and limits: the product comparison draws on documentation checked on 8 October 2026. The example, calculation and release checks are design aids, not results from a Powercode Group client or a hands-on vendor benchmark.
If you need an agent built around your project or customer data, explore Powercode Group’s AI development and data engineering services. Tell Powercode Group which task the agent should perform and where the current records live. That gives us a concrete starting point for discussing the build. If a saved template and a current database query solve the task, persistent memory can wait.