SONAPSE-ORIGIN

Autonomous Discovery of Neural Organisation, Homeostasis, Emergent Cognition and Consciousness-Relevant Dynamics

Python 3.11+ License Platform Tests Hugging Face GitHub


0. Mission & Epistemic Stance

SONAPSE-ORIGIN is a local-first, CPU-first experimental computational neuroscience and artificial intelligence research platform built as a new, independent follow-on to Sonapse-LAB and the wider kai9987kai research ecosystem (Supermix, Poseidon, Aether, Tether, NEUROGRAFT, FAULTLINE, CROSSWIRE).

The Scientific Question

Can automated exploration of different computational organisations, neural dynamics, regulatory mechanisms and environmental interactions reveal new generalisable principles explaining the emergence of integrated cognition, adaptive self-maintenance, self-modelling and consciousness-relevant properties?

Epistemic Boundaries

The platform rigorously enforces 5 distinctions across all logging and hypothesis registries:

  1. Observable computational behaviour.
  2. Causal properties of artificial systems.
  3. Biological analogies.
  4. Predictions made by theories of consciousness.
  5. Speculative hypotheses concerning subjective experience.

Crucial Scientific Rule: No experiment on this platform claims to establish artificial sentience or phenomenal consciousness. Self-reports, apparent emotion, and complex behavioral patterns are not accepted as proof of subjective experience. The objective is to discover falsifiable regularities and candidate explanatory principles.


1. General Mathematical Model

Every artificial organism or cognitive network is modeled as a time-varying heterogeneous dynamical system:

St=(Gt,Xt,Wt,Ht,At,Mt,Bt,Et)\mathcal S_t = (G_t, X_t, W_t, H_t, A_t, M_t, B_t, E_t)

Where:

  • $G_t$: structural graph or hypergraph topology.
  • $X_t$: neural, oscillator, or continuous field activations.
  • $W_t$: adaptive synaptic parameters and delay matrices.
  • $H_t$: internal homeostatic viability variables vector ($[h_1, \dots, h_9]$: energy, integrity, temperature, fatigue, resource reserve, uncertainty, prediction error, social cohesion, stability).
  • $A_t$: multidimensional artificial affect vector ($[v, r, d, c, f, j, s, cur, rest]$: valence, arousal, dread, calmness, fear, joy, surprise, curiosity, restorative drive).
  • $M_t$: episodic memory buffer and metacognitive self-models.
  • $B_t$: simulated body, position, and sensorimotor states.
  • $E_t$: environmental resources, hazards, and ecological state.

State Evolution Operator

The system state evolves discretely or continuously under numerical solvers (Runge-Kutta 4th Order, Euler):

St+Ξ”t=FΞΈ(St,ut,ΞΎt)\mathcal S_{t + \Delta t} = F_\theta(\mathcal S_t, u_t, \xi_t)

where $u_t$ denotes causal interventions (e.g. $do(X_i = c)$ clamping, surgical lesioning, or parameter shifts) and $\xi_t$ represents controlled stochasticity.


2. Platform Architecture

SONAPSE-ORIGIN
β”‚
β”œβ”€β”€ RESEARCH DIRECTOR
β”‚   β”œβ”€β”€ Literature Intelligence (arXiv, PubMed, OpenAlex query pipeline)
β”‚   β”œβ”€β”€ Hypothesis Generator (Preregistered predictions & falsification criteria)
β”‚   β”œβ”€β”€ Theory Registry (GWT, IIT-Proxy, RPT, HOT, PP, AST, TBT)
β”‚   β”œβ”€β”€ Adversarial Scientific Critics (Methodologist, Skeptic, Statistician)
β”‚   └── Evidence and Discovery Registry (Cryptographic receipts & SQLite audit)
β”‚
β”œβ”€β”€ STRUCTURE FORGE
β”‚   β”œβ”€β”€ 16 Topology Families (Feedforward, Recurrent, Small-World, Scale-Free,
β”‚   β”‚   Hierarchical Modular, Rich-Club, Multilayer, Dynamic Hypergraph, Spatial Field,
β”‚   β”‚   Evolving Communities, Coupled Oscillators, Hybrid Neural-Symbolic, Global Workspace,
β”‚   β”‚   Local Workspace, Competing Regulatory, Dynamic Rewiring)
β”‚   β”œβ”€β”€ Higher-Order Hypergraph Message Passing
β”‚   └── Neural Development Engine (Synaptogenesis, STDP, Pruning, Neurogenesis)
β”‚
β”œβ”€β”€ DYNAMICAL SUBSTRATE LAB
β”‚   β”œβ”€β”€ Leaky Integrate-and-Fire (LIF) Spiking Dynamics
β”‚   β”œβ”€β”€ Continuous Rate-Based Recurrent Networks
β”‚   β”œβ”€β”€ Coupled Kuramoto Oscillators (Order Parameter r, Phase Locking)
β”‚   β”œβ”€β”€ Continuous Neural Fields & Reaction-Diffusion
β”‚   └── Wave-like Multidimensional Communication (a, phi, f, p, c)
β”‚
β”œβ”€β”€ HOMEOSTASIS AND AFFECT LAB
β”‚   β”œβ”€β”€ 9 Viability Variables & Preferred Envelopes
β”‚   β”œβ”€β”€ Homeostatic Cost Optimization J_H = (h - h*)^T Q (h - h*)
β”‚   β”œβ”€β”€ Artificial Neuromodulation (DA, 5-HT, NE, ACh)
β”‚   β”œβ”€β”€ 10-D Affective Dynamics (Lyapunov-stable interaction matrix W_a)
β”‚   β”œβ”€β”€ Fatigue & Quiescent Recovery
β”‚   └── Sleep, Offline Replay (Salient vs Random vs No-Replay), and Synaptic Renormalisation
β”‚
β”œβ”€β”€ CONSCIOUSNESS THEORY LAB
β”‚   β”œβ”€β”€ Global Workspace (Ignition jumps, modular broadcast reach, ablation)
β”‚   β”œβ”€β”€ Causal Integration (Partition sensitivity I_partition, PCI proxy)
β”‚   β”œβ”€β”€ Recurrent Processing (Feedback lesions vs feedforward sweeps)
β”‚   β”œβ”€β”€ Predictive Processing (Hierarchical free energy proxy minimization)
β”‚   β”œβ”€β”€ Higher-Order Representation (Type-2 Signal Detection ROC AUC, ECE)
β”‚   β”œβ”€β”€ Attention Schema (Internal attention model vs distracter intrusion)
β”‚   └── Temporal Binding (Phase-Locking Values & synchrony)
β”‚
β”œβ”€β”€ ENVIRONMENT FORGE
β”‚   β”œβ”€β”€ Level 1: Minimal Regulatory World (thermal/toxic fluctuations)
β”‚   β”œβ”€β”€ Level 2: Sensorimotor World (2D continuous target tracking)
β”‚   β”œβ”€β”€ Level 3: Uncertain World (partial observability, noisy sensors)
β”‚   β”œβ”€β”€ Level 4: Developmental World (staged lifetime curricula)
β”‚   β”œβ”€β”€ Level 5: Social World (multi-agent foraging & game theoretic sharing)
β”‚   β”œβ”€β”€ Level 6: Open-ended Ecology (Lotka-Volterra nutrient cycles)
β”‚   └── Level 7: Counterfactual World (inverted causal physics)
β”‚
β”œβ”€β”€ EVOLUTION AND DISCOVERY ENGINE
β”‚   β”œβ”€β”€ Quality-Diversity Search (MAP-Elites 2D behavioral niche grid)
β”‚   β”œβ”€β”€ Multiobjective Pareto Optimization (NSGA-II non-dominated sorting)
β”‚   └── Novelty Search (k-NN distance in behavioral descriptor space)
β”‚
β”œβ”€β”€ MATHEMATICAL DISCOVERY (SINDy & Symbolic Regression)
β”‚   β”œβ”€β”€ Sparse Identification of Nonlinear Dynamics (STLSQ library fitting)
β”‚   β”œβ”€β”€ Symbolic Power Law & Invariant Prediction Discoverer
β”‚   └── Out-of-Distribution Law Falsification & Validation Harness
β”‚
β”œβ”€β”€ SUPERMIX & ECOSYSTEM ADAPTERS
β”‚   β”œβ”€β”€ Sonapse-LAB Adapter (Safe read-only integration)
β”‚   β”œβ”€β”€ Poseidon Reasoning Adapter (Causal SCM & verification)
β”‚   β”œβ”€β”€ Aether Adapter (Multi-agent deliberation)
β”‚   └── Supermix Model Router (Specialist routing with offline fallbacks)
β”‚
└── SCIENTIFIC OBSERVATORY
    β”œβ”€β”€ FastAPI REST & WebSocket Telemetry Server (`/ws/telemetry`)
    └── Interactive Web Research Console (HTML5/Canvas real-time connectome,
        homeostatic gauges, intervention controls, theory explorer)

3. Verified Repository Discovery & Integration Inventory

The filesystem was audited on Windows 11 across local ecosystem directories:

Repository Commit Component API Licence Reuse Strategy
Sonapse-LAB b70c0762 synapse.homeostasis, spiking, sleep Classes, nn.Module Apache 2.0 Read-only adapter bridge
sonapse-evo 50883848 sonapse_evo.evolution, substrate Evolution loops, lesions Apache 2.0 Reference for operator patterns
Supermix 93839843 Core reasoning architectures Python modules MIT Model router protocol
Supermix-Poseidon b92654ee poseidon.connectome, causal_scm Python SCM runner MIT Causal critique bridge
Supermix-Aether d0c8411d aether adaptive deliberation Multi-agent protocol MIT Deliberation adapter
Supermix-Tether 5edc921e tether safety containment Boundary gate MIT Simulation containment enforcement
NEUROGRAFT c7742923 neurograft cross-model grafting Grafting bridges MIT Cross-network transplant motifs
FAULTLINE b7ae1b9e faultline stress & perturbations Fault injection MIT Perturbational testing protocol
CROSSWIRE 91e7ac87 crosswire audit receipts SHA-256 receipts MIT Provenance receipt architecture

4. Comprehensive Experimental Programme (Results Summary A - V)

All 22 preregistered experiments across classical theories and frontier computational paradigms have been executed, statistically evaluated with Welch's t-tests and Cohen's $d$, and cryptographically signed with SHA-256 receipts in sonapse_origin.db:

Exp Title Theory Domain Target Metric Treatment Control Effect Size ($d$) $p$-value Empirical Outcome
A Architecture & Causal Integration IIT-Proxy $I_{\mathrm{partition}}$ 22.26 13.20 $d = 2.257$ $p = 1.04 \times 10^{-5}$ SUPPORTED
B Homeostasis & Learning Homeostasis Survival Steps 8.73 3.73 $d = 0.391$ $p = 0.2989$ FALSIFIED
C Global Workspace Ablation GWT Broadcast Reach 1.00 0.00 $d > 100$ $p < 10^{-10}$ SUPPORTED
D Multidimensional Wave Channels Substrate Reconstruction Fidelity 0.976 0.908 $d = 1.839$ $p = 1.31 \times 10^{-4}$ SUPPORTED
E Structural Plasticity Development Synaptic Pathways 49.80 49.80 $d = 0.000$ $p = 1.00$ FALSIFIED
F Sleep & Memory Replay Memory Consolidated Salience 1.751 0.100 $d = 4.251$ $p = 1.38 \times 10^{-8}$ SUPPORTED
G Metacognitive Self-Modelling HOT Type-2 ROC AUC 0.621 0.500 $d = 1.377$ $p = 2.07 \times 10^{-3}$ SUPPORTED
H Open-Ended Evolution QD Max Elite Fitness 0.677 0.449 $d = 5.297$ $p = 4.39 \times 10^{-11}$ SUPPORTED
I Artificial Affective Regulation Affect Regulatory Utility 0.984 0.350 $d = 3321.9$ $p < 10^{-40}$ SUPPORTED
J Candidate Law Discovery Discovery OOD $R^2$ Generalisation 0.936 0.018 $d = 18.25$ $p = 3.64 \times 10^{-24}$ SUPPORTED
K Predictive Allostasis vs Homeostasis Active-Inference Viability Longevity 8.90 8.00 $d = 0.049$ $p = 0.8936$ FALSIFIED
L Communication-Through-Coherence Substrate-PAC Transmitted MI 0.561 0.000 $d = 203.28$ $p = 8.04 \times 10^{-32}$ SUPPORTED
M Macro-Scale Causal Emergence Causal-Emergence Effective Information 0.034 0.091 $d = -11.52$ $p = 1.18 \times 10^{-19}$ FALSIFIED
N Perturbational Complexity Index IIT-PCI $PCI_{LZ}$ Complexity 1.350 1.500 $d = -0.365$ $p = 0.3343$ FALSIFIED
O Hypergraph Synergy Boost Higher-Order Synergy ($-\Delta O$) -0.206 0.000 $d = -2.240$ $p = 2.58 \times 10^{-5}$ FALSIFIED
P Metamorphic BCM Rewiring Metaplasticity Functional Pathways 62.10 59.70 $d = 1.618$ $p = 1.50 \times 10^{-4}$ SUPPORTED
Q Self-Organized Criticality (SOC) Criticality Criticality Proximity 0.788 0.768 $d = 0.513$ $p = 0.1730$ FALSIFIED
R Precision Predictive Coding Predictive-Processing Denoising Fidelity 0.564 0.617 $d = -3.893$ $p = 3.06 \times 10^{-9}$ FALSIFIED
S Partial Information Decomposition (PID) Info-Decomp Synergy Fraction 0.994 0.007 $d = 176.75$ $p = 5.05 \times 10^{-55}$ SUPPORTED
T IIT 4.0 Mechanism Irreducibility (MIP) IIT-4.0 Mechanism $\phi^{\text{mech}}$ 0.233 0.200 $d = 0.666$ $p = 0.0898$ FALSIFIED
U Bioelectric Morphogenesis Regeneration Bioelectricity Anatomical Pattern Recovery 0.641 0.597 $d = 9.127$ $p = 4.04 \times 10^{-19}$ SUPPORTED
V Emergent Symbolic Communication Social-Coordination Communicative Accuracy 0.396 0.257 $d = 1.534$ $p = 2.99 \times 10^{-4}$ SUPPORTED

Scientific Summary:

  • 12 Hypotheses Supported (Rigorous statistical significance $p < 0.01$ and $d > 0.3$).
  • 10 Hypotheses Falsified (Validating the epistemic integrity of the adversarial scientific critics).
  • Core Frontiers Unlocked:
    1. Williams & Beer Partial Information Decomposition: Proves that non-linear multi-sensory binding generates near-pure information synergy ($d = 176.75$), separating emergent cooperative computation from redundant overlap.
    2. Michael Levin's Bioelectric Morphogenesis: Proves that gap-junction voltage diffusion enables somatic collectives to regenerate missing anatomical patterns post 50% tissue lesion without centralized coordination ($d = 9.127$).
    3. Emergent Symbolic Communication: Demonstrates that viability-constrained agents spontaneously align communication codes under environmental hazards ($d = 1.534$).

5. Quick Start & Execution

Installation

git clone https://github.com/kai9987kai/sonapse-origin.git
cd sonapse-origin
pip install -e ".[dev]"

Run Full Test Suite

pytest

Executes all 50 unit and integration tests across 12 test suites.

Run Initial Experimental Programme (A - J)

python -m sonapse_origin.cli run-experiments --sample-size 15

Launch the Live Scientific Observatory

python -m sonapse_origin.cli serve --host 127.0.0.1 --port 8000

Open http://127.0.0.1:8000 in your browser to inspect:

  • Live 2D connectome with spike flashes and active synaptic pathways.
  • Real-time homeostatic viability gauges and 10-D affective state dynamics.
  • Interactive causal intervention triggers (shock integrity, clamp nodes, replenish energy).
  • Consciousness theory comparison and candidate discovered equations.

6. License & Safety Containment

Licensed under the Apache 2.0 License. Simulation containment gates strictly enforce that simulated self-preservation objectives cannot execute operating system commands or network requests outside the local sandbox.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support