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#530 (code only)
Apply it
git checkout -b patch-73c9ac2bb62ed13b f4a9849fb127f8d2d664dfc56890752ad180c507 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/73c9ac2bb62ed13b.patch | git am
Provenance
github-import 1
aien-dev/omega-mv
530
a99d58d55ed83aa8293efa6a97c17b17809a04d3
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":530,"url":"https://github.com/aien-dev/omega-mv/pull/530","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:10Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 81f377ee2..d6b9fcea4 100644 --- a/.crumb +++ b/.crumb @@ -83,8 +83,8 @@ "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", - "last_commit": "88e24bdd", + "digest": "c610d329879c01df4bdbc5d8621ed28e79a491484646c800508fe712348a3111", + "last_commit": "aae8d114", "name": "tests", "purpose": "Directory tests. 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:1b559ec2b5ae6ba3b4566fb9adb365fae7ad676e93fcc94e191ef30fe7106605", + "compiled_at": "2026-10-17T03:13:17Z", "compiler": "crumb-compile/1", - "digest": "sha256:32086cfe6b319e0c0229bec39553d1b32f7460aa660ad888d5eb5990522e705a", + "digest": "sha256:aea82d9fae5c248f0d4035bb984de3c2c16aaad9ddf0a1e3e05c51334277f69c", "evidence_files": 11127, "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", "files": 14109, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e01c9caa38757306582443fe69f52cb061c3d27250f8ad0b9f4b4f43b009dc14" + "generated_at_commit": "aae8d114d0dc769eeec11037781f1bd69baf0cf4", + "source_tree": "sha256:d74f4c3264a36a40c2bfa19d8aadb007bb1ffe2bff198d65ceda8cb73281f4e9" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index bd5535a8b..9dd51c515 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -265,8 +265,8 @@ "purpose": "Reservoir tests (omega#440): Gate 1 simulator and readout checks against an independent binary64" }, { - "digest": "bc2b514054f69604a155900fb1884948a78e12b88a15852296cbea1f751055b2", - "last_commit": "501d555c", + "digest": "8d9902bfef6302ea10880ea50d88ef5d6b8bf2619e9c10b3a756968421bedbbb", + "last_commit": "aae8d114", "name": "runtime", "purpose": "Directory tests/runtime. Purpose not yet described by a human." }, @@ -295,15 +295,15 @@ "purpose": "Directory tests/visor. Purpose not yet described by a human." } ], - "children_root": "sha256:ddc3618190458bc5073e3bee67ffccc68a2ee9f065f2cb0d86545386a29fddf8", - "compiled_at": "2026-10-16T19:04:20Z", + "children_root": "sha256:4aee8c2d8f21fd9452fadad70e84057e0b44f93e85fe1bebb34074676f999ad2", + "compiled_at": "2026-10-17T03:13:17Z", "compiler": "crumb-compile/1", - "digest": "sha256:4eb9d4d76234448c0ed691f0aeb9c90d785f8a47b1b1291d728bbe3e1509dc10", + "digest": "sha256:c610d329879c01df4bdbc5d8621ed28e79a491484646c800508fe712348a3111", "evidence_files": 16, "evidence_root": "sha256:96d08097822ad95f4e562c19e0ba5df5a035774c48632f1832912c40a27bd27a", "files": 1270, - "generated_at_commit": "88e24bdd57b27817d030d0ad95f62c3f3eacf426", - "source_tree": "sha256:e6c4f0021d383ba2e59da0d85d06a0b98170f6d188289c891b5745200548e6fc" + "generated_at_commit": "aae8d114d0dc769eeec11037781f1bd69baf0cf4", + "source_tree": "sha256:4df4909f694a2a9646ec5ad92e5c444fc79174a72e7ed1cf7aaeaa00bfccff38" }, "owner_lane": "", "provenance": { diff --git a/tests/runtime/.crumb b/tests/runtime/.crumb index 48918ae9f..963280644 100644 --- a/tests/runtime/.crumb +++ b/tests/runtime/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T02:12:57Z", + "compiled_at": "2026-10-17T03:13:17Z", "compiler": "crumb-compile/1", - "digest": "sha256:bc2b514054f69604a155900fb1884948a78e12b88a15852296cbea1f751055b2", + "digest": "sha256:8d9902bfef6302ea10880ea50d88ef5d6b8bf2619e9c10b3a756968421bedbbb", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 70, - "generated_at_commit": "95829f2abd7f66461b4ba153ea807f39e9d06db8", - "source_tree": "sha256:e037c5156071865094d0e60262d34ca920be2dd6f98e2603a1f0082330ba7841" + "generated_at_commit": "aae8d114d0dc769eeec11037781f1bd69baf0cf4", + "source_tree": "sha256:2b9d483a1f8068dfe689b5457e6d9f4a9bc928626e4ae525030f12b74609f0f3" }, "owner_lane": "", "provenance": { diff --git a/tests/runtime/r11_own_hold_test.sh b/tests/runtime/r11_own_hold_test.sh index d16128cc1..13325f0b9 100755 --- a/tests/runtime/r11_own_hold_test.sh +++ b/tests/runtime/r11_own_hold_test.sh @@ -2,17 +2,43 @@ # R11 living run inside its own quiet hold (tests/runtime/rx_r11_aien.c # quiet_flag_is_mine). With a fake HOME whose ~/workspace/.spark-quiet carries # hold=q1-abc: no QUIETLOCK_HOLD, a prefix and an extension of the id must all -# refuse the living run (someone else's measurement); QUIETLOCK_HOLD=q1-abc -# must run it. usage: r11_own_hold_test.sh <rx_r11_aien_test> +# refuse the living run because of the flag (someone else's measurement); +# QUIETLOCK_HOLD=q1-abc must run it. +# +# The binary also refuses the living run when the machine is loaded (1-minute +# load average above 2, or an R15 program alive): "SKIPPED-LOADED: <why>". +# Only the flag reason counts as the refusal this test is about. When the +# q1-abc case is refused for load, the test waits for the machine to quiet down +# and runs it again, for at most R11_QUIET_WAIT seconds (default 1800). If the +# machine never quiets, the case stays a failure: a skipped living run is never +# a pass. usage: r11_own_hold_test.sh <rx_r11_aien_test> B=${1:?rx_r11_aien_test binary}; H=$(mktemp -d); fail=0 +WAIT=${R11_QUIET_WAIT:-1800} trap 'rm -rf "$H"' EXIT mkdir -p "$H/workspace" echo "other quietlock X start=2026-10-05T00:00:00Z expected_end=2099-01-01T00:00:00Z pid=1 hold=q1-abc" > "$H/workspace/.spark-quiet" +FLAG_WHY='holds ~/workspace/.spark-quiet' + +load_ok() { awk '{ exit !($1 <= 2.0) }' /proc/loadavg; } + for hold in "" q1-ab q1-abcd q1-abc; do - out=$(HOME=$H QUIETLOCK_HOLD=$hold "$B" 2>&1) - if printf '%s\n' "$out" | grep -Fq "living run not exercised"; then got=refused; else got=ran; fi if [ "$hold" = q1-abc ]; then want=ran; else want=refused; fi + waited=0 + while :; do + out=$(HOME=$H QUIETLOCK_HOLD=$hold "$B" 2>&1) + if ! printf '%s\n' "$out" | grep -Fq "living run not exercised"; then got=ran + elif printf '%s\n' "$out" | grep -Fq "$FLAG_WHY"; then got=refused + else got=loaded; fi + [ "$got" = loaded ] && [ "$want" = ran ] && [ "$waited" -lt "$WAIT" ] || break + why=$(printf '%s\n' "$out" | sed -n 's/^\[-\] SKIPPED-LOADED: living run not started: //p' | head -n 1) + echo "[~] hold='$hold': living run refused for load ($why), waiting for a quiet machine (${waited}s of ${WAIT}s)" + while [ "$waited" -lt "$WAIT" ]; do + sleep 15; waited=$((waited + 15)) + load_ok && break + done + done printf '%s\n' "$out" | grep -Eq '^checks [0-9]+ failures 0$' || { got="$got+failures"; } if [ "$got" = "$want" ]; then echo "[+] hold='$hold': $got"; else echo "[-] hold='$hold': $got, want $want"; fail=$((fail + 1)); fi + [ "$got" = loaded ] && printf '%s\n' "$out" | grep -F "SKIPPED-LOADED" | head -n 1 done echo "failures $fail"; [ "$fail" = 0 ]