Persistence of Memory

Architecture deep dive

Φ (Phi) — the golden ratio: proportion, continuity, and patterns that endure.
Mission: turn every enterprise event into AI-curated semantic memory — indexed, archived, and searchable for a lifetime.
PHP Orchestrator: Online
LanceDB Server: Online (local embeds)

Data Lake + Persistence of Memory

Enterprise AI Memory Fabric — how operational events become durable AI memory and auditable archive.

Schell Brothers Innovation · Source documents: June 15–16, 2026

Architecture diagram

Converted from 2026.06.16.Data Lake Persistence of Memory Diagram.pdf

Data Lake and Persistence of Memory architecture diagram showing ingest, curate, and store flow from source databases through LLM consolidation to LanceDB synapses and data lake archive

End-to-end flow: transactional ingest → LLM consolidation → dual-write to hot synapses and cold archive → retrieval for agents and humans.

Diagram — flow summary

ingest curate store + use

Ingest

Sources
Source DBs
MySQL, enterprise databases
Events
Business events
orders, projects, logins
Foundation
Transactional event log
Source of truth — raw event written first, always

Curate

Intelligence layer
LLM consolidation
Summarize · tag · extract insight · compress for recall

Dual-write: consolidation output is written to both stores simultaneously.

Store + use

Hot memory
LanceDB synapses
Hot · vector-searchable · local
“What's relevant right now?”
Cold archive
Data lake archive
Cold · partitioned JSON · complete
“What exactly happened?”
Consumers
AI agents / you
Vector search · retrieve context · cross-session memory · RAG
Consumers
Humans / analytics
Browse · audit · drill down · compliance · replay · training data
Agent finds synapse → fetches full lake record → acts with context + facts

The vision

Extracted from 2026.06.15.Data Lake + Persistence of Memory- The Vision.pdf

Persistence of Memory is the AI-first infrastructure for giving websites, internal systems, and applications long-term memory, stored in the Data Lake and intelligently cataloged by a vector database.

It enables AI systems to remember, learn from experience, and continuously improve — with much of that knowledge being self-generated by the AI itself.

Core architecture

MySQL Aurora

The transactional source of truth. Maintains three to five years of current, useful business data and houses the Heartbeat, marketing site, and Pulse databases.

LanceDB (on EFS)

The persistent, intelligent “synapses” of the system. Stores Master Contexts, semantic relationships, embeddings for similarity search, and rich derived insights the AI has generated over time. This is where the real intelligence lives.

S3 Data Lake

The long-term governed archive: one JSON document per event (transactional payload + AI-curated memory), partitioned under archive/YYYY/MM/DD/. Operational audit lives in MySQL (pipeline_log, pipeline_error_log, data_lake_queue).

The orchestrator

A PHP-based layer sits in the middle and intelligently coordinates:

This creates a living, self-improving system that gets smarter over time.

Audit trail (logs for everything)

Every event leaves a trace in MySQL before it ever hits cold storage:

The Python pipeline service also writes structured stage logs (retrieval, LLM, LanceDB, archive) to stdout for ops debugging.

Data flow & archiving

New data starts in MySQL Aurora, flows through the Orchestrator for intelligent LLM processing, and lands in LanceDB (active semantic memory) and the S3 Data Lake (long-term archive). Older data is automatically archived from Aurora into the S3 Data Lake based on defined policies.

This architecture provides fast transactional access, rich semantic memory for AI, and cost-effective, vast, long-term storage.

POC mapping

How this demo site maps to the vision documents

Inbound Queue(s)

Classic async deposit queue (data_lake_queue)

Data Pipeline (Python, LLM)

Factory pipeline log + transactional ingest

Data Store (LanceDB)

LanceDB vector memories (hot recall)

Data Lake (S3)

Partitioned JSON data lake (cold truth)