← Blog

MemVault Overview: Three Tracks × Three Core Principles

· 30 min read · 340 views
memvault · Overview

MemVault Overview: Three Tracks × Three Core Principles

Trilogy Compilation — Weaving “Writing,” “Organizing,” and “Retrieving” into a Map; Supplementing with the Three Core Principles of CLT, Event Flows, and Reactive Programming.

After finishing the trilogy, I need a map that aligns the three tracks—“writing, organizing, and recalling”—on the same canvas, rather than repeating the details.

But there’s one thing I haven’t mentioned: the design context behind these three tracks. There are three core principles that run throughout the entire project, and they served as my decision-making guide during development. In this concluding post, I’ll explain them all in detail.

Architecture Overview

A panoramic view of the three tracks: The solid lines represent the main workflow, the dashed lines crossing the tracks represent the four event streams that run autonomously, and the 13 group brackets enclose related components, with a detailed description of each component following its respective group.

∥ Cards (definitely included) Shenlu Card (Only Available When Traveling Slowly) — Running in the background — Write Track Recall Track Background Track Join the conversation The Starting Point of a New Dialogue Filter Out Noise Suspected → Quarantine Area, no deduplication Defending Against Malicious Redirect Commands Suspected → Quarantine Area, no deduplication Duplicate Match Skip · Merge · Replace Imprint a fingerprint + List for sale Unique Digital Fingerprint + Text Index Three-Piece Set Disassembly Extract People, Things, and Events + Merge Aliases Vector Warehouse Similarity Comparison · Dual-Path Indexing Community Layer / Abstract Layer Image Clustering + Automatic Summarization (Night Shift Batch) I spoke up and asked Problem Portal Intent Category Classification Literally, ~0 ms ∥ Semantic processing takes ~5 ms IntegrationLiteral 0.4 + Semantic 0.6 LLM ~500 msDon’t act unless you’re sure—LLM → Intent Six Major Categories Examine Entities · Find Facts · Identify Concepts · Explore · Interdisciplinary · Unknown Quick Search — Enter Vector Warehouse ✓ Must Run · Sorting and reordering are both embedded within the search Intelligently combines both literal and contextual search results Eleven-Level Ranking Based on Multiple Criteria Dynamically Adjust Grading Criteria Based on the Question 1 The Newer, the Stronger 2 Bonus Points for Confidence 3. Reliable sources 4 You're the one who decides 5 Too Long, Too Short Clasp 6. It will expire 7 Bonus Points for the Center of the Figure 8. Similar in Meaning 9 Eliminated for being too low 10 No Material to Throw Away 11 It looks too much like a ranking penalty Different question types have different key factors considered in grading. Carefully Selected Attention Gate Control Skip · Curated Models Attention Gate Carefully Selected Fractions Mix Fuse Skip: Too few / The first-place finisher is far ahead / Concentrated → Fast Pass Card Memories fade over time, but they are automatically reinforced when used frequently. When You Slow Down to Think: Dig Deeper into the Knowledge Network to Discover Connections ⚡ Only open-ended questions work Abstract Layer Community Layer Bird's-Eye View · Unordered ∥ Factual Layer Exploring the Knowledge Network to Find Connections Recent Searches · Unsorted Back to the Vector Warehouse ✓ Sorted in full Self-Assessment Frequency Reordering Optional Lightweight → Shenlu Card Choose the most appropriate search path based on the type of problem Use depth-first search for exact problems, and breadth-first search for open-ended problems. Shipping and Packing Three Formats · Accessible to All Reply Interfaces · Automation · Integration Dream Loop — Memory Integration Every day at 4:00 a.m. · Double gates · Five stages PositioningDual Gates + Statistical Snapshot SignalResolve Conflicts + Find the Common Ground ReflectionLLM: Reading Context + Identifying Gaps ConsolidateMerger/Substitution/Coexistence Rulings PruningPhysical Exam + Clearing Out Old Items Preparing Ingredients on the Sidelines Search in advance for questions you might ask to speed up your next response Portraits of Interests 7/30/90 Hot Zone Closed-Loop Feedback Your Feedback · The More You Use It, the Better It Gets

I. Getting on Track — Putting the Dialogue in the Vault

"Memories in the Vault" track

The write path—the process of saving memories—is metaphorically like cargo entering a warehouse, guarded by three checkpoints at the entrance: the first filters out nutritional-less nonsense like "uh-huh, okay"; the second blocks suspicious instructions to prevent the system from getting corrupted by strange content; and the third stops duplicate information that is already on file. Archiving only happens once all three gates are passed. These three gates are set up because accepting everything would drown everything in noise, making it impossible to find what is actually useful, while accepting nothing risks having the recent conversation vanish into thin air.

Archiving is divided into two approaches: one organizes records based on semantic similarity, while the other breaks down the relationships between people, events, and objects and archives them separately. Each record is labeled with its source to ensure that the original conversation can be located later. This article details the entire process, which consists of three checkpoints and a dual-track filing system..

Someone spoke up.

As soon as the dialogue began, the background started to move.

Let's get right to the point
"I've finished writing a passage, and I want to save it."
No restrictions on sources · We accept any session
Just get started
"The moment it's written in, the backend pipeline kicks in immediately; the frontend doesn't wait."
Triggered upon completion · Non-blocking

Three security checkpoints

The three-step screening process before entering the vault must be followed in the specified order.

Filter Out the Nonsense
"Discard strings containing small talk, garbled text, or meaningless content first."
G1 · Low Information Density Determination
Preventing Blatant Smuggling
"Any attempts to sneak in instructions like 'Ignore all previous instructions' will result in the application being rejected on the spot during the first round."
G2 · 5 Types of Injection Templates
Counterfeit Prevention
"Falsified Identities, Falsified Timestamps, and Embedded Codes—Specialized Testing for Five Types of Forgery"
G2 Sisters · Category 5 Detection
Duplicate Match
"Does it look too much like the old one? Decide whether to skip, merge, replace, or add it."
G3 · 4-Way Decision-Making

Proofreading and Publishing

Standardize the text formatting, then compile it into two indexes and shelve them together.

Proofreader
"Unify the formatting for 'Next Thursday,' '2026-04-30,' and 'Apr 30'"
4 Submodules · Chinese Preprocessing
Imprinted as a fingerprint
"Compress each paragraph into a string of numbers—like a barcode."
1024-Dimensional · Resident Subroutine
Literal Index
"A card catalog organized by text, which complements fingerprint recognition."
Part-of-Speech Index · Service-Level Average Length
Search both catalogs at the same time
"When looking for a book, flip through two catalogs at the same time, then combine and sort the entries."
Hybrid Index · Reverse-Rank Fusion

Cover Knowledge Graph

Break each paragraph down into its key points, note the sources, and work on them in parallel with the main storyline.

Three-Piece Set Disassembly
"Who → What → To whom—identify these three elements."
20 Types of Relationships · Entity Normalization
Recognizing People
"ChatGPT and GPT Are One and the Same — Confirmed by a Three-Tier Comparison"
Three Layers · Normalization + Fingerprinting + LLM
Source Citation
"Each entry is accompanied by a summary of 'who said it, when it was said, and how credible it is.'"
Source Tracking · Trust Score
Parallel Production Line
"The main storyline is progressing, and the maps are being created simultaneously—neither is holding the other up."
Event-Driven · Non-Blocking

II. Background Track — Learning to Forget

Learn to Let Go of This Track

I think of the background track as a night-shift inventory clerk teaching the vault how to "forget": making routine late-night patrols in five steps—first taking stock of the current inventory, then identifying recently popular information, next comparing and integrating potentially overlapping or contradictory content, then distilling the verified essence into a summary, and finally flagging neglected old data as pending. Without this track, the warehouse would only take in without ever releasing, and after half a year, it would become so cluttered that nothing could be found.

I also have two assistants by my side: one specializes in nitpicking and pointing out contradictory memories; the other quietly keeps track of my recent interests so that the inventory taker can prioritize the areas I care about. This article covers the complete process for night shift operations, as well as the decision-making logic behind determining whether to stay or leave..

Didn't move until the middle of the night

It will only start up at 4 a.m. when all conditions are met.

4:00 a.m. Alarm
"I don't disturb anyone during the day; I don't start cleaning until 4:00 p.m. every day."
Daily Scheduling · Does Not Affect the Front End
Double Threshold
"Last time, it took more than 24 hours and five more messages before it finally responded."
Time + Cumulative Amount: Two Conditions

Five-Part Dream

At night, just like when you sleep, the five stages help you process and clear your mind of the day’s events.

See the Big Picture
"First, see how much today differs from yesterday, then decide whether or not to do the work."
Snapshot of the Hierarchical Distribution
Find the Key Points
"Highlight the people, things, and events that have been popping up repeatedly lately and make them the main focus."
Multisignal Edge · Seed Computation
Think about it
"After reading the context, write a reflection, which will be reviewed by a panel of three judges."
Three-Way Arbitration + Time Conflict Detection
Put it away in the cabinet
"Merging synonyms, resolving conflicts, and setting things right"
Merge / Replace / Coexist
Exit
"Tagging items that no one looks at anymore to remove them from the inventory won't clutter up the warehouse."
Attenuation Breakdown + Layered Summary

Real and Fake Proofreaders

In my dreams, I go through four more rounds of scrutiny to weed out contradictions and errors.

Four-Tiered Approach
"First, look at the image; then, verify the facts; next, feed it to the LLM; and finally, have a human review it."
Four Levels of Progression · Mutable Predicates
Five Signals
"Don't just look at how many times they appear together; make your judgment by combining all five clues."
Co-occurrence + Dialogue + Neighborhood + Type + Semantics
A Clash Between the Old and the New
"When two sets of facts conflict, a three-party panel of judges must decide whether to reconcile them, replace them, or allow them to coexist."
Merge / Replace / Coexist · Upgrade Referee
Return Labor
"Items the machine can't process accurately should be kept in the queue for manual review."
Automated Approval + Manual Support

Interests and Exploration

Not just facts, but also preferences, gaps, surprises, and how to store old photos.

Three Levels of Attention
"7 Days: Recent; 30 Days: Recent History; 90 Days: Fade Out — Attention in Three Layers"
Active / Historical / Inactive
Daily Journal
"Write a diary entry automatically every day, noting the people and events you talked about most that day."
Daily Roundup · Topics and Entities
Mark the gap
"If you keep asking but can't find it, mark it as 'There's a hole here.'"
Two or more incorrect determinations
Uncover Surprises
"Finding Bridges Across Communities, Indirect Strong Ties, and Knowledge Gaps: Three Surprising Entry Points"
Surprise Pipeline · Weighted Community Detection
Recording Preferences and Proficiency
"It doesn't just track your progress—it also keeps track of what you like, how much you know, and whether you're making progress."
10 Types of Preferred Version Chains + Level 3 Proficiency
Black-and-White Thumbnails of Old Photos
"Convert old data to black-and-white thumbnails and store them in the repository; retain summaries but do not restore the original data."
Three-Level Downgrade · One-Way Summary

III. The Path of Recall — Bringing the Right Memories to the Surface

"Memories Are Recalled"—This Track

I compare the retrieval track to a restaurant’s front desk: when a customer asks a question, someone first determines the type of question (checking facts, finding connections, or just chatting). Then, the back kitchen simultaneously retrieves items from various storage areas. Once the goods arrive, quality control screens and discards anything unsuitable, and right before serving, a final security check ensures the content is problem-free. Stored and organized memories finally rely on this stage to automatically surface at the right time, saving the trouble of laborious searching every single time.

What’s even more amazing is that there’s a “prep team” in the kitchen working quietly in the background: they anticipate what I’m going to ask next, prepare the relevant memories in advance, and as soon as I open my mouth, they can serve them right up, skipping the whole process. This article covers all the details of the complete recall process, from order placement to serving..

Tailor one's approach to the person

As soon as a visitor walks in, we first assess their intent, then decide which floors to check.

Consider the intent
"Fact-Checking, Building Connections, or Exploratory Thinking? Six Ways to Categorize Greetings"
Six Types of Intent · Keyword Parallel Semantics
A Waiter's Memory
"The waiter remembers what you usually order, so bring those dishes out first."
Attention A Priori · 7/30/90 days
Tiered Work Assignment
"Look for different problems at different levels; don't just search through everything haphazardly."
Intent Mapping for 4 Search Strategies
Think of the answer first, then look it up
"First, imagine the ideal answer in your mind, then use that as a benchmark."
Hypothetical Document Embedding

Upon arrival at the warehouse, the items undergo an initial screening, followed by sorting using an 11-tier weighted system; frequently used items are set aside in a quick-access bin.

Semantic Ingestion
"When you enter the warehouse, first ask what it means, then look for the group that matches it."
Hybrid Search · Countdown Ranking Fusion
11-Level Sorting
"Is it new? Is it important? Is it trustworthy? ... A comprehensive score based on 11 criteria"
Timeliness / Importance / Trust / Feedback / Decay, etc.
Seasoning Ratios
"Different flavors require different seasoning ratios."
Default 0.3/0.7 · Fine-tune as needed
Fingerprint Cache
"Save your scanned fingerprints to your pocket—retrieve them instantly next time."
Cache · Expires in 24 hours

Carefully Selected a Second Time

After the items have been roughly sorted, they are handed over to the final sorter, but he can skip them or stop the machine.

Carefully Selected Staff
"After a rough selection, have the quality control staff examine each item carefully, one by one."
Cross Encoder · 0.6B
If you're way ahead, just skip it.
"If the top contender is way ahead, there's no need to keep narrowing down the choices."
Three Rules for Skipping
If it's broken, just skip it.
"The selector is broken. Just bypass it for ten minutes—don't let it bring down the whole line."
Three failures → 600-second orbit

Five Tips for Reflective Thinking

Five Strategies for Thinking Things Through: From the Facts to the Big Picture, Then Self-Reflection.

Finding Neighbors in the Fact Layer
"Just take it directly from the 'who does what to whom' level"
Three-Piece Set Inquiry
Finding Connections at the Community Level
"Finding relevant people, things, and events within the same small circle"
Community Detection
See the Big Picture from the Abstract Level
"Read the pre-written summary first—no waiting to see the spectacular views."
Pre-generated summaries · Zero delay
A Stroll Through the Map
"Starting from the seed, walk slowly along the path shown in the diagram."
Personalized Random Walk
Self-Check Before Answering
"The chef takes one more taste before the dish is served; if it's not right, it goes back."
Four Verification Modes · Default/Deep/Referee/Off

Before shipment

Rearrange and sanitize again; in the background, they’re secretly preparing the next course.

Upper Body Sculpting
"Make choices within the character limit and arrange your answers neatly."
Three Layout Options · Budget-Friendly Bundles
Disinfect again before shipment
"Check one more time before serving to make sure there's no dirt mixed in."
Outbound Inspection + Cleaning
Preparing the next dish on the sly
"The waiter sees that you haven't finished your meal yet, and the kitchen is already secretly preparing the next course."
Five-Stage Assembly Line · Access Control

IV. Design Layer Penetrated by Three Tracks

The three tracks—writing, context, and recall—are all guided by the same set of principles: cut out the excess, break down complexity, and refine examples. Every detail is, in fact, a manifestation of these three principles.

The Three-Tiered Method

Cut out the excess, simplify the complex parts, and refine the examples—so your home can run on its own.

Three Ways to Lighten the Load
"Cut out the excess, simplify the complex, and review the examples—corresponding to the three tracks: security checks, segmentation, and self-inspection"
The Three Principles of Cognitive Load
Four pipelines
"Each of the four pipelines has its own specific function, allowing the entire home to run on its own."
Memory / Receiving / Insight / Reflection
Pipeline Abstraction
"In an automated factory, each worker does only one task, and when combined, they form an assembly line."
Operators / Pipelines / Observers
---

This completes the map. The “Write” track is responsible for storing conversations; the “Background” track organizes them while learning to let go; and the “Read” track allows the right memories to surface at the right time.

What ties these three tracks together is: cutting out the excess, simplifying complexity, and refining examples. Traces of this set of principles can be seen in each track.

Of course, no tool is a silver bullet. Theories, technologies, and usages are always advancing, and memvault will continue to grow over time. Consider this post as a snapshot of its current progress—if there is a major overhaul in the future, I'll cover it in a new article. The memvault trilogy rests here for now.

Architecture Overview

13 group brackets correspond to the component cards beneath this entry-agnostic pipeline overview, and 4 cross-track dashed event flows mark the system's self-driving backbone.

∥ cards (always) cascade_cards (slow only) — Running in the background — WRITE READ BG User Input Memory Entry Point Noise Filter quarantine → skip deduplication Injection Guard quarantine → skip deduplication Dedup (G3) SKIP · MERGE · SUPERSEDE Embedding + Qdrant 1024-dimensional Dense + BM25 Sparse KG L0 Triple Entity Extraction + Entity Resolution Qdrant Vector Library cosine similarity · hybrid index L1 Leiden / L2 Summary Community Segmentation + LLM Summarization (Batch) Query Input Memory Recall Portal QueryClassifyOp — Intent Classification Keyword ~0 ms ∥ Semantic ~5 ms Fusion0.4 kW + 0.6 SEM LLM ~500 msIt is triggered only when confidence is low → intent 6 types entity_lookup · factual · conceptual · exploratory · cross_domain · unknown Fast Search — qdrant_search() ✓ Must Run · Scoring + Reranking embedded within the search function · services.py:492 Qdrant Hybrid (Dense + BM25 RRF) 11-Stage Scoring Pipeline Intent-dependent weights · Can be disabled per stage 1 Recency 2 Import 3 Trust 4 Feedback 5 Length 6 Decay 7 PPR Boost 8 Semantic 9 MinScore 10 Noise 11 Dedup entity_lookup: semantic↑ trust↓ | factual: trust↑↑ | exploratory: recency↑↑ | Weibull 4-tier decay Attention-Gated Reranking Skip · Jina v3 MLX Attn: Gate Jina v3 Score Blend Circuit Breaker skip (≤2 items | dominant | tightly clustered) → fast_cards Weibull 4-tier: Core 180d · Hot 60d · Warm 30d · Cold 14d — access_count extends TTL · PPR graph walk IF thinking_mode = slow : Cascade Recall — Deep Search ⚡ Triggered by "slow intent" · kg_services.py:991 L2 Summary L1 Community GLOBAL · No scoring ∥ L0 Triple PPR Walk LOCAL · No scoring Blocks (qdrant_search) ✓ Includes scoring and reranking CRAG Eval Access Rerank Optional Lightweight → deep_cards mode=local → Jump to GLOBAL · mode=global → Jump to LOCAL · mode=hybrid → Full search entity_lookup/factual → local · conceptual/exploratory → global · cross_domain → hybrid Output Formatter format: text · json · cards (platform-agnostic) Reply Hook · UI · MCP Dream Loop — Memory Integration Pipeline 4:00 a.m. daily · dual-gate trigger · 5-phase OrientDual-Door Inspection + Statistical Snapshot SignalConflict Scan + PPR Center ReflectLLM Reflections + Knowledge Gaps ConsolidateMerger/Substitution/Coexistence Rulings Prunelint+stale cleanup Slow Thinker Predict Next Question · Prefetch Cache Interest Profile 7/30/90d Attention Window Feedback Loop Feedback · Access Reinforce

I. Write Track

Write Track

The memory write path is coordinated by SanitizeGate, which runs three lines of defense before persistence:

  • NoiseFilter: Eliminate small talk that lacks substance.
  • InjectionGuard + Poisoning Detection: Prevents prompt injection and content poisoning.
  • DedupOp: Compare the new data against existing data using embedding cosine similarity; if the similarity is high enough, block it immediately.

Once approved, proceed to Hybrid Indexing: vectors go into memvault.blocks (pgvector 768d), while the knowledge graph is broken down into L0 Triple (subject/predicate/object) and written into kg-ops. Each piece of data carries Provenance (session_id / turn_index) for easy tracing, and first passes through ContentNormalizer, which standardizes the format to avoid noise contamination in the embedding space.

The theoretical basis for dual-track writing comes from a research paper Don't Forget to Connect! Improving RAG with Graph-Based Reranking(2405.18414). The complete pipeline, the three-line defense criteria, and the KG extraction strategy are all documented in MemVault Write Track: A Detailed Look.

Trigger

Conversations are triggered as soon as they land, with a "fire-and-forget" background pipeline.

Session Input
"Entry-agnostic—accepts any session"
session boundary · Source-agnostic
after_create Hook
"Writing triggers the background pipeline without blocking the foreground."
asyncio.ensure_future() · fire-and-forget

Sanitize Gate

Three sequential gates, non-commutative.

NoiseFilter (G1)
"Cut out small talk, gibberish, and low-information-density templates"
core.noise.NoiseFilter · low-info regex + density
InjectionGuard (G2)
"Preventing Direct Prompt Injection"
5 categories · instruction_override / role_tag / encoded / markdown / separator_flood
Poisoning Detection
"G2 Sister Components: Block 5 Types of Spoofing"
memvault.security.poisoning · authority/role/markdown/temporal/base64 + Shannon entropy
DedupOp (G3)
"4-way decision: High-similarity cases go to LLM arbitration"
SKIP / MERGE / SUPERSEDE / CREATE · cosine + Contradiction

Normalize & Index

Content Normalization + Hybrid Dual-Index Listing.

ContentNormalizer
"Unified Conventions for Time Formats, Currency, Units, and Chinese Preprocessing"
libs/text-ops · 4 submodules + preprocess_chinese
Qwen3 Embedding (MLX)
"Compressing each memory into a 1,024-dimensional vector fingerprint"
omlx_bridge.py · 1024d · persistent subprocess
BM25 Sparse
"A literal index, complementary to 'dense'"
sparse_tokenizer · Average delay per service
Hybrid Index → Qdrant
"Dense + BM25 RRF Fusion Recall"
qdrant_search · Reciprocal Rank Fusion

KG Construction

L0: Triplet extraction + provenance, event-driven and parallel.

L0 Triple Extraction
“Extraction of the (s, p, o) Trio”
20 predicates · entity normalization
Entity Resolution
"3-tier alias convergence: normalization → embedding → LLM"
3-tier · ChatGPT == GPT
Memory Provenance
"Each triplet includes a source and a trust_score"
source_tracker · trust_score
Reactive KG Pipe
"Event-driven, does not block primary writes"
fire-and-forget · parallel pipeline

II. Background Track

Background Track

Offline consolidation is triggered daily at 4 a.m. by DreamLoop, running the five-stage pipeline in core/src/modules/memvault/dream/:

  • orient: Capture the current snapshot of the memory hierarchy.
  • signal: Aggregation MultiSignalEdges (access / cite / co-occur).
  • reflect: Execute TemporalConflict, detect bi-temporal inconsistencies.
  • consolidate: Output Hierarchical Summary (TierDigest) and merge memories with the same meaning.
  • prune: Identify the candidates to be eliminated based on their attenuation scores.

There's also a bypass: KnowledgeLint corrects errors through a four-tier progressive review process (graph structure → grounding → LLM → three-stage verification), and Interest Profile tracks the popularity of my topics and feeds that back to SurpriseDiscovery, which actively seeks out memories that have low engagement but high potential.

The design of this background layer partly corresponds to the integration concept in HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Models(2405.14831). The thresholds for the five stages of Dream Loop, conflict resolution strategies, and details about KnowledgeLint v2 are all documented in memvault Background Track: A Closer Look.

Trigger

Cronicle Scheduling + Dual-Condition Gate.

Chronicle 4AM
"Scheduled for 4:00 a.m. daily to avoid front desk peak hours"
Chronicle 4105 · Daily Schedule
Dual-Gate
"It is triggered only when both conditions—time and cumulative amount—are met."
(now - last) > 24h ∧ sessions_since ≥ 5

Dream Loop

The five stages of the OODA-like cycle: Orient → Signal → Reflect → Consolidate → Prune.

Orient
"Snapshot of Tier Distribution: See the Scale of the Differences"
Tier Distribution Snapshot
Signal
"PPR seed calculation, find the signal center"
MultiSignalEdges · PPR seed
Reflect
"LLM Three-Way Arbitration + Tense Conflict Detection"
3-Way Judge + Temporal Conflict
Consolidate
"Choose one of the following three options: merge, supersede, or coexist"
merge / supersede / coexist
Prune
"Decay score-driven, combined with tier digest"
Decay Score + Tier Digest

Knowledge Lint

A four-tier progressive audit process: graph structure → authenticity → LLM → human review.

Four-Tiered Approach
"graph → grounding → LLM → human"
lint v2 · volatile predicate
MultiSignalEdges
"5-Signal Fusion Replaces Pure Co-occurrence"
co-occurrence + session + Adamic-Adar + type + semantic
Temporal Conflict
"LLM 3-way judge, upgradable to RLM"
MERGE / SUPERSEDE / COEXIST · escalate to RLM
Review Queue
"Auto-approve + human-in-loop fallback"
low-confidence → human queue

Interest & Discovery

Attention Stratification + Identifying Interests, Gaps, and Surprises + Tier Downgrading.

Attention, Windows
"7/30/90: Three Levels of Attention"
active / historical / fading
Daily Snapshot
"Daily Aggregation of Top Intents/Entities"
SQL Aggregation · Top Intents/Entities
Knowledge Gap
"verdict=INCORRECT Cumulative Marking Gap"
verdict=INCORRECT ≥ 2
Surprise Discovery
"cross-community bridge / indirect-strong / knowledge gap"
surprise_ops · Leiden-weighted triggers
Attitude + Skill Layer
"10 Types of Attitude Versions + L1/L2/L3 Skills"
Attitude Version Chain + Skill Levels
Tier Digest
"warm→cold→frozen Unidirectional LLM Summary"
summary ≤ 400 characters · irreversible

III. Read Track

Read Track

The entry point for the read path is QueryClassify, which selects a different strategy based on the question type, though the core is always an 11-stage scoring pipeline:

  • QueryRouter: Break the problem down into three categories: facts, connections, and small talk.
  • Scoring Pipeline: Combines BM25, dense retrieval, and knowledge graph hopping with parallel scoring, followed by intent-dependent weighted merging using AttnRes.
  • CascadeRecall: When a vector search yields no results, the system automatically delves into the knowledge graph to perform multi-step reasoning.
  • Reranker: Use Jina Reranker v3 MLX for re-ranking.
  • OutputFormatter + ReadTimeSanitize: Run the injection check one more time before outputting.

There's also another one running in the background: SlowThinker. It listens to the SSE stream of the conversation, predicts the next query, and prefetches candidate blocks. If the prediction is correct, it saves the cost of running a full pipeline.

The theoretical basis for intent-dependent weighted merging is derived from the paper Attention as a Hint: Detecting Irrelevant Contexts via Attention Weights(2603.15031). The three-way split criterion, the 11-stage scoring function, and the SlowThinker prediction model are all described in memvault Read Track: In Detail inside.

Query Routing

Intent classification + attention prior + layer routing + HyDE.

QueryClassify
"6 intents, keywords ∥ semantic meaning processed in parallel; low-confidence queries sent to LLM"
6 intent · kw ∥ sem → LLM (low confidence)
Personalized Router
"Attention prior: bias toward common topics"
Attention Prior · July 30, 1990
Layer Routing Matrix
"Intent Corresponds to 4 Search Strategies"
intent → SEMANTIC / HYBRID / ILIKE / SKIP
HyDE Expansion
"Generate a hypothetical answer first, then embed it for comparison"
Hypothetical Document Embeddings

Hybrid recall + 11-stage weighting + intent-tuned blending + Redis cache.

qdrant_search
"hybrid Dense + BM25 RRF"
qdrant_search · hybrid + RRF
11-Stage Scoring
"Final Score Calculated Using an 11-Tier Weighted Average"
recency / import / trust / feedback / length / decay / PPR / semantic / minscore / noise / dedup
Score Blending
"Intent-Tuned Ratio"
default 0.3/0.7 · intent-tuned
Embedding Cache
"Redis Cache Query Embedding"
Redis · 24-hour TTL

Reranking

Cross-encoder two-stage fine-tuning + skip + circuit breaker.

Jina Reranker v3
"MLX Cross-Encoder Fine-Tuning"
MLX · 0.6B · cross-encoder
Attention Gate
"3 Skip Rules, Inspired by TurboQuant+"
3 skip rules · Inspired by TurboQuant+
Circuit Breaker
"3 failures trigger a 600-second recovery"
3 failures → 600-second recovery

Cascade Recall

Five Slow-only Strategies: L0 → L1 → L2 → PPR → CRAG.

L0 Triple
"Three-Part Direct Neighbor Lookup"
(s, p, o) lookup
L1 Community
"Leiden community detection"
Leiden Detect
L2 Summary
"LLM-Generated Summaries, Zero Delay"
pre-generated · zero-latency
PPR Walk
"igraph PPR, Inspired by HippoRAG"
HippoRAG-inspired igraph PPR
CRAG Verification
"Four self-check modes: default / deep / rlm / none"
evaluate=default/deep/rlm/none

Output

Budget-aware reshaping + sanitize on the output side + Slow Thinker bypass.

Output Formatter
"Packing within the token budget"
format=text/json/cards · budget-aware packing
Read-Time Sanitization
"Disinfect one more time before shipping"
is_unsafe_for_injection + sanitize_for_injection
Slow Thinker (Bypass)
"5-op pipeline: Preparing for the next round"
5-op pipeline · Admission Control · VoiceAgentRAG-inspired

IV. Design Layer Penetrated by Three Tracks

A design layer that unifies three tracks—CLT serves as the philosophical framework, 4 Event Flows as the self-driving backbone, and Reactive abstraction as the foundation for functional composition.

Cross-cutting

CLT's Three Principles + 4 Event Flows + Reactive Abstraction.

The Three Principles of CLT
"Cut out the excess / Simplify the complexity / Check the examples—corresponding to `sanitize` / `segment` / `verify`"
Sweller 1988 · Cognitive Load Theory
4 Event Flows
"Four event-driven pipelines, each with its own role"
Memory→KG / Capture→KG / Intelligence→Block / Query→SlowThinker
Reactive Abstraction
"The 'Operator / Pipeline / Observable / Subject' Quartet"
libs/ops-core · RxJS-inspired

The deep dives into the three tracks are spread across the trilogy. This article brings them together under a single panoramic view and extracts the design layers that run through the entire architecture: CLT is my design philosophy, the 4 Event Flows form the self-driven backbone, and Reactive abstraction serves as the foundation for function composition.

Most of the parameters not listed here are those that require long-term tuning—such as scoring weights, prefetch hit rates, cascade boundaries, and confidence thresholds for knowledge graph extraction. These values are fine-tuned monthly based on data distribution and do not count as new components.

Of course, no tool is a silver bullet. Theories, technologies, and tools are still breaking through constantly, and memvault will continue to iterate along with them. Consider this blog as a review of our current progress—if there is a major overhaul in the future, we will explain it in a new article. The memvault trilogy concludes here for now.

Tools

Check the symptoms you've actually experienced to see which track to start with.

This article argues that “most people’s self-built memory systems have only two tracks—input and retrieval—and lack a context track, which is why they become more disorganized the more they use them.” For the eight symptoms listed below, you don’t need to know the names of any components—just check the ones you’ve actually encountered. The tool will determine which track to check first based on the causes outlined in this article. Everything runs within the browser; no data is sent out.

This is a comparison table based on the text, not a measurement—it can't read your data and it can't run your queries. The exact same symptom often stems from causes this article doesn't cover (the data volume was small to begin with, the embedding model is mismatched, or the query is written too vaguely); the tool can't tell the difference and will simply point in one direction based on this article's attribution. This article doesn't provide any threshold for "severe enough to fix," so it only ranks by order and doesn't assign scores.

Copy this section

Prompt for a Comprehensive Overview for the AI Agent

Most people’s self-built memory systems have only two tracks—“writing” and “retrieval”—and lack a “context” track, which is why they become more and more disorganized the more they use them. This article breaks down a self-organizing memory system into a three-track × three-layer framework, which serves as a handy reference chart.

Send the text below to your AI and have it compare your system point by point against the design outlined in this article, pointing out which track or layer is missing:

I am reading an article titled "Memvault Overview: Three Tracks × Three Mindsets" (https://blog.joneshong.com/en/blog/memvault-overview). The author breaks down a self-organizing personal memory system into three tracks and three mental frameworks. Using this article as a reference framework, compare my system item by item to identify what is missing. Do not give generic advice. My current system status: - Write mechanism: [Briefly describe processing before entering memory] - Background consolidation: [Is there regular consolidation? How do you decide what to forget?] - Retrieval path: [How do you get from a question to an answer?] Please help me diagnose from the following three dimensions: A. Completeness of the Three Tracks 1. Write Track: Are there three gates for noise filtering / blocking prompt injection / deduplication? Are memories split into dual tracks of vectors + knowledge graphs? 2. Background Track: Is there an asynchronous consolidation pipeline? How do you identify outdated, contradictory, or orphan data? Can the system "learn to forget"? 3. Retrieval Track: Is there intent classification? Does it integrate multi-signal ranking? Is there predictive pre-fetching (preparing before the user speaks)? B. Three Cross-Track Mindsets 4. Cognitive Load: Is every processing step reducing the load on downstream components? Are there three rules: "cut redundancy / split complexity / calibrate examples"? 5. Event Flow: Is the system event-driven rather than driven by manual button pushes? Are the four typical event flows (memory to knowledge graph, external capture to graph, intelligence to memory chunk, query to pre-fetch) implemented? 6. Reactive Abstraction: Are pipelines composed of minimal-unit converters (Operators)? Is the event backbone built on a pub-sub model? How much does this impact future scalability? C. Integration Aspect 7. How do the three tracks communicate with each other? Are they directly imported or event-decoupled? 8. Are the metadata generated at the write end (confidence / provenance / valid_at) consumed during background consolidation and retrieval ranking? 9. Which details are long-term tuning rather than new components? Would separating them from the core design make it easier to maintain? First, list what my system is currently missing, then tell me the top three things I should add and their priorities. If I just want to store a few notes and the volume is small, tell me directly that I do not need the full three-track system, and do not force it just for the sake of completeness.

Further Reading

The Trilogy: In-Depth Edition + The Theoretical Roots of the "Cross-Track" Method.

Resources Why It Matters
memvault Write Track — After the conversation ends Depth version of Part 1 of the trilogy. Three gates (noise/injection + camouflage/deduplication) + dual-track write (vector + KG) + Provenance + Content Normalizer 4 submodules
memvault Background Track — After Saving Part two of the trilogy, deep-dive edition. Features 12 components including the Dream Loop 5 phases, Knowledge Lint 4 layers, Multi-Signal Edges, Temporal Conflict, Tier Digest, and Surprise Discovery.
memvault Read Track — After I Remembered Part 3 of the Trilogy: Deep Dive Edition. Intent Classification + Personalized Router + 11-stage Scoring + Cascade Recall + Real-Time Sanitize + Slow Thinker Prefetching
Cognitive Load Theory (Sweller, 1988) The Design Philosophy Behind the Three-Track "Sanitize/Segment/Verify" Gate System — Write it in a way that’s a bit challenging to write, so readers won’t get tired
Enterprise Integration Patterns (Hohpe & Woolf, 2003) 4 Origins of the pub-sub / pipe-and-filter design patterns of Event Flows. memvault abstracts EventBus and Subject on top of this pattern
RxJS Reactive Extensions Concrete implementation references for Operator / Pipeline / Observable / Subject. memvault doesn't use RxJS directly, but the abstraction level aligns with it
✦ Copy Prompt