interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

GitHub aien-dev/omega-mv#1011 (code only)

closed derived 0a7d108ccda673de #1011

Imported from GitHub aien-dev/omega-mv#1011 (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 57a4135d63870f67b455b3c8c61c9d5e0571f1c3 · Head 67d809c7531dd43da7db6a9d63f5735902316b19

Fetch it

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

curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/0a7d108ccda673de.bundle -o 0a7d108ccda673de.bundle
git fetch 0a7d108ccda673de.bundle refs/pull/1011/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/omega-mv
1011
67d809c7531dd43da7db6a9d63f5735902316b19
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1011,"url":"https://github.com/aien-dev/omega-mv/pull/1011","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:14Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 21daf3429..409b8f224 100644
--- a/.crumb
+++ b/.crumb
@@ -48,7 +48,7 @@
         },
         {
           "digest": "2411b918662a0730eac6b2c124ba266f5341c816de4495ce5873aab0fa289c87",
-          "last_commit": "ee12b0d07",
+          "last_commit": "57a4135d6",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -89,14 +89,14 @@
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "8fd8f63c5ded617704f24bfe5b9468dd31df789dda1435b1a7606fddb79a0276",
-          "last_commit": "a1667d594",
+          "digest": "7fe15f310334744a70fe070087efafdae311d623cddee79d64fa439a46142dfb",
+          "last_commit": "829cf6832",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "34e29668599c7233865ec37777b8c5f2461f46fda4df5c2c1b38800c4d6807f2",
-          "last_commit": "b3346c2ee",
+          "digest": "d62144d84091ad9f29e5e93d463285d01c01ad9f0c4ac939fcbd8076f1aca1bc",
+          "last_commit": "829cf6832",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
@@ -107,15 +107,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:696e2afef9b40339c6c7fac1022456d616e68fd084a7fc2d1a975f790e44f681",
-      "compiled_at": "2026-10-31T15:45:06Z",
+      "children_root": "sha256:fcc00e3c3f8dd8fc0b056b265fbd53fd7c15533cad9e4b1d854a3f37a5cd03d9",
+      "compiled_at": "2026-10-31T15:59:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:d85df95f4a43b13f2238b859dbfbca390543d2c10402031b80d0657c41224ca8",
+      "digest": "sha256:f5665a54f1571af49bd03f852b6a5e05c5d64cb4298bc0e319c392faa78d7006",
       "evidence_files": 14989,
       "evidence_root": "sha256:90148c46bbc2cd096c96064273ac90d63efb54260fe285e18d84429cdf657830",
       "files": 23230,
-      "generated_at_commit": "0f79d213774f8283a237f4e4d854b81a3959248e",
-      "source_tree": "sha256:1d58af9aa3fe407dc0ef9b9ebd70918f74eb06d2e1e4aa0881ef3e94d695dab4"
+      "generated_at_commit": "829cf68321a46418e039a70f48ae538505c37a0e",
+      "source_tree": "sha256:977be74680755ef5b30323a2d64a809f49a84039393842c93ce368728e310dd1"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/.crumb b/src/.crumb
index 4ea812457..9485fe2b4 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -145,8 +145,8 @@
           "purpose": "Ionic-droplet reservoir simulator (omega#440): binary32 fixed-step RK4 of the authors' droplet m"
         },
         {
-          "digest": "7cbe4137297afac5dbf4062a5727be580be8cd1461785b1791d4781d2a0b1986",
-          "last_commit": "a1667d594",
+          "digest": "6470cebae8f02c9d58cd4e8c388fbced451845e86f79407c5a14ba7a283f7fbd",
+          "last_commit": "159c4b51f",
           "name": "runtime",
           "purpose": "Directory src/runtime. Purpose not yet described by a human."
         },
@@ -187,15 +187,15 @@
           "purpose": "Directory src/visor. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:85eaf778bf3ab98a260da21c06a6b2c60b3b1ca7c798df744060dbe2f3311a5a",
-      "compiled_at": "2026-10-31T15:08:34Z",
+      "children_root": "sha256:735c91bbe2dff04f1d052401690595862dbdf4366611084fd97adf3143caccc1",
+      "compiled_at": "2026-10-31T15:59:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:8fd8f63c5ded617704f24bfe5b9468dd31df789dda1435b1a7606fddb79a0276",
+      "digest": "sha256:7fe15f310334744a70fe070087efafdae311d623cddee79d64fa439a46142dfb",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 600,
-      "generated_at_commit": "a1667d594929da0a37f92f265b3105a7347055cf",
-      "source_tree": "sha256:1a5f870700419c79a984827a2ce474e05ca1918ecf76c4af74220a0ed6d06798"
+      "generated_at_commit": "829cf68321a46418e039a70f48ae538505c37a0e",
+      "source_tree": "sha256:7e48abe10ddacc5d8d00d318755beeb84502f0a9644aded7f2e71a7507917102"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/runtime/.crumb b/src/runtime/.crumb
index 0a76069aa..3fe012647 100644
--- a/src/runtime/.crumb
+++ b/src/runtime/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-31T14:01:27Z",
+      "compiled_at": "2026-10-31T15:59:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:7cbe4137297afac5dbf4062a5727be580be8cd1461785b1791d4781d2a0b1986",
+      "digest": "sha256:6470cebae8f02c9d58cd4e8c388fbced451845e86f79407c5a14ba7a283f7fbd",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 65,
-      "generated_at_commit": "2638a49bd83d12c1e0c76a4c446d6be1c9a4d4f4",
-      "source_tree": "sha256:bfc3482cdd40894b47db6d71d8ec38c8791ff7bb996c1d2e5d4968400e1ad8fc"
+      "generated_at_commit": "829cf68321a46418e039a70f48ae538505c37a0e",
+      "source_tree": "sha256:d238c4b9cc5b463c8b771e214a1a8741f9ffd55ccee4e40a34b0143b57bdc9cb"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/runtime/rx_compose.c b/src/runtime/rx_compose.c
index e77ce242a..4d4242701 100644
--- a/src/runtime/rx_compose.c
+++ b/src/runtime/rx_compose.c
@@ -25,6 +25,7 @@
 #include "rx_compose.h"
 #include "rx_cortex_record.h"
 #include "sha256.h"
+#include "omega_path_check.h"
 
 #include <errno.h>
 #include <stdio.h>
@@ -872,7 +873,10 @@ static int open_home(RxCompose *c, const char *dir, const AienMachineId *self, u
     c->router = router;
     c->contract = contract;
     c->admin = admin;
-    if (mkdir(dir, 0700) && errno != EEXIST) return RX_ERR_ARG;
+    /* Check before mkdir (src/omega_path_check.h): a refused dir is an argument error and creates nothing. */
+    char checked[sizeof c->dir];
+    if (omega_path_copy(checked, sizeof checked, dir) != 0) return RX_ERR_ARG;
+    if (mkdir(checked, 0700) && errno != EEXIST) return RX_ERR_ARG;
 
     char p[256];
     path_in(p, sizeof p, dir, "machine.id");
diff --git a/src/runtime/rx_compose.h b/src/runtime/rx_compose.h
index 6bab59969..24da74372 100644
--- a/src/runtime/rx_compose.h
+++ b/src/runtime/rx_compose.h
@@ -260,7 +260,8 @@ typedef struct RxCompose {
  * reopened (a torn journal tail is repaired, then the chain is verified), the
  * World is built with `n_workers` (the composition owns it; see
  * rx_compose_attach to run inside an existing World), state is recovered
- * OLD-or-NEW. */
+ * OLD-or-NEW. `dir` must pass src/omega_path_check.h (omega_path_copy) and
+ * be under 168 bytes; otherwise RX_ERR_ARG and nothing is created. */
 int  rx_compose_open(RxCompose *c, const char *dir, const AienMachineId *self, uint64_t session,
                      const SrRouter *router, RxcContract contract, AienosCapAdmin *admin,
                      AienosCapView *view, uint32_t n_workers);
diff --git a/src/runtime/rxc_host_abi.c b/src/runtime/rxc_host_abi.c
index f3bf06513..9de7b4717 100644
--- a/src/runtime/rxc_host_abi.c
+++ b/src/runtime/rxc_host_abi.c
@@ -35,6 +35,7 @@
 #include "runtime/rx_graph.h"
 #include "runtime/rx_skillroute.h"
 #include "sha256.h"
+#include "omega_path_check.h"
 
 #include <fcntl.h>
 #include <errno.h>
@@ -263,7 +264,10 @@ int rxc_host_open(const char *dir, uint32_t root_kind, const uint8_t *root, size
     memset(&inf, 0, sizeof inf);
     inf.abi_version = RXC_HOST_ABI_VERSION;
     fill_identity(&inf, &self);
-    if (mkdir(dir, 0700) && errno != EEXIST) return RXC_HOST_E_ARG;
+    /* Check before mkdir (src/omega_path_check.h): a refused dir is an argument error and creates nothing. */
+    char checked[200];
+    if (omega_path_copy(checked, sizeof checked, dir) != 0) return RXC_HOST_E_ARG;
+    if (mkdir(checked, 0700) && errno != EEXIST) return RXC_HOST_E_ARG;
 
     /* Identity first (rx_compose_open checks it again). */
     char p[256];
diff --git a/src/runtime/rxc_host_abi.h b/src/runtime/rxc_host_abi.h
index bfc6923a9..a08b8a319 100644
--- a/src/runtime/rxc_host_abi.h
+++ b/src/runtime/rxc_host_abi.h
@@ -236,7 +236,9 @@ typedef struct {
  * the machine derived from (root_kind, root[0..root_len)). Identity: a dir
  * that already holds machine.id must hold this machine (RXC_HOST_E_IDENTITY
  * otherwise). `info` (may be NULL) is filled on success and on
- * RXC_HOST_E_TORN / RXC_HOST_E_IDENTITY. `flags` must be 0. */
+ * RXC_HOST_E_TORN / RXC_HOST_E_IDENTITY. `flags` must be 0. `dir` must
+ * pass src/omega_path_check.h (omega_path_copy) and be under 184 bytes;
+ * otherwise RXC_HOST_E_ARG and nothing is created. */
 int rxc_host_open(const char *dir, uint32_t root_kind, const uint8_t *root, size_t root_len,
                   uint64_t session, uint32_t flags, RxcHost **out, RxcHostInfo *info);
 
diff --git a/tests/.crumb b/tests/.crumb
index c0bcd5805..da0c55161 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -271,8 +271,8 @@
           "purpose": "Reservoir tests (omega#440): Gate 1 simulator and readout checks against an independent binary64"
         },
         {
-          "digest": "2abedd856b822c40ceaffa3570f5ff27d9befbdf54c5f00e81f7f77cba5e15b2",
-          "last_commit": "b3346c2ee",
+          "digest": "b2c2b1e9935a1e5043268b0a58aa384378dfefe617243d443fdf1e88267e2dac",
+          "last_commit": "159c4b51f",
           "name": "runtime",
           "purpose": "Directory tests/runtime. Purpose not yet described by a human."
         },
@@ -307,15 +307,15 @@
           "purpose": "Directory tests/visor. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:7a051f9379a1e960c4a0a7d8c261286e5f78eba68a9501d6249842cfa721bd50",
-      "compiled_at": "2026-10-31T15:09:50Z",
+      "children_root": "sha256:e34ef36159fcc2b1427126b2b8faca9ec4cb074427a79ef209cbcd4a2e089156",
+      "compiled_at": "2026-10-31T15:59:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:34e29668599c7233865ec37777b8c5f2461f46fda4df5c2c1b38800c4d6807f2",
+      "digest": "sha256:d62144d84091ad9f29e5e93d463285d01c01ad9f0c4ac939fcbd8076f1aca1bc",
       "evidence_files": 74,
       "evidence_root": "sha256:9aa38bf7dcfa5eb3499356a0a2a1dd7704fedfae2d16822a7c9e1400f3a72723",
       "files": 2048,
-      "generated_at_commit": "dfdb68122d5b4a511e30d338773b79a1588d40d9",
-      "source_tree": "sha256:f566e214fa9bfe6fa93a4f87f488cc68f4f8aa934956749414788c8725ced6a0"
+      "generated_at_commit": "829cf68321a46418e039a70f48ae538505c37a0e",
+      "source_tree": "sha256:938cb95da2874b523a4c06f518179da7176568ec9252825e58e0c14f54dd3b79"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/runtime/.crumb b/tests/runtime/.crumb
index f7bf40653..857a0d8e8 100644
--- a/tests/runtime/.crumb
+++ b/tests/runtime/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-31T14:53:15Z",
+      "compiled_at": "2026-10-31T15:59:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:2abedd856b822c40ceaffa3570f5ff27d9befbdf54c5f00e81f7f77cba5e15b2",
+      "digest": "sha256:b2c2b1e9935a1e5043268b0a58aa384378dfefe617243d443fdf1e88267e2dac",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 71,
-      "generated_at_commit": "60e149b471d940e7a15cc8a44b5e463a9f4b3be5",
-      "source_tree": "sha256:06592c124bf3aaad7c313003454851a88261ce6aca5efb5478a76496205e9125"
+      "generated_at_commit": "829cf68321a46418e039a70f48ae538505c37a0e",
+      "source_tree": "sha256:ef2f92f8da09e0f6fc562211df556cccf9de5c68a39187a9ceb9c6aa14db3aae"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/runtime/rx_compose_test.c b/tests/runtime/rx_compose_test.c
index c2203ddbe..b9491923f 100644
--- a/tests/runtime/rx_compose_test.c
+++ b/tests/runtime/rx_compose_test.c
@@ -658,6 +658,17 @@ static void t_pending(void) {
     rmtree(d);
 }
 
+/* A dir refused by src/omega_path_check.h is an argument error and creates nothing. */
+static void t_refused_dir(void) {
+    printf("[*] refused dir: RX_ERR_ARG, nothing created\n");
+    char bad[240];
+    snprintf(bad, sizeof bad, "%s/refused dir", g_base);
+    reset_c();
+    int rc = fx_open(&g_fx, &g_c, bad, 1);
+    CHECK(rc == RX_ERR_ARG, "refused dir -> RX_ERR_ARG (%d)", rc);
+    CHECK(access(bad, F_OK) != 0, "refused dir not created");
+}
+
 int main(void) {
     snprintf(g_base, sizeof g_base, "/tmp/rx_compose_test.XXXXXX");
     if (!mkdtemp(g_base)) { perror("mkdtemp"); return 1; }
@@ -668,6 +679,7 @@ int main(void) {
     t_authority();
     t_cortex();
     t_pending();
+    t_refused_dir();
     fx_free(&g_fx);
     rmtree(g_base);
     printf("%s: %d checks, %d failed\n", g_fail ? "FAIL" : "PASS", g_checks, g_fail);
diff --git a/tests/runtime/rxc_host_abi_test.c b/tests/runtime/rxc_host_abi_test.c
index 8f6ee591d..31d43b9f7 100644
--- a/tests/runtime/rxc_host_abi_test.c
+++ b/tests/runtime/rxc_host_abi_test.c
@@ -256,6 +256,17 @@ int main(void) {
 
     t_wait_ms(dir);
 
+    /* A dir refused by src/omega_path_check.h is an argument error and creates nothing (Rev1001 on #1006). */
+    {
+        char bad[320];
+        snprintf(bad, sizeof bad, "%s/refused dir", dir);
+        RxcHost *hb = NULL;
+        RxcHostInfo ib;
+        int brc = rxc_host_open(bad, RXC_HOST_ROOT_PROVISIONED, ROOT, sizeof ROOT - 1, 0x5E55ull, 0, &hb, &ib);
+        CHECK(brc == RXC_HOST_E_ARG && !hb, "refused dir -> E_ARG (%d)", brc);
+        CHECK(access(bad, F_OK) != 0, "refused dir not created");
+    }
+
     /* ---- T1 ---- */
     RxcHostInfo i1;
     int rc;