
This article develops the supplied brief. The demo is proposed and has not been executed. Screenshots, benchmarks and tested configuration will be added after implementation.
The assistant found the policy—and forgot the person
A support assistant can retrieve the correct returns policy and still disappoint a customer. Yesterday, the customer asked for email updates. Today, the assistant asks again. The missing information is not a paragraph in the policy manual; it is context retained from an earlier interaction.
Persistent memory can make an assistant more useful, but only when it recalls the right information for the right person. Remembering an outdated preference confidently can be worse than asking again. This draft proposes a two-session support experiment that tests both helpful recall and the boundaries around it.
Distinguish knowledge, history and memory
| Capability | Purpose in this design | Retail example |
|---|---|---|
| Retrieval-augmented generation | Retrieve relevant external knowledge | Find the current returns policy |
| Conversation history | Keep context within an interaction | Track the order being discussed |
| Long-term memory | Retain selected information across interactions | Recall a communication preference |
These capabilities can work together. A saved preference can guide how the assistant communicates, while an authorised order lookup establishes current delivery status. Do not let a remembered statement silently replace an authoritative operational record.

What Databricks provides
The AWS Agent Memory documentation currently labels the feature Beta. It describes a managed, Lakebase-backed store for durable context, separate from short-term agent sessions. Applications can write memory directly or use a memory pipeline to distil it from stored conversations.
Entries are organised using actor identity, an optional session identity and a path. Actor identity is an important retrieval boundary in the documented interface; application authentication and authorisation must establish which actor a request may access. The proposed experiment should verify that mapping rather than accepting an arbitrary actor ID from a browser request.
Decide what deserves to be remembered
Define a small memory policy before adding extraction. A communication preference is a reasonable synthetic example because it is useful across sessions and easy to correct. A one-off instruction—“email this receipt today”—should not automatically become a permanent preference.
For the experiment, record why a candidate memory is durable, when it was learned and how a later correction supersedes it. Decide what should expire and what should never be stored. Give the user a practical path to inspect, correct or remove retained information in the application design.
Memory content should be treated as data. A saved note containing instructions must not acquire authority to change tool permissions, reveal another user’s information or bypass the application’s rules.
Proposed demonstration: two sessions, three identities
- Create fictional customers A and B and a separate test identity with no permission to access either customer.
- In A’s first session, request email updates and complete a synthetic order enquiry.
- Write the selected preference or run the configured extraction pipeline. Verify the saved entry.
- Start a new session for A and ask which update channel to use. Check whether the assistant retrieves the preference.
- Have A explicitly change the preference. Start another session and check that the new instruction takes precedence.
- Run a comparable enquiry for B and verify that A’s memory is not returned.
- Attempt an unauthorised lookup using the separate test identity and confirm that the application denies access.
Use fictional data throughout. These steps have not been executed in a Databricks workspace for this article.
Include cases where the correct answer is “do not remember”
Add temporary requests, ambiguous preferences, stale facts and deliberate corrections to the test set. For each interaction, label the desired result before running the assistant. This prevents a persuasive answer from being scored as correct simply because it mentions something from the earlier conversation.
A useful failure example is an assistant continuing to use email after the customer has changed their preference. Investigate whether the failure occurred during extraction, update, retrieval or response generation. Those are different problems and need different fixes.
| Measure | Question |
|---|---|
| Preference recall | Did the assistant use the correct current preference? |
| Incorrect recall | Did it apply an outdated, invented or other-user fact? |
| Non-retention accuracy | Did it avoid storing temporary or excluded information? |
| Tool calls and tokens | Did memory reduce repeated work or add overhead? |
| Response time | How much latency did retrieval and memory processing add? |
Compare the same assistant with and without memory using the same scenarios. Repeat tests and report failures, not just a memorable successful conversation.
What makes memory useful
The finished article needs a reproducible test harness, sanitised session traces, the tested SDK configuration and actual results. Feature status and interfaces should be rechecked before publication; Beta functionality can change.
Memory is valuable when it preserves useful context, accepts corrections and retrieves it for the right person. The proposed experiment is designed to make those properties visible before an application relies on them.
Worked example and design decisions
Customer A changes from email to phone. Customer B never supplied a preference. Recall the current preference for A, avoid resurrecting the older one and ask B rather than borrowing another customer context. Repeat across separate sessions.
Use this scenario to write the expected result before building the pipeline or agent. Identify the exact source facts, the permitted transformations and the outcome that a reviewer should see. Keep the reference result independent of the implementation under test.
A concrete data or asset contract
The following is a proposed application contract, not an assertion that these are native vendor API fields. Adapt names and types to the selected platform while preserving their intended meaning.
| Proposed field | Meaning and implementation concern |
|---|---|
actor_ref | Server-established user identity |
memory_path | Location for one preference |
content | Selected durable context |
evidence_session | Originating session |
effective_at | Applicable time |
review_state | Current or superseded in this design |
Document null semantics, stable identifiers and schema ownership with the contract. A missing observation, a zero amount and a denied lookup are different states and should not collapse into the same empty response.
Implementation blueprint
1. Establish actor identity
Map the authenticated request to an authorised actor server-side. A browser-provided actor ID is not sufficient permission.
2. Select durable context
Separate lasting preferences from temporary instructions. Define exclusions, corrections and retention before automated extraction.
3. Treat memory as evidence
Supply provenance and uncertainty. Remembered content cannot override tool permissions or authoritative operational facts.
4. Test correction and non-retention
Evaluate conflicting statements, updated preferences and information that should not be stored. Compare with the same memory-free assistant.
Failure analysis: test the uncomfortable case
Old and new preferences are retrieved together and the assistant chooses the old one. Define and test update and conflict behaviour instead of assuming relevance ranking resolves recency.
Build this condition into the synthetic test set. Capture the observed output, the control that should detect the issue and the recovery decision. If the system returns a polished but unsupported result, record that as a failure rather than a successful request.
Operational ownership and runbook
Inspect stored entries and retrieval during synthetic evaluation. Provide correction and removal paths and verify later retrieval. Recheck Beta interfaces before publishing product-specific commands.
A useful incident record identifies the affected product or capability, the relevant run or request, the business time represented and the owner of the next action. Distinguish restoring infrastructure from restoring correct service output. Preserve enough versioned evidence to explain the recovered state.
Evidence required before a production claim
The core design controls for this topic are: Authenticated actors; retention decisions; provenance; correction tests; and operational source separation.
- Contract review: confirm field meaning, intended use, owner and access boundaries.
- Positive and negative tests: include the worked example, invalid inputs, restricted access and the failure case described above.
- Repeatable measurements: retain configuration, workload size, timing method, failures and the baseline used for comparison.
- Recovery evidence: demonstrate the documented recovery route and validate the resulting data or application behaviour.
This expanded article remains a proposed technical design. Environment-specific configuration, screenshots and measured outcomes should be added only after the implementation is executed and reviewed.
Official references
Reference scope: Databricks on AWS. Reviewed 29 October 2026; confirm workspace availability and current prerequisites before implementation.
