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_m12_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_m12_gates.sh` 138 lines · 5469 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_m12_gates.sh -- Master Qualification Gate Runner for Milestone 12 (OMEGA_LIVING_MATVEC) 18 set -eu 19 20 OMEGA_ROOT=$(cd "$(dirname "$0")/.." && pwd -P) 21 TOOL="$OMEGA_ROOT/${OUT_DIR:-build}/omegatool" 22 EVIDENCE_DIR="$OMEGA_ROOT/evidence" 23 RECEIPT="$EVIDENCE_DIR/omega_living_matvec_qualification_receipt.json" 24 25 echo "================================================================================" 26 echo " AIEN OMEGA SUBSTRATE — MILESTONE 12: OMEGA_LIVING_MATVEC QUALIFICATION" 27 echo "================================================================================" 28 echo "Timestamp: $(date -u +'%Y-%m-%dT%H:%M:%SZ')" 29 echo "Host: $(uname -s) $(uname -m)" 30 echo "" 31 32 # Step 1: Clean build 33 echo "[*] Step 1: Rebuilding OMEGA substrate and omegatool from source..." 34 make -C "$OMEGA_ROOT" clean 35 make -C "$OMEGA_ROOT" 36 echo " Build OK." 37 echo "" 38 39 # Step 2: Run all 10 M12 qualification gates 40 echo "[*] Step 2: Evaluating 10 canonical M12 qualification gates..." 41 "$TOOL" --run-m12-gates 42 echo "" 43 44 # Step 3: Run Demonstration (Formal Living MatVec Adaptive Dispatch) 45 echo "[*] Step 3: Running Demonstration (Living Kernel Multi-Realization & Adaptive Dispatch)..." 46 "$TOOL" --legacy-oracle-living-matvec 47 echo "" 48 49 # Step 4: Regression checks (M4 through M14) 50 echo "[*] Step 4: Running regression checks across M4 through M14..." 51 "$TOOL" --run-gates 52 "$TOOL" --run-m5-gates 53 "$TOOL" --run-m6-gates 54 "$TOOL" --run-m7-gates 55 "$TOOL" --run-m8-gates 56 "$TOOL" --run-m9-gates 57 "$TOOL" --run-m10-gates 58 "$TOOL" --run-m11-gates 59 "$TOOL" --run-m13-gates 60 "$TOOL" --run-m14-gates 61 echo " Regression checks OK: all M4 through M14 gates passed (101 gates)." 62 echo "" 63 64 # Step 5: Dump and hash test vectors and binaries 65 echo "[*] Step 5: Computing artifact digests..." 66 mkdir -p "$EVIDENCE_DIR" 67 sha256sum "$OMEGA_ROOT/src/omega_matvec."* \ 68 "$TOOL" > "$EVIDENCE_DIR/m12_corpus_digests.txt" 69 70 DIGEST_MATVEC=$(sha256sum "$OMEGA_ROOT/src/omega_matvec.c" | awk '{print $1}') 71 DIGEST_MATVEC_H=$(sha256sum "$OMEGA_ROOT/src/omega_matvec.h" | awk '{print $1}') 72 DIGEST_TOOL=$(sha256sum "$TOOL" | awk '{print $1}') 73 PARENT_COMMIT="`03fbcb98537584070ae2b4515bb2930398525e6b`" 74 SOURCE_PARENT_COMMIT="$PARENT_COMMIT" 75 . "$OMEGA_ROOT/tests/receipt_commit.sh" 76 receipt_commit_resolve "$OMEGA_ROOT" || exit 1 77 78 echo "[*] Step 6: Generating formal qualification receipt: $RECEIPT..." 79 cat < "$RECEIPT" 80 { 81 "milestone": "MILESTONE 12 — OMEGA_LIVING_MATVEC", 82 "status": "QUALIFIED / PASS", 83 "contract_id": "CONTRACT-OMEGA-LIVING-MATVEC-M12", 84 "generated_at": "$(date -u +'%Y-%m-%dT%H:%M:%SZ')", 85 "source_parent_commit": "$SOURCE_PARENT_COMMIT", 86 "qualified_implementation_commit": "$QUALIFIED_COMMIT", 87 "receipt_commit": "$RECEIPT_COMMIT", 88 "git_commit": "$QUALIFIED_COMMIT", 89 "host": { 90 "os": "$(uname -s)", 91 "arch": "$(uname -m)", 92 "compiler": "$(${CC:-gcc} --version | head -n 1)" 93 }, 94 "artifacts": { 95 "src/omega_matvec.c": { "sha256": "$DIGEST_MATVEC" }, 96 "src/omega_matvec.h": { "sha256": "$DIGEST_MATVEC_H" }, 97 "build/omegatool": { "sha256": "$DIGEST_TOOL" } 98 }, 99 "living_kernel_properties": { 100 "operator": "Matrix-Vector Multiplication y = A * x", 101 "realizations_synthesized": 3, 102 "realization_kinds": ["matvec_scalar", "matvec_unroll2", "matvec_unroll4_dual"], 103 "machine_awareness": "Leverages 4-wide dispatch and dual ALU accumulators on Neoverse V2", 104 "triple_identity": "REALIZATION_ID cryptographically binds SEMANTIC_ID, MACHINE_ID, and code bytes", 105 "verification_ladder": "Mandatory M7 verification (V0 structural, V1 differential numerical parity)", 106 "adaptive_dispatch": "Live empirical benchmarking discovers cache-tier inflection points and dispatches optimal kernel" 107 }, 108 "qualification_gates": { 109 "total": 10, 110 "passed": 10, 111 "gates": { 112 "OMEGA_MATVEC_SEMANTIC_SPEC_PASS": "PASS", 113 "OMEGA_MATVEC_MULTI_REALIZATION_PASS": "PASS", 114 "OMEGA_MATVEC_TRIPLE_ID_PASS": "PASS", 115 "OMEGA_MATVEC_V0_STRUCTURAL_PASS": "PASS", 116 "OMEGA_MATVEC_V1_NUMERICAL_PARITY_PASS": "PASS", 117 "OMEGA_MATVEC_REGIME_INFLECTION_PASS": "PASS", 118 "OMEGA_MATVEC_ADAPTIVE_DISPATCH_PASS": "PASS", 119 "OMEGA_MATVEC_SPEEDUP_PASS": "PASS", 120 "OMEGA_MATVEC_ZERO_TOOLCHAIN_PASS": "PASS", 121 "OMEGA_MATVEC_RECEIPT_PASS": "PASS" 122 } 123 }, 124 "cumulative_qualification": { 125 "milestones": "M4 + M5 + M6 + M7 + M8 + M9 + M10 + M11 + M12 + M13 + M14", 126 "cumulative_gates": 111, 127 "cumulative_passed": 111, 128 "zero_regression": true 129 } 130 } 131 EOF 132 133 chmod 644 "$RECEIPT" 134 echo " Receipt written to $RECEIPT." 135 echo "" 136 echo "================================================================================" 137 echo " MILESTONE 12 QUALIFICATION RESULT: ALL 10 GATES PASSED (111 CUMULATIVE)" 138 echo "================================================================================"