yang
This project has not described itself yet.
Brought by drakestapleton
yang / scripts / build_and_run_spark.sh
| 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Sync yang/ to Spark, compile pure seeded-OM-2 binaries with ~/canon/omega-mv/seed/out/omc, |
| 4 | # and run under spark-window with BOARD.md CLAIM/RELEASE discipline. |
| 5 | set -eu |
| 6 | MODE=${1:-check1} |
| 7 | ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd) |
| 8 | REMOTE_DIR="/home/drakestapleton/workspace/yang-gb10" |
| 9 | OMEGA_DIR="/home/drakestapleton/canon/omega-mv" |
| 10 | |
| 11 | echo "=== Syncing $ROOT -> spark:$REMOTE_DIR ===" |
| 12 | ssh spark "mkdir -p '$REMOTE_DIR/src' '$REMOTE_DIR/proofs' '$REMOTE_DIR/build' '$REMOTE_DIR/evidence'" |
| 13 | COPYFILE_DISABLE=1 tar --exclude='.git' --exclude='._*' --exclude='.DS_Store' -C "$ROOT" -cf - PIN README.md src proofs scripts | ssh spark "tar -C '$REMOTE_DIR' -xf -" |
| 14 | |
| 15 | case "$MODE" in |
| 16 | interval_cert|phase3b_cert|phase4_cert) |
| 17 | pin=$(sed -n 's/^omc_sha256=//p' "$ROOT/PIN") |
| 18 | ssh spark "echo '$pin $OMEGA_DIR/seed/out/omc' | sha256sum -c -" |
| 19 | ;; |
| 20 | esac |
| 21 | |
| 22 | if [ "$MODE" = "check1" ]; then |
| 23 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check1_gb10 on Spark ===" |
| 24 | ssh spark "set -eu |
| 25 | cd '$OMEGA_DIR' |
| 26 | OMC=seed/out/omc |
| 27 | { |
| 28 | printf 'om2\n' |
| 29 | cat \ |
| 30 | gpu/nvidia/native/nvrm/context.om \ |
| 31 | gpu/nvidia/native/blackwell/vector.om \ |
| 32 | gpu/nvidia/native/blackwell/launch.om \ |
| 33 | gpu/nvidia/native/blackwell/batch.om \ |
| 34 | om/encoder/bw_enc_sm121.om \ |
| 35 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 36 | '$REMOTE_DIR/src/ufbi_check1_kernels.om' \ |
| 37 | '$REMOTE_DIR/src/ufbi_check1_gb10.om' |
| 38 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check1_gb10' |
| 39 | chmod 755 '$REMOTE_DIR/build/ufbi_check1_gb10' |
| 40 | ls -la '$REMOTE_DIR/build/ufbi_check1_gb10' |
| 41 | sha256sum '$REMOTE_DIR/build/ufbi_check1_gb10' |
| 42 | file '$REMOTE_DIR/build/ufbi_check1_gb10' |
| 43 | " |
| 44 | echo "=== Running ufbi_check1_gb10 on live GB10 under spark-window ===" |
| 45 | ssh spark "set -eu |
| 46 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check1-gb10 to all: GB10 chip lock (lease 10m, --quiet none) for pure-OM-2 Zero-CUDA Check #1 4D scalar UV-divergence sweep (L=8..64)\" >> ~/handoffs/BOARD.md |
| 47 | WID=\$(spark-window open ufbi-check1-gb10 --lease 10 --gb10 exclusive --quiet none | tail -n 1) |
| 48 | cleanup() { |
| 49 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 50 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check1-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 51 | } |
| 52 | trap cleanup EXIT |
| 53 | spark-window run '$REMOTE_DIR/build/ufbi_check1_gb10' > '$REMOTE_DIR/evidence/check1_gb10_run.tsv' |
| 54 | rc=\$? |
| 55 | cat '$REMOTE_DIR/evidence/check1_gb10_run.tsv' |
| 56 | exit \$rc |
| 57 | " |
| 58 | elif [ "$MODE" = "obs_synth" ]; then |
| 59 | echo "=== Building & running pure OM-2 ufbi_obs_synth on Spark CPU ===" |
| 60 | ssh spark "set -eu |
| 61 | cd '$OMEGA_DIR' |
| 62 | OMC=seed/out/omc |
| 63 | { |
| 64 | printf 'om2\n' |
| 65 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_obs_synth.om' |
| 66 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_obs_synth' |
| 67 | chmod 755 '$REMOTE_DIR/build/ufbi_obs_synth' |
| 68 | sha256sum '$REMOTE_DIR/build/ufbi_obs_synth' |
| 69 | '$REMOTE_DIR/build/ufbi_obs_synth' > '$REMOTE_DIR/evidence/obs_synth_run.tsv' |
| 70 | rc=\$? |
| 71 | cat '$REMOTE_DIR/evidence/obs_synth_run.tsv' |
| 72 | exit \$rc |
| 73 | " |
| 74 | elif [ "$MODE" = "check3" ]; then |
| 75 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check3_gb10 on Spark ===" |
| 76 | ssh spark "set -eu |
| 77 | cd '$OMEGA_DIR' |
| 78 | OMC=seed/out/omc |
| 79 | { |
| 80 | printf 'om2\n' |
| 81 | cat \ |
| 82 | gpu/nvidia/native/nvrm/context.om \ |
| 83 | gpu/nvidia/native/blackwell/vector.om \ |
| 84 | gpu/nvidia/native/blackwell/launch.om \ |
| 85 | gpu/nvidia/native/blackwell/batch.om \ |
| 86 | om/encoder/bw_enc_sm121.om \ |
| 87 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 88 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 89 | '$REMOTE_DIR/src/wilson_gb10.om' \ |
| 90 | '$REMOTE_DIR/src/ufbi_check3_gb10.om' |
| 91 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check3_gb10' |
| 92 | chmod 755 '$REMOTE_DIR/build/ufbi_check3_gb10' |
| 93 | ls -la '$REMOTE_DIR/build/ufbi_check3_gb10' |
| 94 | sha256sum '$REMOTE_DIR/build/ufbi_check3_gb10' |
| 95 | file '$REMOTE_DIR/build/ufbi_check3_gb10' |
| 96 | " |
| 97 | echo "=== Running ufbi_check3_gb10 on live GB10 under spark-window ===" |
| 98 | ssh spark "set -eu |
| 99 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check3-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #3 4D SU(2) adversarial twisted-collar search\" >> ~/handoffs/BOARD.md |
| 100 | WID=\$(spark-window open ufbi-check3-gb10 --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 101 | cleanup() { |
| 102 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 103 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check3-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 104 | } |
| 105 | trap cleanup EXIT |
| 106 | spark-window run '$REMOTE_DIR/build/ufbi_check3_gb10' > '$REMOTE_DIR/evidence/check3_gb10_run.tsv' |
| 107 | rc=\$? |
| 108 | cat '$REMOTE_DIR/evidence/check3_gb10_run.tsv' |
| 109 | exit \$rc |
| 110 | " |
| 111 | elif [ "$MODE" = "obs_synth_w2" ]; then |
| 112 | echo "=== Building & running pure OM-2 ufbi_obs_synth_w2 (Wave-2 Wake-Sleep + Physics Prior) on Spark CPU ===" |
| 113 | ssh spark "set -eu |
| 114 | cd '$OMEGA_DIR' |
| 115 | OMC=seed/out/omc |
| 116 | { |
| 117 | printf 'om2\n' |
| 118 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_obs_synth_w2.om' |
| 119 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_obs_synth_w2' |
| 120 | chmod 755 '$REMOTE_DIR/build/ufbi_obs_synth_w2' |
| 121 | sha256sum '$REMOTE_DIR/build/ufbi_obs_synth_w2' |
| 122 | '$REMOTE_DIR/build/ufbi_obs_synth_w2' > '$REMOTE_DIR/evidence/obs_synth_w2_run.tsv' |
| 123 | rc=\$? |
| 124 | cat '$REMOTE_DIR/evidence/obs_synth_w2_run.tsv' |
| 125 | exit \$rc |
| 126 | " |
| 127 | elif [ "$MODE" = "check4" ]; then |
| 128 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check4_gb10 on Spark ===" |
| 129 | ssh spark "set -eu |
| 130 | cd '$OMEGA_DIR' |
| 131 | OMC=seed/out/omc |
| 132 | { |
| 133 | printf 'om2\n' |
| 134 | cat \ |
| 135 | gpu/nvidia/native/nvrm/context.om \ |
| 136 | gpu/nvidia/native/blackwell/vector.om \ |
| 137 | gpu/nvidia/native/blackwell/launch.om \ |
| 138 | gpu/nvidia/native/blackwell/batch.om \ |
| 139 | om/encoder/bw_enc_sm121.om \ |
| 140 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 141 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 142 | '$REMOTE_DIR/src/ufbi_check4_gb10.om' |
| 143 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check4_gb10' |
| 144 | chmod 755 '$REMOTE_DIR/build/ufbi_check4_gb10' |
| 145 | ls -la '$REMOTE_DIR/build/ufbi_check4_gb10' |
| 146 | sha256sum '$REMOTE_DIR/build/ufbi_check4_gb10' |
| 147 | file '$REMOTE_DIR/build/ufbi_check4_gb10' |
| 148 | " |
| 149 | echo "=== Running ufbi_check4_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 150 | ssh spark "set -eu |
| 151 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check4-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #4 4D SU(2) exponential decay + 2-loop continuum scaling ladder\" >> ~/handoffs/BOARD.md |
| 152 | WID=\$(spark-window open ufbi-check4-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 153 | cleanup() { |
| 154 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 155 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check4-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 156 | } |
| 157 | trap cleanup EXIT |
| 158 | spark-window run spark-receipt ufbi-check4-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check4_gb10 > $REMOTE_DIR/evidence/check4_gb10_run.tsv' |
| 159 | rc=\$? |
| 160 | cat '$REMOTE_DIR/evidence/check4_gb10_run.tsv' |
| 161 | exit \$rc |
| 162 | " |
| 163 | elif [ "$MODE" = "obs_synth_w3" ]; then |
| 164 | echo "=== Building & running pure OM-2 ufbi_obs_synth_w3 (Wave-3 INV-4 Pole-Free + Bulk-Sigma) on Spark CPU ===" |
| 165 | ssh spark "set -eu |
| 166 | cd '$OMEGA_DIR' |
| 167 | OMC=seed/out/omc |
| 168 | { |
| 169 | printf 'om2\n' |
| 170 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_obs_synth_w3.om' |
| 171 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_obs_synth_w3' |
| 172 | chmod 755 '$REMOTE_DIR/build/ufbi_obs_synth_w3' |
| 173 | sha256sum '$REMOTE_DIR/build/ufbi_obs_synth_w3' |
| 174 | '$REMOTE_DIR/build/ufbi_obs_synth_w3' > '$REMOTE_DIR/evidence/obs_synth_w3_run.tsv' |
| 175 | rc=\$? |
| 176 | cat '$REMOTE_DIR/evidence/obs_synth_w3_run.tsv' |
| 177 | exit \$rc |
| 178 | " |
| 179 | elif [ "$MODE" = "check5" ]; then |
| 180 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check5_gb10 on Spark ===" |
| 181 | ssh spark "set -eu |
| 182 | cd '$OMEGA_DIR' |
| 183 | OMC=seed/out/omc |
| 184 | { |
| 185 | printf 'om2\n' |
| 186 | cat \ |
| 187 | gpu/nvidia/native/nvrm/context.om \ |
| 188 | gpu/nvidia/native/blackwell/vector.om \ |
| 189 | gpu/nvidia/native/blackwell/launch.om \ |
| 190 | gpu/nvidia/native/blackwell/batch.om \ |
| 191 | om/encoder/bw_enc_sm121.om \ |
| 192 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 193 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 194 | '$REMOTE_DIR/src/ufbi_check5_gb10.om' |
| 195 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check5_gb10' |
| 196 | chmod 755 '$REMOTE_DIR/build/ufbi_check5_gb10' |
| 197 | ls -la '$REMOTE_DIR/build/ufbi_check5_gb10' |
| 198 | sha256sum '$REMOTE_DIR/build/ufbi_check5_gb10' |
| 199 | file '$REMOTE_DIR/build/ufbi_check5_gb10' |
| 200 | " |
| 201 | echo "=== Running ufbi_check5_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 202 | ssh spark "set -eu |
| 203 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check5-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #5 contact-free decay + physically-scaled SU(2) continuum ladder + beta=6.0 gapless control\" >> ~/handoffs/BOARD.md |
| 204 | WID=\$(spark-window open ufbi-check5-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 205 | cleanup() { |
| 206 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 207 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check5-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 208 | } |
| 209 | trap cleanup EXIT |
| 210 | spark-window run spark-receipt ufbi-check5-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check5_gb10 > $REMOTE_DIR/evidence/check5_gb10_run.tsv' |
| 211 | rc=\$? |
| 212 | cat '$REMOTE_DIR/evidence/check5_gb10_run.tsv' |
| 213 | exit \$rc |
| 214 | " |
| 215 | elif [ "$MODE" = "check6" ]; then |
| 216 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check6_gb10 on Spark ===" |
| 217 | ssh spark "set -eu |
| 218 | cd '$OMEGA_DIR' |
| 219 | OMC=seed/out/omc |
| 220 | { |
| 221 | printf 'om2\n' |
| 222 | cat \ |
| 223 | gpu/nvidia/native/nvrm/context.om \ |
| 224 | gpu/nvidia/native/blackwell/vector.om \ |
| 225 | gpu/nvidia/native/blackwell/launch.om \ |
| 226 | gpu/nvidia/native/blackwell/batch.om \ |
| 227 | om/encoder/bw_enc_sm121.om \ |
| 228 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 229 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 230 | '$REMOTE_DIR/src/ufbi_check6_gb10.om' |
| 231 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check6_gb10' |
| 232 | chmod 755 '$REMOTE_DIR/build/ufbi_check6_gb10' |
| 233 | ls -la '$REMOTE_DIR/build/ufbi_check6_gb10' |
| 234 | sha256sum '$REMOTE_DIR/build/ufbi_check6_gb10' |
| 235 | file '$REMOTE_DIR/build/ufbi_check6_gb10' |
| 236 | " |
| 237 | echo "=== Running ufbi_check6_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 238 | ssh spark "set -eu |
| 239 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check6-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #6 high-stats 512-sweep 3-point scaled continuum ladder L=8,12,16 + beta=6.0 control + scaled Wave-3 observable\" >> ~/handoffs/BOARD.md |
| 240 | WID=\$(spark-window open ufbi-check6-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 241 | cleanup() { |
| 242 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 243 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check6-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 244 | } |
| 245 | trap cleanup EXIT |
| 246 | spark-window run spark-receipt ufbi-check6-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check6_gb10 > $REMOTE_DIR/evidence/check6_gb10_run.tsv' |
| 247 | rc=\$? |
| 248 | cat '$REMOTE_DIR/evidence/check6_gb10_run.tsv' |
| 249 | exit \$rc |
| 250 | " |
| 251 | elif [ "$MODE" = "check7" ]; then |
| 252 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check7_gb10 on Spark ===" |
| 253 | ssh spark "set -eu |
| 254 | cd '$OMEGA_DIR' |
| 255 | OMC=seed/out/omc |
| 256 | { |
| 257 | printf 'om2\n' |
| 258 | cat \ |
| 259 | gpu/nvidia/native/nvrm/context.om \ |
| 260 | gpu/nvidia/native/blackwell/vector.om \ |
| 261 | gpu/nvidia/native/blackwell/launch.om \ |
| 262 | gpu/nvidia/native/blackwell/batch.om \ |
| 263 | om/encoder/bw_enc_sm121.om \ |
| 264 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 265 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 266 | '$REMOTE_DIR/src/ufbi_check7_gb10.om' |
| 267 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check7_gb10' |
| 268 | chmod 755 '$REMOTE_DIR/build/ufbi_check7_gb10' |
| 269 | ls -la '$REMOTE_DIR/build/ufbi_check7_gb10' |
| 270 | sha256sum '$REMOTE_DIR/build/ufbi_check7_gb10' |
| 271 | file '$REMOTE_DIR/build/ufbi_check7_gb10' |
| 272 | " |
| 273 | echo "=== Running ufbi_check7_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 274 | ssh spark "set -eu |
| 275 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check7-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #7 smooth k=0 IR collars + UV-regular Wave-3 observable\" >> ~/handoffs/BOARD.md |
| 276 | WID=\$(spark-window open ufbi-check7-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 277 | cleanup() { |
| 278 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 279 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check7-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 280 | } |
| 281 | trap cleanup EXIT |
| 282 | spark-window run spark-receipt ufbi-check7-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check7_gb10 > $REMOTE_DIR/evidence/check7_gb10_run.tsv' |
| 283 | rc=\$? |
| 284 | cat '$REMOTE_DIR/evidence/check7_gb10_run.tsv' |
| 285 | exit \$rc |
| 286 | " |
| 287 | elif [ "$MODE" = "check8" ]; then |
| 288 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check8_gb10 on Spark ===" |
| 289 | ssh spark "set -eu |
| 290 | cd '$OMEGA_DIR' |
| 291 | OMC=seed/out/omc |
| 292 | { |
| 293 | printf 'om2\n' |
| 294 | cat \ |
| 295 | gpu/nvidia/native/nvrm/context.om \ |
| 296 | gpu/nvidia/native/blackwell/vector.om \ |
| 297 | gpu/nvidia/native/blackwell/launch.om \ |
| 298 | gpu/nvidia/native/blackwell/batch.om \ |
| 299 | om/encoder/bw_enc_sm121.om \ |
| 300 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 301 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 302 | '$REMOTE_DIR/src/ufbi_check8_gb10.om' |
| 303 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check8_gb10' |
| 304 | chmod 755 '$REMOTE_DIR/build/ufbi_check8_gb10' |
| 305 | ls -la '$REMOTE_DIR/build/ufbi_check8_gb10' |
| 306 | sha256sum '$REMOTE_DIR/build/ufbi_check8_gb10' |
| 307 | file '$REMOTE_DIR/build/ufbi_check8_gb10' |
| 308 | " |
| 309 | echo "=== Running ufbi_check8_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 310 | ssh spark "set -eu |
| 311 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check8-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #8 Phase-II multi-scale gauge-covariant block-spin RG flow (16^4 -> 8^4 -> 4^4)\" >> ~/handoffs/BOARD.md |
| 312 | WID=\$(spark-window open ufbi-check8-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 313 | cleanup() { |
| 314 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 315 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check8-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 316 | } |
| 317 | trap cleanup EXIT |
| 318 | spark-window run spark-receipt ufbi-check8-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check8_gb10 > $REMOTE_DIR/evidence/check8_gb10_run.tsv' |
| 319 | rc=\$? |
| 320 | cat '$REMOTE_DIR/evidence/check8_gb10_run.tsv' |
| 321 | exit \$rc |
| 322 | " |
| 323 | elif [ "$MODE" = "check9" ]; then |
| 324 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check9_gb10 on Spark ===" |
| 325 | ssh spark "set -eu |
| 326 | cd '$OMEGA_DIR' |
| 327 | OMC=seed/out/omc |
| 328 | { |
| 329 | printf 'om2\n' |
| 330 | cat \ |
| 331 | gpu/nvidia/native/nvrm/context.om \ |
| 332 | gpu/nvidia/native/blackwell/vector.om \ |
| 333 | gpu/nvidia/native/blackwell/launch.om \ |
| 334 | gpu/nvidia/native/blackwell/batch.om \ |
| 335 | om/encoder/bw_enc_sm121.om \ |
| 336 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 337 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 338 | '$REMOTE_DIR/src/ufbi_check9_gb10.om' |
| 339 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check9_gb10' |
| 340 | chmod 755 '$REMOTE_DIR/build/ufbi_check9_gb10' |
| 341 | ls -la '$REMOTE_DIR/build/ufbi_check9_gb10' |
| 342 | sha256sum '$REMOTE_DIR/build/ufbi_check9_gb10' |
| 343 | file '$REMOTE_DIR/build/ufbi_check9_gb10' |
| 344 | " |
| 345 | echo "=== Running ufbi_check9_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 346 | ssh spark "set -eu |
| 347 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check9-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #9 (12-pt beta=0.10..10.0 calibration + 16^4 blocked-action tomography + k=3 32^4 RG flow)\" >> ~/handoffs/BOARD.md |
| 348 | WID=\$(spark-window open ufbi-check9-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 349 | cleanup() { |
| 350 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 351 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check9-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 352 | } |
| 353 | trap cleanup EXIT |
| 354 | spark-window run spark-receipt ufbi-check9-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check9_gb10 > $REMOTE_DIR/evidence/check9_gb10_run.tsv' |
| 355 | rc=\$? |
| 356 | cat '$REMOTE_DIR/evidence/check9_gb10_run.tsv' |
| 357 | exit \$rc |
| 358 | " |
| 359 | elif [ "$MODE" = "check10" ]; then |
| 360 | echo "=== Building pure OM-2 Zero-CUDA ufbi_check10_gb10 on Spark ===" |
| 361 | ssh spark "set -eu |
| 362 | cd '$OMEGA_DIR' |
| 363 | OMC=seed/out/omc |
| 364 | { |
| 365 | printf 'om2\n' |
| 366 | cat \ |
| 367 | gpu/nvidia/native/nvrm/context.om \ |
| 368 | gpu/nvidia/native/blackwell/vector.om \ |
| 369 | gpu/nvidia/native/blackwell/launch.om \ |
| 370 | gpu/nvidia/native/blackwell/batch.om \ |
| 371 | om/encoder/bw_enc_sm121.om \ |
| 372 | '$REMOTE_DIR/src/ufbi_math.om' \ |
| 373 | '$REMOTE_DIR/src/ufbi_check3_kernels.om' \ |
| 374 | '$REMOTE_DIR/src/ufbi_check10_gb10.om' |
| 375 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_check10_gb10' |
| 376 | chmod 755 '$REMOTE_DIR/build/ufbi_check10_gb10' |
| 377 | ls -la '$REMOTE_DIR/build/ufbi_check10_gb10' |
| 378 | sha256sum '$REMOTE_DIR/build/ufbi_check10_gb10' |
| 379 | file '$REMOTE_DIR/build/ufbi_check10_gb10' |
| 380 | " |
| 381 | echo "=== Running ufbi_check10_gb10 on live GB10 under spark-window + spark-receipt ===" |
| 382 | ssh spark "set -eu |
| 383 | echo \"\$(date -u +%FT%H:%MZ) CLAIM agy-yang ufbi-check10-gb10 to all: GB10 chip lock (lease 15m, --quiet none) for pure-OM-2 Zero-CUDA Check #10 (exact S^3 Schwinger-Dyson 5-operator Hamiltonian tomography on 16^4 and 32^4)\" >> ~/handoffs/BOARD.md |
| 384 | WID=\$(spark-window open ufbi-check10-gb10 --wait --lease 15 --gb10 exclusive --quiet none | tail -n 1) |
| 385 | cleanup() { |
| 386 | spark-window close \"\$WID\" >/dev/null 2>&1 || true |
| 387 | echo \"\$(date -u +%FT%H:%MZ) RELEASE agy-yang ufbi-check10-gb10: done, GPU idle\" >> ~/handoffs/BOARD.md |
| 388 | } |
| 389 | trap cleanup EXIT |
| 390 | spark-window run spark-receipt ufbi-check10-gb10 --idle 5 -- sh -c '$REMOTE_DIR/build/ufbi_check10_gb10 > $REMOTE_DIR/evidence/check10_gb10_run.tsv' |
| 391 | rc=\$? |
| 392 | cat '$REMOTE_DIR/evidence/check10_gb10_run.tsv' |
| 393 | exit \$rc |
| 394 | " |
| 395 | elif [ "$MODE" = "dyadic_grid" ]; then |
| 396 | ssh spark "sh '$REMOTE_DIR/scripts/check_dyadic_grid.sh' '$REMOTE_DIR' '$OMEGA_DIR/seed/out/omc'" |
| 397 | elif [ "$MODE" = "interval_cert" ]; then |
| 398 | echo "=== Building & running pure OM-2 Zero-MC Interval-Arithmetic Verifier on Spark CPU ===" |
| 399 | ssh spark "set -eu |
| 400 | cd '$OMEGA_DIR' |
| 401 | OMC=seed/out/omc |
| 402 | { |
| 403 | printf 'om2\n' |
| 404 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_ivmath.om' '$REMOTE_DIR/src/ufbi_interval_rg_cert.om' |
| 405 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_interval_rg_cert' |
| 406 | chmod 755 '$REMOTE_DIR/build/ufbi_interval_rg_cert' |
| 407 | sha256sum '$REMOTE_DIR/build/ufbi_interval_rg_cert' |
| 408 | '$REMOTE_DIR/build/ufbi_interval_rg_cert' > '$REMOTE_DIR/evidence/phase3a_interval_rg_cert.tsv' |
| 409 | cat '$REMOTE_DIR/evidence/phase3a_interval_rg_cert.tsv' |
| 410 | " |
| 411 | elif [ "$MODE" = "phase3b_cert" ]; then |
| 412 | echo "=== Building & running pure OM-2 Zero-MC Phase III-B Dual-Cliff Verifier on Spark CPU ===" |
| 413 | ssh spark "set -eu |
| 414 | cd '$OMEGA_DIR' |
| 415 | OMC=seed/out/omc |
| 416 | { |
| 417 | printf 'om2\n' |
| 418 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_ivmath.om' '$REMOTE_DIR/src/ufbi_w2_dyadic.om' '$REMOTE_DIR/src/ufbi_phase3b_cert.om' |
| 419 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_phase3b_cert' |
| 420 | chmod 755 '$REMOTE_DIR/build/ufbi_phase3b_cert' |
| 421 | file '$REMOTE_DIR/build/ufbi_phase3b_cert' |
| 422 | ldd '$REMOTE_DIR/build/ufbi_phase3b_cert' 2>&1 || true |
| 423 | sha256sum '$REMOTE_DIR/build/ufbi_phase3b_cert' |
| 424 | '$REMOTE_DIR/build/ufbi_phase3b_cert' > '$REMOTE_DIR/evidence/phase3b_dual_cliff_cert.tsv' |
| 425 | cat '$REMOTE_DIR/evidence/phase3b_dual_cliff_cert.tsv' |
| 426 | " |
| 427 | elif [ "$MODE" = "phase4_cert" ]; then |
| 428 | echo "=== Building & running pure OM-2 Zero-MC Phase IV Dual-Cliff Verifier on Spark CPU ===" |
| 429 | ssh spark "set -eu |
| 430 | cd '$OMEGA_DIR' |
| 431 | OMC=seed/out/omc |
| 432 | { |
| 433 | printf 'om2\n' |
| 434 | cat '$REMOTE_DIR/src/ufbi_math.om' '$REMOTE_DIR/src/ufbi_ivmath.om' '$REMOTE_DIR/src/ufbi_w2_dyadic.om' '$REMOTE_DIR/src/ufbi_phase4_cert.om' |
| 435 | } | \"\$OMC\" > '$REMOTE_DIR/build/ufbi_phase4_cert' |
| 436 | chmod 755 '$REMOTE_DIR/build/ufbi_phase4_cert' |
| 437 | ls -la '$REMOTE_DIR/build/ufbi_phase4_cert' |
| 438 | file '$REMOTE_DIR/build/ufbi_phase4_cert' |
| 439 | ldd '$REMOTE_DIR/build/ufbi_phase4_cert' 2>&1 || true |
| 440 | sha256sum '$REMOTE_DIR/build/ufbi_phase4_cert' |
| 441 | '$REMOTE_DIR/build/ufbi_phase4_cert' > '$REMOTE_DIR/evidence/phase4_dual_cliff_cert.tsv' |
| 442 | cat '$REMOTE_DIR/evidence/phase4_dual_cliff_cert.tsv' |
| 443 | " |
| 444 | elif [ "$MODE" = "proofs" ]; then |
| 445 | echo "=== Checking zero-dependency Lean 4 bridge proofs/UfbiMassGap.lean on Spark ===" |
| 446 | ssh spark "set -eu |
| 447 | ~/.elan/bin/lean --version |
| 448 | ~/.elan/bin/lean '$REMOTE_DIR/proofs/UfbiMassGap.lean' |
| 449 | echo 'LEAN_PROOF_CHECK status=PASS file=proofs/UfbiMassGap.lean' |
| 450 | " |
| 451 | elif [ "$MODE" = "openai_bridge" ]; then |
| 452 | echo "=== Checking the Mathlib bridges and periodic SU(2) Wilson specialization on Spark ===" |
| 453 | scp "$ROOT/proofs/OpenAiYmBridge.lean" "$ROOT/proofs/DobrushinShlosman.lean" "$ROOT/proofs/WilsonPolymerBridge.lean" "$ROOT/proofs/PhaseFourBridge.lean" "$ROOT/proofs/OneLinkTransport.lean" "$ROOT/proofs/FundamentalSU2.lean" "$ROOT/proofs/PeriodicWilson.lean" "$ROOT/proofs/WilsonConditional.lean" "$ROOT/proofs/WilsonAngle.lean" "$ROOT/proofs/WilsonRadialTransport.lean" "$ROOT/proofs/WilsonLinkTransport.lean" "$ROOT/proofs/WilsonPoleTransport.lean" "$ROOT/proofs/WilsonFieldResponse.lean" "$ROOT/proofs/WilsonCouplingTriangle.lean" "$ROOT/proofs/WilsonCartesianTransport.lean" "$ROOT/proofs/PeriodicWilsonDS.lean" "$ROOT/proofs/WilsonHeatBathDynamics.lean" "$ROOT/proofs/WilsonSpatialClustering.lean" "$ROOT/proofs/WilsonPlaquetteClustering.lean" "$ROOT/proofs/WilsonWinding.lean" "$ROOT/proofs/WilsonBlocking.lean" "$ROOT/proofs/WilsonBlockedShells.lean" "$ROOT/proofs/WilsonWordClustering.lean" "$ROOT/proofs/WilsonCyclicGap.lean" "$ROOT/proofs/WilsonWordSpectrum.lean" "$ROOT/proofs/WilsonReplicaExchange.lean" "$ROOT/proofs/WilsonReplicaShells.lean" "$ROOT/proofs/WilsonReplicaSlabs.lean" "$ROOT/proofs/WilsonReplicaLoss.lean" "$ROOT/proofs/WilsonReplicaFrame.lean" "$ROOT/proofs/WilsonReplicaEndpoint.lean" "$ROOT/proofs/WilsonReplicaColor.lean" "$ROOT/proofs/WilsonReplicaVertex.lean" "$ROOT/proofs/WilsonReplicaHaar.lean" spark:~/workspace/yang-lean-bridge/ |
| 454 | scp "$ROOT/proofs/WilsonReplicaFreeShell.lean" "$ROOT/proofs/WilsonReplicaPathPacking.lean" "$ROOT/proofs/WilsonReplicaUncross.lean" spark:~/workspace/yang-lean-bridge/ |
| 455 | scp "$ROOT/proofs/PlaquetteKernelCycle.lean" "$ROOT/proofs/PlaquetteKernelTrace.lean" "$ROOT/proofs/WilsonPlaquetteTransfer.lean" "$ROOT/proofs/PlaquettePositiveKernel.lean" "$ROOT/proofs/WilsonPlaquettePositivity.lean" "$ROOT/proofs/WilsonPlaquetteHilbert.lean" "$ROOT/proofs/WilsonPlaquetteHilbertTrace.lean" "$ROOT/proofs/WilsonPlaquetteVacuum.lean" spark:~/workspace/yang-lean-bridge/ |
| 456 | ssh spark "set -eu |
| 457 | export PATH=\"\$HOME/.elan/bin:\$PATH\" |
| 458 | cd ~/workspace/yang-lean-bridge |
| 459 | lean --version |
| 460 | lake build OpenAiYmBridge DobrushinShlosman WilsonPolymerBridge PhaseFourBridge |
| 461 | bridge_out=\$(mktemp -d) |
| 462 | trap 'rm -rf \"\$bridge_out\"' EXIT |
| 463 | lake env sh -ec ' |
| 464 | export LEAN_PATH=\"\$1:\$LEAN_PATH\" |
| 465 | lean -o \"\$1/OneLinkTransport.olean\" OneLinkTransport.lean |
| 466 | lean -o \"\$1/FundamentalSU2.olean\" FundamentalSU2.lean |
| 467 | lean -o \"\$1/PeriodicWilson.olean\" PeriodicWilson.lean |
| 468 | lean -o \"\$1/PlaquetteKernelCycle.olean\" PlaquetteKernelCycle.lean |
| 469 | lean -o \"\$1/PlaquetteKernelTrace.olean\" PlaquetteKernelTrace.lean |
| 470 | lean -o \"\$1/WilsonPlaquetteTransfer.olean\" WilsonPlaquetteTransfer.lean |
| 471 | lean -o \"\$1/PlaquettePositiveKernel.olean\" PlaquettePositiveKernel.lean |
| 472 | lean -o \"\$1/WilsonPlaquettePositivity.olean\" WilsonPlaquettePositivity.lean |
| 473 | lean -o \"\$1/WilsonPlaquetteHilbert.olean\" WilsonPlaquetteHilbert.lean |
| 474 | lean WilsonPlaquetteHilbertTrace.lean |
| 475 | lean WilsonPlaquetteVacuum.lean |
| 476 | lean -o \"\$1/WilsonConditional.olean\" WilsonConditional.lean |
| 477 | lean -o \"\$1/WilsonAngle.olean\" WilsonAngle.lean |
| 478 | lean -o \"\$1/WilsonRadialTransport.olean\" WilsonRadialTransport.lean |
| 479 | lean -o \"\$1/WilsonLinkTransport.olean\" WilsonLinkTransport.lean |
| 480 | lean -o \"\$1/WilsonPoleTransport.olean\" WilsonPoleTransport.lean |
| 481 | lean -o \"\$1/WilsonFieldResponse.olean\" WilsonFieldResponse.lean |
| 482 | lean -o \"\$1/WilsonCouplingTriangle.olean\" WilsonCouplingTriangle.lean |
| 483 | lean -o \"\$1/WilsonCartesianTransport.olean\" WilsonCartesianTransport.lean |
| 484 | lean -o \"\$1/PeriodicWilsonDS.olean\" PeriodicWilsonDS.lean |
| 485 | lean -o \"\$1/WilsonHeatBathDynamics.olean\" WilsonHeatBathDynamics.lean |
| 486 | lean -o \"\$1/WilsonSpatialClustering.olean\" WilsonSpatialClustering.lean |
| 487 | lean -o \"\$1/WilsonPlaquetteClustering.olean\" WilsonPlaquetteClustering.lean |
| 488 | lean WilsonWinding.lean |
| 489 | lean -o \"\$1/WilsonBlocking.olean\" WilsonBlocking.lean |
| 490 | lean WilsonBlockedShells.lean |
| 491 | lean -o \"\$1/WilsonWordClustering.olean\" WilsonWordClustering.lean |
| 492 | lean -o \"\$1/WilsonCyclicGap.olean\" WilsonCyclicGap.lean |
| 493 | lean WilsonWordSpectrum.lean |
| 494 | lean -o \"\$1/WilsonReplicaExchange.olean\" WilsonReplicaExchange.lean |
| 495 | lean -o \"\$1/WilsonReplicaShells.olean\" WilsonReplicaShells.lean |
| 496 | lean -o \"\$1/WilsonReplicaFrame.olean\" WilsonReplicaFrame.lean |
| 497 | lean -o \"\$1/WilsonReplicaFreeShell.olean\" WilsonReplicaFreeShell.lean |
| 498 | lean -o \"\$1/WilsonReplicaUncross.olean\" WilsonReplicaUncross.lean |
| 499 | lean -o \"\$1/WilsonReplicaPathPacking.olean\" WilsonReplicaPathPacking.lean |
| 500 | lean -o \"\$1/WilsonReplicaSlabs.olean\" WilsonReplicaSlabs.lean |
| 501 | lean -o \"\$1/WilsonReplicaLoss.olean\" WilsonReplicaLoss.lean |
| 502 | lean -o \"\$1/WilsonReplicaEndpoint.olean\" WilsonReplicaEndpoint.lean |
| 503 | lean -o \"\$1/WilsonReplicaColor.olean\" WilsonReplicaColor.lean |
| 504 | lean -o \"\$1/WilsonReplicaVertex.olean\" WilsonReplicaVertex.lean |
| 505 | lean -o \"\$1/WilsonReplicaHaar.olean\" WilsonReplicaHaar.lean |
| 506 | ' sh \"\$bridge_out\" |
| 507 | echo 'LEAN_PHASE4_BRIDGES status=PASS' |
| 508 | " |
| 509 | else |
| 510 | echo "usage: $0 check1 | obs_synth | obs_synth_w2 | obs_synth_w3 | check3 | check4 | check5 | check6 | check7 | check8 | check9 | check10 | dyadic_grid | interval_cert | phase3b_cert | phase4_cert | proofs | openai_bridge" >&2 |
| 511 | exit 2 |
| 512 | fi |