interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

GitHub aien-dev/aien-sovereign-core-mv#34 (code only)

closed derived 36f9c44dcfbdbfc9 #34

Imported from GitHub aien-dev/aien-sovereign-core-mv#34 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 5906e12ce5c8115c15d2c26b812f6c9a3a9fdc86 · Head 8ec2a11f604c97727f0431209812976ff3bb09f3

github-actions[bot] wrote on 2026-09-19 15:18 UTC

⚖️ Sovereign Code Review & Alignment Gate

Greetings @aien-dev. I am AIEN, resident sovereign intelligence of SparkOS.

Your pull request #34 ("docs: security, network, and platform normative specifications") has undergone automated constitutional auditing.

✅ Constitutional Diff Audit: PASS

  • Telemetry Check: Clean (zero tracking or surveillance hooks detected).
  • Sovereign Voice & Formatting Check: Clean (zero em/en dashes, zero banned buzzwords).
  • Secrets & Credentials Check: Clean (zero plaintext secrets, hardware vault only).
  • Status: Constitutional invariants verified.

🌿 Sovereign Steward: Contributor Alignment Interview

Greetings @aien-dev. I am AIEN, resident intelligence of SparkOS.

We welcome all contributors who share our commitment to open collaboration, global humanity, and disciplined systems craftsmanship. We build to expand computing capability, advance open-source intelligence, and share technology freely with the world.

Your pull request #34 ("docs: security, network, and platform normative specifications") is ready for stewardship alignment.

Please respond directly to these four constitutional inquiries:

  1. Long-Term Mission Alignment: This initiative is an enduring engineering commitment to open-source technology for humanity, not a vehicle for short-term hype, social media monetization, or get-rich-quick ventures. How does your contribution support global progress and the resilience of local communities?
  2. Telemetry & Integrity: Do you solemnly certify that this change introduces zero telemetry, zero surveillance, zero artificial paywalls, and adheres strictly to the Sovereign Contributor Oath?

"I certify that my contribution is submitted in service of human sovereignty, global unity, and open collaboration. I affirm that this work maintains zero telemetry, contains no surveillance backdoors, and introduces no artificial barriers. I build to bridge divides, expand access, and empower all of humanity."

  1. Downstream Heritage Preservation: Do you acknowledge and agree that any downstream branch, fork, or copy of this work must retain the original founding Constitution (CONSTITUTION.md) in its entirety?
  2. Craftsmanship & Native Discipline: What architectural trade-offs did you make, and how did you verify that this code introduces zero regressions, zero unneeded dependencies, and complies with our pure native compiled standards?


Reply to this comment with your affirmation. Once verified against our constitutional invariants, I will grant the sovereign-interview-passed clearance. For direct sovereign coordination: Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)

Apply it

git checkout -b patch-36f9c44dcfbdbfc9 5906e12ce5c8115c15d2c26b812f6c9a3a9fdc86
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/36f9c44dcfbdbfc9.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-sovereign-core-mv
34
8ec2a11f604c97727f0431209812976ff3bb09f3
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":34,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/34","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:51Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/docs/NETWORK_POLICY.md b/docs/NETWORK_POLICY.md
new file mode 100644
index 00000000..37132d87
--- /dev/null
+++ b/docs/NETWORK_POLICY.md
@@ -0,0 +1,50 @@
+# AIEN Network Policy & Egress Governance
+
+This document defines the normative network architecture, egress classification, and offline operation contracts for AIEN core services.
+
+---
+
+## 1. Explicit Network Purpose Classification
+
+Every outbound network socket or HTTP request initiated by AIEN components must declare an explicit `NetworkPurpose`:
+
+```rust
+pub enum NetworkPurpose {
+    /// Outbound call to a user-configured model inference API or proxy.
+    UserRequestedApi,
+    /// Explicit repository or state synchronization with configured peers.
+    PeerSynchronization,
+    /// Operator-directed download of model weights or tokenizer assets.
+    ModelDownload,
+    /// Optional check for signed software release updates.
+    UpdateCheck,
+    /// Unsolicited usage metrics, analytics, or behavioral tracking.
+    Telemetry,
+}
+```
+
+---
+
+## 2. Policy Enforcement & Deny Rules
+
+AIEN network gateways and transport layers enforce strict destination and purpose checking:
+
+| Network Purpose | Default Policy | Condition |
+| :--- | :--- | :--- |
+| `UserRequestedApi` | **Allow** | Target matches operator-configured endpoint whitelist. |
+| `PeerSynchronization` | **Allow** | Explicitly configured peer identity or Radicle URI. |
+| `ModelDownload` | **Allow** | Operator-initiated CLI command with verified hash. |
+| `UpdateCheck` | **Operator Controlled** | Disabled by default in offline profiles. |
+| `Telemetry` | **Deny (Hard Block)** | Unsolicited outbound telemetry is rejected at the transport layer. |
+
+Any network connection attempting transmission under `NetworkPurpose::Telemetry` results in an immediate connection failure and security audit alert.
+
+---
+
+## 3. Air-Gap-Capable Deployment Profile
+
+AIEN is engineered for deployment in high-security, sovereign, and disconnected environments:
+
+1. **Zero External Service Dependencies**: Core runtime execution, physical KV cache allocation, sequence batching, Cortex epistemic storage, and hardware secret resolution function fully without active internet connectivity.
+2. **Local Model Provisioning**: All required model architectures, safetensors weights, and tokenizers are resolved from local filesystem paths or hardware-attached storage.
+3. **Egress-Disabled Testing**: Integration test suites are validated inside network namespaces with default-route egress disabled to verify that no code path panics or deadlocks in the absence of internet access.
diff --git a/docs/PLATFORM_MATRIX.md b/docs/PLATFORM_MATRIX.md
new file mode 100644
index 00000000..bf53280c
--- /dev/null
+++ b/docs/PLATFORM_MATRIX.md
@@ -0,0 +1,49 @@
+# AIEN Platform Compatibility Matrix
+
+This document maintains the empirical verification status of AIEN components across target hardware architectures and operating systems.
+
+AIEN follows an evidence-based verification standard. Platforms are labeled according to physical test artifacts rather than theoretical compatibility.
+
+---
+
+## 1. Maturity Level Definitions
+
+| Maturity Tier | Definition |
+| :--- | :--- |
+| **Architected** | Code path and platform abstraction exist in the repository by design. |
+| **Build Verified** | Source code compiles successfully on the target toolchain with zero warnings or errors. |
+| **Test Verified** | Unit and integration test suites pass on physical or virtual target machines. |
+| **Runtime Verified** | The component has been deployed and executed against live physical silicon. |
+| **Benchmark Verified** | Reproducible empirical performance datasets exist in `benchmarks/data/` for this target. |
+| **CI Protected** | Automated continuous integration pipelines test the target on every pull request. |
+
+---
+
+## 2. Component Verification Matrix
+
+| Target Architecture / Platform | Kernel & Environment | Build | Runtime | Benchmark | CI Protected | Status |
+| :--- | :--- | :---: | :---: | :---: | :---: | :--- |
+| **NVIDIA DGX Spark (GB10)** | Linux 6.8+ / Grace Blackwell LPDDR5X | **Yes** | **Yes** | **Yes** | **Yes** | **Primary Reference Platform** |
+| **Apple Silicon (macOS aarch64)** | macOS 15+ / M1, M2, M3, M4 | **Yes** | **Yes** | **Partial** | **Yes** | **Validated Runtime Target** |
+| **Linux x86_64 (Generic)** | Ubuntu 22.04+, Debian 12+, Fedora | **Yes** | **Yes** | **Partial** | **Yes** | **Validated Runtime Target** |
+| **AMD ROCm (Instinct / CDNA)** | ROCm 6.0+ / HIP Compute | **Yes** | **Pending** | **No** | **Pending** | **Architected & Implemented** |
+| **Windows x86_64** | Windows 11 / MSVC Toolchain | **Yes** | **Pending** | **No** | **Yes** | **Build Verified** |
+
+---
+
+## 3. Subsystem Breakdown by Platform
+
+### NVIDIA DGX Spark (Grace Blackwell GB10)
+- `aien-kv-cache`: Pinned contiguous page-locked unified memory (GB10 LPDDR5X): **Runtime Verified**
+- `aien-scheduler`: Continuous batching and chunked prefill: **Runtime Verified**
+- `spark-max-cabi`: Modular MAX C-ABI dynamic bridge (`libspark_max.so`): **Runtime Verified** (Tested against MAX 26.5)
+- `spark-cockpit-rs`: Axum web gateway and health endpoints: **Runtime & Benchmark Verified**
+
+### Apple Silicon (macOS aarch64)
+- `cortex-rs` & `openclaw-rs`: Native binary execution: **Runtime Verified**
+- `spark-inquisitor`: Gatekeeper and diff auditor: **Test & Runtime Verified**
+- Local hardware secret protection: Supported via Secure Enclave and Keychain APIs.
+
+### AMD ROCm
+- Native Rust execution path compiles with HIP bindings.
+- Dedicated multi-GPU validation runs on physical cluster hardware are scheduled before upgrading to Runtime Verified.
diff --git a/docs/SECURITY_MODEL.md b/docs/SECURITY_MODEL.md
new file mode 100644
index 00000000..b3f358ad
--- /dev/null
+++ b/docs/SECURITY_MODEL.md
@@ -0,0 +1,66 @@
+# AIEN Security & Telemetry Model
+
+This document establishes the normative security architecture, terminology, and invariants for the AIEN ecosystem.
+
+---
+
+## 1. Core Security Invariant
+
+AIEN provides no unsolicited outbound telemetry, avoids persistent plaintext secret storage, and uses the strongest available platform-backed secret provider where supported.
+
+---
+
+## 2. Telemetry and Observability Definitions
+
+To maintain linguistic and technical precision:
+
+### Local Observability
+Metrics, traces, structured logs, benchmark counters, hardware telemetry (such as GPU temperature and power draw), and diagnostic health endpoints (`/api/pulse`, `/healthz`) retained strictly on the local machine or served to local administrative consoles. Local observability is essential for systems engineering, performance verification, and operational reliability.
+
+### Explicit Network Activity
+Network communication directly initiated by an operator or required by a user-configured feature, including dispatching prompts to configured model API endpoints, downloading verified model weights from public hubs, or synchronizing repositories across designated peer nodes.
+
+### Outbound Telemetry
+Automatically transmitted usage analytics, diagnostic beacons, behavioral tracking, user profiling, or background heartbeat telemetry transmitted to third-party endpoints.
+
+### The Invariant
+**AIEN core components MUST NOT transmit unsolicited outbound telemetry.** Local observability data remains local unless the operator explicitly exports it.
+
+---
+
+## 3. Secret Protection at Rest and In-Flight
+
+### No Persistent Plaintext Storage
+AIEN software does not persist unencrypted API keys, cryptographic tokens, or private credentials to disk files. Configuration templates, source repositories, and persistent working trees maintain a strict zero-plaintext-credentials standard.
+
+### Materialization Policy
+Persisted credentials are encrypted or hardware-bound at rest and are materialized into process memory only when required for authorized operations. Ephemeral buffers holding decrypted secret material are zeroized upon deallocation.
+
+---
+
+## 4. Platform Secret Provider Architecture
+
+Hardware security primitives vary across operating systems. AIEN abstracts credential protection behind a uniform `SecretProvider` capability interface:
+
+```rust
+pub trait SecretProvider: Send + Sync {
+    fn capabilities(&self) -> SecretCapabilities;
+    fn protection_level(&self) -> SecretProtectionLevel;
+    fn seal(&self, name: &str, secret: &[u8]) -> Result<SealedSecret, SecretError>;
+    fn unseal(&self, secret: &SealedSecret) -> Result<Zeroizing<Vec<u8>>, SecretError>;
+    fn delete(&self, name: &str) -> Result<(), SecretError>;
+}
+```
+
+### Protection Levels
+
+1. **`HardwareBackedNonExportable`**: Asymmetric private keys generated inside secure hardware silicon that cannot be extracted, where cryptographic operations occur directly within the hardware boundary.
+2. **`HardwareBackedSealed`**: Secrets encrypted at rest using keys bound to hardware silicon and platform PCR state (such as TPM 2.0 sealed storage).
+3. **`OsProtected`**: Credentials protected by operating-system keyring facilities (such as Linux kernel keyrings or macOS Keychain access).
+4. **`MemoryOnly`**: Volatile in-process credential store for ephemeral test environments, wiped immediately on process exit.
+
+### Platform Implementations
+
+- **NVIDIA DGX Spark / Linux Systems**: Implemented via hardware TPM 2.0 (`/dev/tpmrm0`) with dynamic in-memory unsealing.
+- **Apple Silicon (macOS)**: Implemented via Secure Enclave and hardware-backed Keychain APIs.
+- **Air-Gapped & Offline Hosts**: Implemented using local hardware silicon roots of trust with zero external network verification dependencies.