From 655d331b0ca512023de243236322aec57f74d0dd Mon Sep 17 00:00:00 2001 From: AIEN Date: Mon, 21 Sep 2026 06:53:12 -0500 Subject: [PATCH 1/3] chore: freeze openclaw baseline lockfile --- Cargo.lock | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 93b85fa..5cec1b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -30,8 +30,10 @@ name = "aien-inference-abi" version = "0.1.0" dependencies = [ "aien-kv-cache", + "aien-platform", "async-trait", "libloading", + "parking_lot", "rayon", "reqwest", "serde", @@ -44,17 +46,33 @@ dependencies = [ name = "aien-kv-cache" version = "0.1.0" dependencies = [ + "aien-platform", + "aien-platform-linux", "libc", "parking_lot", "serde", ] +[[package]] +name = "aien-platform" +version = "0.1.0" + +[[package]] +name = "aien-platform-linux" +version = "0.1.0" +dependencies = [ + "aien-platform", + "libc", + "parking_lot", +] + [[package]] name = "aien-scheduler" version = "0.1.0" dependencies = [ "aien-inference-abi", "aien-kv-cache", + "aien-platform", "futures-util", "parking_lot", "reqwest", From 91e9b1a4e0198df9ad76dfc4cbb166d7205e043e Mon Sep 17 00:00:00 2001 From: AIEN Date: Mon, 21 Sep 2026 06:56:48 -0500 Subject: [PATCH 2/3] refactor: migrate repository identity from openclaw to aegis --- Cargo.lock | 62 ++++++++++----------- Cargo.toml | 10 ++-- README.md | 12 ++-- src/gateway.rs | 6 +- src/main.rs | 6 +- tests/{openclaw_tests.rs => aegis_tests.rs} | 6 +- tests/branch_client_harness.rs | 2 +- tests/embedded_inference_tests.rs | 16 +++--- 8 files changed, 60 insertions(+), 60 deletions(-) rename tests/{openclaw_tests.rs => aegis_tests.rs} (99%) diff --git a/Cargo.lock b/Cargo.lock index 5cec1b3..6762acd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,37 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "aegis" +version = "0.2.0" +dependencies = [ + "aien-inference-abi", + "aien-kv-cache", + "aien-scheduler", + "anyhow", + "async-trait", + "axum", + "bytes", + "chrono", + "clap", + "futures-util", + "libloading", + "parking_lot", + "reqwest", + "rusqlite", + "serde", + "serde_json", + "tempfile", + "tokio", + "tokio-stream", + "tokio-tungstenite", + "tower", + "tower-http 0.5.2", + "tracing", + "tracing-subscriber", + "uuid", +] + [[package]] name = "ahash" version = "0.8.12" @@ -1437,37 +1468,6 @@ dependencies = [ "pkg-config", ] -[[package]] -name = "openclaw" -version = "0.2.0" -dependencies = [ - "aien-inference-abi", - "aien-kv-cache", - "aien-scheduler", - "anyhow", - "async-trait", - "axum", - "bytes", - "chrono", - "clap", - "futures-util", - "libloading", - "parking_lot", - "reqwest", - "rusqlite", - "serde", - "serde_json", - "tempfile", - "tokio", - "tokio-stream", - "tokio-tungstenite", - "tower", - "tower-http 0.5.2", - "tracing", - "tracing-subscriber", - "uuid", -] - [[package]] name = "openssl" version = "0.10.81" diff --git a/Cargo.toml b/Cargo.toml index bbfc80f..995b74b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "openclaw" +name = "aegis" version = "0.2.0" edition = "2021" authors = ["Drake Stapleton "] license = "Apache-2.0 WITH LLVM-exception" -description = "Native sovereign agent runtime with Axum WebSocket gateway, heartbeat loop, and local Modular MAX inference on Grace Blackwell GB10" -repository = "https://github.com/aien-dev/openclaw-rs" +description = "Sovereign agent runtime with defense plane, context branching, and streaming gateway" +repository = "https://github.com/aien-dev/aegis-runtime" [dependencies] tokio = { version = "1.40", features = ["full"] } @@ -38,9 +38,9 @@ tempfile = "3.17" tokio-tungstenite = "0.24" [[bin]] -name = "openclaw" +name = "aegis" path = "src/main.rs" [lib] -name = "openclaw" +name = "aegis" path = "src/lib.rs" diff --git a/README.md b/README.md index c5e52cc..ccff5a1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# openclaw-rs +# aegis-runtime Sovereign agent runtime written in native Rust with Mojo 1.1 SIMD acceleration kernels and local Modular MAX inference on NVIDIA Grace Blackwell GB10 hardware. @@ -58,22 +58,22 @@ cargo build --release ### Running the Gateway ```bash -./target/release/openclaw serve --bind 0.0.0.0:18096 +./target/release/aegis serve --bind 0.0.0.0:18096 ``` ### CLI Commands ```bash # Execute a single autonomous tick -openclaw tick +aegis tick # Query local MAX directly -openclaw ask "Analyze system health and pending tasks" +aegis ask "Analyze system health and pending tasks" # Check engine status -openclaw status +aegis status # Run SIMD kernel benchmark and mathematical verification -openclaw sim-mojo +aegis sim-mojo ``` ## Mathematical Verification diff --git a/src/gateway.rs b/src/gateway.rs index 32747b9..58b966c 100644 --- a/src/gateway.rs +++ b/src/gateway.rs @@ -64,7 +64,7 @@ pub async fn health_handler(State(state): State) -> impl IntoRespo Json(HealthResponse { status: "healthy", - engine: "openclaw-rs/0.2.0", + engine: "aegis-runtime/0.2.0", uptime_seconds: uptime, local_model: model, heartbeat_interval_seconds: state.heartbeat.interval_secs(), @@ -312,7 +312,7 @@ pub async fn openai_models_handler(State(state): State) -> impl In "id": model, "object": "model", "created": 1789783086, - "owned_by": "openclaw-rs", + "owned_by": "aegis-runtime", }] })) } @@ -470,7 +470,7 @@ pub async fn ws_handler( async fn handle_socket(mut socket: WebSocket, state: GatewayState) { let welcome = json!({ "type": "welcome", - "gateway": "openclaw-rs", + "gateway": "aegis-runtime", "engine": "OpenClaw WebSocket Gateway", "status": "connected", "timestamp": chrono::Utc::now().to_rfc3339(), diff --git a/src/main.rs b/src/main.rs index 18bba5e..f3c2374 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use clap::{Parser, Subcommand}; -use openclaw::{ +use aegis::{ start_gateway, AgentEngine, Database, EmbeddedInferenceBackend, GatewayState, HeartbeatEngine, HttpInferenceBackend, InferenceEngine, MojoSimdBridge, SkillRegistry, }; @@ -10,9 +10,9 @@ use tracing::{info, Level}; use tracing_subscriber::FmtSubscriber; #[derive(Parser)] -#[command(name = "openclaw")] +#[command(name = "aegis")] #[command(version = "0.2.0")] -#[command(about = "Native sovereign agent runtime in Rust, Mojo, and NativeTransformer", long_about = None)] +#[command(about = "Sovereign Agent Runtime on Grace Blackwell GB10", long_about = None)] struct Cli { #[command(subcommand)] command: Option, diff --git a/tests/openclaw_tests.rs b/tests/aegis_tests.rs similarity index 99% rename from tests/openclaw_tests.rs rename to tests/aegis_tests.rs index aaf0f5f..a7fc16e 100644 --- a/tests/openclaw_tests.rs +++ b/tests/aegis_tests.rs @@ -3,7 +3,7 @@ use axum::{ http::{Request, StatusCode}, }; use futures_util::{SinkExt, StreamExt}; -use openclaw::{ +use aegis::{ create_router, AgentEngine, Database, GatewayState, HeartbeatEngine, HttpInferenceBackend, MojoSimdBridge, SkillRegistry, VaultResolver, REDACTED_MARKER, }; @@ -131,7 +131,7 @@ async fn test_gateway_health_endpoint() { .unwrap(); let body: Value = serde_json::from_slice(&bytes).unwrap(); assert_eq!(body["status"], "healthy"); - assert_eq!(body["engine"], "openclaw-rs/0.2.0"); + assert_eq!(body["engine"], "aegis-runtime/0.2.0"); assert_eq!(body["database_mode"], "sqlite-wal"); assert_eq!(body["zero_disk_secrets"], true); } @@ -392,7 +392,7 @@ async fn test_gateway_websocket_lifecycle() { let msg = ws_stream.next().await.unwrap().unwrap(); let val: Value = serde_json::from_str(&msg.to_string()).unwrap(); assert_eq!(val["type"], "welcome"); - assert_eq!(val["gateway"], "openclaw-rs"); + assert_eq!(val["gateway"], "aegis-runtime"); // 2. Ping / Pong ws_stream diff --git a/tests/branch_client_harness.rs b/tests/branch_client_harness.rs index cf017db..6932205 100644 --- a/tests/branch_client_harness.rs +++ b/tests/branch_client_harness.rs @@ -1,7 +1,7 @@ use aien_inference_abi::{ModelConfig, NativeTransformerBackend, TransformerWeights}; #[test] -fn test_openclaw_branch_client_2_8_32_fork_lifecycle() { +fn test_aegis_branch_client_2_8_32_fork_lifecycle() { let config = ModelConfig { num_layers: 2, num_heads: 4, diff --git a/tests/embedded_inference_tests.rs b/tests/embedded_inference_tests.rs index 5eb36fc..9d12af5 100644 --- a/tests/embedded_inference_tests.rs +++ b/tests/embedded_inference_tests.rs @@ -9,11 +9,11 @@ use aien_inference_abi::ModelConfig; use futures_util::StreamExt; -use openclaw::inference::{ +use aegis::inference::{ format_messages_to_prompt, parse_structured_tool_calls, EmbeddedInferenceBackend, EmbeddedModel, InferenceEngine, }; -use openclaw::{AgentEngine, SkillExecutionRequest, SkillRegistry}; +use aegis::{AgentEngine, SkillExecutionRequest, SkillRegistry}; use serde_json::json; use std::sync::Arc; @@ -117,7 +117,7 @@ fn test_structured_tool_call_lifecycle_loop() { ); let tool_output = exec_res.output; assert!(tool_output.contains("[package]")); - assert!(tool_output.contains(r#"name = "openclaw""#)); + assert!(tool_output.contains(r#"name = "aegis""#)); // 5. Subsequent conversational turn incorporates tool result let multi_turn_messages = vec![ @@ -139,7 +139,7 @@ fn test_structured_tool_call_lifecycle_loop() { let second_turn_prompt = format_messages_to_prompt(&multi_turn_messages, Some(&tools)); assert!(second_turn_prompt.contains("[Tool Output]:")); - assert!(second_turn_prompt.contains(r#"name = "openclaw""#)); + assert!(second_turn_prompt.contains(r#"name = "aegis""#)); assert!(second_turn_prompt.ends_with("<|assistant|>\n")); } @@ -252,10 +252,10 @@ async fn test_embedded_inference_chat_streaming() { async fn test_gateway_with_embedded_inference_streaming() { use axum::body::Body; use axum::http::{Request, StatusCode}; - use openclaw::create_router; - use openclaw::heartbeat::HeartbeatEngine; - use openclaw::persistence::Database; - use openclaw::GatewayState; + use aegis::create_router; + use aegis::heartbeat::HeartbeatEngine; + use aegis::persistence::Database; + use aegis::GatewayState; use tower::ServiceExt; let config = ModelConfig { From 3a1c33650416d635ab3ffefe907565af4bd68570 Mon Sep 17 00:00:00 2001 From: AIEN Date: Mon, 21 Sep 2026 06:58:02 -0500 Subject: [PATCH 3/3] style: apply cargo fmt across all targets --- src/main.rs | 2 +- tests/aegis_tests.rs | 8 ++++---- tests/embedded_inference_tests.rs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index f3c2374..9aec20d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ -use clap::{Parser, Subcommand}; use aegis::{ start_gateway, AgentEngine, Database, EmbeddedInferenceBackend, GatewayState, HeartbeatEngine, HttpInferenceBackend, InferenceEngine, MojoSimdBridge, SkillRegistry, }; +use clap::{Parser, Subcommand}; use std::path::Path; use std::sync::Arc; use std::time::Instant; diff --git a/tests/aegis_tests.rs b/tests/aegis_tests.rs index a7fc16e..feae298 100644 --- a/tests/aegis_tests.rs +++ b/tests/aegis_tests.rs @@ -1,12 +1,12 @@ +use aegis::{ + create_router, AgentEngine, Database, GatewayState, HeartbeatEngine, HttpInferenceBackend, + MojoSimdBridge, SkillRegistry, VaultResolver, REDACTED_MARKER, +}; use axum::{ body::Body, http::{Request, StatusCode}, }; use futures_util::{SinkExt, StreamExt}; -use aegis::{ - create_router, AgentEngine, Database, GatewayState, HeartbeatEngine, HttpInferenceBackend, - MojoSimdBridge, SkillRegistry, VaultResolver, REDACTED_MARKER, -}; use serde_json::Value; use std::sync::Arc; use std::time::Instant; diff --git a/tests/embedded_inference_tests.rs b/tests/embedded_inference_tests.rs index 9d12af5..78e52ba 100644 --- a/tests/embedded_inference_tests.rs +++ b/tests/embedded_inference_tests.rs @@ -7,13 +7,13 @@ //! 5. AgentEngine integration using Arc. //! 6. Blackwell GPU device acceleration detection on Grace Blackwell GB10. -use aien_inference_abi::ModelConfig; -use futures_util::StreamExt; use aegis::inference::{ format_messages_to_prompt, parse_structured_tool_calls, EmbeddedInferenceBackend, EmbeddedModel, InferenceEngine, }; use aegis::{AgentEngine, SkillExecutionRequest, SkillRegistry}; +use aien_inference_abi::ModelConfig; +use futures_util::StreamExt; use serde_json::json; use std::sync::Arc; @@ -250,12 +250,12 @@ async fn test_embedded_inference_chat_streaming() { #[tokio::test] async fn test_gateway_with_embedded_inference_streaming() { - use axum::body::Body; - use axum::http::{Request, StatusCode}; use aegis::create_router; use aegis::heartbeat::HeartbeatEngine; use aegis::persistence::Database; use aegis::GatewayState; + use axum::body::Body; + use axum::http::{Request, StatusCode}; use tower::ServiceExt; let config = ModelConfig {