Skip to content

Feat/car brain simulator#2

Open
amitko-pixel wants to merge 13 commits intochrisrobison:mainfrom
amitko-pixel:feat/car-brain-simulator
Open

Feat/car brain simulator#2
amitko-pixel wants to merge 13 commits intochrisrobison:mainfrom
amitko-pixel:feat/car-brain-simulator

Conversation

@amitko-pixel
Copy link
Copy Markdown

No description provided.

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.
Adds atmospheric layer (ambient particles, nebula clouds, star field),
full interaction state coverage, emotional onboarding arc, anti-slop
rules, design tokens (CSS variables), micro-interactions spec,
accessibility (keyboard nav, screen reader, reduced motion),
node placement algorithm, performance boundaries, and tooltip design.
Major spec updates:
- Two-layer architecture: local Node.js server + browser frontend
- Claude Code CLI as default AI runner (uses subscription auth)
- Project mode: slides into existing projects via car-brain --project
- Disk-based persistence (.car-brain/ directory)
- Project ingestion pipeline with file scanning
- Pluggable runner interface for future local model support
- Updated .gitignore for .car-brain/ data directory
Replace node/edge types with CAR entities (chunk, cluster, question,
pattern, trigger) and CAR relationships (linked_to, amends, contradicts,
etc). Add 3D position support, design tokens, depth planes, retrieval
step definitions, Ebbinghaus decay constants. Update graph-document with
per-type metadata factories. Add cluster methods and retrieval state
tracking to stores.
Replace all CSS with dark theme using spec design tokens (#080c14
canvas, #0d1117 panels). Anti-slop tabs (text-only, underline-active,
IBM Plex Mono 10px uppercase). Add Three.js import map to index.html.
Update title to CAR Brain. IBM Plex Sans + Mono fonts.
Replace DOM/SVG canvas with Three.js WebGL scene. Includes OrbitControls,
UnrealBloomPass post-processing, FogExp2 depth fade. 3D node geometries
per type (sphere T1, icosahedron T2, octahedron T3, tetrahedron questions,
diamond triggers). Atmospheric layer with 200 ambient particles, 500 star
points, nebula sprites, ambient light breathing. Camera intro swoop from
(0,200,600) to home (0,80,350). Auto-focus on selected node with 0.6s
easeInOutCubic lerp. Raycasting for node selection. Contradiction edge
pulse animation. Legacy canvas sub-modules stubbed.
Rewrite top toolbar with memory input, query input, play/step/reset
controls, and 13-step dot indicator. Rewrite left palette with 6 CAR
tools (select, pan/orbit, add chunk, add link, add question, add
trigger). Rewrite inspector with context-sensitive tabs per node type
(chunk: overview/metadata/retrieval/timeline/scoring; question; cluster;
pattern; trigger). Rewrite bottom panel with 5 CAR tabs (retrieval log,
consolidation, contradictions, questions, metamemory) with badge counts.
Add relevance-scorer with Ebbinghaus decay curve and six weighted
factors. Add question-generator with L1-L5 template-based generation.
Add consolidation-engine for T1→T2→T3 tier promotion. Add
contradiction-detector with keyword-based conflict detection. Add
cluster-manager for auto-clustering by shared tags/entities. Add
car-engine orchestrating the full 13-step retrieval sequence with
play and step-through modes. Add retrieval-animator for visual
coordination during retrieval.
Add Spain margins demo seed data (~15 chunks, 3 tiers, clusters,
contradiction, trigger, questions). Create zero-dep Node.js local
server (server.js) with REST API for disk persistence at
~/.car-brain/brains/. Update persistence-store for dual
localStorage+server persistence. Rewrite app.js bootstrap with CAR
engine wiring. Add CAR_INGESTION_PROTOCOL.md. Delete obsolete node
components, inspector tabs, bottom panel views, old runtime modules,
and sample data.
…atmosphere

- Node radii 5x larger (1→5, 1.5→7, 2→9) so they're visible neurons not dots
- Bloom strength 0.6→1.5, threshold 0.8→0.4 for dramatic glow halos
- Emissive intensity 0.6→1.8 so nodes radiate light
- Fog density reduced 0.0015→0.0008 for less depth fade
- Ambient light 0.3→0.5 for brighter scene
- Particle size 0.5→1.5, star size 0.3→1.0 with additive blending
- Nebula sprites 200→400 scale for larger glow clouds
- Edge opacity boosted 0.4→0.7 and dash sizes increased
- Cluster shell radius 10→40 to properly enclose members
- Sprite-based node labels (canvas texture, white text with cyan glow)
- Removed CSS2DRenderer (caused silent module crash on some browsers)
- Increased ambient particles 200→400, stars 500→800, nebula 4→6
- Nebula gradients more vibrant (opacity 0.06→0.15 center)
- Nebula sprites larger (500-700 scale) and wider spread
- Reduced tone mapping exposure 1.2→0.85 for darker background
- Added subtle grid floor for spatial reference
- Node labels show first 18 chars of chunk name with ellipsis
Complete README covering architecture, 3D brain visualization,
13-step retrieval sequence, CAR protocol principles, project
ingestion, persistence, tech stack, and keyboard shortcuts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant