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
aien-sovereign-core-mv / docs / campaigns / open-model-qwen3 / evidence-v6 / run.sh
| 1 | #!/usr/bin/env 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 | # OPEN-MODEL-QWEN3 v6 qualification run (QUALIFICATION-v6.md Sections 6 and 7). Start detached ONLY on the coordinator's go: |
| 18 | # setsid nohup bash run.sh <sc main commit that merged QUALIFICATION-v6.md> > <log> 2>&1 < /dev/null & |
| 19 | # Order: quietlock check; clean clone of the wrapper at that commit; G6 dry part 1 in its own hold (stop on a product failure); |
| 20 | # then real parts 1..4, each in its own 20-minute hold laneB-oq3-v6-pN; stop if a part's wrapper exits non-zero |
| 21 | # (part 4 exits 1 on a FAIL verdict: that is the scorer's verdict, not a crash). |
| 22 | set -u |
| 23 | WRAP_COMMIT=${1:?sc main commit holding QUALIFICATION-v6.md} |
| 24 | HERE=$(cd "$(dirname "$0")" && pwd) |
| 25 | V=/home/drakestapleton/workspace/oq3-v6-real; R=$V/records |
| 26 | [ ! -e /home/drakestapleton/workspace/oq3-v6-runs ] || { echo "run: the v6 run base exists already (v6 runs once)"; exit 2; } |
| 27 | quietlock check || { echo "run: quiet flag held, not starting"; exit 2; } |
| 28 | mkdir -p $R |
| 29 | git clone -q https://github.com/aien-dev/aien-sovereign-core $V/wrap && git -C $V/wrap checkout -q "$WRAP_COMMIT" || { echo "run: wrapper clone failed"; exit 4; } |
| 30 | grep -q '^\*\*Status: FROZEN' $V/wrap/docs/campaigns/open-model-qwen3/QUALIFICATION-v6.md || { echo "run: QUALIFICATION-v6.md at $WRAP_COMMIT is not FROZEN"; exit 2; } |
| 31 | ( cd $V/wrap/docs/campaigns/open-model-qwen3 && bash test-v6.sh > $R/test-v6.out 2>&1 ) || { echo "run: test-v6.sh failed at $WRAP_COMMIT"; exit 2; } |
| 32 | cp "$HERE/run-part.sh" $V/run-part.sh; chmod +x $V/run-part.sh; sha256sum $V/run-part.sh "$0" > $R/launcher.sha256 |
| 33 | # G6: dry part 1 (never scored) |
| 34 | date -u +%FT%TZ > $R/hold-dry-p1.start |
| 35 | quietlock hold --owner laneB-oq3-v6-dry-p1 --minutes 20 --reason "OPEN-MODEL-QWEN3 v6 gate G6 dry run part 1 (not scored)" -- $V/run-part.sh dry 1 > $R/hold-dry-p1.log 2>&1 |
| 36 | echo $? > $R/hold-dry-p1.rc; date -u +%FT%TZ > $R/hold-dry-p1.end |
| 37 | g6=PASS |
| 38 | for id in D1 D2 D3; do |
| 39 | [ -f $V/dry-runs/$id/run.json ] || g6="FAIL $id no run.json" |
| 40 | for r in PRE OPR BE PIN; do |
| 41 | v=$(jq -r --arg row "$id/$id-$r" 'select(.row == $row) | .verdict' $R/dry-out/oq3-v6-DRYRUN-results.jsonl 2>/dev/null | head -1) |
| 42 | [ "$v" = PASS ] || g6="FAIL $id-$r=${v:-missing}" |
| 43 | done |
| 44 | done |
| 45 | echo "G6 $g6" > $R/g6.txt |
| 46 | [ "$g6" = PASS ] || { echo "run: gate G6 $g6; real run NOT started" > $R/stopped; exit 3; } |
| 47 | for p in 1 2 3 4; do |
| 48 | date -u +%FT%TZ > $R/hold-p$p.start |
| 49 | quietlock hold --owner laneB-oq3-v6-p$p --minutes 20 --reason "OPEN-MODEL-QWEN3 v6 REAL qualification run part $p (QUALIFICATION-v6 FROZEN, sc#384)" -- $V/run-part.sh real $p > $R/hold-p$p.log 2>&1 |
| 50 | rc=$?; echo $rc > $R/hold-p$p.rc; date -u +%FT%TZ > $R/hold-p$p.end |
| 51 | [ $rc = 0 ] || { echo "part $p rc=$rc, stopping" > $R/stopped; break; } |
| 52 | done |
| 53 | date -u +%FT%TZ > $R/all.end |