MemoryOS on the Running Example
storage · three tiers
updating · spill, promote, evict
retrieval · all three tiers
generation · one prompt, one answer
STM · recent turns
fixed-length queue of 7 pages
← new page
p9 · remember the park?
p8 · flight to Busan
p7 · gym schedule
p6 · pasta recipe
p5 · cinema near home
p3 · ran two laps
newest on top · oldest at the bottom
MTM · topic folders
pages on one topic + summary · heat per folder
wetland park outing
summary · keywords {park, run, squirrels}
p1
p2
heat
hot
work deadlines
summary · keywords {report, deadline}
p−4
p−3
warm
old laptop issue
summary · keywords {laptop, battery}
p−9
cold
up to 2000 folders
LPM · who they are
user persona · agent persona
User Persona
Profile
· name, birth year
User KB
· learned facts
· lives near the river
User Traits
· 90 tags
· enjoys nature
Agent Persona
Profile
· assistant role
Traits
· what it did for the user
Response Generation
prompt
query · a few weeks later
"I feel like eating a burger,
any recommendations?"
p10 · burger? + reply
push the new page to STM (FIFO)
p3 → MTM
p3
queue
full →
spill
match score > θ → join this folder
L
heat > τ
promote
· went to the wetland park
· goal: get slimmer
· likes outdoor exercise
· promised to keep the user motivated
L
✗ evicted (coldest)
all 7 pages
top-m folders → top-k pages
top-10 entries + profiles
retrieve · one prompt = recent turns + relevant pages + persona + query
prompt
· recent turns (STM)
· park pages (MTM)
· goal: get slimmer (LPM)
· burger question
→ LLM
L
answer
"The cheeseburger […],
just don't forget you're
hitting the gym!"
L
= an LLM call
◂
▸
12 / 25