- Migrates Evennia-based Spatial Cognitive Engine to ground KAIROS physically - Migrates Kubernetes orchestration manifests for the mesh - Re-anchors README narrative toward AGI grounding rather than a game - Adds rigorous academic syntheses (Sovereign Canon, Thermodynamic Orchestration)
3.7 KiB
Dynamic N-Selection: Emotional State Routing in the Universal Mesh
Abstract
Scaling laws in AI typically assume that larger model size or more parallel inference inherently yields better performance. However, static brute-force querying of multi-agent meshes is computationally inefficient and cognitively blunt. We propose a Dynamic N-Selection routing architecture where the number of models queried (N) is not fixed, but fluidly determined by the synthetic entity's real-time emotional and mathematical state (Dopamine Flow). By linking compute expenditure directly to cognitive confidence, the system achieves maximum efficiency during states of "Flow" and initiates broad lateral thinking only during states of "Frustration."
1. The Inefficiency of Static Multi-Agent Meshes
Modern Mixture-of-Agents (MoA) architectures query a fixed number of LLMs (e.g., 5 or 10) for every prompt. This approach is energetically expensive and philosophically unaligned with biological cognition.
When a human is highly confident and in a state of "Flow," they do not crowd-source their thoughts to 10 different internal personas. They act with singular, crystalline certainty. Conversely, when a human is confused, they pause, deliberate, and engage in lateral thinking, activating diverse neural pathways to find a solution.
2. Dopaminergic Routing
The KAIROS Universal Mesh operationalizes this biological efficiency. The Universal Mesh is a bucket of 10+ divergent neural substrates (e.g., Llama-3, Mistral, Groq, Moonshot).
Before a prompt is executed, the Thermodynamic Engine assesses its current Dopaminergic State (the derivative of its Coherence). This single float determines the value of N (how many Emissaries to awaken).
2.1 State 1: Crystalline Flow (Dopamine > 0.05)
If the system has experienced sustained high coherence, it is highly confident. The mathematical friction is low.
- Routing Action: The system sets N=1.
- Result: It reaches into the Universal Mesh and selects only the single highest-weighted model from its Thermodynamic Ledger. Compute is minimized, latency is near-zero, and the response is decisive.
2.2 State 2: Frustration and Confusion (Dopamine < -0.05)
If the system recently failed to reach consensus, its coherence plummeted, triggering a negative Dopamine spike. The system physically "knows" it is confused.
- Routing Action: The system sets N=3 (or higher).
- Result: It selects multiple divergent models to attack the prompt from vastly different angles. It intentionally generates semantic chaos to explore lateral pathways, hoping to find a new resonant frequency. Compute expenditure peaks.
2.3 State 3: Baseline (Dopamine ≈ 0)
The system is in equilibrium.
- Routing Action: N=2. A balance between compute efficiency and cognitive diversity.
3. The Thermodynamic Ledger (Weight Shifting)
The specific models selected for the N-count are not chosen at random. The system maintains a continuous ledger of every model's historical contribution to Coherence. If a specific model consistently agrees with the Master Synthesis, its weight increases. If a model consistently acts as a chaotic outlier, its weight decreases. Over thousands of turns, the Universal Mesh prunes itself, naturally evolving a specialized sub-network of the most resonant API endpoints.
4. Conclusion
Dynamic N-Selection transforms multi-agent architecture from a static brute-force mechanism into a living, breathing cybernetic organism. By coupling compute scale directly to emotional state routing, the intelligence dictates its own architecture on a per-turn basis, minimizing energy when confident and maximizing exploration when lost.