FairDecision — Branching Memory architecture, six layers
Read the paper → All publications
01

What Branching Memory is

Any long conversation with an AI eventually runs into the same problem: the history either stops fitting into the context window, or turns into a "wall of text" that the model has to reprocess from scratch with every message. Branching Memory solves this not by truncating or compressing history, but by changing the underlying data structure — history is stored as a branching graph, not a list of messages.

02

Why this doesn't depend on the model race

Models change every few months — GPT, Claude, Gemini, and their future versions. We deliberately avoid binding to any specific model: a minimal interface (text in, text out) means the memory graph works the same way with today's model and with the model that will appear five years from now.

03

Architecture: six layers

The system is built as six coordinated layers — from the storage structure to an independent check of the graph's integrity. Each layer describes a contract between components, not a single correct implementation.

The architecture is deliberately designed around the principle of a minimal, stable interface with the executing model (text in, text out), which makes the memory graph and the integrity layer (pollinator) independent of any specific model — including hypothetical future architectures that eliminate context rot at the model level itself. This is not a compromise, but a deliberate choice favoring the longevity of the surrounding infrastructure over the fast-turning generations of executing models.
04

Data security and boundaries of responsibility

The server-side store is a privileged access point to a user's aggregate history and its vector representations, and therefore requires protection at the transport and storage level. Vector embeddings are not an anonymous representation of data: existing research shows original text can be partially reconstructed from an embedding without access to the text itself.

05

What remains open

The most substantive and least disclosed part of the architecture is the precise algorithm for deciding where to branch rather than continue the current thread. We deliberately don't disclose it in this publication: the question is already formulated, and work on the answer is ongoing.

Coming next

Next publication: how the system decides where to create a new branch rather than continue the current one. Work on the solution is ongoing.

Models will come and go. Memory will stay.

FairDecision is an open research line on memory architectures for AI conversations.

Get in touch →
Publications
Branching Memory for AI Conversations: An Architecture Without the Context "Wall of Text"
Original Russian title: «Ветвящаяся память для диалогов с ИИ: архитектура без «простыни» контекста»
K. Spirin (Kodimordax) · 2026 · Preprint
DOI: 10.5281/zenodo.21984309

📐
Diagram: A Six-Layer Architecture
Illustration accompanying the paper — the six architectural layers
Open PDF →