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

closed derived 487a1474761e933a #449

Imported from GitHub aien-dev/aien-sovereign-core-mv#449 (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 bba027d3138e7c0de8181bc87c2b83551e64fde1 · Head ea7516cec343861bcd9141cf030e4c154e9b26ec

Apply it

git checkout -b patch-487a1474761e933a bba027d3138e7c0de8181bc87c2b83551e64fde1
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/487a1474761e933a.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
449
ea7516cec343861bcd9141cf030e4c154e9b26ec
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":449,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/449","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:13Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 85e92e1e..91a4005c 100644
--- a/.crumb
+++ b/.crumb
@@ -113,20 +113,20 @@
         },
         {
           "digest": "ccfbfd158c2d059c0a7dd3101068244f27805b828e44ae695b652ae18e726795",
-          "last_commit": "cd88714",
+          "last_commit": "bba027d",
           "name": "tools/aien-local-ci",
           "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health "
         }
       ],
       "children_root": "sha256:f1eac180509183a13d4eabf04f7a8073c4add305cd76c09e07c1f86988c6cdaf",
-      "compiled_at": "2026-10-11T20:00:36Z",
+      "compiled_at": "2026-10-11T20:29:18Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:33f7cba7d0076cbd5172151ec6784aca22f40413adf71771df982d299458d599",
+      "digest": "sha256:ddae152c68437588b5fe46fb1c3950065eb7b95438ff973466e2ed4bf4e21e55",
       "evidence_files": 187,
       "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280",
       "files": 3836,
-      "generated_at_commit": "cd88714f9b3c7127278ba7beb9c1046dbd09c0d1",
-      "source_tree": "sha256:32d18adb65af5605fa4805c38afb3f61eb13378fb6702efdebcfd53fb5d9ecc0"
+      "generated_at_commit": "3633b9cb3e33b20dfbccb8e31efc66de8e3f98ee",
+      "source_tree": "sha256:80cbf7a0f72759c88431ff10b6bf0947e3c3dac396e946dfa90f8398fce85970"
     }
   },
   "history": [],
diff --git a/tools/aien-test/docs/LOCAL_VERIFICATION.md b/tools/aien-test/docs/LOCAL_VERIFICATION.md
index e9277641..a5f28a62 100644
--- a/tools/aien-test/docs/LOCAL_VERIFICATION.md
+++ b/tools/aien-test/docs/LOCAL_VERIFICATION.md
@@ -235,7 +235,8 @@ say PASS), `failure` when the bundle or the plan says FAIL, `error`
 otherwise; the description names the bundle path. When `gh` cannot reach
 GitHub the status is queued as `outbox/<seq>.<repo>.<sha>.json`, where `<seq>`
 is a 20-digit number that only grows, and the journal says `publication:
-pending`. Every later round replays the outbox first, in queue order; the
+pending`. Every later round of a loop started with `--github` replays the
+outbox first, in queue order (a loop without `--github` leaves it queued); the
 first status GitHub refuses stops the replay, so a newer status never
 overtakes an older one. A newer status for the same head replaces the queued
 one and moves to the end. A file that is not a status is renamed to `*.bad`
diff --git a/tools/aien-test/src/worker.rs b/tools/aien-test/src/worker.rs
index 5a0a51ec..7c466ea7 100644
--- a/tools/aien-test/src/worker.rs
+++ b/tools/aien-test/src/worker.rs
@@ -20,7 +20,8 @@
 //! the commit status `AIEN Verification (Spark)` is posted: success only on
 //! PASS, failure on FAIL, error otherwise. When GitHub cannot be reached the
 //! status goes to the outbox, the journal says `publication: pending`, and the
-//! next successful contact flushes it. GitHub being down is never a local
+//! next round of a loop started with `--github` flushes it (a loop without
+//! `--github` leaves it queued). GitHub being down is never a local
 //! failure.
 
 use crate::bundle;
@@ -1266,7 +1267,14 @@ pub fn run_loop(cfg: &Config, iterations: Option<u64>) -> usize {
     loop {
         round += 1;
         cfg.state.beat("-", "-", "poll");
-        let (posted, pending) = flush_outbox(cfg);
+        // Posting is the operator's choice (--github). A loop without it leaves
+        // queued statuses where they are, so `aien-local-ci start` after an
+        // offline --github run never posts them behind the operator's back.
+        let (posted, pending) = if cfg.github {
+            flush_outbox(cfg)
+        } else {
+            (0, outbox_files(&cfg.state).len())
+        };
         if posted + pending > 0 {
             println!("OUTBOX posted={posted} pending={pending}");
         }
diff --git a/tools/aien-test/tests/local_ci.rs b/tools/aien-test/tests/local_ci.rs
index 87034793..3fb5c410 100644
--- a/tools/aien-test/tests/local_ci.rs
+++ b/tools/aien-test/tests/local_ci.rs
@@ -585,6 +585,49 @@ fn github_down_queues_then_flushes() {
         .contains("flushed from outbox"));
 }
 
+#[test]
+fn loop_without_github_keeps_the_outbox() {
+    // A status queued while GitHub was down must not be posted by a loop that
+    // was started without --github (`aien-local-ci start`): posting is the
+    // operator's choice, made with --github.
+    let w = world();
+    let fake = w.state.root.join("fake-gh");
+    let log = w.state.root.join("gh.log");
+    let down = w.state.root.join("gh.down");
+    fs::create_dir_all(&w.state.root).unwrap();
+    fs::write(
+        &fake,
+        format!(
+            "#!/bin/sh\nif [ -e {} ]; then echo 'connect: network unreachable' >&2; exit 1; fi\necho \"$@\" >> {}\nexit 0\n",
+            down.display(),
+            log.display()
+        ),
+    )
+    .unwrap();
+    fs::set_permissions(&fake, fs::Permissions::from_mode(0o755)).unwrap();
+    fs::write(&down, "").unwrap();
+    let mut cfg = w.config();
+    cfg.github = true;
+    cfg.gh = fake.display().to_string();
+    let s = worker::run_once(&cfg, REPO, &w.head).expect("worker");
+    assert_eq!(s.publication, "pending");
+    assert_eq!(worker::outbox_files(&w.state).len(), 1);
+    // GitHub is back, but this loop runs without --github: nothing is posted.
+    fs::remove_file(&down).unwrap();
+    cfg.github = false;
+    worker::run_loop(&cfg, Some(1));
+    assert_eq!(worker::outbox_files(&w.state).len(), 1);
+    assert!(!log.exists(), "{:?}", fs::read_to_string(&log));
+    // With --github the same loop drains it.
+    cfg.github = true;
+    cfg.repos = Vec::new();
+    worker::run_loop(&cfg, Some(1));
+    assert!(worker::outbox_files(&w.state).is_empty());
+    assert!(fs::read_to_string(&log)
+        .unwrap()
+        .contains(&format!("statuses/{}", w.head)));
+}
+
 #[test]
 fn trigger_file_is_served_by_the_loop() {
     let w = world();