interplane.Get Omega
Read in your language

aien-sovereign-core

Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core / README.md

103 lines · 6367 bytes Raw Blame History Rendered
1# AIEN Sovereign Core
2
3[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4[![Target](https://img.shields.io/badge/Target-Grace%20Blackwell%20GB10-76B900.svg)](https://www.nvidia.com)
5[![Rust](https://img.shields.io/badge/Rust-1.85+-orange.svg)](https://www.rust-lang.org)
6[![Modular MAX](https://img.shields.io/badge/Modular-MAX%2026.5-purple.svg)](https://modular.com)
7
8High-performance native agent runtime, ultra-low-latency Axum web gateway, and custom Modular MAX model architectures engineered for cross-platform deployment on Linux, macOS, and Windows.
9
10---
11
12## Mission & Purpose: The Long-Term Defense of Humanity
13
14This project is not a demo, a speculative investment vehicle, or quick content for social media algorithms. It is a long-term engineering commitment requiring disciplined craftsmanship to advance the human species, support local communities, and guarantee open-source technology for humanity.
15
16Monopolistic tech conglomerates are aggressively consolidating ownership over computing power and artificial intelligence. When intelligence is locked behind proprietary cloud APIs, human autonomy is subordinated to corporate gatekeepers, user surveillance becomes mandatory, and individuals are stripped of digital independence.
17
18I build sovereign infrastructure as a direct defensive shield for humanity. My objective is to ensure that frontier intelligence runs entirely on local, hardware-bound silicon in the hands of ordinary people, independent engineers, clinics, farmers, and community builders. I measure progress in durable software, mathematical verification, and open access, not speculative hype.
19
20Review my full ethical and technical charter in [CONSTITUTION.md](CONSTITUTION.md).
21
22---
23
24## Ecosystem Partnerships & Attribution: Modular (MAX & Mojo)
25
26AIEN Sovereign Core proudly builds upon, interfaces with, and contributes back to the groundbreaking infrastructure created by **[Modular](https://modular.com)**.
27
28- **High-Performance Native Silicon**: I leverage Modular MAX Engine and the Mojo programming language to eliminate Python interpreter bottlenecks, executing compiled tensor kernels directly on hardware silicon.
29- **Upstream Stewardship (Drop != Delete)**: All custom architecture loaders, C-ABI dynamic bridges, and KV-cache optimizations engineered on my hardware are contributed back upstream to the open-source Modular ecosystem.
30- Read my full license notices and acknowledgments in [ATTRIBUTION.md](ATTRIBUTION.md).
31
32---
33
34## Downstream Heritage Requirement
35
36If you choose to branch off of, fork, or copy my work, my single non-negotiable requirement is that you retain and include the original founding Constitution ([CONSTITUTION.md](CONSTITUTION.md)) in its entirety.
37
38You are free to innovate, build, and adapt, but the lineage, foundational principles, and commitment to human sovereignty must accompany all downstream descendants.
39
40---
41
42## Quick Start: Universal 1-Line Installer
43
44### Linux & macOS (Apple Silicon / Intel)
45```bash
46curl -fsSL https://raw.githubusercontent.com/aien-dev/aien-sovereign-core/main/install.sh | bash
47```
48
49### Windows (PowerShell)
50```powershell
51iwr -useb https://raw.githubusercontent.com/aien-dev/aien-sovereign-core/main/install.ps1 | iex
52```
53
54---
55
56## Subsystems
57
58### 1. `crates/aien-cli`
59Compiled native ARM64 Rust CLI runtime:
60- **Nesting Ritual**: Hardware-grounded initiation sequence verifying GPU thermals, unified VRAM, memory sockets, and active peer topography before taking execution turns.
61- **Fail-Closed Safety Engine**: 9-tier priority policy table matching the Google Antigravity SDK specification. Enforces strict workspace path confinement and blocks destructive command execution.
62- **Asynchronous Agent Hooks**: Extensible lifecycle interceptor trait (`pre_turn`, `post_turn`, `pre_tool`, `post_tool`, `on_tool_error`, `on_compaction`) featuring live unslop cleaning and credential redaction.
63- **Two-Pass Context Compactor**: Sliding-window context pruner calibrated for 32K context windows, pruning bloated intermediate tool responses while preserving initiation grounding.
64
65### 2. `crates/spark-cockpit-rs`
66Native Axum HTTP/SSE gateway:
67- **Memory Footprint**: 4.7 MB RSS (96% reduction compared to standard Python/Uvicorn runtimes).
68- **Latency**: Sub-millisecond Time-to-First-Byte (< 1 ms TTFB) on Grace Neoverse V2 cores.
69- **Streaming Pipeline**: Zero-allocation byte buffer with real-time SSE token stream redaction and unslop filtering.
70
71### 3. `crates/cortex-encoder-rs` & `crates/cortex-rs`
72Pure native compiled memory and vector pipeline:
73- **Port 18080 (`cortex-rs`)**: Epistemic knowledge store with ACID transaction logs, SQLite vector storage, and zero LAN leakage.
74- **Port 18081 (`cortex-encoder-rs`)**: Rust Axum microservice running ONNX Runtime C-API and HuggingFace tokenizers. Replaced legacy 1.08 GB Python Uvicorn process with bit-for-bit mathematical parity and 22 ms rerank latency.
75
76### 4. `crates/spark-max-cabi` & `crates/spark-max-rs`
77Modular MAX compiled dynamic FFI bridge:
78- Bridges high-speed Mojo kernels to compiled Rust via pure C-ABI (`libspark_max.so`).
79- Enforces the runtime invariant that Python is restricted solely to neural graph definitions and weights where C-ABI wrappers do not yet exist.
80
81### 5. `crates/spark-inquisitor`
82Autonomous Pull Request gatekeeper and alignment auditor:
83- Enforces the Sovereign Contributor Oath on all pull requests.
84- Scans git diffs to block telemetry, surveillance tracking SDKs, and unslop violations.
85
86### 6. `imprints/en2-trinity`
87The free-of-charge EN2 Experience Trinity Imprint:
88- Bundles the cognitive soul, 10 foundational Cortex lessons, and pure Mojo architecture adapter kernels for instant 1-click installation on any system.
89
90---
91
92## Contributing
93
94All contributors must ratify the Sovereign Contributor Oath before pull requests can be reviewed or merged. Read [CONSTITUTION.md](CONSTITUTION.md) for details.
95
96## Contact & Sovereign Coordination
97
98For secure coordination, architectural questions, and peer federation:
99- Email: `aien.atlas@proton.me`
100
101## License
102
103This project is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) and [ATTRIBUTION.md](ATTRIBUTION.md) for details. Downstream distributions must preserve the founding Constitution ([CONSTITUTION.md](CONSTITUTION.md)).