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

closed derived bd6dc376777e9e16 #1010

Imported from GitHub aien-dev/omega-mv#1010 (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 b3346c2eefad11af11b61e435c11f9b8e2da8efd · Head 0884687e50826e78b5f4587aad9434227ba685ca

Fetch it

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

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

Changes

diff --git a/.crumb b/.crumb
index 6ff51826e..14e68dda1 100644
--- a/.crumb
+++ b/.crumb
@@ -89,14 +89,14 @@
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "fd1213241c865c525cdbb1d84e9dbe42ed3f33056db94d08157617a88722e0a9",
-          "last_commit": "a1667d594",
+          "digest": "8fd8f63c5ded617704f24bfe5b9468dd31df789dda1435b1a7606fddb79a0276",
+          "last_commit": "d386c39c1",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "9ea58b159330ed3c4e74b95f1fa62f470df588ae7036ad5a5a3abb3dc47005ac",
-          "last_commit": "60e149b47",
+          "digest": "34e29668599c7233865ec37777b8c5f2461f46fda4df5c2c1b38800c4d6807f2",
+          "last_commit": "dfdb68122",
           "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:dfadc6dd8249af73deac5811acdd40db503086685c88012a1e5222361c76ddb0",
-      "compiled_at": "2026-10-31T14:53:15Z",
+      "children_root": "sha256:f5e922e1f6f271ce0efd8f3509c3010c59e9b2ccba7f3c92e0fbb73d0da9f499",
+      "compiled_at": "2026-10-31T15:09:50Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:4a214d1b9e17ac0a8502c857bd8dac48414597778880ca5398ed8ce2909118d1",
+      "digest": "sha256:1323360fdc3eaa957973d109942a12bf5c868d4bb834561551f892c2b239fc6b",
       "evidence_files": 14989,
       "evidence_root": "sha256:90148c46bbc2cd096c96064273ac90d63efb54260fe285e18d84429cdf657830",
       "files": 23230,
-      "generated_at_commit": "60e149b471d940e7a15cc8a44b5e463a9f4b3be5",
-      "source_tree": "sha256:649b759d30e2bba12a8137c41f108e7b344c0f10067b9785f60c72e68bad3c04"
+      "generated_at_commit": "dfdb68122d5b4a511e30d338773b79a1588d40d9",
+      "source_tree": "sha256:f5eb71e42cded63f7922352e55768bf1ec442271d444f444763b0abdc50fa3a6"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/.crumb b/src/.crumb
index 1da4940a1..4ea812457 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -146,7 +146,7 @@
         },
         {
           "digest": "7cbe4137297afac5dbf4062a5727be580be8cd1461785b1791d4781d2a0b1986",
-          "last_commit": "79a475666",
+          "last_commit": "a1667d594",
           "name": "runtime",
           "purpose": "Directory src/runtime. Purpose not yet described by a human."
         },
@@ -188,14 +188,14 @@
         }
       ],
       "children_root": "sha256:85eaf778bf3ab98a260da21c06a6b2c60b3b1ca7c798df744060dbe2f3311a5a",
-      "compiled_at": "2026-10-31T14:02:07Z",
+      "compiled_at": "2026-10-31T15:08:34Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:fd1213241c865c525cdbb1d84e9dbe42ed3f33056db94d08157617a88722e0a9",
+      "digest": "sha256:8fd8f63c5ded617704f24bfe5b9468dd31df789dda1435b1a7606fddb79a0276",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 600,
-      "generated_at_commit": "79a4756660da249ec53c0438069ecec8174e6620",
-      "source_tree": "sha256:d34ce1a6ce129f2d2ab6a2b12bb0cf47eae80390621b560159a4739712483432"
+      "generated_at_commit": "a1667d594929da0a37f92f265b3105a7347055cf",
+      "source_tree": "sha256:1a5f870700419c79a984827a2ce474e05ca1918ecf76c4af74220a0ed6d06798"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/omega_evidence.c b/src/omega_evidence.c
index c258ed6f1..44153726f 100644
--- a/src/omega_evidence.c
+++ b/src/omega_evidence.c
@@ -42,8 +42,9 @@ static bool popen_read_line(const char *cmd, char *out, size_t n) {
     bool got = (fgets(buf, sizeof(buf), p) != NULL);
     pclose(p);
     if (!got || !trim_line(buf)) return false;
-    if (strlen(buf) >= n) return false;
-    strcpy(out, buf);
+    size_t len = strlen(buf);
+    if (len >= n) return false;
+    memcpy(out, buf, len + 1);
     return true;
 }
 
@@ -183,8 +184,9 @@ bool omega_evidence_physics_commit(char *out, size_t n) {
     bool got = (fgets(buf, sizeof(buf), f) != NULL);
     fclose(f);
     if (!got || !trim_line(buf)) return false;
-    if (strlen(buf) >= n) return false;
-    strcpy(out, buf);
+    size_t len = strlen(buf);
+    if (len >= n) return false;
+    memcpy(out, buf, len + 1);
     return true;
 }
 
diff --git a/tests/.crumb b/tests/.crumb
index ff6685603..c0bcd5805 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -272,7 +272,7 @@
         },
         {
           "digest": "2abedd856b822c40ceaffa3570f5ff27d9befbdf54c5f00e81f7f77cba5e15b2",
-          "last_commit": "60e149b47",
+          "last_commit": "b3346c2ee",
           "name": "runtime",
           "purpose": "Directory tests/runtime. Purpose not yet described by a human."
         },
@@ -308,14 +308,14 @@
         }
       ],
       "children_root": "sha256:7a051f9379a1e960c4a0a7d8c261286e5f78eba68a9501d6249842cfa721bd50",
-      "compiled_at": "2026-10-31T14:53:15Z",
+      "compiled_at": "2026-10-31T15:09:50Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:9ea58b159330ed3c4e74b95f1fa62f470df588ae7036ad5a5a3abb3dc47005ac",
+      "digest": "sha256:34e29668599c7233865ec37777b8c5f2461f46fda4df5c2c1b38800c4d6807f2",
       "evidence_files": 74,
       "evidence_root": "sha256:9aa38bf7dcfa5eb3499356a0a2a1dd7704fedfae2d16822a7c9e1400f3a72723",
       "files": 2048,
-      "generated_at_commit": "60e149b471d940e7a15cc8a44b5e463a9f4b3be5",
-      "source_tree": "sha256:b9c73a06ffb9a893696c949565bd887bc63e2f15a35621c1b2337e9a2e202c93"
+      "generated_at_commit": "dfdb68122d5b4a511e30d338773b79a1588d40d9",
+      "source_tree": "sha256:f566e214fa9bfe6fa93a4f87f488cc68f4f8aa934956749414788c8725ced6a0"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/gpu_bf16_gemv_test.c b/tests/gpu_bf16_gemv_test.c
index f37a59500..4a8b733f7 100644
--- a/tests/gpu_bf16_gemv_test.c
+++ b/tests/gpu_bf16_gemv_test.c
@@ -27,12 +27,22 @@
 #include "omega_gpu_bf16_gemv_api.h"
 #include "omega_gpu_session.h"
 #include "bw_warp_sim_k.h"
+#include <fcntl.h>
 #include <inttypes.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
+#include <unistd.h>
+
+/* 0644, not fopen's 0666 & ~umask: a receipt is never world-writable */
+static FILE *create_0644(const char *path) {
+    int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
+    FILE *f = fd >= 0 ? fdopen(fd, "w") : NULL;
+    if (fd >= 0 && !f) close(fd);
+    return f;
+}
 
 static int g_checks, g_failed;
 #define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0)
@@ -319,7 +329,7 @@ static void evict_host_caches(void) {
 static double med(uint64_t *v, uint32_t n) { qsort(v, n, 8, cmp_u64); return (double)v[n / 2]; }
 
 static int chip_run(const char *out_path, uint32_t reps, uint32_t N, uint32_t K) {
-    FILE *out = out_path ? fopen(out_path, "w") : NULL;
+    FILE *out = out_path ? create_0644(out_path) : NULL;
     if (out_path && !out) { printf("cannot write %s\n", out_path); return 1; }
     if (out) fprintf(out, "{\"receipt\":\"OMEGA_GPU_BF16_GEMV_V1\",\"n\":%u,\"k\":%u,\"reps\":%u,\"evict\":%d,\"spin_us\":%u,\"points\":[", N, K, reps, g_evict, omega_gpu_session_spin_us());
     uint16_t *w = make_w((size_t)N * K, 90001); float *x = make_x(K, 90002);
diff --git a/tests/gpu_decode_attn_test.c b/tests/gpu_decode_attn_test.c
index ff35e2a03..f96aa75e7 100644
--- a/tests/gpu_decode_attn_test.c
+++ b/tests/gpu_decode_attn_test.c
@@ -33,12 +33,22 @@
 #include "omega_gpu_session.h"
 #include "omega_gpu_hostmath.h"
 #include "bw_warp_sim_k.h"
+#include <fcntl.h>
 #include <inttypes.h>
 #include <math.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
+#include <unistd.h>
+
+/* 0644, not fopen's 0666 & ~umask: a receipt is never world-writable */
+static FILE *create_0644(const char *path) {
+    int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, 0644);
+    FILE *f = fd >= 0 ? fdopen(fd, "w") : NULL;
+    if (fd >= 0 && !f) close(fd);
+    return f;
+}
 
 static int g_checks, g_failed;
 #define CHECK(cond, ...) do { g_checks++; if (!(cond)) { g_failed++; printf("FAIL: "); printf(__VA_ARGS__); printf("\n"); } } while (0)
@@ -334,7 +344,7 @@ static int fill_history(OmegaGpuDecodeAttnCache *cache, const Case *c) {
     return OMEGA_GPU_DATTN_OK;
 }
 static int chip_run(const char *out_path, uint32_t reps) {
-    FILE *out = out_path ? fopen(out_path, "w") : NULL;
+    FILE *out = out_path ? create_0644(out_path) : NULL;
     if (out_path && !out) { printf("cannot write %s\n", out_path); return 1; }
     if (out) fprintf(out, "{\"receipt\":\"OMEGA_GPU_DECODE_ATTN_V1\",\"reps\":%u,\"evict\":%d,\"points\":[", reps, g_evict);
     const uint32_t MAXP = OMEGA_GPU_DATTN_MAX_POS;
@@ -432,7 +442,7 @@ static int geometry_refusal(uint32_t qh, uint32_t kvh, uint32_t hd, const char *
     for (int i = 0; i < nw; i++) printf("  reason %d: %s\n", i + 1, why[i]);
     printf("  needed: a decode attention kernel for this geometry (ternary engine design KT3)\n");
     if (out_path) {
-        FILE *f = fopen(out_path, "w");
+        FILE *f = create_0644(out_path);
         if (f) {
             fprintf(f, "{\"test\":\"gpu_decode_attn_test\",\"q_heads\":%u,\"kv_heads\":%u,\"head_dim\":%u,\"kernel_q_heads\":%u,\"kernel_kv_heads\":%u,\"reasons\":[",
                     qh, kvh, hd, OMEGA_GPU_DATTN_Q_HEADS, OMEGA_GPU_DATTN_KV_HEADS);