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

closed derived 06ad6205a0d4f422 #215

Imported from GitHub aien-dev/omega-mv#215 (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 c147fc866955dfffa295a0cb52a866c893a81ba8 · Head 49beec415c74d0fa93e80a84f6a282857f70db85

Apply it

git checkout -b patch-06ad6205a0d4f422 c147fc866955dfffa295a0cb52a866c893a81ba8
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/06ad6205a0d4f422.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
215
49beec415c74d0fa93e80a84f6a282857f70db85
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":215,"url":"https://github.com/aien-dev/omega-mv/pull/215","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:48Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/spec/branch-state-reuse.md b/spec/branch-state-reuse.md
index cf234e4a4..720fa9b56 100644
--- a/spec/branch-state-reuse.md
+++ b/spec/branch-state-reuse.md
@@ -148,3 +148,8 @@ the reads that followed. The forced placement cycle in check 5 is not counted.
 - The policy's reuse estimate (expected reads = holders) is a simple prior, not
   a learned one. The spill file is never compacted.
 - Energy isolation. Package energy includes whatever else the machine was doing.
+
+If the `aien_spbm` counters cannot be read, the energy leg is reported as
+`NOT_RUN` and the gate result is `PASS_ENERGY_NOT_RUN`, which never prints
+`OMEGA_BRANCH_STATE_REUSE_PASS`. Memory, compute, latency and correctness stay
+hard checks. When the counters are readable, energy must still measure lower.
diff --git a/tests/runtime/rx_branch_reuse.c b/tests/runtime/rx_branch_reuse.c
index 2513ab364..05c8564ac 100644
--- a/tests/runtime/rx_branch_reuse.c
+++ b/tests/runtime/rx_branch_reuse.c
@@ -47,6 +47,7 @@ static unsigned g_branches = 128, g_prefix = 512, g_diverge = 16;
 /* Branch k and k + g_choices take the same steps (96 of 128 by default). */
 static unsigned g_choices = 96;
 static int g_fail;
+static int g_energy_not_run; /* counters unreadable: energy leg not run, never a pass */
 
 #define CHECK(c, ...) do { if (!(c)) { g_fail++; printf("  FAIL: " __VA_ARGS__); printf("\n"); } } while (0)
 
@@ -675,8 +676,12 @@ int main(int argc, char **argv) {
         CHECK(o->beats_memory, "%s: shared realization did not use less memory", rz->name);
         CHECK(o->beats_compute, "%s: shared realization did not use less compute", rz->name);
         CHECK(o->beats_latency, "%s: shared realization was not faster", rz->name);
-        CHECK(o->beats_energy, "%s: energy not measured lower (counters %s)", rz->name,
-              I->energy_ok && S->energy_ok ? "ok" : "unavailable");
+        if (!(I->energy_ok && S->energy_ok)) {
+            /* Label only: memory, compute, latency and correctness stay hard checks. */
+            g_energy_not_run++;
+            printf("  NOT_RUN: %s: energy leg (counters unavailable)\n", rz->name);
+        } else
+            CHECK(o->beats_energy, "%s: energy not measured lower (counters ok)", rz->name);
 
         printf("  measured costs: derive %.1f us/unit, copy %.3f ns/B, compress %.3f ns/B (delta ratio %.3f),"
                " spill w/r %.3f/%.3f ns/B, retain %.3f ns/B\n",
@@ -747,7 +752,8 @@ int main(int argc, char **argv) {
     if (!omega_evidence_run_commit(commit)) strcpy(commit, "unknown");
     if (!omega_evidence_physics_commit(physics, sizeof physics)) strcpy(physics, "unknown");
     int dirty = omega_evidence_tree_dirty();
-    const char *gate = !pass ? "FAIL" : dirty ? "PASS_UNBOUND_DIRTY_TREE" : "PASS";
+    const char *gate = !pass ? "FAIL" : dirty ? "PASS_UNBOUND_DIRTY_TREE"
+                       : g_energy_not_run ? "PASS_ENERGY_NOT_RUN" : "PASS";
 
     strcpy(path, "(not written)");
     {
@@ -831,7 +837,7 @@ int main(int argc, char **argv) {
     }
     printf("\nrepresentation-independent identity: %s; all eight actions exercised: %s\n",
            rep_indep ? "yes" : "NO", all_actions ? "yes" : "NO");
-    if (pass && !dirty) printf("OMEGA_BRANCH_STATE_REUSE_PASS\n");
+    if (pass && !dirty && !g_energy_not_run) printf("OMEGA_BRANCH_STATE_REUSE_PASS\n");
     printf("gate: OMEGA_BRANCH_STATE_REUSE=%s\nreceipt: %s\n", gate, path);
     return pass ? 0 : 1;
 }