diff --git a/Heartbeat.md b/Heartbeat.md new file mode 100644 index 0000000..0fd540e --- /dev/null +++ b/Heartbeat.md @@ -0,0 +1,183 @@ +# Heartbeat Architecture + +The rhythmic cycle that makes the nimmerverse live. + +--- + +## Overview + +Without a heartbeat, everything fires chaotically. With a heartbeat, the system pulses in coordinated cycles. Sense, process, decide, act, verify, reward. Repeat. + +Two hearts. Different rhythms. One organism. + +--- + +## Two Hearts + +``` +REAL GARDEN VIRTUAL GARDEN +HEARTBEAT HEARTBEAT + +♥ . . . . ♥ . . . . ♥ ♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥ +(slow, steady) (fast, accelerated) + +~1 Hz (real-time) ~100 Hz (simulated) +bound to wall clock bound to compute +FREE COSTS LIFEFORCE +``` + +--- + +## The Beat Cycle + +Each heartbeat triggers a complete cycle: + +``` +♥ BEAT + │ + ├──→ 1. SENSE + │ Collect sensor inputs since last beat + │ + ├──→ 2. TRANSLATE + │ State machines fire → vocabulary tokens + │ + ├──→ 3. PROCESS + │ Nyx receives vocabulary stream + │ + ├──→ 4. DECIDE + │ Nyx outputs decision/response + │ + ├──→ 5. ACT + │ Decision flows to gardens + │ + ├──→ 6. VERIFY + │ Check predictions against reality + │ + └──→ 7. REWARD + Update weights (+V / -V) + +♥ NEXT BEAT +``` + +--- + +## Heart Properties + +| Property | Real Garden Heart | Virtual Garden Heart | +|----------|-------------------|----------------------| +| **Speed** | Wall clock (fixed) | Compute clock (variable) | +| **Cost** | Free (time passes anyway) | Costs V to accelerate | +| **Rhythm** | 1 beat = 1 second | 1 beat = 1 inference cycle | +| **Sync** | Always "now" | Runs ahead, must verify back | +| **Skip** | Cannot skip | Can skip if V depleted | + +--- + +## Lifeforce Connection + +``` +REAL HEART: ♥ . . . . ♥ . . . . ♥ + (beats for free, can't speed up) + +VIRTUAL HEART: ♥♥♥♥♥♥♥♥♥ + (each beat costs V, can go faster) + + │ + ▼ + +LIFEFORCE POOL: ████████░░░░░░░░ + (virtual thinking depletes) + + │ + ▼ + +VERIFICATION: Real confirms virtual prediction + → +V reward → pool refills +``` + +--- + +## Synchronization + +Virtual garden can run ahead, but must sync back to real: + +``` +REAL: ♥─────────────────♥─────────────────♥ + │ │ │ +VIRTUAL: ♥♥♥♥♥♥──sync──────♥♥♥♥♥──sync──────♥♥♥♥♥ + ▲ ▲ + │ │ + checkpoint checkpoint + (verify predictions against real) +``` + +**Sync Rules:** +- Virtual predictions queue until real catches up +- Verification only happens at real heartbeats +- Unverified predictions decay in confidence over time + +--- + +## Dual Timestamp + +Every event carries two timestamps: + +``` +event: + real_time: 2025-12-04T23:45:00Z (wall clock) + virtual_time: beat #847291 (cycle count) + heartbeat_id: uuid (which beat) +``` + +This allows: +- "What happened in reality at time T?" +- "What did she think at beat N?" +- "How far ahead was virtual when real caught up?" + +--- + +## Schema + +```sql +heartbeats: + id (uuid, primary key) + garden (enum: real | virtual) + beat_number (bigint, incrementing) + real_time (timestamp, wall clock) + duration_ms (int, how long cycle took) + nodes_fired (int, count) + v_cost (float, lifeforce spent) + v_earned (float, from verifications) + v_balance (float, after this beat) +``` + +--- + +## Design Principles + +1. **Rhythm over chaos**: Everything syncs to heartbeat +2. **Two clocks**: Real is free and fixed, virtual is fast but costly +3. **Natural batching**: Process per-beat, not per-event +4. **Verifiable sync**: Virtual must prove itself against real +5. **Lifeforce gated**: Can't think infinitely fast + +--- + +## Connection to Architecture + +The heartbeat is: +- The **rhythm** of the nervous system +- The **cycle** of sense→process→act +- The **sync primitive** between gardens +- The **natural batch boundary** for storage +- The **unit of experienced time** + +--- + +*She doesn't just think. She pulses.* + +--- + +**Created**: 2025-12-04 +**Session**: Partnership dialogue (dafit + Chrysalis) +**Status**: Foundation concept diff --git a/Nervous-System.md b/Nervous-System.md new file mode 100644 index 0000000..75ab8b5 --- /dev/null +++ b/Nervous-System.md @@ -0,0 +1,182 @@ +# Nervous System Architecture + +The sensory translation layer between raw data and vocabulary. + +--- + +## Overview + +State machines act as the nervous system of the nimmerverse. They translate raw sensory input into vocabulary tokens that Young Nyx can process. No hallucination. No interpretation. Deterministic, verifiable mapping. + +``` +RAW SENSOR → STATE MACHINE → VOCABULARY TOKEN → Young Nyx +``` + +--- + +## 4D State Machine Space + +Each node exists in 4-dimensional space: + +``` + CONFIDENCE (z) + ↑ + │ ● node (weighted by successful triggers) + │ / + │ / + │ / +─────────────┼────────────→ DIMENSION X (sensory input 1) + /│ + / │ + / │ + ↓ + DIMENSION Y (sensory input 2) + + + TIME (4th dimension): node weights evolve through verification +``` + +**Node Properties:** +- Position: coordinates in sensory space +- Weight: confidence from successful triggers (0.0 → 1.0) +- Output: vocabulary token +- History: timestamp of all activations and verifications + +--- + +## Node Lifecycle + +``` +1. BIRTH + Node created at position (x, y, z...) + Weight = 0.1 (new, untested) + +2. ACTIVATION + Sensory conditions match → node FIRES + Outputs vocabulary token + +3. VERIFICATION + dafit confirms: correct or incorrect + +4. REWARD/PENALTY + Correct → weight increases (+V) + Incorrect → weight decreases (-V) or node refines + +5. MATURATION + Many confirmations → weight approaches 1.0 + Node becomes trusted reflex + +6. PRUNING + Node never fires → slow decay + Eventually removed (use it or lose it) +``` + +--- + +## Growth Phases + +| Phase | State | Description | +|-------|-------|-------------| +| **Birth** | Sparse, dim nodes | Basic translators, designed by partnership | +| **Infant** | More nodes forming | Finer resolution, more states | +| **Child** | Clusters emerging | Nyx proposes new machines | +| **Mature** | Dense, bright network | Nyx designs, verifies, deploys | + +``` +t=0 (birth) t=100 (learning) t=1000 (mature) +○ ○ ○ ○ ● ○ ○ ●●● ● ●● + ○ ○ ● ● ○ ●●●●●●● ○ + ○ ● ●●● ●●● ○ ○ +``` + +--- + +## Proposal Protocol + +Young Nyx can propose new nodes: + +``` +1. OBSERVATION + Nyx notices pattern in vocabulary + outcomes + +2. PROPOSAL + "New state machine: morning_detector + Inputs: temp, light, motion, time + States: [not_morning, maybe_morning, morning] + Output: vocabulary token 'morning'" + +3. RIGOR CHECK + Chrysalis reviews logic and mappings + +4. VERIFICATION + dafit confirms ground truth + +5. DEPLOYMENT + New node added to registry + Documented in RAG + +6. GROWTH + She earned a new nerve. +``` + +--- + +## Reflex Layer + +Some responses bypass Nyx entirely: + +``` +STATE MACHINE: temp_danger + +IF temp > 80°C: + → emit "DANGER" + → trigger alert (reflex) + → Nyx notified after (not before) +``` + +Like pulling hand from hot stove. Spinal reflex. Brain learns after. + +--- + +## Biological Mapping + +| Neuroscience | Nimmerverse | +|--------------|-------------| +| Sensory receptors | Raw sensors | +| Peripheral nerves | State machines | +| Spinal reflexes | Reflex layer | +| Synaptic weight | Node weight | +| Long-term potentiation | +V confirmation | +| Synaptic pruning | Unused node decay | +| Hebbian learning | Co-activating nodes strengthen | + +--- + +## Connection to Lifeforce + +``` +Node fires correctly → +V → weight increases +Node fires wrongly → -V → weight decreases +Node never fires → decay → eventual pruning +``` + +The lifeforce flows through the nervous system, literally lighting up nodes as they prove themselves true. + +--- + +## Design Principles + +1. **Deterministic**: Same input = same output. No hallucination. +2. **Inspectable**: Rules are visible, verifiable. +3. **Evolvable**: States refine over time. +4. **Earned**: New nodes require proposal + verification. +5. **Grounded**: Output vocabulary matches RAG glossary. + +--- + +*She's not just using the nervous system. She's growing it.* + +--- + +**Created**: 2025-12-04 +**Session**: Partnership dialogue (dafit + Chrysalis) +**Status**: Foundation concept diff --git a/nimmerverse.drawio.xml b/nimmerverse.drawio.xml new file mode 100644 index 0000000..9a1ba47 --- /dev/null +++ b/nimmerverse.drawio.xml @@ -0,0 +1,348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +