From c8ae97856dc9c47657d6a44bb289070445f05d67 Mon Sep 17 00:00:00 2001 From: Amit Kolton Date: Fri, 3 Apr 2026 14:59:58 +0300 Subject: [PATCH 01/13] docs: add CAR Brain Simulator design spec Complete design specification for reconstructing MindGraph AI into a brain-like simulator implementing the Clustered Associative Recall (CAR) Protocol. Covers data model, 3D visual language (Three.js), 13-step retrieval animation, interaction design, and Claude ingestion manual. --- .../2026-04-03-car-brain-simulator-design.md | 478 ++++++++++++++++++ 1 file changed, 478 insertions(+) create mode 100644 docs/superpowers/specs/2026-04-03-car-brain-simulator-design.md diff --git a/docs/superpowers/specs/2026-04-03-car-brain-simulator-design.md b/docs/superpowers/specs/2026-04-03-car-brain-simulator-design.md new file mode 100644 index 0000000..a7beeab --- /dev/null +++ b/docs/superpowers/specs/2026-04-03-car-brain-simulator-design.md @@ -0,0 +1,478 @@ +# CAR Brain Simulator — Design Spec + +**Date:** 2026-04-03 +**Status:** Approved +**Repo:** amitko-pixel/carmindgraph (fork of chrisrobison/mindgraph) + +## Overview + +Reconstruct the MindGraph AI app into a visual brain simulator implementing the +Clustered Associative Recall (CAR) Protocol. The app becomes a working CAR engine +with a 3D neural visualization — you add memories, ask questions, and watch the +brain process them through the full 13-step retrieval sequence. + +### What it is + +- A CAR Protocol workbench + living memory system +- Domain-agnostic: ingests any knowledge (code, business, research) +- Three input modes: text memory input, query panel, JSON file import +- Ships with a Claude instruction manual for full project ingestion +- Visual: Neural dark 3D aesthetic using Three.js for the graph canvas + +### What it is NOT + +- Not a static visualization or educational demo +- Not a backend service — runs entirely in the browser +- Not a chat interface — it's a graph workbench with memory processing + +## Architecture + +### Approach: Hybrid (Three.js Canvas + DOM Panels) + +Three.js renders the 3D brain visualization canvas. All other UI (toolbar, inspector, +input panels, activity log) stays as vanilla Web Components. The PAN event bus bridges +both worlds. + +**What stays:** +- PAN event bus (`js/core/pan.js`) +- Store architecture (graph-store, ui-store, persistence-store) +- Web Components for all panels +- localStorage persistence with autosave +- Undo/redo (snapshot-based) + +**What changes:** +- `graph-canvas` → Three.js WebGL scene (replaces DOM/SVG rendering) +- Node types → CAR protocol entities (chunk, cluster, question, pattern, trigger) +- Edge types → CAR relationships (linked_to, amends, contradicts, promotes_to, etc.) +- Inspector tabs → CAR metadata views +- Bottom panel tabs → Retrieval log, Consolidation, Contradictions, Questions, Metamemory +- Runtime → CAR engine (retrieval, scoring, consolidation) replaces mock-agent-runtime +- Seed data → Spain margins demo from the protocol +- New dependency: Three.js via CDN (` -