Amazon OpenSearch Memory: A Saved Event Is Not Yet a Memory

An agent can save a conversation successfully and still have no derived memory to retrieve from it. For an application that needs context across sessions, that gap affects what the next answer can safely assume.
AWS announced general availability of Amazon OpenSearch Memory on November 18, 2026, describing it as a serverless capability for persistent agent memory. Its design provides a useful way to think about the problem: storing an interaction and extracting reusable knowledge are separate operations.
The engineering work starts with deciding which of those operations the application needs at each moment.
Events record interactions; memories interpret them
In the AWS launch explanation, events are the original interactions an application supplies. Memories are derived facts, preferences, and summaries. A space is the resource that stores both.
Consider a hypothetical travel assistant. A user says they prefer an aisle seat. The event records that interaction. A derived memory might represent the seating preference for use in a later conversation.
Those artifacts answer different questions. The event tells the application what the user said. The memory offers an interpretation that may be useful beyond the original exchange. Treating them as interchangeable hides the extraction step and makes it harder to investigate a questionable answer.

AWS documents several extraction strategies: SEMANTIC for facts, SUMMARY for session summaries, and CUSTOM for a supplied prompt. Multiple strategies can process the same events, according to the service overview. The application therefore needs to decide what kind of derived context it wants, rather than treating every stored exchange as one more permanent fact.
A successful write does not mean extraction has finished
AWS says CreateEvent returns after storing the event. Extraction runs afterward in the background. The documentation distinguishes immediate event reads from event search, which becomes available within seconds. A newly created user's memory search can initially return nothing, as the launch explanation describes.
That empty result needs careful handling. It does not necessarily mean the user has never supplied relevant information. The application may have just saved it, while the derived memory is still unavailable.
For the hypothetical assistant, a reply immediately after the aisle-seat request should not depend entirely on a fresh memory search. A reasonable design is to keep the current conversation available for the immediate response and use derived memory for later context. That is an application recommendation, not a claim about an integration tested here.
The same distinction belongs in status messages. A stored interaction supports saying it was saved. It does not, by itself, establish that extraction completed or that a future memory query will return the intended preference. AWS's description of event search timing should not be turned into a deadline for derived memories.
Corrections need both consolidation and provenance
Now suppose the user changes their preference to a window seat. The application needs to handle the correction without continuing to rely on an older preference.
AWS says consolidation is enabled by default and can add, update, or skip memories as new information arrives. Its best-practices guide also warns that consolidation can replace a memory with one that has a new ID. Applications should fetch current IDs rather than save memory IDs for long-term reuse.
That guidance has a practical consequence: a saved reference to a derived memory should not be treated as a permanent reference to the user's current preference.

Provenance provides another check. The launch blog says retrieved memories include sourceEventIds, which trace a derived fact back to its originating events. It also supports direct writes through CreateMemory and recommends reviewing or correcting agent-written memories before relying on them.
Source tracing helps answer why a memory exists. It does not prove the extraction was correct. A proposed review flow should inspect both the derived statement and the underlying interaction, especially when the user disputes a remembered detail.
Choose retention and access rules explicitly
Events and memories also have different retention options. AWS documents event retention from 1 to 365 days and memory retention from 1 day to 10 years or indefinitely. Memories do not expire by default, according to the service documentation.
Those settings deserve an explicit decision. A temporary instruction about one trip should not automatically become a lasting preference. Before extracting a memory, decide whether the information should influence later sessions at all. AWS documents infer: false for events that should remain searchable without producing memories.

Access needs similar care. AWS recommends separating users by actor ID within a space, using separate spaces for different applications or environments, and enforcing least-privilege IAM access. Its guidance also says to pass owner identifiers on individual reads and deletes, rather than relying only on an object's ID.
These are configuration recommendations, not evidence that a particular application isolates its users correctly. The application still needs to verify that its own requests apply the intended owner scope.
Evaluate the transitions before relying on memory
A useful evaluation should examine the points where context changes, not just a later query that happens to retrieve a fact. The following is a proposed test checklist, not a report of tests performed:
- Write a new interaction and query before extraction completes. Check what the application does when memory search is empty.
- Change a preference. Inspect the current derived memory and whether the response still relies on the old preference.
- Trace a retrieved fact through its source event IDs. Compare the interpretation with the original interaction.
- Exercise owner-scoped reads and deletes. Verify that the application supplies the intended identifiers.
- Check configured expiry and an event marked
infer: false. Confirm the behavior the application actually depends on.
Start with one preference that can change. Follow it through storage, extraction, correction, and retrieval before adding more categories of memory. That gives the team a concrete way to decide when an agent can use remembered context and when it needs the original conversation or a fresh confirmation.
Sources
- Amazon OpenSearch Memory is now generally available · Amazon Web Services
- Introducing Amazon OpenSearch Memory: Persistent memory for AI agents · Amazon Web Services
- What is Amazon OpenSearch Memory? · AWS Documentation
- Best practices for Amazon OpenSearch Memory · AWS Documentation

