Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stella

A Continuous-State Neural Virtual Machine for Spatially Obfuscated Logic Execution

License: AGPL-3.0 Rust Status

Important

Stella is an experimental research system for continuous-state execution, linear algebraic obfuscation, and fixed-point neural runtime architectures. Specifications and implementations are subject to ongoing refinement.


Stella investigates a non-von Neumann execution model designed to execute deterministic computations within continuous, encrypted state spaces. Rather than evaluating sequential instructions across addressable registers and program counters, Stella compiles source programs into dense weight matrices governing fixed-point dynamical systems.

At runtime, machine state persists as continuous activation vectors mapped over recurrent linear transformations and bounded non-linear transfer functions. The execution semantics prevent external inspection of intermediate instruction boundaries, control-flow graphs, and data-flow paths without possession of the private geometric decoding transformation.

This repository provides the reference implementation of the Stella toolchain, comprising the frontend parser, intermediate representations, matrix compiler, affine basis obfuscation passes, and runtime engines.


Research Objectives

  1. Continuous-State Execution: Transforming discrete arithmetic and conditional control flow into continuous recurrent matrix projections over deterministic fixed-point fields.
  2. Attractor-Based Control Flow: Realizing branching, synchronization, and state retention through dynamical attractor basins and phase transitions rather than discrete jump instructions.
  3. Isomorphic Basis Obfuscation: Mapping linear operator manifolds through conjugate transformation pairs ($W' = P^{-1} W P$) to disperse semantic structures across the coordinate space while preserving observational equivalence.
  4. Side-Channel Mitigation: Coupling non-computational orthogonal subspaces to irrational non-periodic orbits, eliminating static correlation in physical power and electromagnetic radiation profiles.
  5. Deterministic Signal Propagation: Modeling discrete pipeline stages as discrete-time dynamical systems with bounded propagation delays and exact integer fixed-point convergence.

Architecture

graph TD
    Source[".stl Source Code"] --> Parser["Frontend Parser (stella_frontend)"]
    Parser --> AST["Abstract Syntax Tree"]

    subgraph "Compilation Pipeline (stella_compiler)"
        AST --> Layout["Symbol Resolution & Layout Generation"]
        Layout --> Synth["Synaptic Matrix Synthesis"]
        Synth --> Obf["Isomorphic Basis Transformation & Obfuscation"]
    end

    Obf --> Binary[".stella Binary Artifact"]
    Obf --> Key[".key Transformation Descriptor"]

    subgraph "Execution Pipeline (stella_core & stella_cli)"
        Input["Logical Input Vector"] --> Encoder["Input Encoder (stella io)"]
        Encoder --> EncodedState["Transformed State Vector"]
        EncodedState --> Engine["Propagation Engine (CPU / Vulkan Backend)"]
        Binary --> Engine
        Engine --> ObfOutput["Transformed Terminal State"]
        ObfOutput --> Decoder["Output Decoder (stella io)"]
        Key --> Decoder
        Decoder --> Output["Logical Output Vector"]
    end
Loading

Mathematical Formulation

The core execution step updates the system state vector $S_t \in \mathbb{Q}^{N}$ on each discrete time step $t$ according to:

$$S_{t+1} = \sigma\left(W \cdot S_t + B\right)$$

Where:

  • $W \in \mathbb{Q}^{N \times N}$ is the recurrent synaptic connection matrix.
  • $B \in \mathbb{Q}^{N}$ is the bias offset vector.
  • $S_t \in \mathbb{Q}^{N}$ represents the active state across input terminals, internal nodes, and output terminals.
  • $\sigma(x) = \min(1, \max(0, x))$ denotes the saturating linear activation function.

Numerical stability is maintained through a Q32.32 fixed-point representation, ensuring identical algebraic results across target architectures independent of host floating-point rounding modes.

Basis Transformation & Obfuscation

Given a canonical circuit description $(W, B)$, the compiler derives an obfuscated representation by selecting an affine transformation $(P, D, T)$ over the hyperoctahedral group $\mathbb{Z}_2^N \rtimes S_N$:

$$W' = D^{-1} P^{-1} W P D$$

$$B' = P^{-1} B + T$$

The resulting representation eliminates direct register-to-index correlations, structural sparsity signatures, and known graph topologies without perturbing decoded output values.


Language Specifications

Programs are declared using the Stella DSL (.stl), expressing continuous connections, signal routing, phase transitions, and structural constraints.

Signal Flow and Filtering

terminal in raw_sensor;
terminal out norm_out;
terminal out inv_out;
terminal out emergency_cutoff;

node status_bus : hold;

raw_sensor ~> (
    |> saturate * 1.5 |> relu ~> [norm_out, status_bus],
    |> inv * 0.75 ~> inv_out,
    |> step * 2.0 ~> emergency_cutoff
);

assert stable;
Loading

Phase Automata and Attractor Dynamics

terminal in error_sig;
terminal out ctrl_gain;
terminal out tracking_locked;

node integrator : leak(0.95);

phase ServoController {
    state Acquiring {
        integrator = error_sig * 0.8;
        drift Locked when error_sig < 0.15;
    }

    state Locked {
        integrator = error_sig * 0.1;
        drift Acquiring when error_sig > 0.65;
    }
}

ctrl_gain = state.Acquiring * 0.9 + state.Locked * 0.15;
tracking_locked = state.Locked;

probe "gain", ctrl_gain;
probe "locked", tracking_locked;
Loading

Modular Circuit Templates

circuit FilterNode<decay = 0.85, gain = 1.2>(in raw, out filtered) {
    node acc : leak(0.85);
    acc = raw * gain;
    acc ~> filtered;
}

terminal in sig_a;
terminal in sig_b;
terminal out winner_a;
terminal out winner_b;

inst f_a = FilterNode<0.90, 1.0>(sig_a, winner_a);
inst f_b = FilterNode<0.80, 1.5>(sig_b, winner_b);

compete {
    winner_a;
    winner_b;
} resolve winner_take_all(0.5);

assert stable;
Loading

Toolchain & Usage

Compilation

Compile a .stl source specification into a serialized matrix binary:

# Standard compilation
stella compile examples/basin_servo.stl -o target/basin_servo.stella

# Obfuscated compilation with geometric basis permutation
stella compile examples/basin_servo.stl -o target/basin_servo.stella --obfuscate --pad-size 32

Execution

Execute the compiled matrix using the single-instance runtime or batch execution backends:

# Execute compiled binary with input vector
stella run target/basin_servo.stella 0.12 0.0

# Execute until dynamical stability convergence
stella run target/basin_servo.stella 0.12 0.0 --until-stable

# Execute with private decoding key for obfuscated artifacts
stella run target/basin_servo.stella 0.12 0.0 --key target/basin_servo.key

# GPU-accelerated execution via Vulkan backend
stella run target/basin_servo.stella 0.12 0.0 --gpu

Cryptanalysis Verification

Verify structural resistance against permutation recovery on unpadded modules:

stella disasm examples/basin_servo.stl target/basin_servo.stella

Workspace Crates

Crate Responsibility
stella_core Q32.32 fixed-point arithmetic, dense matrix primitives, and propagation engine
stella_frontend Lexer, parser, AST structures, and symbol resolution
stella_compiler Matrix synthesis, affine basis transformation, and serialization routines
stella_cli Command-line interface and invocation driver
stella_gpu Parallel matrix evaluation backends (Vulkan / WGPU compute pipelines)

Cryptographic and Analysis Resistance

Threat Vector Mitigation Mechanism
Static Binary Inspection Dense continuous representations without instruction boundaries or static opcode sequences.
Control-Flow Reconstruction Control-flow graphs are unified into single-node recurrent dynamical attractors.
Symbolic Execution Affine basis conjugation and nilpotent projections expand constraint complexity across non-linear equations.
Differential Power Analysis Decoupled orthogonal subspaces evaluate continuous irrational trajectories to randomize power distribution.
Known-Plaintext Structural Attacks State-space expansion through dummy dimensions ($N \ge 32$) rendering permutation search spaces computationally intractable ($N! \ge 2.63 \times 10^{35}$).

License

Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See LICENSE.


Built with 🦀 & ⏳ by Seuriin

About

A continuous-state neural virtual machine executing Turing-complete logic via encrypted geometric noise.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages