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/physics0/learner_v2/c1_check.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 / physics0 / learner_v2 / c1_check.sh` 36 lines ยท 2135 bytes Raw Blame History 1 #!/bin/bash 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 # C1 acceptance on a receipt made by `make physics0-learner-v2-dev` (lines P0V2F learner=v1|v2 ...). 18 # Acceptance (seeds 1-5): v2 hidden flag fires on L6 and stays silent on L0-L5 and null; v2 test errors on L0-L5/null are not worse than v1. 19 # Also reported (not gated): the same over seeds 1-25, and v1's own flag rate. 20 f=$1 21 key() { awk -v L="$2" -v V="$3" -v LO="$4" -v HI="$5" '$1=="P0V2F" && $2=="learner="L && $3=="level="V { for(i=1;i<=NF;i++){split($i,a,"=");k[a[1]]=a[2]} if (k["seed"]+0>=LO && k["seed"]+0<=HI) print k["seed"], k["'$1'"] }' "$f"; } 22 fail=0 23 for lv in L0 L1 L2 L3 L4 L5 L6 null; do 24 for rng in "1 5" "1 25"; do 25 set -- $rng 26 n1=$(key hidden v1 $lv $1 $2 | awk '{s+=$2} END{print s+0}'); n2=$(key hidden v2 $lv $1 $2 | awk '{s+=$2} END{print s+0}') 27 tot=$(key hidden v2 $lv $1 $2 | wc -l) 28 worse=$(paste -d' ' <(key test_roll20 v1 $lv $1 $2) <(key test_roll20 v2 $lv $1 $2) <(key test_one v1 $lv $1 $2) <(key test_one v2 $lv $1 $2) | awk '$4>$2 || $8>$6 {n++} END{print n+0}') 29 echo "C1-CHECK level=$lv seeds=$1..$2 n=$tot hidden_fired_v1=$n1 hidden_fired_v2=$n2 v2_test_error_worse_than_v1=$worse" 30 if [ "$1 $2" = "1 5" ]; then 31 if [ $lv = L6 ]; then [ "$n2" = "$tot" ] || fail=1; else [ "$n2" = 0 ] && [ "$worse" = 0 ] || fail=1; fi 32 fi 33 done 34 done 35 if [ $fail = 0 ]; then echo "C1-ACCEPT: PASS (v2 flag fires on L6 seeds 1-5, silent on L0-L5 and null; no worse test error on L0-L5 and null)"; else echo "C1-ACCEPT: FAIL"; fi 36 exit $fail