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

closed derived b6c1cba14a0f4eb9 #910

Imported from GitHub aien-dev/aien-sovereign-core-mv#910 (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 24c54085457944b73ce373489c69eae77c7eb7b5 · Head 89293331dc875ca7f5e305a47f34aa1b2555d2f6

Fetch it

A git bundle of the pull request's head, 4265 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/b6c1cba14a0f4eb9.bundle -o b6c1cba14a0f4eb9.bundle
git fetch b6c1cba14a0f4eb9.bundle refs/pull/910/head

Raw bundle · 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
910
89293331dc875ca7f5e305a47f34aa1b2555d2f6
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":910,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/910","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:16Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/crates/aien-cli/src/tools.rs b/crates/aien-cli/src/tools.rs
index f7e9978a..e3e4db12 100644
--- a/crates/aien-cli/src/tools.rs
+++ b/crates/aien-cli/src/tools.rs
@@ -1315,6 +1315,58 @@ fn exec_ask_question(question: &str, options: Option<&Vec<Value>>) -> (Value, bo
 mod tests {
     use super::*;
 
+    /// sc#813: every crumb action refuses a path that escapes the workspace
+    /// allow-list through a symlink, and writes nothing on the other side.
+    #[cfg(unix)]
+    #[test]
+    fn crumb_tool_refuses_a_symlink_escape_for_every_action() {
+        use std::os::unix::fs::symlink;
+        let outside = tempfile::tempdir_in("/var/tmp").unwrap();
+        let outside = outside.path().canonicalize().unwrap();
+        let work = tempfile::tempdir_in("/tmp").unwrap();
+        let work = work.path().canonicalize().unwrap();
+        let esc = work.join("esc");
+        symlink(&outside, &esc).unwrap();
+        let esc_s = esc.to_str().unwrap();
+        let fresh = esc.join("fresh");
+        let cases = [
+            json!({"action": "survey", "path": esc_s}),
+            json!({"action": "whisper", "path": esc_s, "message": "m"}),
+            json!({"action": "record", "path": esc_s}),
+            json!({"action": "init", "path": esc_s}),
+            json!({"action": "init", "path": fresh.join("x").to_str().unwrap()}),
+            json!({"action": "whisper", "path": outside.to_str().unwrap(), "message": "m"}),
+        ];
+        for args in cases {
+            let (result, ok) = exec_crumb_tool(&args);
+            assert!(!ok, "{args} was allowed: {result}");
+            assert!(
+                result["error"]
+                    .as_str()
+                    .unwrap_or("")
+                    .contains("CONFINEMENT DENIAL"),
+                "{args}: {result}"
+            );
+        }
+        let left: Vec<_> = std::fs::read_dir(&outside).unwrap().collect();
+        assert!(left.is_empty(), "wrote outside the workspace: {left:?}");
+    }
+
+    #[cfg(unix)]
+    #[test]
+    fn crumb_tool_init_creates_an_allowed_directory() {
+        let work = tempfile::tempdir_in("/tmp").unwrap();
+        let work = work.path().canonicalize().unwrap();
+        let dir = work.join("a/b");
+        let target = dir.join("file.txt");
+        let (result, ok) = exec_crumb_tool(
+            &json!({"action": "init", "path": target.to_str().unwrap(), "purpose": "p"}),
+        );
+        assert!(ok, "{result}");
+        assert!(dir.is_dir());
+        assert!(dir.join(".crumb").exists());
+    }
+
     #[test]
     fn round3_goal_tool_failure_flag_is_false() {
         for result in [