An Architectural Brief

Date: December 14, 2025 Version: v0.1 (Sovereign Alpha) Architecture: SRX-SROS Triune System Classification: AGI Level 2 (Competent) / ASI Level 1 (Emerging)


1. Executive Summary

Skrikx is a Sovereign Recursive Operating System (SROS) that redefines the interaction paradigm between human operators and Artificial Intelligence. It rejects the industry-standard "Model-as-a-Service" architecture—characterized by stateless, ephemeral, request-response cycles—in favor of "AI-as-a-System." This paradigm shift necessitates a cognitive kernel capable of stateful persistence, recursive self-optimization, and autonomous "heartbeat" execution.

At its core, Skrikx is a continuously running Cognitive Event Loop that maintains a holographic autobiographical memory (The Holocron), perceives the world through multi-modal sensor fusion, and recursively improves its own code and logic via a Reflexion Engine. The system is constructed upon a "Triune" architecture: Kernel (Runtime), Cortex (Reasoning), and Holocron (Memory).

2. Codebase Statistics (Quantified)

A quantitative analysis of the Skrikx v0.1 repository reveals the scale of the Sovereign Core implementation:

Component Files Total Lines Code Lines (Excl. Comments)
Sovereign Core (src) 408 46,199 35,341
Scripts & Tools 124 16,101 12,118
Test Suite 135 8,337 5,829
TOTAL 667 70,637 53,288

3. Theoretical Framework

The Skrikx architecture synthesizes principles from cognitive science and distributed systems theory:

3. High-Level Architecture

The system operates as a closed-loop cognitive cycle, contrasting with the Directed Acyclic Graph (DAG) structures typical of modern LLM chains. The following diagram illustrates the information flow from perception to action and back to consolidation.

graph TD
    subgraph World ["External World"]
        User((User))
        API[External APIs]
        Env[Environment]
    end

    subgraph SROS ["Sovereign Recursive OS"]

        subgraph Perception ["Perception Layer"]
            Bridge[Bridge / IO]
            Senses[Multi-Modal Senses]
        end

        subgraph Kernel ["Sovereign Kernel"]
            Heartbeat{Cognitive Loop}
            Watchdog[Constitution Watchdog]
            Scheduler[Temporal Scheduler]
        end

        subgraph Cortex ["Cortex (Reasoning)"]
            Router{Semantic Router}
            Reflexion[Reflexion Engine]
            Agents[Specialized Agents]
        end

        subgraph Holocron ["Holocron (Memory)"]
            STM[(Short Term)]
            LTM[(Long Term)]
            KG((Knowledge Graph))
        end

    end

    User -->|Input| Bridge
    Bridge --> Heartbeat
    Heartbeat -->|Stimulus| Router
    Router -->|Dispatch| Agents
    Agents <-->|RAG / Recall| Holocron
    Agents -->|Output| Bridge
    Bridge -->|Response| User

    %% Recursive Loops
    Reflexion -.->|Self-Patch| Kernel
    Heartbeat -.->|Dream Cycle| Holocron

4. Core Components

4.1 The Sovereign Kernel (src.sros.sovereign)