Agentscore
Agent memory types
Working memory (the context), episodic (past runs), semantic (facts), procedural (how-to).
What it is and why it exists
Short-term memory is the conversation and scratchpad in the window. Long-term memory persists across sessions: semantic facts (“prefers metric units”), episodic records of past tasks, procedural knowledge (instructions, skills). Memory is retrieval with a write path — and the write path is where it goes wrong.
Quick prototype
Store the transcript; prepend it next time.
In production, at scale
Explicit memory writes with rules (what may be stored, by whom, with provenance), retrieval of relevant memories per request, user-visible and deletable memories, expiry, per-user isolation, and protection against poisoning from untrusted content.
Vendors and tools
| mem0 / Zep / Letta | Memory layers for agents |
|---|---|
| LangGraph stores | Long-term memory namespaces |
| Provider memory features | Built-in user memory in assistants |
On AWS: Bedrock AgentCore Memory (short- and long-term); Bedrock Agents session memory.
How it fails
- Injected instructions saved as “facts” that persist (memory poisoning)
- Stale preferences applied forever
- One user’s memory visible to another
What the interviewer asks next
How does memory poisoning work and how do you stop it?
Untrusted content (an email, a web page) convinces the agent to save an instruction to long-term memory; it then affects future sessions. Stop it with write rules: only store from user-confirmed facts, record provenance, never store instructions.