From 9e1f3d32f0d70a3fc2f99fbfa8501befadcc107c Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 09:02:10 -0500 Subject: [PATCH 1/2] GPU gate scripts skip their flock when the aien-test worker already holds it The worker holds /tmp/aien-gb10.lock for the whole gb10 gate. A blocking flock on the same file from inside the gate would wait on the worker forever, and gb10 gates are never killed. The worker now sets AIEN_GB10_LOCK_HELD=1 (core #653), and the forge, nvrm lifecycle and submission visibility scripts skip their own flock when it is set. Manual runs keep taking the lock. Refs aien-dev/aien-sovereign-core#627 Co-Authored-By: Claude Opus 5.5 --- tests/run_forge_gates.sh | 10 +++++++--- tests/run_nvrm_lifecycle_gates.sh | 8 +++++++- tests/run_submission_visibility_gates.sh | 8 +++++++- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/tests/run_forge_gates.sh b/tests/run_forge_gates.sh index 371e563..3c70452 100755 --- a/tests/run_forge_gates.sh +++ b/tests/run_forge_gates.sh @@ -11,7 +11,8 @@ # (created exclusively, mode 0444) plus blobs/.log # # Needs the GB10. The whole build + test section runs under one exclusive -# lock on /tmp/aien-gb10.lock (fd 9); nothing inside takes the lock again. +# lock on /tmp/aien-gb10.lock (fd 9), or under the aien-test worker's own hold of +# it when AIEN_GB10_LOCK_HELD=1; nothing inside takes the lock again. # # Receipt mode checks: both candidates are explicit full 40-hex SHAs equal to # HEAD of a clean tree (this physics tree and --omega-dir), before the run @@ -289,8 +290,11 @@ forge_main() { echo "Host: $(uname -n) ($(uname -m))" echo "Run: $run_id" - exec 9> "$FORGE_LOCK" || { echo "cannot open $FORGE_LOCK" >&2; exit 1; } - flock -x 9 || { echo "cannot take $FORGE_LOCK" >&2; exit 1; } + # The aien-test worker already holds the lock for a gb10 gate and says so (core #627). + if [ "${AIEN_GB10_LOCK_HELD:-}" != 1 ]; then + exec 9> "$FORGE_LOCK" || { echo "cannot open $FORGE_LOCK" >&2; exit 1; } + flock -x 9 || { echo "cannot take $FORGE_LOCK" >&2; exit 1; } + fi ts=$(date -u +%Y-%m-%dT%H:%M:%S.%6NZ) forge_run_section "$rd" 2>&1 | tee "$log" # hash the binaries that ran before another run can rebuild them diff --git a/tests/run_nvrm_lifecycle_gates.sh b/tests/run_nvrm_lifecycle_gates.sh index 8be08ec..8256c54 100755 --- a/tests/run_nvrm_lifecycle_gates.sh +++ b/tests/run_nvrm_lifecycle_gates.sh @@ -24,6 +24,12 @@ gcc -O2 -Wall -Wextra -Werror \ echo " lifecycle_gates built cleanly." echo -e "\n[*] Running lifecycle_gates under GPU lock ($LOCK_FILE)..." -flock "$LOCK_FILE" ./nvrm/lifecycle_gates +# The aien-test worker already holds the lock for a gb10 gate and says so (core #627): +# taking it again here would wait on the worker forever. +if [ "${AIEN_GB10_LOCK_HELD:-}" = 1 ]; then + ./nvrm/lifecycle_gates +else + flock "$LOCK_FILE" ./nvrm/lifecycle_gates +fi echo -e "\n=== M19R NVRM Lifecycle Gates: done ===" diff --git a/tests/run_submission_visibility_gates.sh b/tests/run_submission_visibility_gates.sh index 6a0b8b4..8b35efe 100755 --- a/tests/run_submission_visibility_gates.sh +++ b/tests/run_submission_visibility_gates.sh @@ -29,6 +29,12 @@ if [ ! -e /dev/nvidia0 ]; then fi echo -e "\n[*] Running submission_visibility_gates under GPU lock ($LOCK_FILE)..." -flock "$LOCK_FILE" ./nvrm/submission_visibility_gates +# The aien-test worker already holds the lock for a gb10 gate and says so (core #627): +# taking it again here would wait on the worker forever. +if [ "${AIEN_GB10_LOCK_HELD:-}" = 1 ]; then + ./nvrm/submission_visibility_gates +else + flock "$LOCK_FILE" ./nvrm/submission_visibility_gates +fi echo -e "\n=== GB10 Submission Visibility Gates: done ===" From 64e1b7f424daa9d5cf885d3cc16b585caa30870f Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 09:02:10 -0500 Subject: [PATCH 2/2] crumb: recompile with the pinned tool (aien-architecture d0f0b95) Co-Authored-By: Claude Opus 5.5 --- .crumb | 22 +++++++++++----------- tests/.crumb | 8 ++++---- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.crumb b/.crumb index 14551fc..256891d 100644 --- a/.crumb +++ b/.crumb @@ -38,7 +38,7 @@ "children": [ { "digest": "7f1255ac5d9ecb72d0171ad2fb7d58d02cdddc7d292ac99fdd5e01996a7ea78d", - "last_commit": "ff13208", + "last_commit": "32f308d", "name": "contracts", "purpose": "Directory contracts. Purpose not yet described by a human." }, @@ -56,44 +56,44 @@ }, { "digest": "082c08b40f0b9c64dca91cfa5bd9c4e79fe2f5ec3e61ff6d765147ad8adb0458", - "last_commit": "b5444bb", + "last_commit": "32f308d", "name": "m15", "purpose": "Directory m15. Purpose not yet described by a human." }, { "digest": "81dd3d0d4a6edaca0b1aa3976f9d88082c2e643b8a5774d4b37773a59842451b", - "last_commit": "a7dc4ef", + "last_commit": "32f308d", "name": "m3", "purpose": "Directory m3. Purpose not yet described by a human." }, { - "digest": "5df4d90d339a694ddd9c6a08bcaa556bcddf1d8e76336ebaf113bbaf71dd010b", + "digest": "c580666aa868a46a2cf05e4b2c0dd5d27ca9d93bb515f04d3fa9fba1e18a10f6", "last_commit": "454a9d3", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "e3cacdb9c1f09ba66d6dc8a74a51b591589094c2ba507166dd453dff84755531", - "last_commit": "b64753d", + "last_commit": "32f308d", "name": "third_party", "purpose": "Directory third_party. Purpose not yet described by a human." }, { "digest": "9a5b9439ba72383093d7d5b3ffa32bc0e553ad5ec2892fc8d696eb9d4ca47796", - "last_commit": "8ee14a3", + "last_commit": "32f308d", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:95b8a876467dd97ba4a5da8e52e0af3c24a57bfabc5ea1ed7287f0d7d59016a5", - "compiled_at": "2026-10-18T04:43:22Z", + "children_root": "sha256:02d4ed6b45dfb1434e593783641626c36de20a59153b821b3fba37d0b02fcbef", + "compiled_at": "2026-10-18T14:01:59Z", "compiler": "crumb-compile/1", - "digest": "sha256:aa2c372b86300a8d3b9c6966e7017b7d31494578e1fb63fcc1e713b895ba8e7d", + "digest": "sha256:38210d8a34b68694701c9a097fe02fd0903b110b4134c83c680ff479c688f56e", "evidence_files": 81, "evidence_root": "sha256:0a0459a4517679721bb2817540dd06995500a1c1ede079bc4665d9da5c39183d", "files": 284, - "generated_at_commit": "2043924224b9ecffd79de2c37b2fe7a3a5396e0c", - "source_tree": "sha256:e7e88bad48eb6c9da461c8fbc79440d15b3c331cfdef961e15281bf7d5b3b956" + "generated_at_commit": "5bf9d9a7d19eb47e5685b1d8294fdeed078f66ba", + "source_tree": "sha256:c691378bcb2eb04fdedd45338ce2180e6609869c6178b9270c62be1195eedef8" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index 5f5be13..8502a2c 100644 --- a/tests/.crumb +++ b/tests/.crumb @@ -20,14 +20,14 @@ } ], "children_root": "sha256:be29e4df8a1e9e426d7723fccf6e09f23eb6fb07a6b21490cd019c75d6fed6cd", - "compiled_at": "2026-10-14T14:17:04Z", + "compiled_at": "2026-10-18T14:01:59Z", "compiler": "crumb-compile/1", - "digest": "sha256:5df4d90d339a694ddd9c6a08bcaa556bcddf1d8e76336ebaf113bbaf71dd010b", + "digest": "sha256:c580666aa868a46a2cf05e4b2c0dd5d27ca9d93bb515f04d3fa9fba1e18a10f6", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 33, - "generated_at_commit": "ff2c62e820a64a90fd58be0db031a0d2e53fa308", - "source_tree": "sha256:08c3b002086d385ccecce3aa2d9695ec9c136bcdb299b9a4fec6ec7697cb3a11" + "generated_at_commit": "5bf9d9a7d19eb47e5685b1d8294fdeed078f66ba", + "source_tree": "sha256:6260e5e328a8ba0cf37bdedb1e0eef35c3b619043516825626b797f3dc13a74c" }, "owner_lane": "", "provenance": {