Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/evidence/CAND1-RECON-2eec75b/cand1_recon_build.sh # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / evidence / CAND1-RECON-2eec75b / cand1_recon_build.sh` 59 lines ยท 5503 bytes Raw Blame History 1 #!/usr/bin/env bash 2 # CAND-1 clean-worktree double build (host only, no chip, no QEMU), same recipe as CAND-0.gates.md section 2, 3 # plus sovereign-core scripts/repro-build.sh (G13 path remap). Each item is built, hashed, its outputs deleted, 4 # built again and hashed again. Usage: cand1_build.sh 5 set -u 6 SC_SHA=$1 7 export CARGO_HOME=/home/drakestapleton/workspace/cand2-campaign/recon/cargo-home 8 mkdir -p /home/drakestapleton/workspace/cand2-campaign/recon/src 9 O=/home/drakestapleton/workspace/cand2-campaign/recon/src 10 OM_SHA=`cb06d081901c03063945a99ffed1c58d33397e9c`; AO_SHA=`bbad5e4250e57f8cbd1be4cf1390109aa65ef92c`; PH_SHA=`6d7cf0d4d8eb2cda7b512100ff6058e25dbb3ddf` 11 OMW=$O/wt-CAND1-omega; AOW=$O/wt-CAND1-aienos; PHW=$O/wt-CAND1-physics; SCW=$O/wt-CAND1-sc-${SC_SHA:0:7} 12 E=/home/drakestapleton/workspace/evidence-out/CAND1-RECON-${SC_SHA:0:7}; mkdir -p "$E"; cp "$0" "$E/" 13 S=$E/summary.txt; : > "$S" 14 say() { echo "$*" | tee -a "$S"; } 15 wt() { # repo-name dir sha: fresh clone from GitHub, detached at sha 16 [ -d "$2" ] || { git clone -q "https://github.com/aien-dev/$1.git" "$2" && git -C "$2" checkout -q --detach "$3"; } || return 1 17 [ "$(git -C "$2" rev-parse HEAD)" = "$3" ] && [ -z "$(git -C "$2" status --porcelain --untracked-files=no)" ] || { say "CHECKOUT_FAIL $2 not clean at $3"; return 1; } 18 } 19 cmp2() { # name file1digest file2digest 20 if [ -n "$2" ] && [ "$2" = "$3" ]; then say "SAME $1 $2"; else say "DIFF $1 run1=$2 run2=$3"; fi 21 } 22 h() { [ -f "$1" ] && sha256sum "$1" | cut -c1-64; } 23 wt physics "$PHW" $PH_SHA || exit 3 24 wt omega "$OMW" $OM_SHA || exit 3 25 wt aienos "$AOW" $AO_SHA || exit 3 26 wt aien-sovereign-core "$SCW" "$SC_SHA" || exit 3 27 [ "$(tr -d '[:space:]' < "$SCW/omega.lock")" = $OM_SHA ] || { say "PIN_FAIL sc omega.lock != $OM_SHA"; exit 3; } 28 (cd "$SCW" && cargo fetch --locked) > "$E/cargo-fetch.log" 2>&1 || { say "FETCH_FAIL cargo fetch"; exit 3; } 29 { echo "rustc: $(rustc -vV | tr "\n" " ")"; echo "cargo: $(cargo -V)"; echo "cc: $(cc --version | head -1)"; echo "make: $(make -v | head -1)"; echo "ld: $(ld --version | head -1)"; echo "CARGO_HOME=$CARGO_HOME"; } > "$E/toolchain.txt" 2>&1 30 say "CAND-1 clean reconstruction (fresh GitHub clones, fresh CARGO_HOME) $(date -u +%FT%TZ) sc=$SC_SHA omega=$OM_SHA aienos=$AO_SHA physics=$PH_SHA host=$(uname -srm)" 31 export AIENOS_LOCK_REPO=$AOW 32 # physics 33 for r in 1 2; do (cd "$PHW" && ./m2_build.sh) > "$E/physics-$r.log" 2>&1; echo "rc=$?" >> "$E/physics-$r.log" 34 eval "ph$r=\$(h $PHW/physics.bin) am$r=\$(h $PHW/atlas_m2.bin)"; done 35 cmp2 physics-boot-bin "$ph1" "$ph2"; cmp2 atlas-m2-boot-bin "$am1" "$am2" 36 [ -z "$(git -C "$PHW" status --porcelain --untracked-files=no)" ] && say "physics boot bins equal committed files" || say "DIFF physics tree dirty after build" 37 # omega 38 for r in 1 2; do rm -rf "$OMW/build/rb" 39 make -C "$OMW" -j6 PHYSICS_DIR="$PHW" OUT_DIR=build/rb all libomega_gpu > "$E/omega-$r.log" 2>&1; echo "rc=$?" >> "$E/omega-$r.log" 40 eval "ot$r=\$(h $OMW/build/rb/omegatool) gl$r=\$(h $OMW/build/rb/libomega_gpu.a)"; done 41 cmp2 omega-runtime "$ot1" "$ot2"; cmp2 omega-gpu-engine-lib "$gl1" "$gl2" 42 ar t "$OMW/build/rb/libomega_gpu.a" | grep -E '^(omegatool|omega_blackwell_gates|omega_world_gates)\.o$' && say "DIFF libomega_gpu.a still carries gate objects" || say "libomega_gpu.a carries no gate objects (G6)" 43 # sovereign-core, production config 44 for r in 1 2; do rm -rf "$SCW/target-rb" 45 (cd "$SCW" && env -u AIEN_DEV_FALLBACK AIEN_OMEGA_DIR="$OMW" AIEN_PHYSICS_DIR="$PHW" CARGO_TARGET_DIR="$SCW/target-rb" \ 46 scripts/repro-build.sh --offline -vv -p aien-cli -p aien-proof -p aien-test) > "$E/sc-$r.log" 2>&1; echo "rc=$?" >> "$E/sc-$r.log" 47 eval "cli$r=\$(h $SCW/target-rb/release/aien-cli) prf$r=\$(h $SCW/target-rb/release/aien-proof) tst$r=\$(h $SCW/target-rb/release/aien-test)"; done 48 cmp2 aien-cli-native-release "$cli1" "$cli2"; cmp2 aien-proof "$prf1" "$prf2"; cmp2 aien-test "$tst1" "$tst2" 49 grep -q 'cargo:rustc-cfg=has_omega_gpu' "$E/sc-2.log" && say "native engine linked (has_omega_gpu)" || say "DIFF native engine NOT linked (stub build)" 50 grep -aq 'OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)' "$SCW/target-rb/release/aien-cli" && say "aien-cli carries the native backend string" || say "DIFF aien-cli lacks native backend string" 51 n=$(grep -ac "$HOME" "$SCW/target-rb/release/aien-cli"); c=$(grep -ac "${CARGO_HOME:-$HOME/.cargo}/registry" "$SCW/target-rb/release/aien-cli"); [ "$c" = 0 ] && say "aien-cli has no cargo registry paths (G13)" || say "DIFF aien-cli has $c cargo registry path lines (G13 not fixed)"; say "NOTE aien-cli lines containing the home directory: $n" 52 (cd "$SCW" && bash scripts/zero-cuda-gate.sh --self-test && bash scripts/zero-cuda-gate.sh target-rb/release/aien-cli) > "$E/zero-cuda.log" 2>&1 && say "PASS zero-cuda aien-cli" || say "FAIL zero-cuda aien-cli" 53 # aienos C kernel 54 for r in 1 2; do rm -rf "$AOW/target/native-kernel" 55 { make -C "$AOW/native/kernel" -j4 && make -C "$AOW/native/kernel" -j4 full; } > "$E/aienos-$r.log" 2>&1; echo "rc=$?" >> "$E/aienos-$r.log" 56 eval "ck$r=\$(h $AOW/target/native-kernel/BOOTAA64.EFI) fb$r=\$(h $AOW/target/native-kernel/full/BOOTAA64.EFI)"; done 57 cmp2 aienos-ck-core-image "$ck1" "$ck2"; cmp2 aienos-boot-image "$fb1" "$fb2" 58 for d in "$PHW" "$OMW" "$AOW" "$SCW"; do [ -z "$(git -C "$d" status --porcelain --untracked-files=no)" ] || say "DIFF dirty after build: $d"; done 59 grep -q '^DIFF\|^FAIL\|CHECKOUT_FAIL\|PIN_FAIL' "$S" && { say "VERDICT FAIL"; exit 1; } || { say "VERDICT PASS"; exit 0; }