Exercises

Solve 6 real-world memory architecture, privacy, and compaction scenarios.

1. User B sees User A's preferred programming language in a shared web API. What was left out of MemoryConfig?

2. A customer types their credit card password into chat. What must your memory layer do?

3. After 45 turns, your assistant forgets an architecture constraint stated in Turn 1 because old messages were dropped. What prevents this?

4. Where should a company's public 2026 holiday schedule live vs one employee's preferred time zone?

5. Before running a bulk migration script over a user's long-term memories, what safety step lets you undo mistakes instantly?

6. Why should LearnConfig specify retention_days (e.g., 90 days) and LearnScope.PRIVATE for user preferences?

Back to the Memory tutorial