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-v7 / run-dry.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 v7 gate G6: dry run of part 1 on GB10 in its own hold, then g6-gate.sh over D1 D2 D3 (SPEC-v7-DRAFT.md |
| 18 | # Section 5 item 7). Runs AFTER the freeze, as v6 did (frozen-v7.json FROZEN at the wrap commit): the -PIN and -GR rows |
| 19 | # compare the build and the generation record against the frozen pins and model hash, so a draft can only fail them (attempt 2, |
| 20 | # 2026-10-11, evidence-v7/attempt-2-g6-fail/). A dry run is never a verdict. Start detached ONLY on the coordinator's go for the hold: |
| 21 | # setsid nohup bash run-dry.sh <freeze commit> <oq3-v7-build-<commit> folder> > <log> 2>&1 < /dev/null & |
| 22 | set -u |
| 23 | WRAP_COMMIT=${1:?freeze commit}; export OQ3_BUILD=${2:?build folder} |
| 24 | HERE=$(cd "$(dirname "$0")" && pwd) |
| 25 | V=/home/drakestapleton/workspace/oq3-v7-real; R=$V/records |
| 26 | [ ! -e $V/dry-runs ] || { echo "run-dry: $V/dry-runs exists already (one dry run per freeze candidate; move it aside to rerun)"; exit 2; } |
| 27 | [ -x "$OQ3_BUILD/target/release/aien-cli" ] || { echo "run-dry: no aien-cli in $OQ3_BUILD"; exit 2; } |
| 28 | quietlock check || { echo "run-dry: quiet flag held, not starting"; exit 2; } |
| 29 | mkdir -p $R |
| 30 | [ -d $V/wrap ] || git clone -q https://github.com/aien-dev/aien-sovereign-core $V/wrap || { echo "run-dry: wrapper clone failed"; exit 4; } |
| 31 | git -C $V/wrap fetch -q origin && git -C $V/wrap checkout -q "$WRAP_COMMIT" || { echo "run-dry: checkout $WRAP_COMMIT failed"; exit 4; } |
| 32 | Q=$V/wrap/docs/campaigns/open-model-qwen3 |
| 33 | [ "$(jq -r .status $Q/frozen-v7.json | cut -c1-6)" = FROZEN ] || { echo "run-dry: frozen-v7.json at $WRAP_COMMIT is not FROZEN; freeze first (the -PIN and -GR rows need the pins and the model hash)"; exit 2; } |
| 34 | ( cd $V/wrap/docs/campaigns/open-model-qwen3 && bash test-v7.sh > $R/test-v7.out 2>&1 ) || { echo "run-dry: test-v7.sh failed at $WRAP_COMMIT"; exit 2; } |
| 35 | cp "$HERE/run-part.sh" $V/run-part.sh; chmod +x $V/run-part.sh; sha256sum $V/run-part.sh "$0" > $R/launcher-dry.sha256 |
| 36 | date -u +%FT%TZ > $R/hold-dry-p1.start |
| 37 | # quietlock: holds over 20 minutes need Drake's approval token (attempt 1 at 22:10:23Z was refused with 40); on overrun the flag is kept and the command is never killed. |
| 38 | quietlock hold --owner laneB-oq3-v7-dry-p1 --minutes 20 --reason "OPEN-MODEL-QWEN3 v7 gate G6 dry run part 1, Qwen3-8B (not scored, sc#384)" -- $V/run-part.sh dry 1 > $R/hold-dry-p1.log 2>&1 |
| 39 | echo $? > $R/hold-dry-p1.rc; date -u +%FT%TZ > $R/hold-dry-p1.end |
| 40 | Q=$V/wrap/docs/campaigns/open-model-qwen3 |
| 41 | bash $Q/g6-gate.sh $R/dry-out/oq3-v7-DRYRUN-results.jsonl $Q/../scoring/declarations/oq3-v5.decl.json $V/dry-runs D1 D2 D3 > $R/g6-reasons.txt 2>&1 |
| 42 | rc=$?; [ $rc = 0 ] && echo "G6 PASS" > $R/g6.txt || echo "G6 FAIL (rc $rc, see g6-reasons.txt)" > $R/g6.txt |
| 43 | cat $R/g6.txt; grep -m1 -o 'CHECKPOINT_SHARDS.*' $V/dry-runs/D1/daemon-1.log 2>/dev/null | cut -c1-200 > $R/model_sha256-line.txt; cat $R/model_sha256-line.txt |