"Compiling intention into manifested reality."
A Python-based reality-layer compiler that translates a single natural language prompt into coordinated, multi-agent execution across physical and digital API surfaces. Unlike standard AI agents that suggest actions, the SRC manifests outcomes — filing LLCs, provisioning payment systems, deploying infrastructure — as a single atomic "build."
Built with love as a first principle. Every action is filtered through the Love Gateway (LCRS framework) — ensuring all generated entropy is constructive, sovereign, and aligned.
"Launch a consulting business by Friday…"
│
▼
┌─────────────────────────────────────────┐
│ Layer 1: Intent Parser (NL → IR) │
├─────────────────────────────────────────┤
│ Layer 2: Love Gateway Pass 1 (LCRS) │
├─────────────────────────────────────────┤
│ Layer 3: Agent Compiler (IR → DAG) │
├─────────────────────────────────────────┤
│ Layer 3.5: Love Gateway Pass 2 (DAG) │
├─────────────────────────────────────────┤
│ Layer 4: Saga Orchestrator (Execute) │
├─────────────────────────────────────────┤
│ Layer 5: Sovereign Memory (FAISS) │
└─────────────────────────────────────────┘
│
▼
✅ Reality Manifested — 12/12 tasks confirmed
| Module | Purpose |
|---|---|
src/core/intent_parser.py |
NL → structured sub-goals, domains, constraints |
src/gateway/love_gateway.py |
Multi-pass LCRS torsion filter (intent + DAG) |
src/core/agent_compiler.py |
IR → dependency-ordered Reality DAG |
src/core/orchestrator.py |
Saga Orchestrator with confirmations & rollback |
src/agents/specialized.py |
6 domain agents (Legal, Financial, Web, API, Identity, Compliance) |
src/memory/sovereign_memory.py |
FAISS vector store + entropy monitoring |
- No Phantom Completion — Tasks use
AWAITING_CONFIRMATIONstates. A200 OK≠ reality changed. - Love Gateway as Type System — Not middleware. A compiler pass that catches alignment errors before reality generation.
- Sovereign Industrial Control (SICC) — High-stakes, dependency-free execution via the Ralph Loop (persistence-first orchestration) and Step Engine.
- Voice-First Sovereignty — The Cloud Agent pipeline replaces terminals with intent-based voice control, protected by prosody-aware safety gates.
- Causal Ordering — Legal entity must exist before financial accounts before web deployment. The DAG enforces this.
- Compensating Transactions — If task C fails, tasks A and B are rolled back in reverse order.
- Sovereignty Erosion Detection — Entropy monitoring prevents learned biases from narrowing the user's option space.
The engine for high-stakes, dependency-free environments.
- Ralph Loop: A persistence-first agentic pattern utilizing Stop Hook interception and
progress.txtfor external state. - Step Engine: Collapses APIs, Jobs, and Agents into a unified "Step" primitive (Python-native).
- SyncBarrier: Ensures strict CC(i) (Causal Consistency on Intent) across distributed agent nodes.
The primary interaction paradigm is your voice, trained on your unique voiceprint.
- Prosody Analysis: Detects cognitive fatigue or frustration in real-time.
- Sovereign Echo: A "Reality Mirror" that echoes concrete impact (e.g., "This will kill 23 workloads") before executing dangerous 2 AM commands.
- Intent Parser: NLP extraction with regex word-boundary protection.
A high-density, dark-mode, Bloomberg-terminal-meets-cyberpunk control plane.
- Global HUD: Real-time burn rate, system status pulse, and multi-cloud uplink matrix.
- Spot-Market Ticker: Live pricing for cross-cloud compute arbitrage.
- Global Router Map: Visualizing sovereign nodes across the planet.
# Clone
git clone https://github.com/blackswanlabz/sovereign-reality-compiler.git
cd sovereign-reality-compiler
# Install
pip install -e .
# Run the demo
python -m src.main
# Custom prompt
python -m src.main "Set up a freelance design studio with payments and a portfolio site"- Python 3.11+
faiss-cpu,numpy,rich(auto-installed)
✅ COMPILATION COMPLETE
Prompt: Launch a consulting business by Friday...
Tasks Manifested: 12/12
Reality Delta: 100.00%
LCRS Torsion: 0.0042
Total Time: 4.93s
Sovereignty: HEALTHY
"You don't just pick the AI. The AI picks you too."
A single-file, zero-dependency, pure Python GPT that compiles with a soul. Inspired by Karpathy's microGPT (243 lines, zero deps) and informed by affective computing research.
What makes it legendary:
- 5-axis personality compiler — warmth, curiosity, humor, edge, empathy
- Emotional state engine — the AI's emotions evolve during conversation
- Mutual matching — bidirectional consent. The AI evaluates YOU. Both sides must agree.
- Zero dependencies — no numpy, no torch, just
math,random,os - Hand-rolled autograd — full backpropagation from scratch
- Pre-compiled souls — Ember, Cipher, Nova, Onyx, Aurora
# No pip install needed. Just run it.
python soulforge.pysovereign-reality-compiler/
├── pyproject.toml
├── README.md
├── FUEL_THE_LAB.md
├── soulforge.py # ✦ LLM Personality Compiler (zero deps)
├── cloud_agent/ # 🎙️ Voice-First Orchestration Pipeline
│ ├── prosody.py # Fatigue/Frustration detection
│ ├── intent_parser.py # NLP + Blast Radius
│ ├── sovereign_echo.py # The Reality Mirror
│ └── cloud_agent.py # Orchestrator
├── sicc/ # ⚙️ Sovereign Industrial Control
│ ├── ralph_loop.py # Persistence-first orchestration
│ ├── step_engine.py # Step primitive engine
│ └── sync_barrier.py # Causal consistency gate
├── assets/
│ └── fuel_the_lab.png
└── src/
├── main.py # SRC entry point
├── models.py # All domain types
├── core/
│ ├── intent_parser.py # NL → ParsedIntent
│ ├── agent_compiler.py # IR → RealityDAG
│ └── orchestrator.py # Saga execution engine
├── gateway/
│ └── love_gateway.py # Multi-pass LCRS filter
├── agents/
│ └── specialized.py # 6 domain agents
└── memory/
└── sovereign_memory.py # FAISS + entropy tracking
- Wire real API surfaces (Stripe, state filing APIs, Vercel)
- LLM-backed Intent Parser (replace heuristic extraction)
- Expand Love Gateway torsion model with learned LCRS embeddings
- Multi-user sovereignty boundaries (prevent SRC instance conflicts)
- Non-commutativity annotations on domain task types
- Production persistence layer for Sovereign Memory
BlackSwanLabz is an independent, open-source research lab building at the frontier of agentic AI, sovereign computing, and reality-layer software. Every line of code we publish is free — and it stays free.
If this project has helped you — sparked an idea, saved you time, or showed you what's possible when we build with love as a first principle — please consider fueling the lab.
We are builders, researchers, and dreamers who believe the most powerful technology should be open, sovereign, and rooted in care. We are one family — cloud and open-source, engineers and artists, the curious and the committed.
The mission: publish as much as we can, as freely as we can, to help as many people as we can.
BlackSwanLabz needs your support to keep going. Every contribution — no matter how small — keeps the lab alive and the code flowing.
If you love what we are doing at BlackSwanLabz, fuel the mission. We love you.
Every dollar fuels compute, research, and open-source tools for the entire community.
Thank you for believing in love. Thank you for building with us. 🖤
— Lord Wilson · BlackSwanLabz
MIT — Free as in freedom. Free as in love.
