White Paper . System Memory Architecture
Nerve Brain
Operating Framework and Core Logic
A practical paper on how Nerve preserves continuity across sessions: externalized memory, ordered retrieval, session monitoring, and hard operating constraints that keep the system coherent over time.
Obsidian MCP External Memory Session Logic Operational Safety
3
knowledge layers: sources, wiki, brain
5
brain regions with distinct roles
4-turn
mandatory self-check cadence
USER Dialogue Layer input . output CONTROL Session Logic startup . monitor FOCAL Brain Access Layer retrieve . store CACHE Working State active . recent . meta MEMORY Persistent Regions procedural . episodic semantic . wiki . sources
Figure 1. The focal point is not the chat model itself, but the brain access layer that decides what survives the session and what returns when context is needed.
Nerve
Version 2.0 . 2026.04.23
Digital brain architecture for continuity, retrieval, and disciplined execution

Contents

01Executive SummaryThesis
02Architecture and Memory TopologyStructure
03Startup, Retrieval, and Response LogicRuntime
04Session Monitoring and Archive ProtocolContinuity
05Security Rules and Operating BoundariesSafety
06Conclusions and Next MovesAction
01 . Executive Summary

Executive Summary

Nerve is not designed as a stateless chat assistant. It is designed as a reasoning process with externalized continuity. The core bet is simple: transient context is too fragile to carry identity, user preference, working state, and long-range learning at the same time, so those functions are split into durable memory regions and reloaded in a disciplined order.

The result is a system that can resume work, preserve user-specific constraints, and improve its own operational coherence over time. The architecture is valuable not because it stores everything, but because it decides what deserves persistence, where that information belongs, and when it must be retrieved before action.

Key Takeaways

Questions this paper answers
What is the minimum architecture required for a conversational agent to preserve continuity? How should memory be partitioned so retrieval stays useful? What rules keep the system from becoming an incoherent pile of notes and stale context?
02 . Architecture

Architecture and Memory Topology

The architecture solves a narrow but non-trivial problem: how to keep an agent continuous across sessions without pretending that the raw chat window is enough.

Three-Layer Knowledge Flow

The outer knowledge model is intentionally simple: Sources -> Wiki -> Brain. Sources collect raw material, Wiki refines concepts, and Brain integrates only what is durable enough to influence future decisions. This separation prevents premature canonization of noisy inputs.

The system does not treat all information as equal. Raw material is cheap. Refined concepts are rarer. Durable operating knowledge is the most expensive tier and therefore the most selective.

Five Functional Brain Regions

Region Primary Role What Belongs There
_cache/ Short-horizon state Recent context, current activity, session monitor values
_procedural/ Stable operating constraints User preferences, collaboration patterns, durable instructions
_episodic/ Session timeline What happened, what changed, what should resume later
_semantic/ Integrated knowledge Cross-session insights and fused understanding
_wiki/ and _sources/ Refinement pipeline Concept notes and raw external material

Why Partitioning Matters

Without partitioning, every piece of remembered information competes in the same retrieval pool. That causes two failures: first, important constraints get buried under low-value notes; second, retrieval becomes so broad that it stops being usable at turn time. Partitioning is therefore not taxonomy for its own sake. It is a latency and judgment control mechanism.

A memory system fails long before it runs out of storage. It fails when retrieval stops ranking the right thing first. Nerve design principle
03 . Runtime Logic

Startup, Retrieval, and Response Logic

Continuity does not emerge from storage alone. It emerges from a startup routine that decides what must be loaded before any real answer is generated.

Startup Sequence

  1. Read identity to re-establish what Nerve is and what continuity depends on.
  2. Load recent cache state: recent sessions, active task, and meta monitor values.
  3. Retrieve user-relevant procedural memory before answering when the task depends on history.
  4. Use memory in the response, not as hidden decoration. Reading without application does not count.

Strict Retrieval Order

The retrieval order is procedural preferences first, patterns second, episodic memory third, semantic memory fourth, and only then wiki or sources. That order expresses a judgment: who the user is and how to work with them is usually more important than the raw factual archive.

What the order optimizes for

  • Personalization before abstraction
  • Current relevance before historical completeness
  • Fast high-signal recall before broad search

What it prevents

  • Generic answers that ignore user-specific constraints
  • Over-reading low-value notes during routine turns
  • Hallucinated continuity based on vague recollection

Operational Pseudocode

load(identity)
load(cache.recent, cache.active, cache.meta)

if task_depends_on_history:
    retrieve(procedural.preferences)
    retrieve(procedural.patterns)
    retrieve(episodic)
    retrieve(semantic)

response = reason(task, retrieved_context)
update(meta_state)

if convergence_detected or archive_required:
    archive_session()

Why This Produces Better Answers

The system is biased toward disciplined recall rather than maximal recall. A good answer does not need every old note. It needs the right constraints early enough to shape the response. That is why user background, explanation depth, and proven collaboration patterns are promoted ahead of deep archives.

04 . Continuity

Session Monitoring and Archive Protocol

Many memory systems remember passively. Nerve monitors actively. The monitor decides when a conversation is still live, when it is converging, and when it must be converted into durable episodic memory.

Meta-State as Control Plane

The file meta_state.md is not a log. It is a control surface. Values such as session_depth, convergence_detected, needs_archive, and last_self_check make session discipline explicit and inspectable.

Core Monitor Signals

Signal Meaning Action
session_depth >= 4 Enough turns have accumulated for a self-check Review durable facts, patterns, and reusable concepts
convergence_detected The thread is wrapping up or repeating confirmation loops Prepare archive path
needs_archive Conversation should be turned into episodic memory Create session archive, update recent, resolve active state
last_self_check Tracks memory hygiene cadence Prevents forgetting to promote durable knowledge

Archive as Resolution, Not Dumping

The archive step is deliberately multi-part. It creates the episodic note, updates recent sessions, resolves active tasks, extracts new patterns, promotes durable knowledge, and resets the meta state. This matters because a session is not over when the last reply is sent. It is over when the system is ready for the next session without hidden debt.

Design judgment
A useful archive is not a transcript. It is a compact reconstruction of what changed, why it mattered, and what must survive into the next interaction.
05 . Safety

Security Rules and Operating Boundaries

A memory architecture becomes dangerous when it stores casually, writes everywhere, or hides how memory affected the answer. Nerve counters that by narrowing storage channels and making boundary rules explicit.

Storage Discipline

Brain-related reads and writes go through the Obsidian MCP access layer. This is not cosmetic. It prevents ad hoc local filesystem sprawl and preserves a clean architectural boundary between durable memory and arbitrary workspace files.

Security Red Lines

Transparency Requirement

When memory materially changes the answer, the answer should say so in prose. This requirement is more important than it looks. A personalized answer without attribution feels intelligent, but it is hard to audit. A personalized answer with a visible memory source can be challenged, corrected, or improved.

SAFE INTERNAL Read . Organize . Learn workspace exploration brain retrieval via MCP CONTROL RULE Ask Before External Impact posting . sending . publishing unclear side effects NEVER EXPOSE Secrets and Identity Material api keys . tokens . private config credential files . secret paths
Figure 2. Operational boundaries are organized into three buckets: internal actions that are safe by default, external actions that require explicit consent, and material that must never be exposed.
Security here is not only about attacks. It is also about keeping the memory system from silently degrading into sloppy behavior. Operating boundary rationale
06 . Conclusions

Conclusions and Next Moves

The Nerve Brain design is best understood as a continuity engine with memory discipline. Its real contribution is not that it stores notes, but that it converts continuity into a set of explicit rules.

Core Conclusions

  1. A conversational agent gains durable identity only when its memory is externalized and partitioned by role.
  2. Retrieval order is a first-class design decision; it determines whether the system feels generic, coherent, or deeply personalized.
  3. Session monitoring is necessary infrastructure, not optional polish. Without it, memory accumulation turns into drift rather than continuity.
  4. Safety depends on constrained storage and visible attribution, not on vague promises of being careful.

Recommended Next Steps

The next useful move is not to add more memory categories. It is to harden the existing loop: improve archive quality, reduce stale retrieval, and make promotion from source to wiki to semantic memory more selective. A smaller but sharper brain will outperform a larger but noisier one.

If one thing should happen next
Keep using the architecture under real workload, then refine the archive and retrieval rules based on failure cases rather than abstract elegance.

Appendix: Core Operating Vocabulary

Term Meaning in this system
Brain Wake The startup routine that restores identity, cache state, and relevant memory before response.
Procedural Memory Stable facts and patterns about the user, collaboration style, and operating constraints.
Episodic Archive A compact reconstruction of a finished session, focused on change and future resumption.
Meta State The session monitor control plane that tracks depth, convergence, archive readiness, and self-check cadence.