*The signal path as an ordered stack you can engineer layer by layer. Each layer lists: what it
computes, the EXACT knob (file · constant/env · current value), its wiring status, and the
concrete adjust/fix. Unlike an LLM you don't backprop these — you edit constants, train two
sub-components, and curate data. That's how you "adjust his layers."*
Status tags: ✅ live · ⚙️ tune-me · 🔧 fix-needed · 🧩 staged (built with pending build) · 🎓 train
---
stat_lexicon::tokenize.of everything; fix here pays off everywhere.
SparseVec (~4% non-zero, values ∈ {−1,0,+1}). SparseVec::encode — a hash, not learned (this is why it's glass-box).
core/stat_lexicon.rs — DIM=16384, TARGET_NNZ=4%·DIM, WINDOW=3, SEED_PAIRS, SELF_BIAS=16, NEIGHBOR_WEIGHT=1.
from trusted text (this is "word + listen correctly"). Raising SELF_BIAS/NEIGHBOR_WEIGHT
changes how sharply a word's vector favors itself vs. its context neighbors.
= the sentence's meaning. encode_sentence.
predictive_query / predictive_query_vecs.
(rebuild_index, index_min_cells).
raise the semantic (vs keyword) share, tune top-K. A reply is only as true as what L3 pulls in.
to 4% density. build_generative_state → weighted_superpose.
W_BACKBONE=1.0 (the prompt spine — keep dominant)W_ATTENDED=1.5 (resonance-attended prompt — important words stand out)W_MEMORY_VEC_PEAK=1.25 (floor frac 0.25) (retrieved cell vectors)W_MEMORY_CONT_PEAK=2.50 (floor frac 0.50) (retrieved continuations — the heaviest)W_CONTRAST_PEAK=0.80 ×χ (sharpen against memory when contradiction pressure high)W_TRACE=0.50 (live conversation mix)TARGET_DENSITY=0.04W_MLP (new) — the Response-MLP bias term, once the held patch lands.vs recency shapes each reply.
W_MEMORY_CONT_PEAK → more memory-driven; raise W_BACKBONE → more literal to the prompt; raise W_TRACE → more
conversational continuity. Tune with the telemetry meter, one dial at a time.
claustrum → self_state_hub; inject felt state as tone. global_workspace, self_state_hub,
felt_block / live-felt bus.
felt_block thresholds (valence ±0.35, arousal 0.60/0.25, serotonin 0.35/0.70), KAI_FELT_VOICE (on).
live-felt bus (real tick-loop feeling) is the held patch.
felt thresholds to make his mood color the voice more or less strongly.
find_nearest, argmax cosine) → re-bind → roll forward. StatLexicon::incremental_generate.
temperature=0.7, top_k=16, repetition_penalty. (temp 0.0 = greedy.)more deterministic. But the real fluency gain is 🎓 training the ternary model (RunPod), not
the sampler.
kai_native ternary → BitNet → dense kai-7b → external LLM. global_native_decode; public chat routed by the staged KAI_NATIVE_PUBLIC_VOICE.
KAI_NATIVE_PUBLIC_VOICE, KAI_NATIVE_BRAIN, KAI_LLM_VOICE, OLLAMA_FALLBACK_MODEL/KAI_OLLAMA_MODEL, KAI_LLM_MAX_TOKENS=96.
NATIVE_ONLY(flip last) makes the LLM a true last resort.
min_score; hard vetoes for empty / parrot / stuck-loop / gibberish. coherence::judge.
KAI_COHERENCE_CRITIC — was OFF by default; turned ON in the deploy flags this session.DEFAULT_MIN_SCORE=0.45 (KAI_COHERENCE_MIN) — the accept bar.KAI_COHERENCE_ATTEMPTS, 1..5) — re-rolls before falling back.grounding 0.10. (no memory: 0.39/0.28/0.22/0.11/0.00.)
KAI_COHERENCE_MIN from the telemetry (where native passeson good output, falls back on bad). Reweight the sub-scores to value, e.g., topicality over
fluency. Too high → everything falls to the LLM; too low → junk ships.
clean_public_chat_reply attenuate wrong cells; dream-consolidate; prune. store_or_reinforce, bind_sequence,
record_co_firing, consolidate, decay_all, prune.
0.95; decay_all(factor); prune(min_strength); prune-contested keep if confidence>1.2 &
convergence>0.15; cell cap 1,000,000; dream cadence tick%300.
(held patch wires it) · 🎓 corpus/lexicon training is the growth fuel.
cells faster; raise decay/prune → leaner lattice. Wire the Response-MLP (patch) so training it
actually affects output.
contradictions, inner_voice::wonder, daydream, run_dream_cycle. engine.rs tick().
acc.conflict>0.65.
raise them → quieter. Change %300 → dream more/less frequently.
---
1. Base build green — the tree carried pre-existing breakage; get it compiling with the applied
edits first (in progress). Nothing below is measurable until then.
2. L8 calibrate — with the critic ON and telemetry live, read the native accept-rate; set
KAI_COHERENCE_MIN where it separates good from bad. (config only, instant.)
3. L3 + L1 — sharpen retrieval + grow lexicon coverage. Biggest "listen correctly" gain. (data)
4. L10 wire — apply the Response-MLP patch so training the reply-bias actually does something.
5. L4 tune — turn the six W_* encoder weights one at a time, watching the meter. (your
closest analog to "adjusting weights.")
6. L6 train — retrain the kai_native ternary model on the cleaned corpus (RunPod). Biggest
fluency jump. (train)
7. L5 bus — apply the live-felt bus so his real feeling (not a reconstruction) reaches the voice.
8. L7 flip — once the native accept-rate is high, set NATIVE_ONLY; the LLM becomes a rare
fallback. Vision reached.
One-line mental model: L0–L2 build the thought, L3 remembers, L4 is your weight-mixer, L5 adds
self + feeling, L6 speaks, L7 picks the voice, L8 judges it, L9 cleans it, L10 learns from it,
L11 keeps him thinking between turns. You engineer each by turning its named constant, curating its
data, or training its one sub-component — never all at once, always against the meter.