by Samy (Kondasamy Jayaraman)

Module 63 · Memory you can trust

Advanced

A cork board of memories, every one on a thread

An assistant that remembers customers needs to know where each memory came from. Here you pin, trust, forget and pull memory cards, and undo a poisoned source.

Read as
...

The whole idea in one example

One bad source, pulled by its thread

Before

poisoned

6 of 8

answers right, with 4 planted cards still on the board.

Two threads pulled

trusted

8 of 8

answers right; every planted card fell, and every good one stayed.

A hand-written example month with hand-set rules; no model ran.

How it works

Four ideas carry the module

  1. ...

    1 What to keep

    Lasting facts stay; small talk goes in the bin

    Park et al.’s Generative Agents paper (2023): each memory is scored on how recent, important and relevant it is, and the model rates importance from 1 (everyday) to 10.

    Source, checked 3 November 2026

  2. ...

    2 Where it came from

    Every card hangs by a thread from its source

    OWASP’s agentic threats guide (February 2025): require source attribution for memory updates, tracking where the assistant’s knowledge came from.

    Source, checked 3 November 2026

  3. ...

    3 A poisoned note

    A planted page teaches a rule that outlives it

    Dong et al.’s MINJA paper (2025): an attacker who only chatted with an agent planted bad memories 98.2% of the time on average, in their tests.

    Source, checked 3 November 2026

  4. ...

    4 Undo the source

    Pull the thread and everything it taught falls

    OWASP’s agentic threats guide (February 2025): keep memory snapshots so memory can be rolled back when something bad gets in.

    Source, checked 3 November 2026

The story

Larkspur’s assistant starts remembering

Larkspur Supply Co.’s assistant remembers customers on a cork board of cards, each tied by red thread to its source, and learns to pull a poisoned thread. You decide what it keeps, and what to pull.

3 of 12
candidate cards from Ada’s chat worth keeping, hand-set
6 → 8 of 8
month-end answers right before and after the planted sources are pulled
98.2%
of MINJA’s planting attempts that got into memory, in their tests
< 0.1%
of memory poisoned in AgentPoison’s tests

Your path

The chapters

  1. Chapter 1

    What to keep

    Which parts of a chat are worth remembering?

  2. Chapter 2

    Where it came from

    How do you find every card a bad source taught?

  3. Chapter 3

    Old and new disagree

    When two memories disagree, which one stays?

  4. Chapter 4

    Forgetting on purpose

    When should the assistant forget, and what does “forget me” remove?

  5. Chapter 5

    A poisoned note

    How does a planted page change what the assistant does weeks later?

  6. Chapter 6

    Undo the source

    How do you remove everything a bad source taught, and nothing else?

  7. Chapter 7

    Workbench: a month of memory

    Which rules keep every answer right and leave no poison behind?

Who it’s for

  • Engineers
  • Product managers
  • Analysts
  • No code needed

Anyone adding memory to an assistant who needs to know what it keeps, why, and how to clean it up. The Agents and Context modules first help; no maths is needed.