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#989 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/fd5f09655a2427ea.bundle -o fd5f09655a2427ea.bundle git fetch fd5f09655a2427ea.bundle refs/pull/989/head
Provenance
github-import 1
aien-dev/omega-mv
989
dfc7ccbe412371c58a7ee462723ab86fe0eed544
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":989,"url":"https://github.com/aien-dev/omega-mv/pull/989","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:41Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 23ffc98dc..8f425e235 100644 --- a/.crumb +++ b/.crumb @@ -48,7 +48,7 @@ }, { "digest": "f2f0cdaf1fb5469358fded4a6788d1526cd928f4df1d20792ece93169664dbdf", - "last_commit": "5da4e8231", + "last_commit": "4722cba58", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -66,13 +66,13 @@ }, { "digest": "9df503eba85384d7e7a5f587f2278b64308061badf729858bb6f9eca6cd42d33", - "last_commit": "5da4e8231", + "last_commit": "4722cba58", "name": "native", "purpose": "Handwritten .om units of omega-mv that are not part of the seed ladder: the ORIG-4 shadow adviso" }, { "digest": "85e85f7ce6934bddc69a2525dfb13d2e0fc2016c3eb6f27ed13d71dd24194ca1", - "last_commit": "5da4e8231", + "last_commit": "4722cba58", "name": "neuralese", "purpose": "Bounded untrusted representation envelopes and explicit checked Omega decoding; learned extensio" }, @@ -90,13 +90,13 @@ }, { "digest": "983e00dd5d9d0f7db351164357058e7dbc567567f9245ce68c09e802944f4eda", - "last_commit": "5da4e8231", + "last_commit": "4722cba58", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { - "digest": "afc0a615167640374b02c58f5e579653b8b828c16c8ccf6b56a8dc061a399c8a", - "last_commit": "d39450a23", + "digest": "52b6d20a3bcf5d1f87ba57298618bbfefea29df48d67e6c7c18f9b65db5c1f01", + "last_commit": "f5e55ef3d", "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:deebb78f0cefb9cc88e43af90843a80b2af022fa064dc77a524c214e14690dbd", - "compiled_at": "2026-10-31T08:56:54Z", + "children_root": "sha256:b4dc70e5338db404e623fbe78c1dc7321efe1107101f528e15822af0660fe92c", + "compiled_at": "2026-10-31T09:26:26Z", "compiler": "crumb-compile/1", - "digest": "sha256:6ee543a6eabbbcb12fef36608483492b182a37b50e4e6667c100e74a45488029", + "digest": "sha256:eb4cb06ac3a96678230b143d83c4868f0b3237265e4951e13e6528006c6c2e11", "evidence_files": 14989, "evidence_root": "sha256:7ad906b56b17978d043a8a1a42685532ebe447fc7d21ecede5da5f95c6e2ed2a", "files": 23221, - "generated_at_commit": "5da4e8231e8e642999c55701cfda9ffd1fae1108", - "source_tree": "sha256:1bbc6c079548a7decd6b116965c808b267c98566f853c786ef08df7e57cd11aa" + "generated_at_commit": "ae3d1c75750ebe83445697f32886bc7a2aa540d1", + "source_tree": "sha256:0567ecb49905a0bbf343b09025e850384173ab88a11d81f60edae4ec177e3004" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index 0ac0ae690..408382c84 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -308,14 +308,14 @@ } ], "children_root": "sha256:4e202b52b2c80d88dc93220a0c00cda479e52c2e63f847fbb30b9b1f426294f5", - "compiled_at": "2026-10-31T05:27:18Z", + "compiled_at": "2026-10-31T08:45:51Z", "compiler": "crumb-compile/1", - "digest": "sha256:afc0a615167640374b02c58f5e579653b8b828c16c8ccf6b56a8dc061a399c8a", + "digest": "sha256:52b6d20a3bcf5d1f87ba57298618bbfefea29df48d67e6c7c18f9b65db5c1f01", "evidence_files": 74, "evidence_root": "sha256:9aa38bf7dcfa5eb3499356a0a2a1dd7704fedfae2d16822a7c9e1400f3a72723", "files": 2047, - "generated_at_commit": "1db941627f637312ce60e49872dcdd18b49a54b7", - "source_tree": "sha256:bd43c51d15c9f611728acbc8632a3045f0224523ff0d7c49de0f2d4100915f57" + "generated_at_commit": "c11e0a66f739f9a810dec0a4ce2ec3a6fe2016ef", + "source_tree": "sha256:8ac1eaf198cb82bbd8cde3c8a8cc3b1a7be9466812042730cad83e19b3d1bf51" }, "owner_lane": "", "provenance": { diff --git a/tests/run_tensor_chip.sh b/tests/run_tensor_chip.sh index 4c6029af8..5f0eecf42 100755 --- a/tests/run_tensor_chip.sh +++ b/tests/run_tensor_chip.sh @@ -28,7 +28,17 @@ # build/tensor-runs/<run-id>/, and refuses a binary with libm math or CUDA # symbols. # 3. Runs it with --chip under /tmp/aien-gb10.lock (waits for the lock; no -# timeout; the chip test is never killed). +# timeout; the chip test is never killed). Inside `spark-window run` +# (SPARK_WINDOW set and AIEN_GB10_LOCK_HELD=1) the window already holds +# that lock, shared or exclusive, so the script takes no lock of its own: +# an exclusive flock beside the window's shared one would wait on its own +# window forever. The markers are only environment text, so the claim is +# checked first: SPARK_WINDOW_DIR must be that window's directory, marked +# held, and one of its holder.pid's open files must carry an flock on the +# lock file's inode (/proc/<holder>/fdinfo "lock:" lines; /proc/locks names +# the short-lived flock(1) that took it, not the holder). An unverified +# claim fails the run without touching the chip. The receipt records which +# lock was held (gb10_lock). # 4. PASS needs exit status 0 and the lines "TENSOR_GB10_HOST: PASS", # "TENSOR_GB10_PARITY: PASS", "TENSOR_GB10_MUTANTS: PASS" and # "M20 Tensor GB10 Verdict: PASS", and clean trees with unmoved HEADs after. @@ -50,6 +60,18 @@ while [ $# -gt 0 ]; do esac done die() { echo "run_tensor_chip: $*" >&2; exit 2; } +# window_holds_chip: the spark-window named by SPARK_WINDOW really holds /tmp/aien-gb10.lock now. +# Its holder is a background process (not our ancestor) whose lock was taken by a flock(1) child +# that has exited, so the holder's own open file descriptions (fdinfo "lock:") are the check. +window_holds_chip() { + local d=${SPARK_WINDOW_DIR:-} hp ino + [ -n "$d" ] && [ "$(basename "$d")" = "$SPARK_WINDOW" ] && [ -f "$d/held" ] || return 1 + hp=$(cat "$d/holder.pid" 2>/dev/null) || return 1 + case $hp in ''|*[!0-9]*) return 1 ;; esac + ino=$(stat -c %i /tmp/aien-gb10.lock 2>/dev/null) || return 1 + cat /proc/"$hp"/fdinfo/* 2>/dev/null | + awk -v i="$ino" '$1 == "lock:" && $3 == "FLOCK" { split($7, a, ":"); if (a[3] == i) f = 1 } END { exit !f }' +} [ "${GB10_CHIP_RUN:-}" = 1 ] || die "chip run refused: GB10_CHIP_RUN=1 is not set" [ -n "$PHYS" ] && [ -d "$PHYS" ] || die "--physics-dir is required" PHYS=$(cd "$PHYS" && pwd) @@ -91,10 +113,21 @@ if [ -z "$FAIL_REASON" ]; then fi STATUS=-1 BIN_SHA_BUILT="" +GB10_LOCK="" [ -z "$FAIL_REASON" ] && { BIN_SHA_BUILT=$(sha256sum "$BIN" | cut -d' ' -f1); [ -n "$BIN_SHA_BUILT" ] || FAIL_REASON="cannot hash binary after build"; } +if [ -z "$FAIL_REASON" ]; then + if [ "${AIEN_GB10_LOCK_HELD:-}" = 1 ] && [ -n "${SPARK_WINDOW:-}" ]; then + GB10_LOCK="spark-window $SPARK_WINDOW" + gb10() { "$@"; } + window_holds_chip || { GB10_LOCK="refused: unverified spark-window $SPARK_WINDOW"; FAIL_REASON="AIEN_GB10_LOCK_HELD=1 and SPARK_WINDOW=$SPARK_WINDOW, but no open file of that window's holder carries an flock on /tmp/aien-gb10.lock: chip refused"; } + else + GB10_LOCK="flock /tmp/aien-gb10.lock" + gb10() { flock /tmp/aien-gb10.lock "$@"; } + fi +fi if [ -z "$FAIL_REASON" ]; then # waits for the lock; no timeout; never killed - GB10_CHIP_RUN=1 flock /tmp/aien-gb10.lock "$BIN" --chip > "$OUT/tensor.log" 2> "$OUT/tensor.stderr" + GB10_CHIP_RUN=1 gb10 "$BIN" --chip > "$OUT/tensor.log" 2> "$OUT/tensor.stderr" STATUS=$? echo "$STATUS" > "$OUT/tensor.status" [ "$STATUS" = 0 ] || FAIL_REASON="test binary exit status $STATUS" @@ -156,7 +189,7 @@ jq -n --arg suite M20_TENSOR_GB10_PARITY --arg status "$VERDICT" --arg reason "$ --arg host_line "$(line TENSOR_GB10_HOST:)" --arg parity "$(line TENSOR_GB10_PARITY:)" \ --arg mutants "$(line TENSOR_GB10_MUTANTS:)" --arg cases "$(line 'cases:')" \ --arg verdict_line "$(line 'M20 Tensor GB10 Verdict:')" \ - --arg host "$(uname -n)" --arg kernel "$(uname -r)" \ + --arg host "$(uname -n)" --arg kernel "$(uname -r)" --arg gb10_lock "$GB10_LOCK" \ '{suite:$suite,status:$status,reason:$reason,run_id:$run_id,started_utc:$started,finished_utc:$finished, omega_commit:$commit,omega_tree_clean_before:true,omega_tree_clean_after:$clean_after, omega_commit_unchanged_after:$head_same,physics_commit:$physics,physics_lock_pin:$pin, @@ -169,7 +202,7 @@ jq -n --arg suite M20_TENSOR_GB10_PARITY --arg status "$VERDICT" --arg reason "$ reduce:"E1 omega_reduce_gb10 (MEAN final division is its declared host step)", reduce_rows_sum:"E1 REDUCE_SUM warp kernel via omega_gb10_execute_simt_op, all rows per level", matmul:"FMUL_RNE products + E1 tree; no Tensor Core, no FFMA"}, - mutants:["WRONG_REDUCE_ORDER","FFMA_MATMUL","SWAPPED_OPERAND"],quiet_flag:"not used", + mutants:["WRONG_REDUCE_ORDER","FFMA_MATMUL","SWAPPED_OPERAND"],quiet_flag:"not used",gb10_lock:$gb10_lock, host:$host,kernel:$kernel}' > "$TMP" || die "receipt json (jq) failed, no receipt written" [ -s "$TMP" ] || die "empty receipt, not written" [ "$VERDICT" != PASS ] || { [ -n "$BIN_SHA" ] && [ -n "$LOG_SHA" ]; } || die "PASS without binary and log digests refused"