diff --git a/.crumb b/.crumb index 14551fc..8c15d58 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", - "last_commit": "454a9d3", + "digest": "ab842bff32d2e46d2fab6ba48da95ee5170f52dc87a804a38f93258c0f6f72dd", + "last_commit": "056f5e7", "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:e4bf54f8cd600ad8f7a450d12b52a2b111f8f0f0ad46ea73063a8150fee13fce", + "compiled_at": "2026-10-18T14:46:22Z", "compiler": "crumb-compile/1", - "digest": "sha256:aa2c372b86300a8d3b9c6966e7017b7d31494578e1fb63fcc1e713b895ba8e7d", + "digest": "sha256:f5cf27cec6e2701c2605229d16c9e8b97ad867b85585d924efe7ad5e5cb4594e", "evidence_files": 81, "evidence_root": "sha256:0a0459a4517679721bb2817540dd06995500a1c1ede079bc4665d9da5c39183d", "files": 284, - "generated_at_commit": "2043924224b9ecffd79de2c37b2fe7a3a5396e0c", - "source_tree": "sha256:e7e88bad48eb6c9da461c8fbc79440d15b3c331cfdef961e15281bf7d5b3b956" + "generated_at_commit": "9689de9a819f81a0ed408fd1eff0cb709ae52b22", + "source_tree": "sha256:c5f14ce1429a29debd10de450bd633949c93ea8d5250c84de82b26ac1b51c4d0" }, "owner_lane": "", "provenance": { diff --git a/tests/.crumb b/tests/.crumb index 5f5be13..ad4558c 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-16T08:58:15Z", "compiler": "crumb-compile/1", - "digest": "sha256:5df4d90d339a694ddd9c6a08bcaa556bcddf1d8e76336ebaf113bbaf71dd010b", + "digest": "sha256:ab842bff32d2e46d2fab6ba48da95ee5170f52dc87a804a38f93258c0f6f72dd", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 33, - "generated_at_commit": "ff2c62e820a64a90fd58be0db031a0d2e53fa308", - "source_tree": "sha256:08c3b002086d385ccecce3aa2d9695ec9c136bcdb299b9a4fec6ec7697cb3a11" + "generated_at_commit": "e5265c0cf417c138cc4805ae8dc4462d33c20537", + "source_tree": "sha256:c62d885e1d42ef0b7bd20bc2473f8b96c716090c33a2ecb11070fee6d0c2c9d2" }, "owner_lane": "", "provenance": { diff --git a/tests/gates/run.sh b/tests/gates/run.sh index cd88661..cc6b1ce 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -72,8 +72,10 @@ case "$step" in forge-gate34) tests/run_forge_gates.sh ;; m15) run_in_temp_copy tests/run_m15_gates.sh ;; m16-requal) run_in_temp_copy tests/run_m16_requalification.sh ;; - nvrm-lifecycle) tests/run_nvrm_lifecycle_gates.sh ;; - submission-visibility) tests/run_submission_visibility_gates.sh ;; + # The two nvrm scripts compile into nvrm/ (lifecycle_gates is a tracked + # binary); in the shared worktree that is a concurrent gate's dirty_after. + nvrm-lifecycle) run_in_temp_copy tests/run_nvrm_lifecycle_gates.sh ;; + submission-visibility) run_in_temp_copy tests/run_submission_visibility_gates.sh ;; zero-disk-secrets) # Not a hosted step in this repository; the same invariant the Rust repos enforce. echo "Auditing repository for prohibited plaintext secret files..." diff --git a/tests/run_forge_gates.sh b/tests/run_forge_gates.sh index 371e563..a3790db 100755 --- a/tests/run_forge_gates.sh +++ b/tests/run_forge_gates.sh @@ -289,8 +289,16 @@ 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; } + # Under aien-test the runner already holds $FORGE_LOCK for this gate + # (ADR 0033) and says so with AIEN_GB10_LOCK_HELD=1; as aien-run this + # script cannot open the worker's lock file, and as the same user it + # would block behind the runner. By hand, without the marker, take it. + if [ "${AIEN_GB10_LOCK_HELD:-0}" = 1 ]; then + echo "GPU lock $FORGE_LOCK held by the caller (AIEN_GB10_LOCK_HELD=1)" + else + 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..c7f6b7d 100755 --- a/tests/run_nvrm_lifecycle_gates.sh +++ b/tests/run_nvrm_lifecycle_gates.sh @@ -23,7 +23,16 @@ 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 +# Under aien-test the runner already holds $LOCK_FILE for this gate (ADR 0033: +# gb10 is serialized by the trusted side) and says so with AIEN_GB10_LOCK_HELD=1. +# Taking it again would fail as aien-run (cannot open the worker's file) or +# block forever as the same user. By hand, without the marker, take it here. +if [ "${AIEN_GB10_LOCK_HELD:-0}" = 1 ]; then + echo -e "\n[*] Running lifecycle_gates (GPU lock $LOCK_FILE held by the caller)..." + ./nvrm/lifecycle_gates +else + echo -e "\n[*] Running lifecycle_gates under GPU lock ($LOCK_FILE)..." + 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..e25cd97 100755 --- a/tests/run_submission_visibility_gates.sh +++ b/tests/run_submission_visibility_gates.sh @@ -28,7 +28,16 @@ if [ ! -e /dev/nvidia0 ]; then exit 0 fi -echo -e "\n[*] Running submission_visibility_gates under GPU lock ($LOCK_FILE)..." -flock "$LOCK_FILE" ./nvrm/submission_visibility_gates +# Under aien-test the runner already holds $LOCK_FILE for this gate (ADR 0033: +# gb10 is serialized by the trusted side) and says so with AIEN_GB10_LOCK_HELD=1. +# Taking it again would fail as aien-run (cannot open the worker's file) or +# block forever as the same user. By hand, without the marker, take it here. +if [ "${AIEN_GB10_LOCK_HELD:-0}" = 1 ]; then + echo -e "\n[*] Running submission_visibility_gates (GPU lock $LOCK_FILE held by the caller)..." + ./nvrm/submission_visibility_gates +else + echo -e "\n[*] Running submission_visibility_gates under GPU lock ($LOCK_FILE)..." + flock "$LOCK_FILE" ./nvrm/submission_visibility_gates +fi echo -e "\n=== GB10 Submission Visibility Gates: done ==="