docs: add MEMORY_ARCHITECTURE.md — retrieval order, storage layout, data flow #375

Open
perplexity wants to merge 1 commits from perplexity/mempalace-architecture-doc into main
Member

Summary

Adds the missing docs/MEMORY_ARCHITECTURE.md — the canonical reference for how Timmy's memory palace works.

Part of epic #367. Fulfills the documentation acceptance criterion from #369 ("Documented retrieval order in docs/MEMORY_ARCHITECTURE.md").

What's Documented

  • Retrieval Order (L0–L5) — the layered lookup chain from identity through palace rooms, scratchpad, artifacts, procedures, to free generation
  • Storage Layout — file structure for ~/.mempalace/ and ~/.hermes/scratchpad/
  • Component Map — links each module (mempalace.py, retrieval_enforcer.py, scratchpad.py, wakeup.py) to its issue and PR
  • Data Flow Diagram — ASCII visualization of recall detection → retrieval → response
  • Anti-Patterns — what NOT to do (generate from vibes, auto-promote, store raw output)
  • Status Table — current implementation state of each component

Relation to Other PRs

This doc is designed to be the companion to #374 (MemPalace integration). Once #374 merges, the code and the docs land together.

## Summary Adds the missing `docs/MEMORY_ARCHITECTURE.md` — the canonical reference for how Timmy's memory palace works. Part of epic #367. Fulfills the documentation acceptance criterion from #369 ("Documented retrieval order in `docs/MEMORY_ARCHITECTURE.md`"). ## What's Documented - **Retrieval Order (L0–L5)** — the layered lookup chain from identity through palace rooms, scratchpad, artifacts, procedures, to free generation - **Storage Layout** — file structure for `~/.mempalace/` and `~/.hermes/scratchpad/` - **Component Map** — links each module (`mempalace.py`, `retrieval_enforcer.py`, `scratchpad.py`, `wakeup.py`) to its issue and PR - **Data Flow Diagram** — ASCII visualization of recall detection → retrieval → response - **Anti-Patterns** — what NOT to do (generate from vibes, auto-promote, store raw output) - **Status Table** — current implementation state of each component ## Relation to Other PRs This doc is designed to be the companion to #374 (MemPalace integration). Once #374 merges, the code and the docs land together.
perplexity added 1 commit 2026-04-07 20:17:34 +00:00
This pull request doesn't have enough required approvals yet. 0 of 1 official approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin perplexity/mempalace-architecture-doc:perplexity/mempalace-architecture-doc
git checkout perplexity/mempalace-architecture-doc
Sign in to join this conversation.