@@ -630,117 +630,116 @@ Right hemisphere: **11/15** — 4 abilities locked waiting for cluster formation
630630```
631631cortex-brain/
632632|-- src/
633- | |-- brain.py # 3,205 lines -- Core CortexBrain class
634- | | # Word nodes, Hebbian learning, prediction
635- | | # engine, sound system, word scripts,
636- | | # ability tree, semantic relationships,
637- | | # confidence system, web lookup, IPFS storage,
638- | | # self-modification (score/reinforce/consolidate),
639- | | # knowledge gap diagnostics, POS tagging,
640- | | # skip_web_lookup flag for live chat performance
641633| |
642- | |-- cortex_brain.py # 1,892 lines -- CortexMind (The Third Brain)
643- | | # Gate router (PASS/AND/OR/NOT/XOR/NAND),
644- | | # challenge classifier (_classify_challenge),
645- | | # garbage detector (_gate_not),
646- | | # ~34K-node neural network,
647- | | # split-hemisphere synthesis, question type
648- | | # detection, ramble v3, dynamic question
649- | | # generation, coherence scoring, Grok judge,
650- | | # selective reinforcement, self-modification
651- | | # engine integration, playbook engine wiring,
652- | | # gate stats tracking
634+ | | === THE BRAIN ===
635+ | |-- brain.py # 3,209 lines -- Core CortexBrain class
636+ | | # Word nodes, Hebbian learning, prediction engine,
637+ | | # sound system, word scripts, ability tree,
638+ | | # semantic relationships, web lookup, IPFS storage,
639+ | | # self-modification, knowledge gaps, POS tagging,
640+ | | # skip_web_lookup flag for live chat performance
653641| |
654- | |-- online_server.py # 1,519 lines -- HTTP API server (port 8643)
655- | | # Chat endpoints (left/right/cortex),
656- | | # ramble controls, stats, brain-live data,
657- | | # rate limiting, IPFS save, knowledge gaps,
658- | | # playbook API (status/flip/promote/list),
659- | | # bulk data import, session management,
660- | | # ThreadPoolExecutor with 20s timeout
642+ | |-- cortex_brain.py # 1,913 lines -- CortexMind (The Third Brain)
643+ | | # Gate router (PASS/AND/OR/NOT/XOR/NAND),
644+ | | # challenge classifier, garbage detector,
645+ | | # ~34K-node neural network, hemisphere synthesis,
646+ | | # ramble v3, coherence scoring, Grok judge,
647+ | | # self-modification, playbook wiring, gate stats
661648| |
662- | |-- pain_pleasure.py # 123 lines -- Stood-down hedonic scoring
663- | | # (Grok unfiltered version)
664- | | # LABEL_TABLE: 17 emotional states with Hz/colour
665- | | # WORD_SCORES: ~65 raw human word scores
666- | | # PainPleasureModule: hedonic state calculator
649+ | | === ENGINES ===
650+ | |-- strategy_engine.py # 1,518 lines -- Equation-based problem solving
651+ | | # 31K+ interactions, strategy library, trust
652+ | | # classification, rank system, learning loop
667653| |
668- | |-- emotional_equations.py # 236 lines -- Stood-down emotional equations
669- | | # (Grok unfiltered version)
670- | | # SWEARS_MILD/MEDIUM/HEAVY banks
671- | | # THREAT_WORDS, INSULT_WORDS vocabularies
672- | | # 17 emotional state parameter sets
673- | | # Conditional routing (threat/sexual/grief/spite)
674- | | # EmotionalEquations: apply emotions to replies
654+ | |-- soul_engine.py # 2,937 lines -- Soul engine
655+ | | # Deep identity, value system, BIOS integration,
656+ | | # self-knowledge, conscience modelling
675657| |
676- | |-- playbook_engine.py # 359 lines -- Playbook Equation System
677- | | # 10-letter tactic alphabet, equation solver,
678- | | # 5 conversation stages, session tracking,
679- | | # signal detection, reactive flips,
680- | | # auto-promotion, tactic application
658+ | |-- truth_engine.py # 359 lines -- Truth/credibility engine
659+ | | # 47K+ word weights, 5K connection weights,
660+ | | # credibility scoring, truth-over-feelings
681661| |
682- | |-- bulk_generator.py # 750 lines -- Bulk Data Pipeline
683- | | # Parse pipe-delimited feed files,
684- | | # generate JSON payloads, upload to any
685- | | # hemisphere, built-in word lists,
686- | | # GLM (General Language Model) format
662+ | |-- playbook_engine.py # 359 lines -- Playbook Equation System
663+ | | # 10-letter tactic alphabet, equation solver,
664+ | | # 5 conversation stages, reactive flips
687665| |
688- | |-- trainer.py # 851 lines -- Left Hemisphere Trainer
689- | | # Core vocabulary, Bible teachings, OT/NT
690- | | # stories, moral dilemmas, relationship
691- | | # teaching, conversation drills
666+ | |-- frontal_cortex.py # 238 lines -- Frontal cortex module
667+ | | # Global confidence, 13K+ topics tracked,
668+ | | # attention, planning, impulse control
692669| |
693- | |-- trainer_right.py # 453 lines -- Right Hemisphere Trainer
694- | | # Mathematics, logic, dark ideology,
695- | | # Orwell, Marx, fallacies, degeneracy
670+ | |-- phoneme_engine.py # 313 lines -- Speech/phoneme system
671+ | | # Sound generation, pronunciation, voice
696672| |
697- | |-- seed_brain.py # Initial seeder -- Dan's content,
698- | | # Kickstarter narration, ALIVE descriptions,
699- | | # homepage text, key definitions
673+ | | === EMOTIONS ===
674+ | |-- pain_pleasure.py # 123 lines -- Stood-down hedonic scoring (Grok)
675+ | | # 17 emotional states, ~65 raw word scores
700676| |
701- | |-- seed_core .py # Core knowledge loader -- 600+ vocabulary
702- | | # words, self-knowledge, natural patterns ,
703- | | # grammatical role tags, Q&A pairs
677+ | |-- emotional_equations .py # 235 lines -- Stood-down behaviour params (Grok)
678+ | | # 3-tier swear banks, threat/insult vocabularies ,
679+ | | # 17 state parameter sets, conditional routing
704680| |
705- | |-- crawl_learn.py # Autonomous web learner -- Wikipedia +
706- | | # DuckDuckGo, auto-definition, deep links,
707- | | # stemming, emotion tagging
681+ | |-- pain_pleasure_sunday_best.py # 299 lines -- Original Claude version (reference)
682+ | |-- emotional_equations_sunday_best.py # 372 lines -- Original Claude version (reference)
708683| |
709- | |-- define_all.py # Batch definition lookup
684+ | | === MEMORY + STORAGE ===
685+ | |-- memory_store.py # 714 lines -- DuckDB persistent memory
686+ | | # Importance ranking, reorganise, topic map,
687+ | | # emotional banks, decay, promote/demote
710688| |
711- | +-- dan_chat.py # Dan's direct chat interface
689+ | |-- backup_manager.py # 170 lines -- Brain state backup system
690+ | |-- fork_manager.py # 241 lines -- Brain forking/branching
691+ | |-- resource_monitor.py # 180 lines -- VPS resource monitoring
692+ | |-- cost_tracker.py # 175 lines -- API cost tracking
693+ | |
694+ | | === SERVER ===
695+ | |-- online_server.py # 1,549 lines -- HTTP API server (port 8643)
696+ | | # All chat/stats/memory/playbook/strategy endpoints,
697+ | | # ThreadPoolExecutor with 20s timeout, DuckDB backend
698+ | |
699+ | |-- evasion_patch.py # 30 lines -- Response evasion detection
700+ | |
701+ | | === CREATURES (ALIVE integration) ===
702+ | |-- creature_mind.py # 579 lines -- ALIVE creature AI mind
703+ | |-- creature_bridge.py # 217 lines -- Bridge between cortex and creatures
704+ | |
705+ | | === TRAINING ===
706+ | |-- trainer.py # 723 lines -- Left hemisphere trainer (Bible, morality)
707+ | |-- trainer_right.py # 307 lines -- Right hemisphere trainer (logic, darkness)
708+ | |-- trainer_cortex.py # 474 lines -- Cortex mind trainer
709+ | |-- cortex_feeds.py # 379 lines -- Feed generation for cortex training
710+ | |-- bulk_generator.py # 750 lines -- Bulk vocabulary pipeline (GLM format)
711+ | |
712+ | | === SEEDERS + UTILITIES ===
713+ | |-- seed_brain.py # 361 lines -- Initial brain seeder
714+ | |-- seed_core.py # 1,106 lines -- Core knowledge loader (600+ words)
715+ | |-- crawl_learn.py # 405 lines -- Autonomous web learner
716+ | |-- define_all.py # 67 lines -- Batch definition lookup
717+ | +-- dan_chat.py # 113 lines -- Dan's direct chat interface
712718|
713719|-- live/
714- | |-- index.html # Cortex Dashboard -- split hemisphere chat,
715- | | # LEFT/CORTEX/RIGHT mode switching,
716- | | # POS colour-coded output, quality badges,
717- | | # stage badges, knowledge gaps overlay,
718- | | # 8 monitoring panels, IPFS save
719- | |
720- | +-- proxy.php # PHP proxy to Python server
720+ | |-- index.html # Cortex Dashboard -- split hemisphere chat,
721+ | | # POS colour-coded output, 8 monitoring panels
722+ | +-- proxy.php # PHP proxy to Python server
721723|
722- |-- playbooks/ # Stage-specific behaviour rules
723- | |-- stage_0_stranger.txt # EQUATION: T>E>W>F>I
724- | |-- stage_1_smalltalk.txt # EQUATION: F>E>T>I>W
725- | |-- stage_2_rapport.txt # EQUATION: F>I>E>H>T
726- | |-- stage_3_trusted.txt # EQUATION: H>F>E>S>T
727- | +-- stage_4_inner_circle.txt # EQUATION: H>P>F>M>S
724+ |-- playbooks/ # Stage-specific behaviour rules
725+ | |-- stage_0_stranger.txt # EQUATION: T>E>W>F>I
726+ | |-- stage_1_smalltalk.txt # EQUATION: F>E>T>I>W
727+ | |-- stage_2_rapport.txt # EQUATION: F>I>E>H>T
728+ | |-- stage_3_trusted.txt # EQUATION: H>F>E>S>T
729+ | +-- stage_4_inner_circle.txt # EQUATION: H>P>F>M>S
728730|
729- |-- feed/ # Vocabulary feed files (pipe-delimited)
730- | |-- feed_left_5-7.txt # Music, art, virtues, parables, justice
731- | |-- feed_right_5-7.txt # Physics, chemistry, warfare, geopolitics
732- | |-- feed_cortex_5-7.txt # Food, geography, emotions, opinions
733- | +-- feed_gaps_1-11.txt # 11 rounds of diagnostic gap-filling
731+ |-- feed/ # Vocabulary feed files (pipe-delimited)
732+ | +-- feed_gaps_1-11.txt # 11 rounds of diagnostic gap-filling
734733|
735734|-- docs/
736- | |-- ARCHITECTURE.md # Detailed technical architecture
737- | |-- THEOLOGY.md # The Living Word framework
738- | +-- DEVELOPMENT.md # Development timeline and stats
735+ | |-- ARCHITECTURE.md # Detailed technical architecture
736+ | |-- THEOLOGY.md # The Living Word framework
737+ | +-- DEVELOPMENT.md # Development timeline and stats
739738|
740- +-- README.md # This file
739+ +-- README.md # This file
741740```
742741
743- ** Total: 9,500+ lines of deployed code** (plus seeder/utility scripts)
742+ ** Total: 20,496 lines of deployed code across 31 Python files **
744743
745744---
746745
0 commit comments