Model Lifecycle Memory router Architecture Sources Request a private session
Architecture & agents · Field guide 04

Agentic memory.

The useful idea behind a three-tier memory model is simple: keep the right information available at the right horizon. The production reality is more rigorous. Memory is not a pyramid. It is a governed system of context, retrieval, persistence, reflection — and deliberate forgetting.

The core idea

Right memory, right time, right authority.

The source infographic gets the operational instinct right: agents become more useful when they can preserve context, retrieve relevant knowledge and carry durable information across sessions. But it collapses two different questions into one: how long information should persist and what kind of memory it is. Production architectures should model those as separate dimensions.

CORRECTION A

Working context can be ephemeral even when the underlying session history is persisted.

CORRECTION B

Semantic, episodic and procedural memory describe content types — not fixed retention durations.

CORRECTION C

Durable storage is useless without a retrieval policy, write policy, provenance and forgetting policy.

A better three-tier model

Treat the tiers as retention horizons.

The three layers remain useful when reframed as operational storage and retrieval horizons rather than as a psychological taxonomy.

01

Active contextImmediate working set

Instructions, recent turns, tool outputs and task-local state that the model needs now. It should be aggressively curated because context capacity is finite and irrelevant tokens dilute attention.

Hot pathThread / run scopedHigh recency
Typical lifetime
Seconds → one task or thread
Primary risk
Context bloat and stale state
Good contents
Current intent, open constraints, latest observations
Management
Trim, summarize, compact, filter
02

Retrievable working knowledgeCross-task / bounded persistence

Information likely to matter again soon: project facts, temporary preferences, task summaries, recent decisions, open commitments and structured state. This layer is best understood as retrievable working knowledge, not “semantic memory by definition.”

Warm storeSearchableTTL-friendly
Typical lifetime
Hours → weeks, or until resolved
Primary risk
Over-retention and contradiction
Good contents
Project state, summaries, recent preferences, unresolved obligations
Management
Search, TTL, confidence, supersession
03

Durable memoryCross-session / long-lived

Stable information worth carrying across long horizons: explicitly saved preferences, durable facts, validated procedures, important histories and learned patterns. Persistence should be selective, attributable and reversible.

Cold / durableCross-sessionGoverned
Typical lifetime
Weeks → years, with review
Primary risk
Privacy, stale truths, false certainty
Good contents
Stable preferences, durable facts, procedures, high-value episodes
Management
Consent, provenance, deletion, revision, access control
The missing axis

What a memory is is different from how long it lasts.

A user preference can be durable semantic memory. A successful workflow can become durable episodic or procedural memory. A temporary project fact can also be semantic but short-lived. Retention and memory type are orthogonal.

TYPE A

Semantic

Facts, concepts, entities, relationships and preferences — “what is true or believed to be true.”

Examples: preferred language, project codename, organization policy, domain fact. Store confidence and provenance when truth can change.
TYPE B

Episodic

Past events, outcomes and action traces — “what happened.”

Examples: a prior failed deployment, how a customer issue was resolved, a sequence that produced a good result.
TYPE C

Procedural

Rules, methods and learned operating instructions — “how to act.”

Examples: approval workflow, formatting policy, escalation rule, agent playbook or updated instruction set.
Think in two axesRetention horizon × information type
Active contextCan contain semantic facts, episodes, procedures and tool state.
Working knowledgeCan contain temporary semantic facts and compacted episodes.
Durable memoryCan contain semantic, episodic and procedural memory.
External knowledgeDocuments and databases may be retrieved without becoming user memory at all.
Memory lifecycle

Remembering is a control loop.

Observe

Receive user input, environment state, tool outputs and agent actions.

Do not treat every observation as memory-worthy.

Classify

Identify scope, type, expected lifetime, sensitivity, confidence and likely future utility.

A practical classifier asks: “Will this matter again, to whom, and for how long?”

Write selectively

Persist only what passes policy. Attach provenance, timestamp, ownership, expiry and confidence.

Background reflection can keep expensive memory writes off the latency-critical path.

Retrieve deliberately

Fetch memories based on task relevance, identity scope, recency, confidence and permission — not semantic similarity alone.

Hybrid retrieval often combines structured filters with keyword and vector search.

Reflect & consolidate

Summarize repeated episodes, merge duplicates, promote stable patterns and resolve contradictions.

Promotion should be evidence-gated; repetition is not the same as truth.

Forget, expire or supersede

Remove stale, low-value or revoked information. Preserve correction history where auditability requires it.

A trustworthy memory system needs a deletion path as much as a write path.
Interactive field tool

Route a memory.

Use the controls to see how retention, sensitivity and repeatability change a reasonable storage decision. This is a transparent heuristic demo — not an automated policy engine.

Memory routing worksheetHEURISTIC / CLIENT-SIDE
Choose an example
Policy signals
Recommended route
Active context
Memory type
Task state / episodic context
Write policy
Keep in thread state; avoid durable persistence unless the task becomes recurring.
Expiry
At task completion or after the session horizon.
Why
The information is highly relevant now but has weak evidence of future value.

Production systems should additionally consider jurisdiction, organizational policy, user consent, data classification, source reliability and access boundaries.

Reference architecture

A memory system is more than storage.

A production agent needs a memory control plane that decides what may be written, how it is indexed, what can be retrieved, what enters model context, how conflicts are resolved and when information must be deleted.

Reference pattern, not a prescriptive vendor stack. Some systems combine components; others separate them for latency, security or observability.

Governance

Memory changes the risk surface.

An agent that remembers can become more helpful — and more invasive, more confidently wrong, harder to audit and easier to poison. The memory layer needs explicit controls.

RiskFailure modeProduction control
Stale truthOld facts survive after circumstances change.Timestamps, TTL, supersession rules, confidence decay, refresh-on-use.
ContradictionMultiple memories disagree and retrieval hides the conflict.Source ranking, contradiction detection, explicit version history.
Memory poisoningUntrusted content becomes persistent operating knowledge.Trust boundaries, write authorization, source provenance, quarantine for inferred memory.
Privacy overreachThe system stores information that was useful once but should not persist.Data minimization, opt-in persistence, sensitive-data policy, user deletion.
Scope leakageMemory crosses users, organizations or projects.Namespace isolation, tenant-scoped keys, access control, retrieval filters.
Over-personalizationPast behavior narrows future choices or creates awkward assumptions.Uncertainty language, editable preferences, use memory only when task-relevant.
Implementation playbook

Start with policy, then choose storage.

Teams often begin with a vector database because retrieval is tangible. The harder design work comes earlier: what may become memory, under what scope, with what expiry, and how the user can correct it.

# illustrative record — vendor neutral
{
  "scope": "user:123 / project:alpha",
  "memory_type": "semantic",
  "horizon": "durable",
  "content": "Prefers aisle seats on flights over 4h",
  "source": "explicit_user_statement",
  "confidence": 1.00,
  "created_at": "2026-09-04T19:10:00Z",
  "expires_at": null,
  "sensitivity": "low",
  "user_editable": true,
  "supersedes": null
}
Minimum production checklist
Define memory namespaces.User, tenant, project, thread, agent, public knowledge.
Create an explicit write policy.Separate observations from memory candidates; make sensitive writes harder.
Store provenance and time.Every memory should know where it came from and when it became true.
Use retrieval filters before ranking.Permission and scope constraints come before semantic similarity.
Budget model context.Retrieval output is not the same as context input; curate a minimum sufficient set.
Design correction + deletion.Users and operators need to repair stale or unwanted memory.
Evaluate memory independently.Measure write quality, retrieval quality, stale-memory rate and downstream task impact.
Evaluation

If memory is not measured, it becomes folklore.

Write precision

Of the memories written, how many were actually worth persisting?

valuable_writes / all_writes
Write recall

Of the facts or episodes that should have been saved, how many were captured?

captured_worthy_items / all_worthy_items
Retrieval precision@k

When memory is queried, how much of the returned set is task-relevant and authorized?

relevant_authorized_items / retrieved_items
Stale-memory incidence

How often does outdated or superseded memory influence a response or action?

stale_influences / memory_assisted_runs
Task lift

Does memory improve task quality, latency, user effort or cost compared with a memory-disabled baseline?

Δ outcome versus controlled baseline
Correction latency

How quickly does a user correction stop an obsolete memory from influencing behavior?

time_to_effective_supersession
Example in action

Plan a flight without turning a person into a profile.

01
User asks:

“Book me a flight to Paris next Friday.” Keep as active task context.

02
Retrieve scoped memory:

Known travel preferences only if relevant, authorized and current.

03
Retrieve external knowledge:

Current flight schedules and prices come from live tools — not memory.

04
Act with constraints:

Use aisle preference to rank options, but do not let an old preference override explicit new instructions.

05
Reflect after completion:

If the user explicitly updates a durable preference, write a superseding memory with provenance.

Illustrative memory ledgerParis task
Destination + dateTask intent; relevant only to this booking.ACTIVE CONTEXT
Prefers aisle on flights over 4hExplicit stable preference; useful across future sessions.DURABLE · SEMANTIC
Last year's Paris itineraryPrior episode; retrieve only if it helps the current plan.DURABLE · EPISODIC
Current fares and seat inventoryLive external state. Never treat as durable memory.TOOL / EXTERNAL DATA
Passport numberSensitive credential-like data; persistence requires strict necessity and policy.RESTRICT / MINIMIZE
Research base

Primary sources over received wisdom.

This page deliberately refines the source infographic rather than reproducing it. The central correction — separating retention horizon from memory type — is consistent with current agent frameworks and cognitive-architecture literature.

2025 · AnthropicEffective context engineering for AI agents ↗Frames context as finite and emphasizes iterative curation of instructions, tools, external data and history for long-horizon agents.
2026 · OpenAIAgents SDK — Sessions ↗Documents persistent conversation state, storage backends and session-level context continuity.
2026 · OpenAIAgents SDK — Agent memory ↗Separates conversational session memory from sandbox-agent memory that distills lessons from prior runs.
Current · LangChainMemory overview ↗Distinguishes thread-scoped short-term memory from cross-session long-term memory and discusses semantic, episodic and procedural memory types.
2023 · CoALACognitive Architectures for Language Agents ↗Provides a systematic language-agent architecture with modular memory and structured action spaces, connecting agent design to cognitive science.
2023 · MemGPTMemGPT: Towards LLMs as Operating Systems ↗Uses hierarchical, OS-inspired memory management to move information between fast and slow context tiers beyond the immediate context window.
2024 · W3CWeb Content Accessibility Guidelines (WCAG) 2.2 ↗Accessibility baseline used for keyboard navigation, focus visibility, target sizing, reduced motion and semantic structure.
Current · GoogleCore Web Vitals ↗Performance targets considered in the page implementation: LCP, INP and CLS, with a dependency-free front end and restrained JavaScript.
2026 · ImageFirmImageFirm — Ethical AI · Applied at the Frontier ↗Brand and editorial reference: human authority, responsible autonomy, privacy, sovereignty and operator-grade applied AI.

Research note. No single three-tier memory model is an industry standard. “Short / mid / long-term” is best treated as a useful engineering metaphor. Implementations vary by model, orchestration framework, data sensitivity, latency budget and product requirements. Where vendor documentation differs, the page favors the underlying architectural principle rather than implying a universal API.

ImageFirm · Applied AI & Agentic Systems

Memory should make an agent more useful — not more invasive.

We design production AI systems where context, retrieval, memory, evaluation and human authority are engineered as one operating model.