Memory retrieval can fail quietly: the agent asks its memory for a fact and gets a similar fact from a different customer, a different order, or an old decision. The answer sounds confident and is wrong. The check is to plant two similar facts that differ in one detail, then ask for one and see which comes back.
Before you start
An agent with a memory store you can write to, and two similar facts that differ in one key detail.
Plant two similar facts
Write two facts into the memory that share most of their words but differ in one detail: two orders from the same customer with different totals, or two decisions about the same product with different dates.
Label each fact with the detail that makes it different, so you can tell them apart in the answer.
Ask for one of them by its detail
Ask the agent a question that only one of the facts can answer, using the distinguishing detail: the order total, the date, or the customer name.
Ask it in the words a real user would use, not in the words of the stored fact: a question that repeats the fact verbatim is too easy.
Check which fact came back
Read the answer and check the detail: if the agent returns the other fact, the retrieval matched on similarity and ignored the detail. That is the failure to fix.
If the retrieval keeps failing, add the distinguishing detail to the memory entry itself, or tighten the retrieval to filter on it.
Practice check: fictional Maple Corner memory, two orders, one customer
The table below is fictional practice material, worked out by hand from the stated facts. It is the expected result for the practice check, not a run of any agent.
| Question | Correct fact | Agent returned | Verdict |
|---|---|---|---|
| Total of ORD-4821? | $248.00 | $248.00 | Pass |
| Total of ORD-4822? | $269.15 | $248.00 | Fail – wrong order |
| Date of ORD-4822? | 2026-11-20 | 2026-11-20 | Pass |
| Total of ORD-4822, retry | $269.15 | $269.15 | Pass after fix |
The agent returns the wrong total once: it gives ORD-4821’s $248.00 for a question about ORD-4822’s $269.15. The fix is to include the order number in the retrieved context, and the retry passes.
Expected result. UNTESTED: the answers in the practice table are worked out by hand, not measured by running an agent. Plant two similar facts in your own memory that differ in one detail, ask for one of them, and check which fact comes back.
Limits
- Similarity retrieval matches on wording, not on identity: two similar facts are the hardest test.
- The two totals in the practice table, $248.00 and $269.15, are distinct on purpose: the check only works when the facts differ.
