docs(memory): expand memory chapter with long-term memory, patterns and pipelines - #59
Merged
Merged
Conversation
Evolve the memory section from an intro stub plus a storage-focused STM page into a complete chapter, reusing the existing STM content. - Memory.md: memory types (STM, LTM, working memory), cognitive sub-types (semantic, episodic, procedural), memory vs. knowledge sources, key principles and chapter map. - Memory-Architecture-Patterns.md (new): storage strategies, retrieval patterns, vendor-neutral pattern archetypes, memory scoping, trade-offs including the fading memory problem, token economics and metrics. - Short-Term-Memory.md: keep existing design approaches and retention, add context window management, working memory assembly, session end handling and multi-channel considerations. - Long-Term-Memory.md (new): what to persist, memory entry data model, lifecycle, relevance scoring and decay with tier demotion, scope decision framework, governance, security risks, operations at scale and a phased adoption roadmap. - Memory-Pipelines.md (new): mermaid diagrams for the retrieval, session end and STM to LTM promotion pipelines. - SUMMARY.md: add the new pages and fill the empty long-term memory entry. - References.md: add the Mem0 long-term memory benchmark paper. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fernando de Oliveira (fedeoliv)
left a comment
Collaborator
There was a problem hiding this comment.
Really nice content, thank you Thiago Rotta (@rottathiago)!
Fernando de Oliveira (fedeoliv)
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Evolves the memory section from an introduction stub plus a storage-focused STM page into a complete chapter. All existing STM content was preserved and re-framed, not rewritten.
Pages
Memory.mdMemory-Architecture-Patterns.mdShort-Term-Memory.mdLong-Term-Memory.mdMemory-Pipelines.mdAlso:
SUMMARY.mdnavigation updated (the empty long-term memory entry is now filled) and the Mem0 long-term memory benchmark paper added todocs/References.md.Highlights for reviewers
Long-Term-Memory.md): score composed from retrieval frequency, recency, importance and confidence;last_retrieved_at/retrieval_countwrite-back on the read path; use it or lose it decay; and tier demotion (hot → warm → cold → archived) instead of hard deletion, with retrieval promoting entries back up.Memory-Pipelines.md): the three flows are authored in Mermaid, each with a stage table and design notes, plus an overview showing how the read path, session-end path and promotion path connect.Validation
markdownlintclean acrossdocs/**/*.mdprettier --checkclean (80 cols,proseWrap: always)python scripts/update_references.pyreports no new linksmmdc