LUCID
High energy, readily accessible.
Recently accessed or highly stimulated memories.
Threshold: energy > 0.5 × (1 - mood)
MindFry is not another database. It is a cognitive substrate — a foundation for building systems that remember like biological organisms.
Traditional databases are built on a flawed assumption: perfect memory is always desirable.
But in biological systems, forgetting is not a bug — it’s a survival feature:
MindFry embraces this insight and builds a database that can forget productively.
At MindFry’s core is the Tri-Cortex — a decision engine based on Balanced Ternary logic (inspired by the Soviet Setun computer):
graph LR
Input[Input Signal] --> Cortex{Tri-Cortex}
Cortex -->|+1| Excite[Excitation<br/>Amplify & Propagate]
Cortex -->|0| Neutral[Neutral<br/>Pass Through]
Cortex -->|-1| Inhibit[Inhibition<br/>Suppress & Dampen]
Every data operation passes through this decision layer, which considers:
Each memory exists in one of three states:
LUCID
High energy, readily accessible.
Recently accessed or highly stimulated memories.
Threshold: energy > 0.5 × (1 - mood)
DREAMING
Latent, may surface contextually. Memories below consciousness threshold but above dormancy. Can be “primed” by related memories.
DORMANT
Deep subconscious. Very low energy memories. Only accessible via Executive Override (forensic mode).
In quantum physics, observation changes the observed. In MindFry, querying a memory reinforces it.
// Every GET adds +0.01 energy (unless bypassed)const memory = await brain.lineage.get('childhood')// memory.energy is now slightly higher
// Forensic mode: observe without affectingconst forensic = await brain.lineage.get('childhood', 0x04) // NO_SIDE_EFFECTSThis creates natural consolidation: frequently accessed memories grow stronger, while neglected ones fade.
Memories don’t exist in isolation. They form bonds with polarities:
graph TD
A[fire<br/>energy: 1.0] -->|+1 synergy| B[heat<br/>+0.5 cascade]
A -->|-1 antagonism| C[ice<br/>-0.5 suppression]
B -->|+1 synergy| D[burn<br/>+0.25 damped]
Propagation is physically damped (50% per hop) to prevent runaway activation.
MindFry enables applications that were previously impossible or awkward:
| Use Case | Traditional Approach | MindFry Approach |
|---|---|---|
| Session memory | Manual TTL + cleanup jobs | Organic decay |
| Context-aware AI | Embedding + vector search | Energy-based recall |
| Trauma simulation | Hard-coded rules | Antagonistic bonds |
| Trending topics | COUNT + ORDER BY | High-energy filtering |
Next: See how MindFry compares to Redis, Neo4j, and Vector DBs in MindFry vs. The World.