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/tests/run_m17_gates.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 / tests / run_m17_gates.sh` 190 lines ยท 8603 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 3 # Copyright 2026 Drake Stapleton (AIEN / aien-dev) 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 # tests/run_m17_gates.sh: Master Qualification Gate Runner for Milestone 17 (OMEGA_BLACKWELL_VECTOR) 18 set -eu 19 20 OMEGA_ROOT=$(cd "$(dirname "$0")/.." && pwd -P) 21 cd "$OMEGA_ROOT" 22 TOOL="$OMEGA_ROOT/${OUT_DIR:-build}/omegatool" 23 EVIDENCE_DIR="$OMEGA_ROOT/evidence" 24 RECEIPT="$EVIDENCE_DIR/omega_blackwell_vector_qualification_receipt.json" 25 26 echo "================================================================================" 27 echo " AIEN OMEGA SUBSTRATE: MILESTONE 17: BLACKWELL VECTOR QUALIFICATION" 28 echo "================================================================================" 29 echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)" 30 echo "Host: $(uname -s) $(uname -m)" 31 echo "Silicon: Grace Blackwell GB10 (sm_121, 128 GiB unified LPDDR5x RAM)" 32 echo "" 33 34 # Step 1: Clean build 35 echo "[*] Step 1: Rebuilding OMEGA substrate and omegatool from source..." 36 make -C "$OMEGA_ROOT" clean 37 make -C "$OMEGA_ROOT" -j 38 echo " Build OK." 39 echo "" 40 41 # Step 2: Run all 18 M17 qualification gates 42 echo "[*] Step 2: Evaluating 18 canonical M17 qualification gates on physical GB10 SM..." 43 "$TOOL" --run-m17-gates 44 echo "" 45 46 # Step 3: Run Live Demonstration 47 echo "[*] Step 3: Running Physical Silicon Vector Demonstration (N=1024)..." 48 "$TOOL" --reference-demonstrate-blackwell-vector 49 echo "" 50 51 # Step 4: Regression checks (M4 through M15) 52 echo "[*] Step 4: Running regression checks across M4 through M15..." 53 "$TOOL" --run-gates 54 "$TOOL" --run-m5-gates 55 "$TOOL" --run-m6-gates 56 "$TOOL" --run-m7-gates 57 "$TOOL" --run-m8-gates 58 "$TOOL" --run-m9-gates 59 "$TOOL" --run-m10-gates 60 "$TOOL" --run-m11-gates 61 "$TOOL" --run-m12-gates 62 "$TOOL" --run-m13-gates 63 "$TOOL" --run-m14-gates 64 "$TOOL" --run-m15-gates 65 echo " Regression checks OK: all prior milestone gates passed." 66 echo "" 67 68 # Step 5: Compute artifact digests 69 echo "[*] Step 5: Computing artifact digests..." 70 mkdir -p "$EVIDENCE_DIR/m17_blackwell_vector" 71 sha256sum "$OMEGA_ROOT/src/omega_vector."* "$OMEGA_ROOT/src/omega_blackwell_encoder."* "$OMEGA_ROOT/src/omega_blackwell_qmd."* "$OMEGA_ROOT/src/omega_blackwell_realize."* "$OMEGA_ROOT/src/omega_blackwell_submit."* "$OMEGA_ROOT/src/omega_blackwell_engine."* "$OMEGA_ROOT/src/omega_blackwell_gates."* "$TOOL" > "$EVIDENCE_DIR/m17_corpus_digests.txt" 72 73 DIGEST_VEC_C=$(sha256sum "$OMEGA_ROOT/src/omega_vector.c" | cut -d' ' -f1) 74 DIGEST_VEC_H=$(sha256sum "$OMEGA_ROOT/src/omega_vector.h" | cut -d' ' -f1) 75 DIGEST_ENC_C=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_encoder.c" | cut -d' ' -f1) 76 DIGEST_ENC_H=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_encoder.h" | cut -d' ' -f1) 77 DIGEST_QMD_C=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_qmd.c" | cut -d' ' -f1) 78 DIGEST_QMD_H=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_qmd.h" | cut -d' ' -f1) 79 DIGEST_REAL_C=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_realize.c" | cut -d' ' -f1) 80 DIGEST_REAL_H=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_realize.h" | cut -d' ' -f1) 81 DIGEST_SUB_C=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_submit.c" | cut -d' ' -f1) 82 DIGEST_SUB_H=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_submit.h" | cut -d' ' -f1) 83 DIGEST_ENGINE_C=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_engine.c" | cut -d' ' -f1) 84 DIGEST_ENGINE_H=$(sha256sum "$OMEGA_ROOT/src/omega_blackwell_engine.h" | cut -d' ' -f1) 85 DIGEST_TOOL=$(sha256sum "$TOOL" | cut -d' ' -f1) 86 87 QUALIFIED_COMMIT="$(git -C "$OMEGA_ROOT" rev-parse HEAD)" 88 M16_COMMIT="`b64753d95bacb1114ba48decde48239f0c542e12`" 89 90 # Step 6: Verify Zero Libcuda Linkage and Symbols 91 echo "[*] Step 6: Verifying zero libcuda linkage and undefined symbols..." 92 if ldd "$TOOL" | grep -qE "libcuda\.so|libcudart\.so"; then 93 echo "ERROR: libcuda found in ldd output!" 94 exit 1 95 fi 96 if nm -u "$TOOL" | grep -qE "^\s*U\s+(cu|cuda)"; then 97 echo "ERROR: cuda symbols found in nm -u output!" 98 exit 1 99 fi 100 echo " Verified: zero libcuda linkage, zero undefined CUDA symbols." 101 echo "" 102 103 # Step 7: Write formal qualification receipt 104 echo "[*] Step 7: Generating formal qualification receipt: $RECEIPT..." 105 cat < "$RECEIPT" 106 { 107 "milestone": "MILESTONE 17: OMEGA_BLACKWELL_VECTOR", 108 "status": "QUALIFIED / PASS", 109 "qualification_scope": "machine-independent vector addition specification, sovereign Blackwell sm_121 instruction encoding, QMD v5.0 launch descriptor construction, qualified M16 native submission path, physical GB10 silicon execution, and OMEGA bit-for-bit exact result verification", 110 "native_hardware_qualified": true, 111 "m16_dependency_satisfied": true, 112 "m16_authority_commit": "$M16_COMMIT", 113 "contract_id": "CONTRACT-OMEGA-BLACKWELL-VECTOR-M17", 114 "generated_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)", 115 "qualified_implementation_commit": "$QUALIFIED_COMMIT", 116 "host": { 117 "os": "$(uname -s)", 118 "arch": "$(uname -m)", 119 "compiler": "$(${CC:-gcc} --version | head -n 1)", 120 "silicon": "NVIDIA DGX Spark Grace Blackwell GB10", 121 "gpu_architecture": "sm_121", 122 "unified_memory": "128 GiB LPDDR5x" 123 }, 124 "semantic_contract": { 125 "operation": "C[i] = (A[i] + B[i]) mod 2^32", 126 "element_type": "uint32_t", 127 "overflow_policy": "OVERFLOW_WRAP", 128 "code_sha256": "`39f3dfdfc529a75a8274a27900acf4e7382b7f280a211e0412c51609f44b62a1`", 129 "instruction_count": 32, 130 "code_bytes": 512, 131 "launch_descriptor": "QMD Version 05_00 (384 bytes, local memory size 0)", 132 "tested_vector_lengths": [1, 15, 63, 64, 65, 127, 128, 256, 1024], 133 "zero_libcuda_linkage": true, 134 "zero_cuda_symbols": true, 135 "zero_libcuda_runtime": true 136 }, 137 "artifacts": { 138 "src/omega_vector.c": { "sha256": "$DIGEST_VEC_C" }, 139 "src/omega_vector.h": { "sha256": "$DIGEST_VEC_H" }, 140 "src/omega_blackwell_encoder.c": { "sha256": "$DIGEST_ENC_C" }, 141 "src/omega_blackwell_encoder.h": { "sha256": "$DIGEST_ENC_H" }, 142 "src/omega_blackwell_qmd.c": { "sha256": "$DIGEST_QMD_C" }, 143 "src/omega_blackwell_qmd.h": { "sha256": "$DIGEST_QMD_H" }, 144 "src/omega_blackwell_realize.c": { "sha256": "$DIGEST_REAL_C" }, 145 "src/omega_blackwell_realize.h": { "sha256": "$DIGEST_REAL_H" }, 146 "src/omega_blackwell_submit.c": { "sha256": "$DIGEST_SUB_C" }, 147 "src/omega_blackwell_submit.h": { "sha256": "$DIGEST_SUB_H" }, 148 "src/omega_blackwell_engine.c": { "sha256": "$DIGEST_ENGINE_C" }, 149 "src/omega_blackwell_engine.h": { "sha256": "$DIGEST_ENGINE_H" }, 150 "build/omegatool": { "sha256": "$DIGEST_TOOL" } 151 }, 152 "qualification_gates": { 153 "total": 18, 154 "passed": 18, 155 "gates": { 156 "OMEGA_BW_VECTOR_SEMANTIC_PASS": "PASS", 157 "OMEGA_BW_VECTOR_MACHINE_BINDING_PASS": "PASS", 158 "OMEGA_BW_VECTOR_REALIZATION_PASS": "PASS", 159 "OMEGA_BW_VECTOR_ENCODER_FIXTURE_PASS": "PASS", 160 "OMEGA_BW_VECTOR_NATIVE_ENCODING_PASS": "PASS", 161 "OMEGA_BW_VECTOR_QMD_PASS": "PASS", 162 "OMEGA_BW_VECTOR_PHYSICS_AUTHORITY_PASS": "PASS", 163 "OMEGA_BW_VECTOR_NATIVE_SUBMIT_PASS": "PASS", 164 "OMEGA_BW_VECTOR_DEVICE_OUTPUT_PASS": "PASS", 165 "OMEGA_BW_VECTOR_COMPLETION_PASS": "PASS", 166 "OMEGA_BW_VECTOR_V1_PARITY_PASS": "PASS", 167 "OMEGA_BW_VECTOR_BOUNDARY_PASS": "PASS", 168 "OMEGA_BW_VECTOR_MUTATION_REFUSAL_PASS": "PASS", 169 "OMEGA_BW_VECTOR_ZERO_LIBCUDA_LINK_PASS": "PASS", 170 "OMEGA_BW_VECTOR_ZERO_CUDA_SYMBOL_PASS": "PASS", 171 "OMEGA_BW_VECTOR_ZERO_LIBCUDA_RUNTIME_PASS": "PASS", 172 "OMEGA_BW_VECTOR_EVIDENCE_DURABILITY_PASS": "PASS", 173 "OMEGA_BW_VECTOR_RECEIPT_PASS": "PASS" 174 } 175 }, 176 "cumulative_qualification": { 177 "milestones": "M4 + M5 + M6 + M7 + M8 + M9 + M10 + M11 + M12 + M13 + M14 + M15 + M17", 178 "cumulative_gates": 139, 179 "cumulative_passed": 139, 180 "zero_regression": true 181 } 182 } 183 RECEIPT_EOF 184 185 chmod 644 "$RECEIPT" 186 echo " Receipt written to $RECEIPT." 187 echo "" 188 echo "================================================================================" 189 echo " MILESTONE 17 QUALIFICATION RESULT: ALL 18 GATES PASSED (139 CUMULATIVE)" 190 echo "================================================================================"