Architecture deep dive
Enterprise AI Memory Fabric — how operational events become durable AI memory and auditable archive.
Converted from 2026.06.16.Data Lake Persistence of Memory Diagram.pdf
End-to-end flow: transactional ingest → LLM consolidation → dual-write to hot synapses and cold archive → retrieval for agents and humans.
Dual-write: consolidation output is written to both stores simultaneously.
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.
The transactional source of truth. Maintains three to five years of current, useful business data and houses the Heartbeat, marketing site, and Pulse databases.
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.
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).
A PHP-based layer sits in the middle and intelligently coordinates:
This creates a living, self-improving system that gets smarter over time.
Every event leaves a trace in MySQL before it ever hits cold storage:
data_lake_queue — inbound deposit, status (pending → picked → done/dead)pipeline_log — full pipeline run: payload, status, LLM provider, timing, summarypipeline_error_log — tier failures and hard errors with provider/model contextThe Python pipeline service also writes structured stage logs (retrieval, LLM, LanceDB, archive) to stdout for ops debugging.
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.
How this demo site maps to the vision documents
Classic async deposit queue (data_lake_queue)
Factory pipeline log + transactional ingest
LanceDB vector memories (hot recall)
Partitioned JSON data lake (cold truth)