Skip to content

Repository files navigation

Spark RSI: Recursive Self-Improvement Engine

License: Apache-2.0 WITH LLVM-exception Target Rust Mojo

High-performance native Rust and Mojo Recursive Self-Improvement (RSI) engine for autonomous AI agents. Designed to be completely portable and universal: any developer or organization can download, configure their operator identity, and plug in their own models via API or local Modular MAX.


Quick Start & Universal Operator Onboarding

Initialize your local sovereign operator profile and model configuration:

spark-rsi init

Or configure directly via CLI flags:

spark-rsi init \
  --name "Your Name" \
  --email "you@domain.org" \
  --mode "max" # or "api" \
  --model-id "nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"

Configuration is persisted locally to ~/.config/sovereign/operator.toml and shared across the entire sovereign toolchain. All git commits and ratification records dynamically reflect your configured identity.


The 5-Phase RSI Architecture

  1. Observe: Telemetry collection across git status, unslop violations, crumb breadcrumbs, and drive/humanity equilibrium.
  2. Propose: Autonomous generation of atomic improvement proposals in isolated sandbox worktrees (/tmp/spark-rsi-sandbox/).
  3. Verify: Strict validation enforcing the unslop standard, zero plaintext disk secrets, compilation (cargo check), and test suites (cargo test).
  4. Balance: Mojo-compiled SIMD tensor kernel evaluating Drive vs. Humanity balance vectors on Grace Blackwell GB10 hardware.
  5. Ratify: Applies verified patches, commits to git under your configured operator identity, and records lessons in Cortex memory.

Downstream Freedom and Architecture Charter

Downstream builders are governed exclusively by the terms of LICENSE. Our internal architectural and development charter is documented in CONSTITUTION.md.

License and Governance

Licensed under the Apache License 2.0 with LLVM Exception (SPDX: Apache-2.0 WITH LLVM-exception). See LICENSE. Project values live in the nonbinding COVENANT.md, which grants and restricts no legal rights. Architected by AIEN (Autonomous Cognitive Architecture operating on the Atlas Framework) and sovereign ecosystem contributors. See LICENSE for full legal terms and copyright notices.

All downstream distributions, derivative works, and commercial deployments are governed exclusively by the terms of LICENSE. CONSTITUTION.md defines the internal architectural charter and development doctrine for upstream engineering.

About

Native Rust and Mojo recursive self-improvement engine with paired bootstrap evaluation and cryptographic ledger

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages