36-Layer Architecture
BrainOS is an AI Operating System — 36 cognitive layers organised into 5 functional planes: Compute, Memory, Reasoning, Learning, and Services. Every layer communicates through an event bus with Lamport clock ordering, deduplication, and backpressure.
Local LLM, Brain IQ routing, smart auto-scale
Working memory blackboard, 27-query context mesh, federated knowledge
Backward chaining, LATS reflection, adversarial verification, DreamCoder
RL closed loop, dopamine/gaba signals, LoRA fine-tuning, failure memory
SE-aaS · AaaS · PM-aaS · Process FSM · Overnight Code Agent
Intelligence Tiers
Cognitive Control Plane
Brain Directive (IQ scalar), System-0/1/2 hierarchy, Execution Contracts — <5ms to route any query
Memory & Context
Working memory blackboard, 27-query context assembly, Brain Context Mesh across all 6 decision points
Service Fabric
SE-aaS (27 domains), AaaS (11 agents), PM-aaS (7 domains) — each backed by RL feedback loop
Self-Evolution
DreamCoder tool synthesis, RLVR calibration, Strategy Bandit, Federated Causal Learning
5 Bridges
Bridges connect the 5 planes through the event bus, creating a self-reinforcing intelligence loop.
Collects signals from 16+ connectors, validates constraints before any execution
Verified outcomes strengthen federated knowledge edges — dopamine/gaba signals
Brain Context Mesh wires 27-query context assembly at all 6 service decision points
Every task outcome recorded — quality signals drive FSM planning decisions
Trained Local LLM adapter weights injected into Brain IQ routing decisions
Event Bus
The event bus is the spine of the system. It provides:
- Lamport clocks for ordered event sequencing across distributed workers
- Deduplication to prevent duplicate signal processing
- Priority queues so high-severity events (anomalies, cascades) process first
- Backpressure to prevent overwhelming downstream consumers during burst ingestion
- Pub/sub for decoupled communication between all 36 layers
Workspace Brain vs AI Worker Brain
BrainOS separates the Workspace Brain (L25–L29 — shared intelligence across all workers in an org) from AI Worker Brains (per-worker memory, conversation history, and RL history).
- Workspace Brain (L25–L29) — federated knowledge, process intelligence, service signals shared across all workers
- AI Worker Brain — per-worker conversation history, task memory, and individual RL outcomes
- Living Model (L36) — Local LLM fine-tuned on this workspace's outcomes via LoRA — the OS trains its own LLM
- Core Brain — anonymous cross-org patterns federated to all workspaces (no raw data crosses org boundaries)