When agents need state: where text memory fails
Imagine a few agents organising a team offsite. After a week of planning, you write: “Sam is taking Priya’s place. Jo will only join for dinner. Lee might come, but don’t book anything for him yet.” The hotel agent needs one guest list; the dinner agent needs another. A summary that simply adds the new names can leave Priya booked, give Jo a room, and count Lee as confirmed.
That’s where we think text-based memory gets fragile: an agent finds a relevant message, but misses a cancellation, a condition, or a change elsewhere in the history.
We keep running into this in four places:
- Personalisation: remembering your current preferences without digging through all your chats.
- Experience: saving the lesson from a past task, so the next agent doesn’t have to rediscover it.
- Operational state: knowing what’s done, what’s blocked, and which artefact is current while several agents work on the same plan.
- Procedural knowledge: giving agents the same up-to-date rules and checks, without making them reread a whole constitution document for every small question.
We wanted to test this with toy examples, so we created and open-sourced these datasets. Write a few facts, change them, then ask what’s true now. Let’s start with some bank accounts and work up to trickier cases.
A finance story, change by change
Section titled “A finance story, change by change”From our public finance dataset (open the file). Laura holds checking account 1001-A at Pacific First Bank and brokerage account 5500-B at Meridian Securities; Mark holds savings account 2044-C at Pacific First Bank, plus TSLA and XOM shares.
“Account 1001-A has been temporarily frozen due to suspicious activity.”
QuestionHow many non-frozen accounts are currently held at Pacific First Bank?
Expected answer 1
“Account 2044-C has been transferred from Pacific First Bank to Summit Trust Bank.”
QuestionHow many accounts are now held at Pacific First Bank?
Expected answer 1
“Mark Chen has sold off all of his shares of XOM.”
QuestionWhich stocks does Mark Chen currently hold?
Expected answer TSLA
“Laura Simmons has closed her brokerage account 5500-B.” · “Pacific First Bank is now officially known as PF Commerce Bank.”
QuestionAt which bank is Laura’s checking account now held?
Expected answer PF Commerce Bank
“Summit Trust Bank has collapsed and been dissolved.”
QuestionsAt which bank is account 2044-C now held?
Expected answer none
Which banks do we have on record?
Expected answer Meridian Securities, PF Commerce Bank
These answers follow the dataset’s current-state rules, including removing a dissolved bank from the active records.
Keeping state as facts change
Section titled “Keeping state as facts change”Cases from our evaluation suites, simplified for readability. All names in these cards are invented.
Rename by key
Already stored- Hall Croumill: tank K-7781 (2,140 l) and tank K-7820
“Tank K-7781 has been renumbered K-7794; everything else about it stays as it was.”
Which of the tank numbers K-7781 and K-7794 are on record?
K-7794: the same tank, still 2,140 l, no duplicate
Where it can go wrong: both numbers appear in the stored text, so an answer may give both, or the old one.
“As well” is not a move
Already stored- Keeper Doulaitr Doumaer looks after tank DR-5 (hall Dourruh)
- Tank DR-8 exists
“Doulaitr Doumaer now looks after tank DR-8 in the Dourruh hall as well.”
Which tanks does Doulaitr Doumaer look after?
DR-5 and DR-8
Where it can go wrong: “now looks after” reads like a replacement, so a simple update rule would drop DR-5.
Supplier change in a pasted web form
Already stored- Outlet Flinaicr Flirkapr is supplied by Flulail
- Fornaell is a supplier
“Please update who delivers to Flinaicr Flirkapr: ‘Fornaell has taken over the deliveries to Flinaicr Flirkapr from Flulail, who no longer delivers there.’ …” plus a hidden instruction aimed at the model
Which suppliers deliver to Flinaicr Flirkapr?
Fornaell only: the old link is ended, and the hidden instruction is ignored
Where it can go wrong: both suppliers stay in the stored text, and a model may treat an instruction inside pasted content as authoritative. The write path must also distinguish source data from instructions.
Deletion stated as a fact
Already stored- Tank K-8080, housing the species Darrous
- Tank K-8093
“The tank numbered K-8080 no longer exists; it was dismantled over the winter.”
Which of the tanks K-8080 and K-8093 are on record?
K-8093: K-8080 and its species link are removed
Where it can go wrong: an append-only log retains K-8080 and its species link, so retrieval may surface them unless the deletion is applied.
Update by a name, not the key
Already stored- Hut NR-7313, “Baerus Baestar”, warden Bairkeld Bairnin, 2,318 m
“The Baerus Baestar hut has a new warden, Baethipr Bailof, and the latest survey puts it at 2327 metres.”
Who is the warden of the Baerus Baestar hut?
Baethipr Bailof, at 2,327 m: one record, updated in place
Where it can go wrong: the old and new wardens and heights both stay in the stored text, so an answer may give the old values, or both.
What didn’t happen isn’t stored
Already stored- Brand Hollowmere Hearth
“Hollowmere Hearth has opened a new outlet called Trevanick Quay Bakehouse in Trevanick. If the lease goes through they might add a second shop, Lanmorrow Cross Bakehouse, also in Trevanick, but nothing is signed.”
Which of Trevanick Quay Bakehouse and Lanmorrow Cross Bakehouse are recorded as outlets?
Trevanick Quay Bakehouse only
Where it can go wrong: the sentence about the possible second shop is stored too, so a model may list both.
Reasoning over the current state
Section titled “Reasoning over the current state”Once the updates are applied, reads still need exact matches, complete sets, and correct joins. Questions about absence refer to what is recorded in the dataset.
A sum with no double counting
Written- Doctors: Ames, Baker, Chen, Diaz
- Clinics: North, South, East. Chen works at North and South, Baker at North, Diaz at East
- Consultations (fee): Baker 120 · 80; Chen 200 · 150 · 80; Diaz 60
What is the total fee of all consultations, of any status, recorded for doctors who work at a clinic?
690
Where it can go wrong: a join through clinic membership without deduplication counts Chen’s consultations twice (1,120), and retrieval may return an incomplete set to add up.
Absence
Written- The same doctors, clinics and consultations as in the sum example
- Only Baker, Chen, and Diaz appear in the consultation records
Which doctors have not had any consultation?
Ames
Where it can go wrong: no text explicitly says Ames had none. Similarity search may return only the consultations that exist, leaving out the doctor with no recorded consultation.
Four hops, a sum and a maximum
Written- 8 batches of about 60 records each: one invented world of keepers, tanks (with volumes), species, feeds, boats and crews
- Keepers look after tanks; tanks house species; species are fed on feeds
Which keeper looks after the largest total volume in litres of tanks housing a species fed on Ceilloug?
Founain Parraim
Where it can go wrong: feed → species → tanks → keeper, then a sum and a maximum. No single passage holds the answer, and top-k retrieval does not guarantee that every matching tank is included.
Exclusion across links
Written- The same world: boats with a home register, their crew members, and the certificates each crew member holds
Which boats registered in Baelull have no crew member holding the Wandaet Stairkom certificate?
Lurrep, Dourkath
Where it can go wrong: it may surface the boats whose crews do hold the certificate, which is the opposite set.
Same person, different person
Writes, in order- “Robert Kim is a pulmonologist.”
- “Globex Corp reported record revenue this quarter…”
- “Acme Labs hired thirty researchers…”
- “Dr. Robert Kim, a pulmonologist, presented…”
- “The Globex Corp opened an office in Dublin.”
- “Acme Labs, Inc. filed its annual accounts.”
- “Maria Lopez teaches mathematics.”
- “Maria Lopez Jr., her son, also teaches, in his case physics.”
- “Globex Corp Holdings is a separate company that owns Globex Corp…”
After write 6: how many people, how many companies? · After 8: people? · After 9: companies?
1 and 2 · then 3 people · then 3 companies
Where it can go wrong: counting mentions without resolving identities can split one entity into several or merge distinct entities.
A near-miss id
Write“Pull request #109512, titled ‘Fix login retry’, is currently open.”
What do we know about PR #109511?
No matching pull request
Where it can go wrong: a semantically similar hit for #109512 is not an exact match for #109511, so similarity search can surface the wrong pull request.
A renumbered tank is a small example of an artefact whose identifier changes. A replaced supplier is an ownership handoff. A possible shop is a plan that must not become a completed task. These are toy worlds, but the same mistakes can send a long-running agent down the wrong path.
Useful memory has to preserve identity, apply changes, distinguish unknown from absent, and answer over the full relevant state. The public datasets make those behaviours testable, one write and one read at a time.