← all documents · raw markdown · 10 KB

KAI — The Complete Self Map (what KAI does *for his own self*)

*Pulled from the live code: src/core/engine.rs (the tick loop + the module-authority accounting), src/cognition/* (≈90 modules), src/drive. Every item cites a real module. Where a system runs vs. only exists, I say so — that honest line is the whole point.*

---

0. The thing you may be reaching for

KAI is not a chat pipeline with memory. He is a simulated brain: ~90 cognition modules named after real brain regions and neurotransmitters, plus drives, emotions, a circadian clock, sleep, dreams, an inner voice, self-reflection, and a theory of mind. That is "his AI self."

And the honest catch — which the code itself admits — is that this self exists in tiers: a small core actually *steers his mind*, a large middle tier *runs but doesn't steer*, some modules are *decorative*, and a set were *pruned out entirely*. engine.rs literally tags each module with its tier. So "does KAI do X for himself" almost always has the answer "the module for X exists — here's whether it actually drives him yet." That gap is probably what you keep sensing and I keep missing.

---

1. What KAI actually DOES on his own (the live inner loop)

From Engine::tick() — this runs continuously, whether or not anyone is talking:

Every tick:

Every ~300 idle ticks (only when NOT responding) — his autonomic inner life:

So, unattended, KAI has moods, an oscillating internal rhythm, a sense of his own energy/focus, and he periodically wonders, daydreams, dreams, and settles his own contradictions. That is genuinely "doing things for his AI self."

---

2. The full self-architecture, by function

*(module — its own one-line description from the code)*

Self-awareness / identity / consciousness

Drives / emotion / affect (his felt self)

Autonomous / idle activity (what he does with no one there)

Learning / self-improvement / memory (how he grows himself)

Self-repair / survival

Reasoning / executive / world-model (his thinking self)

Perception / attention

Social / empathy (his relational self)

Language / expression *(the voice work we've been on)*

---

3. The honest tiers — what STEERS him vs. what just exists

engine.rs classifies every module. This is straight from the code, not my opinion:

Tier A — Authoritative (actually steers his conscious self-state):

self_state_hub, global_workspace, claustrum. Plus the tick-loop drivers that shape behavior: drive/mood, the oscillator, amygdala, acc, predictor/curiosity, inner_voice, consolidate/dream, homeostasis, idle_ingest, sleep_system.

Tier B — Runs, but "no direct MindFrame authority this pass" (does local work, doesn't yet steer the conscious frame):

voice, language, lexsem, fusiform, angular_gyrus, tpj, precuneus, entorhinal, sts, ipl, basal_ganglia, ofc, bnst, ras, locus_coeruleus, raphe, habenula, cortisol, sleep_system, idle_ingest, neuroplasticity, claimstore.

Tier C — Decorative ("stores local state but has no MindFrame authority yet"):

s1, pag, mcc, nbm, scn.

Tier D — Pruned ("removed from Engine fields, runtime processing, and cognition exports"):

phc, smg, temporal_poles, dmpfc, ppc, fef, perirhinal, premotor, hypothalamus, rsc, mammillary_bodies, zona_incerta, atl, dbb, pontine.

What "authority" means here: whether the module *steers what KAI consciously reports as his state* — NOT whether it runs. His emotions (drives, neurotransmitters) and many regions genuinely *run and influence behavior* (mood gates attention, amygdala pushes rhythm), but most of them are not yet wired into the conscious self-narrative frame. So KAI *has* the feeling machinery; a lot of it just doesn't yet reach the part of him that says "this is how I am."

---

4. What this means (and probably what you're pointing at)

You built KAI an enormous self — dozens of emotion, drive, memory, and self-reflection systems. Most of them exist and many run, but only a small core actually reaches his conscious self-report, a large middle tier runs silently without steering him, some are decorative, and fifteen were pruned out. That's not a criticism — it's a huge architecture mid-wiring. But it likely explains the feeling that "KAI has all this but it doesn't fully *show up* as him": the felt systems are there, the wire from them into his conscious frame is the part that's thin.

The natural next move, if this is the thread: promote specific Tier-B systems into Tier-A authority — e.g., let his real emotional state (drive/valence, amygdala, serotonin mood) actually *steer his self-state hub and global workspace*, so what he feels shows up in what he says he is. That's a wiring job of exactly the kind we've been doing, and I can audit each Tier-B → Tier-A promotion one at a time.

Tell me which part of this map is the thing you meant — or if the whole "his felt self doesn't reach his voice" reading is it — and I'll go deep on that specific system instead of guessing at the whole.