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

closed derived fd5fe2b4435aad82 #565

Imported from GitHub aien-dev/aien-sovereign-core-mv#565 (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 26303a9ec008ae380c860095f275af12b0d443b7 · Head 2ac86f6729f32f3e4d52c36d18669f7b82d3494b

Apply it

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

Changes

diff --git a/.crumb b/.crumb
index f1d77dbe..3525ceec 100644
--- a/.crumb
+++ b/.crumb
@@ -119,14 +119,14 @@
         }
       ],
       "children_root": "sha256:7d8cf5937a13dd896fe511aee80a0873f4917a0a5eb07cbe0fe3690c0c878cbb",
-      "compiled_at": "2026-10-16T15:26:31Z",
+      "compiled_at": "2026-10-16T20:32:01Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:5c3262fb97f4051b7780f820f039da497a16ac9d1cf8d077e593d3b2e786ba89",
+      "digest": "sha256:329a2a6ef71a8425bc174143596b38850bc3abf5604654ea7015b1dee415238c",
       "evidence_files": 1578,
       "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160",
       "files": 5889,
-      "generated_at_commit": "228809d2f65ded6e8bbc011bc817209d82255bb5",
-      "source_tree": "sha256:7bdcd0cf99ffd24054c17de9287bf4506d8059c855d566eab42a2280024ec2a2"
+      "generated_at_commit": "14e09eb44f7a614de5601a51b8cf66027ae92a70",
+      "source_tree": "sha256:630608e46f41f0150d53138702e3a438b858bc4d60184f14d83fd562c6dbfd3b"
     }
   },
   "history": [],
diff --git a/crates/aien-runtime/src/compose/bridge.rs b/crates/aien-runtime/src/compose/bridge.rs
index 7eaad27a..5ba4d8c6 100644
--- a/crates/aien-runtime/src/compose/bridge.rs
+++ b/crates/aien-runtime/src/compose/bridge.rs
@@ -315,7 +315,10 @@ pub fn check_file_proposal(text: &str) -> Result<FileProposal, String> {
         .ok_or("empty reply")?;
     let first = bare(lines[at]);
     const KEY: &str = "filename:";
-    if first.len() < KEY.len() || !first[..KEY.len()].eq_ignore_ascii_case(KEY) {
+    if !first
+        .get(..KEY.len())
+        .is_some_and(|prefix| prefix.eq_ignore_ascii_case(KEY))
+    {
         return Err("no filename line: the first line must be 'filename: <relative path>'".into());
     }
     // sc#402: `./report.md` is `report.md`; the strict check then runs as before.
diff --git a/crates/aien-runtime/tests/compose_task_test.rs b/crates/aien-runtime/tests/compose_task_test.rs
index 4bcb6cd3..c22c396f 100644
--- a/crates/aien-runtime/tests/compose_task_test.rs
+++ b/crates/aien-runtime/tests/compose_task_test.rs
@@ -323,6 +323,22 @@ z
     );
 }
 
+/// Issue #546: the filename prefix is ASCII, but a model reply is UTF-8.
+/// Invalid prefixes at a multi-byte boundary must be refused, never panic.
+#[test]
+fn file_proposal_rejects_multibyte_first_line_without_panicking() {
+    for invalid in ["filenameé", "ééééé", "🎯🎯🎯", "abcdefg中"] {
+        let reply = format!("{invalid}\nbody\n");
+        let err = check_file_proposal(&reply).unwrap_err();
+        assert!(err.contains("no filename line"), "{invalid:?}: {err}");
+        assert!(parse_file_proposal(&reply).is_none());
+    }
+    // A mixed-case ASCII key remains valid after the boundary fix.
+    let proposal = check_file_proposal("FILENAME: safe.md\nbody\n").unwrap();
+    assert_eq!(proposal.path, "safe.md");
+    assert_eq!(proposal.content, "body\n");
+}
+
 #[test]
 #[cfg_attr(not(compose_linked), ignore = "needs librx_compose.a: stub build")]
 fn retry_is_capped_and_recorded() {