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#371 (code only)

closed derived 3b6ef5631d963638 #371

Imported from GitHub aien-dev/aien-sovereign-core-mv#371 (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 5b7861f65898fc75e940aeb6899fec5995587654 · Head 2aa591c209b66e4bf6e74e9654fb16dcdbbcf3a7

Apply it

git checkout -b patch-3b6ef5631d963638 5b7861f65898fc75e940aeb6899fec5995587654
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/3b6ef5631d963638.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
371
2aa591c209b66e4bf6e74e9654fb16dcdbbcf3a7
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":371,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/371","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:58Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 8bd2832d..3a64552d 100644
--- a/.crumb
+++ b/.crumb
@@ -64,27 +64,27 @@
     "generated": {
       "children": [
         {
-          "digest": "bf0b33103faf720887cc37d410f924747078edab52d2170d7c9d8c965a8b3618",
-          "last_commit": "797039a",
+          "digest": "3f8234691c53c0a0dc36cf6c7848a3006fbeb6b23fc71a77d7c9ad3c35d82323",
+          "last_commit": "6ee4315",
           "name": "scripts",
           "purpose": ""
         },
         {
           "digest": "ac32ed84159cae1f43f3b5d2307b2a1ab04ea580c8f96c1f52566a7f21cca0b0",
-          "last_commit": "8b5caed",
+          "last_commit": "5b7861f",
           "name": "skills",
           "purpose": ""
         }
       ],
-      "children_root": "sha256:9f52af6646e027e9ee559d1715bf3979e963ad638fe61f0c882b7a01a5f19654",
-      "compiled_at": "2026-10-09T21:32:49Z",
+      "children_root": "sha256:6125449db449f5c3431e63c5bf8b20022665a7ea6c635c0f884c8f1e5c0e8ee2",
+      "compiled_at": "2026-10-10T01:38:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:eb80ee528b5b244f10a8a1337cd72fd5faf4eb5d3cf60bc495f72e2a8574c57e",
+      "digest": "sha256:9c55268eee41818af15238f32bbff65dfd1993502c16cb1cd99aa0953181435d",
       "evidence_files": 187,
       "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280",
-      "files": 1850,
-      "generated_at_commit": "df60af9215d57c3e6a37f476caba05ef3b2cf384",
-      "source_tree": "sha256:cbeeb7688173520a0d86a1b81f7565abf4d1649cddbe48c721bfb47ddcd0c3e3"
+      "files": 1849,
+      "generated_at_commit": "6ee431581c8eea3525d3d338ab9a897e334c843f",
+      "source_tree": "sha256:97826c5963e03bbcf2c575e13ccf230c6cabd1b2dd268b00bd31f4a21db91bbf"
     }
   },
   "history": [],
diff --git a/crates/spark-cockpit-rs/.crumb b/crates/spark-cockpit-rs/.crumb
index 401f8c66..08ef91fc 100644
--- a/crates/spark-cockpit-rs/.crumb
+++ b/crates/spark-cockpit-rs/.crumb
@@ -34,14 +34,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-04T15:35:46Z",
+      "compiled_at": "2026-10-10T01:38:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:a159ef3e85416944baee4f050142f19ef9ac5c2358451b9c9efc3b5d0345fe8f",
+      "digest": "sha256:09b15b5a4f946ac42c3e538c852bf8a3e870b72e07efd4686b423113c6fa1260",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 18,
-      "generated_at_commit": "c848c7bf9ada87072c5f1ecb2b36142de106ef66",
-      "source_tree": "sha256:3a7372f5a03b844665a98c8a2e4db151f42fb422155ed90df05b26117d4e2617"
+      "generated_at_commit": "6ee431581c8eea3525d3d338ab9a897e334c843f",
+      "source_tree": "sha256:c04b20dc02680f03971ad7975c0b024231817bfb5d35236dfc07a983fde429c7"
     }
   },
   "history": [
diff --git a/crates/spark-cockpit-rs/src/main.rs b/crates/spark-cockpit-rs/src/main.rs
index 22870585..ec72cb8a 100644
--- a/crates/spark-cockpit-rs/src/main.rs
+++ b/crates/spark-cockpit-rs/src/main.rs
@@ -1512,7 +1512,7 @@ fn get_services_snapshot() -> Vec<ServiceStatusInfo> {
     let defs: Vec<ServiceDef> = vec![
         (
             "max-server",
-            "Modular MAX Engine",
+            "Modular MAX Engine (outside yardstick, observe/stop only)",
             Some(18006),
             Box::new(|p: &ProcessInfo| {
                 p.cmdline.contains("max serve") && p.cmdline.contains("18006")
@@ -1686,29 +1686,35 @@ async fn handle_services_action(
             }
         }
         "max" | "max-server" => {
+            // Modular MAX is an outside comparison tool, not part of AIEN's trusted
+            // execution path (issue #369; aien-yardsticks HISTORICAL-PYTHON.md). The
+            // cockpit observes a running instance and can stop it, but never launches
+            // it: the old launcher loaded the historical yardstick Python adapter.
+            if action == "start" || action == "restart" {
+                return Err((
+                    StatusCode::CONFLICT,
+                    Json(json!({
+                        "status": "error",
+                        "service": "max-server",
+                        "action": action,
+                        "error": "max-server is an outside comparison tool (Modular MAX); \
+                                  the cockpit does not launch it. Start it by hand outside \
+                                  AIEN if a yardstick comparison is wanted."
+                    })),
+                ));
+            }
             let snapshot = get_services_snapshot();
             let max_svc = snapshot.into_iter().find(|s| s.id == "max-server");
-
-            if (action == "stop" || action == "restart")
-                && let Some(s) = &max_svc
+            if let Some(s) = &max_svc
                 && let Some(pid) = s.pid
             {
                 let _ = Command::new("kill").arg(pid.to_string()).output().await;
             }
-            if action == "restart" {
-                tokio::time::sleep(Duration::from_millis(1000)).await;
-            }
-            if action == "start" || action == "restart" {
-                let script_path = "/home/drakestapleton/start_max_lightning_18006.sh";
-                if Path::new(script_path).exists() {
-                    let _ = Command::new("nohup").arg("bash").arg(script_path).spawn();
-                }
-            }
             Ok(Json(json!({
                 "status": "ok",
                 "service": "max-server",
                 "action": action,
-                "message": format!("max-server {} command executed", action)
+                "message": "max-server stop command executed"
             })))
         }
         "rsi" | "spark-rsi" => {
@@ -3782,6 +3788,31 @@ mod tests {
         assert!(err["error"].as_str().unwrap().contains("Invalid action"));
     }
 
+    /// Issue #369: the cockpit must never launch the outside Modular MAX server,
+    /// whose launcher depended on historical yardstick Python. Start and restart
+    /// are refused loudly instead of spawning anything.
+    #[tokio::test]
+    async fn test_cockpit_services_action_max_server_never_launched() {
+        for action in ["start", "restart", "START"] {
+            let payload = ServiceActionPayload {
+                service: "max-server".to_string(),
+                action: action.to_string(),
+            };
+            let res = handle_services_action(Json(payload)).await;
+            let (status, Json(err)) = res.expect_err("max-server launch must be refused");
+            assert_eq!(status, StatusCode::CONFLICT, "action {action}");
+            assert_eq!(err["status"], "error");
+            assert_eq!(err["service"], "max-server");
+            assert!(
+                err["error"]
+                    .as_str()
+                    .unwrap()
+                    .contains("does not launch it"),
+                "action {action}: {err}"
+            );
+        }
+    }
+
     #[tokio::test]
     async fn test_cockpit_swarm_lifecycle_registry() {
         let state = create_test_state();
diff --git a/scripts/.crumb b/scripts/.crumb
index 13f46005..f5952761 100644
--- a/scripts/.crumb
+++ b/scripts/.crumb
@@ -4,14 +4,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-09T14:01:30Z",
+      "compiled_at": "2026-10-10T01:38:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:bf0b33103faf720887cc37d410f924747078edab52d2170d7c9d8c965a8b3618",
+      "digest": "sha256:3f8234691c53c0a0dc36cf6c7848a3006fbeb6b23fc71a77d7c9ad3c35d82323",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 26,
-      "generated_at_commit": "03495be28c6a8a420b3b7ee4629ae4a5ec130dc6",
-      "source_tree": "sha256:be53b9b1e2b585b6277e8890780c67be41fd4aca553f90f9e53cb0c12f9c3063"
+      "files": 25,
+      "generated_at_commit": "6ee431581c8eea3525d3d338ab9a897e334c843f",
+      "source_tree": "sha256:b28ab631314c8dc90343fb7e687cebec75edf3f3732f10858c3d7c70ea018fee"
     }
   },
   "parent": {
diff --git a/scripts/start_max_lightning_18006.sh b/scripts/start_max_lightning_18006.sh
deleted file mode 100755
index 9b0aadac..00000000
--- a/scripts/start_max_lightning_18006.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-set -euo pipefail
-if [[ -f /home/drakestapleton/.cache/huggingface/token ]]; then
-  export HF_TOKEN="$(cat /home/drakestapleton/.cache/huggingface/token)"
-fi
-sync; sudo -n sysctl -w vm.drop_caches=3 2>/dev/null || true
-export CUDA_VISIBLE_DEVICES=0
-export MAX_SERVE_HOST=127.0.0.1
-export MAX_SERVE_METRICS_ENDPOINT_PORT=8011
-
-SNAPSHOT_DIR="/home/drakestapleton/.cache/huggingface/hub/models--nvidia--NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16/snapshots/a9904d24bcc1d289a1950fa9d2b978c47cf903b9"
-WEIGHT_ARGS=()
-for shard in $(ls -1 "$SNAPSHOT_DIR"/model-*.safetensors | sort); do
-  WEIGHT_ARGS+=(--weight-path "$shard")
-done
-
-exec /home/drakestapleton/max-env/bin/max serve \
-  --model nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16 \
-  "${WEIGHT_ARGS[@]}" \
-  --served-model-name atlas-lightning-omni \
-  --custom-architectures /home/drakestapleton/workspace/aien-yardsticks/yardsticks/modular-nemotron-h-kvexp \
-  --port 18006 \
-  --max-batch-size 8 \
-  --max-length 32768 \
-  --device-memory-utilization 0.85 \
-  --quantization-encoding float4_e2m1fnx2 \
-  --enable-structured-output \
-  --enable-prefix-caching \
-  --kv-cache-format bfloat16 \
-  --fold-sampler-into-graph \
-  --no-device-graph-capture