Skip to content

About

A database returns what was written. A memory engine reconstructs what is reachable from a cue at this moment — under decay, association, and tier physics — without losing a live trace because the first index was the wrong one

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Fundamentals

A database returns what was written. A memory engine reconstructs what is reachable from a cue at this moment — under decay, association, and tier physics — without losing a live trace because the first index was the wrong one.

This repository contains the Memory Fundamentals specification — a formal model, algebra, and conformance rules for memory engines, in the tradition of Codd's relational model for databases.

Spector is a reference implementation of this model. Biological names in the spec are labels for failure modes. The model does not assert biological substrate identity.

What is this?

The industry classifies "agent memory" by storage topology: vector indexes, graph stores, document databases, orchestration layers. Those are storage patterns. None is a definition of memory.

This specification draws the distinction. It defines:

  • A data model — traces, cues, signals, associations, tiers, and strength as first-class concepts
  • A recall algebra — closed operations over memory state
  • Normal forms — integrity constraints a well-formed memory must satisfy (NF0–NF7)
  • Twelve conformance rules — what an implementation must demonstrate to be called a memory engine (M0–M12)

Required verbs for conformance: remember, recall, consolidate, forget.

Optional verbs (simulate, dream, commit_simulation, and the rest of the algebra table) may be omitted. If they are implemented, NF7 still applies: they must not mint experienced autobiography.

The identity of a memory engine is its recall algebra, not its storage topology.

Specification

Document Description
MF-001 A Memory Model of Data for Persistent Agents — Model, Algebra, and Conformance Rules for Memory Engines
MEL-001 Recall Language — BNF grammar for the algebra

Key concepts

The truncation trap

A plan that takes cosine top-k then re-ranks by importance will often miss the trace that matters most — an old, high-importance, emotionally vivid memory with low cosine similarity to the current cue. This is the truncation trap. Rule M2 forbids single-signal candidate generation as the sole generator.

Strength is not existence

Databases have existence. Memory has two axes: retrieval strength D (current accessibility, decays with disuse) and storage strength S (encoding durability, non-decreasing). Forgetting is loss of accessibility, not loss of storage. High S slows future loss of D — the protective effect of strong encoding (Bjork & Bjork, 1992).

Source honesty

Every trace carries a closed provenance tag: experienced, distilled, simulated, or rehearsed. Optional offline simulate and dream operations may generate hypotheses; they must not mint autobiographical episodes. Default recall hard-gates simulated traces.

Reference implementation

Spector is cited as an existence proof that the model can be implemented on a single substrate. It is the companion, not the definition. Spector treats Dream and related generation pathways as experimental implementations of the optional algebra verbs.

How to cite

Spectrayan. 2026. "A Memory Model of Data for Persistent Agents."
Memory Fundamentals Specification MF-001, v1.0.1. September 2026.
https://github.com/spectrayan/memory-fundamentals

Roadmap

  • Model, algebra, and twelve rules (MF-001 v1.0.0)
  • Required vs optional verbs (MF-001 v1.0.1, editorial)
  • MEL (Recall Language) BNF grammar (MEL-001 draft)
  • Conformance test suite
  • M8 lineage record format
  • Truncation-trap benchmark corpus

Related work

This specification builds on and acknowledges:

  • ACT-R (Anderson et al., 1993–) — formal cognitive architecture; the closest ancestor
  • Soar (Laird, Newell, Rosenbloom, 1987–) — production-system cognitive architecture
  • Bjork & Bjork (1992–) — new theory of disuse; two-factor strength model
  • CoALA (Sumers et al., 2023–24) — cognitive architecture taxonomy for LLM agents
  • Animesis (Li, 2026) — constitutional memory architecture; governance axioms

ACT-R and Soar formalize how cognition works; this specification formalizes what an engine must do. The distinction is between a theory of mind and a specification for a machine.

License

This work is licensed under CC BY 4.0.

Comments and counterexamples are invited. A specification that cannot be challenged in public is not a specification.

About

A database returns what was written. A memory engine reconstructs what is reachable from a cue at this moment — under decay, association, and tier physics — without losing a live trace because the first index was the wrong one

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors