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

gates: make the M18/M19 clean-clone failures diagnosable on the judge

closed 2703266439902efd #552 · opened 2026-10-18 13:28 UTC · closed 2026-10-29 19:02 UTC

Imported from GitHub aien-dev/omega-mv#552, by drakestapleton

Base f4a9849fb127f8d2d664dfc56890752ad180c507 · Head 681e03a3e1800153d809374c4b61c998dbced03e

drakestapleton wrote on 2026-10-18 13:28 UTC

What

OMEGA-M19 has never passed on the Spark judge (0 of 40 runs). The failing items are the two clean-clone sub-gates (OMEGA_ACCEL_RESIDENT_CLEAN_CLONE_PASS, OMEGA_BW_MATMUL_CLEAN_CLONE_PASS) and the two that derive from them. Nobody can say why: every early exit returned false silently, the nested make output went to /dev/null, and the nested qualification log lived in the sandbox's private /tmp, gone after the run.

This change makes the failure visible, without changing any verdict logic:

  • each early return says why on stderr (the evidence record keeps stderr); a dirty tree prints the first git status --porcelain lines;
  • the nested build keeps its log, and on failure the last 30 lines of the build log and the nested qualification log are printed;
  • the nested make runs -j$(nproc) instead of an unbounded -j (on the shared judge an unbounded -j starts hundreds of compilers).

Verification

Both files compile with the gate's flags (-std=gnu11 -Wall -Wextra -Werror). The next OMEGA-M19 lane run on this head is the first one that will say why the clean clone fails. Crumbs recompiled with the pinned tool (crumb.lock d0f0b95d), crumb verify OK.

Merge is paused by Drake's order (MERGE-PAUSE); no ready-to-merge label on purpose.

🤖 Generated with Claude Code

github-advanced-security[bot] reviewed (COMMENTED) on 2026-10-18 13:34 UTC

github-advanced-security[bot] commented on src/omega_world_gates.c line 1839 on 2026-10-18 13:34 UTC

github-advanced-security[bot] commented on src/omega_world_gates.c line 1839 on 2026-10-18 13:34 UTC

drakestapleton wrote on 2026-10-29 19:02 UTC

Closing in org cleanup (Drake, 2026-10-29): abandoned: no activity in 11 days with merge conflicts and failing CI checks. Reopen if still needed.

Apply it

git checkout -b patch-2703266439902efd f4a9849fb127f8d2d664dfc56890752ad180c507
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/2703266439902efd.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/omega-mv
552
681e03a3e1800153d809374c4b61c998dbced03e
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":552,"url":"https://github.com/aien-dev/omega-mv/pull/552","export_sha256":"7319147b350ad908bf0b731068ec3be7b8dee848041dc862f71455e8e4680140","imported_utc":"2026-11-18T16:35:56Z"}

Changes

diff --git a/.crumb b/.crumb
index 81f377ee2..5cedeed1a 100644
--- a/.crumb
+++ b/.crumb
@@ -77,7 +77,7 @@
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
         {
-          "digest": "dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250",
+          "digest": "686d7573888f7f51134ecea90c5971ed4368ae58874f96aab13995f165962228",
           "last_commit": "333091a6",
           "name": "src",
           "purpose": "Directory src. Purpose not yet described by a human."
@@ -95,15 +95,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e",
-      "compiled_at": "2026-10-16T19:04:20Z",
+      "children_root": "sha256:b655fed119468fef82586099c471ae201c524f2da50345158dcca4d99e3b39b8",
+      "compiled_at": "2026-10-18T13:28:45Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:32086cfe6b319e0c0229bec39553d1b32f7460aa660ad888d5eb5990522e705a",
+      "digest": "sha256:8c22e41646c43def4d2908228d1498ba2211221a768cf33d488d93f3eafff3f6",
       "evidence_files": 11127,
       "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e",
       "files": 14109,
-      "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426",
-      "source_tree": "sha256:e01c9caa38757306582443fe69f52cb061c3d27250f8ad0b9f4b4f43b009dc14"
+      "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507",
+      "source_tree": "sha256:ff1e4922c2cdae358ceddb984bf18c264b02c56c860894a5b43d61a561d680e0"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/README.md b/README.md
index 87f91fbf1..79ef5d1e5 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,10 @@ make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-realize
 
 The full omegatool build (`make`) links the `physics` repository at the commit in `physics.lock`. Some older milestone gate scripts rewrite their receipts in place, so do not run them on a clean checkout you mean to keep; prefer the `make test-*` targets above. Targets that touch the GB10 need the DGX Spark, run one at a time, and are never killed mid-run. CI definitions in `.github/workflows/` list the suites that run on every push.
 
+When the M18/M19 clean-clone sub-gates fail, the gate prints why and the last lines of the nested build
+and qualification logs to stderr, because the clone lives in the test sandbox's private `/tmp` and is gone
+after the run; the nested `make` is capped at `-j$(nproc)`.
+
 ## Repository layout
 
 `src/` core and C compiler (`src/compiler/`), `src/runtime/` reaction runtime, `src/fabric/` host-only fabric interface, `src/physics0/` Physics Zero apparatus, `spec/` and `docs/` specifications, `tests/` gate suites, `evidence/` content-addressed receipts, `tools/` harnesses, `mk/` make fragments included by the `Makefile`. Also `bench/prime_race/` (Prime Drag Race implementation), `calibration/` (Turing calibration experiments, preregistration and blinding protocol), `research/` (experiments and prototypes) and `doctrine/` (the Milestone 4 doctrine).
diff --git a/src/.crumb b/src/.crumb
index 4fe5298a4..379cde7e0 100644
--- a/src/.crumb
+++ b/src/.crumb
@@ -182,14 +182,14 @@
         }
       ],
       "children_root": "sha256:15012a017b26a269feb256b64875ece2912f5f82c57804baafa3777c4fcb80b9",
-      "compiled_at": "2026-10-16T07:33:43Z",
+      "compiled_at": "2026-10-18T13:28:45Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:dfa36de2ac8649f66f80587abea51a7f166285ee0b92e0e09774c98689055250",
+      "digest": "sha256:686d7573888f7f51134ecea90c5971ed4368ae58874f96aab13995f165962228",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 537,
-      "generated_at_commit": "1d481ab853a14d3c11eff926ce1e25993085f76a",
-      "source_tree": "sha256:200c9243151691313acb5f86d3e9cb3058f1a1b92ece2a255b3340b691dfb894"
+      "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507",
+      "source_tree": "sha256:c614ff48697ad0acc2561d3d8b66d20dc3d68911ac520d9fec809a0af0995504"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/src/omega_blackwell_gates.c b/src/omega_blackwell_gates.c
index 5c7634b41..83b17eef6 100644
--- a/src/omega_blackwell_gates.c
+++ b/src/omega_blackwell_gates.c
@@ -988,19 +988,30 @@ static bool test_m18_gate16_clean_clone(void) {
         fprintf(stderr, "%s\n", physics_err);
         return false;
     }
+    /* The nested build keeps its log and -j is capped at the core count; on
+     * failure the last lines of both logs go to stderr, because the copy lives
+     * in the sandbox's private /tmp and is gone after the run. */
     char command[4608];
     int len = snprintf(command, sizeof(command),
                        "root=$(git rev-parse --show-toplevel) && "
                        "rm -rf /tmp/omega_clean_m18 && "
                        "cp -r \"$root\" /tmp/omega_clean_m18 && "
                        "cd /tmp/omega_clean_m18 && "
-                       "make clean >/dev/null 2>&1 && "
-                       "make -j PHYSICS_DIR='%s' >/dev/null 2>&1 && "
+                       "make clean >/tmp/clean_clone_m18_build.log 2>&1 && "
+                       "make -j$(nproc) PHYSICS_DIR='%s' >>/tmp/clean_clone_m18_build.log 2>&1 && "
                        "OMEGA_IN_CLEAN_CLONE=1 ./build/omegatool --run-m18-gates >/tmp/clean_clone_m18.log 2>&1",
                        physics_dir_resolved);
     if (len < 0 || (size_t)len >= sizeof(command)) return false;
     int rc = system(command);
-    return (rc == 0);
+    if (rc != 0) {
+        fprintf(stderr, "OMEGA_BW_MATMUL_CLEAN_CLONE: copy, nested build or nested run failed (system() returned %d)\n", rc);
+        if (system("for f in /tmp/clean_clone_m18_build.log /tmp/clean_clone_m18.log; do "
+                   "echo \"--- $f (last 30 lines) ---\" >&2; tail -n 30 \"$f\" >&2 2>/dev/null; done") != 0) {
+            /* diagnostics only */
+        }
+        return false;
+    }
+    return true;
 }
 
 
diff --git a/src/omega_world_gates.c b/src/omega_world_gates.c
index e0f6d310c..7c5241293 100644
--- a/src/omega_world_gates.c
+++ b/src/omega_world_gates.c
@@ -1760,15 +1760,36 @@ static bool test_m19_gate15_zero_libcuda(void) {
 }
 
 /* Gate 16: OMEGA_ACCEL_RESIDENT_CLEAN_CLONE_PASS */
+static void m19_clean_clone_why(const char *why) {
+    fprintf(stderr, "OMEGA_ACCEL_RESIDENT_CLEAN_CLONE: %s\n", why);
+}
+
+/* The clone lives in the sandbox's private /tmp and is gone after the run, so
+ * on failure the last lines of its logs go to stderr, which the evidence
+ * record keeps. */
+static void m19_clean_clone_tail(const char *path) {
+    char cmd[1400];
+    int n = snprintf(cmd, sizeof(cmd),
+                     "echo '--- %s (last 30 lines) ---' >&2; tail -n 30 '%s' >&2 2>/dev/null", path, path);
+    if (n < 0 || (size_t)n >= sizeof(cmd)) return;
+    if (system(cmd) != 0) { /* diagnostics only */ }
+}
+
 static bool test_m19_gate16_clean_clone(void) {
     char src_sha[41] = {0};
-    if (!m19_git_head(".", src_sha)) return false;
+    if (!m19_git_head(".", src_sha)) {
+        m19_clean_clone_why("git rev-parse HEAD failed in the source tree");
+        return false;
+    }
     const char *record = getenv("OMEGA_QUAL_RECORD");
     const char *candidate = getenv("OMEGA_M19R_CANDIDATE");
     if ((record && strcmp(record, "1") == 0) || candidate) {
         if (!candidate || strlen(candidate) != 40 ||
             strspn(candidate, "0123456789abcdefABCDEF") != 40 ||
-            strcmp(candidate, src_sha) != 0 || omega_evidence_tree_dirty()) return false;
+            strcmp(candidate, src_sha) != 0 || omega_evidence_tree_dirty()) {
+            m19_clean_clone_why("OMEGA_M19R_CANDIDATE is not this HEAD, or the tree is dirty");
+            return false;
+        }
     }
 
     if (getenv("OMEGA_IN_CLEAN_CLONE") != NULL) {
@@ -1777,14 +1798,23 @@ static bool test_m19_gate16_clean_clone(void) {
         return true;
     }
     if (omega_evidence_tree_dirty()) {
+        m19_clean_clone_why("source tree is dirty; git status --porcelain, first lines:");
+        if (system("git status --porcelain --untracked-files=normal 2>/dev/null | head -n 10 >&2") != 0) { /* diagnostics only */ }
         return false;
     }
     char clone_template[] = "/tmp/omega_clean_m19_XXXXXX";
     char *clone = mkdtemp(clone_template);
-    if (!clone) return false;
-    char checkout[512];
+    if (!clone) {
+        m19_clean_clone_why("mkdtemp /tmp/omega_clean_m19_XXXXXX failed");
+        return false;
+    }
+    char checkout[512], build_log[512], qual_log[512];
     int cl = snprintf(checkout, sizeof(checkout), "%s/checkout", clone);
     if (cl < 0 || (size_t)cl >= sizeof(checkout)) return false;
+    cl = snprintf(build_log, sizeof(build_log), "%s/build.log", clone);
+    if (cl < 0 || (size_t)cl >= sizeof(build_log)) return false;
+    cl = snprintf(qual_log, sizeof(qual_log), "%s/qualification.log", clone);
+    if (cl < 0 || (size_t)cl >= sizeof(qual_log)) return false;
 
     /* Resolve the PHYSICS_DIR this process runs with (omega_physics_dir.h), as an
      * absolute path, so the nested build (running from a different cwd)
@@ -1793,22 +1823,39 @@ static bool test_m19_gate16_clean_clone(void) {
     char physics_dir_resolved[PATH_MAX], physics_err[OMEGA_PHYSICS_ERR_SIZE];
     if (!omega_physics_dir_resolve_pinned(physics_dir_resolved, sizeof(physics_dir_resolved), 0, physics_err, sizeof(physics_err))) {
         fprintf(stderr, "%s\n", physics_err);
+        m19_clean_clone_why("pinned PHYSICS_DIR could not be resolved");
         return false;
     }
 
+    /* The nested build keeps its log; -j is capped at the core count (an
+     * unbounded -j on the shared judge starts hundreds of compilers). */
     char command[4608];
     int len = snprintf(command, sizeof(command),
                        "git clone --quiet --no-hardlinks . %s && cd %s && git checkout --quiet %s && "
-                       "make clean >/dev/null 2>&1 && make -j PHYSICS_DIR=%s >/dev/null 2>&1 && "
-                       "OMEGA_IN_CLEAN_CLONE=1 ./build/omegatool --run-m19-gates >%s/qualification.log 2>&1",
-                       checkout, checkout, src_sha, physics_dir_resolved, clone);
+                       "make clean >%s 2>&1 && make -j$(nproc) PHYSICS_DIR=%s >>%s 2>&1 && "
+                       "OMEGA_IN_CLEAN_CLONE=1 ./build/omegatool --run-m19-gates >%s 2>&1",
+                       checkout, checkout, src_sha, build_log, physics_dir_resolved, build_log, qual_log);
     if (len < 0 || (size_t)len >= sizeof(command)) return false;
-    if (system(command) != 0) return false;
+    int rc = system(command);
+    if (rc != 0) {
+        char why[160];
+        snprintf(why, sizeof(why), "clone, nested build or nested run failed (system() returned %d)", rc);
+        m19_clean_clone_why(why);
+        m19_clean_clone_tail(build_log);
+        m19_clean_clone_tail(qual_log);
+        return false;
+    }
 
     /* The built checkout must be exactly the named candidate revision. */
     char clone_sha[41] = {0};
-    if (!m19_git_head(checkout, clone_sha)) return false;
-    if (strcmp(clone_sha, src_sha) != 0) return false;
+    if (!m19_git_head(checkout, clone_sha)) {
+        m19_clean_clone_why("git rev-parse HEAD failed in the clone");
+        return false;
+    }
+    if (strcmp(clone_sha, src_sha) != 0) {
+        m19_clean_clone_why("the clone's HEAD is not the candidate revision");
+        return false;
+    }
 
     memcpy(m19_candidate_commit, src_sha, sizeof(m19_candidate_commit));
     return true;