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/aien-sovereign-core-mv/blob/main/om/runtime-gate.sh # aien-sovereign-core-mv AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core-mv / om / runtime-gate.sh` 57 lines ยท 2575 bytes Raw Blame History 1 #!/bin/sh 2 set -eu 3 OMC="${OMC:-/home/drakestapleton/canon/omega-mv/seed/out/omc}" 4 [ -x "$OMC" ] || { echo "NOT_RUN: set OMC to seed/out/omc"; exit 3; } 5 SCR=$(mktemp -d) 6 trap "rm -rf $SCR" EXIT 7 8 build_det() { 9 name=$1; shift 10 cat "$@" > "$SCR/$name.om" 11 "$OMC" < "$SCR/$name.om" > "$SCR/$name.1" 2> "$SCR/$name.err" || { echo "FAIL compile $name"; cat "$SCR/$name.err"; exit 1; } 12 "$OMC" < "$SCR/$name.om" > "$SCR/$name.2" 2>> "$SCR/$name.err" || { echo "FAIL compile2 $name"; exit 1; } 13 cmp -s "$SCR/$name.1" "$SCR/$name.2" || { echo "FAIL nondeterministic $name"; exit 1; } 14 chmod +x "$SCR/$name.1" 15 echo "BUILD_OK $name bytes=$(wc -c < "$SCR/$name.1") sha256=$(sha256sum "$SCR/$name.1" | awk "{print \$1}")" 16 } 17 18 build_det sc_sched_test om/om2.om om/scheduler/kv_cache.om om/scheduler/scheduler.om om/scheduler/test.om 19 "$SCR/sc_sched_test.1" 20 21 build_det sc_serve_test om/om2.om om/serve/http_auth.om om/serve/router.om om/serve/cli.om om/serve/test.om 22 "$SCR/sc_serve_test.1" 23 24 build_det sc_runtime_test om/om2.om om/runtime/inference_abi.om om/tls/sha2.om om/runtime/membrane.om om/runtime/test.om 25 "$SCR/sc_runtime_test.1" 26 27 build_det sc_kv_store_test om/om2.om om/tls/sha2.om om/store/kv_store.om om/store/kv_store_test.om 28 "$SCR/sc_kv_store_test.1" 29 30 build_det sc_closure_test om/om2.om om/tls/sha2.om om/store/closure.om om/store/closure_test.om 31 "$SCR/sc_closure_test.1" 32 33 build_det sc_e2e_test om/om2.om om/scheduler/kv_cache.om om/scheduler/scheduler.om om/serve/http_auth.om om/serve/router.om om/serve/cli.om om/tls/sha2.om om/store/closure.om om/serve/e2e_test.om 34 "$SCR/sc_e2e_test.1" 35 36 build_det aien_om om/om2.om om/scheduler/kv_cache.om om/scheduler/scheduler.om om/serve/http_auth.om om/serve/router.om om/serve/cli.om om/tls/sha2.om om/store/closure.om om/serve/main.om 37 "$SCR/aien_om.1" version 38 "$SCR/aien_om.1" health 39 "$SCR/aien_om.1" chat --model qwen-native-om --max-tokens 128 40 41 # Negative control: models must fail closed without AIEN_SERVE_HTTP_BEARER_TOKEN 42 if "$SCR/aien_om.1" models >/dev/null 2>&1; then 43 echo "FAIL models succeeded without bearer token" 44 exit 1 45 fi 46 echo "CONTROL_OK models refused without bearer" 47 AIEN_SERVE_HTTP_BEARER_TOKEN=omega_gate_token_`01234567` "$SCR/aien_om.1" models 48 49 # Live loopback TCP HTTP test 50 AIEN_SERVE_HTTP_BEARER_TOKEN=omega_gate_token_`01234567` "$SCR/aien_om.1" serve --port 19193 --once & 51 SPID=$! 52 sleep 0.2 53 RESP=$(curl -sS -H "Authorization: Bearer omega_gate_token_`01234567`" http://127.0.0.1:19193/v1/models) 54 wait $SPID 55 echo "TCP_RESP $RESP" 56 echo "$RESP" | grep -q "qwen-native-om" 57 echo "SOVEREIGN-CORE-OM-GATE PASS"