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/docs/campaigns/next-phase-1/run-v6.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 / docs / campaigns / next-phase-1 / run-v6.sh` 70 lines ยท 4037 bytes Raw Blame History 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 # NEXT-PHASE-1 v6 campaign: the five launches of tasks-v6.json (ACCEPTANCE-v6 18 # Section 2), in file order, one run-campaign.sh launch each, no repeats; the 19 # CPU reference run for R1; one receipt per launch (make-receipt.sh with the 20 # v5 and v6 hooks); then the campaign verdict from scoring/score-rows.sh 21 # (scoring-v5) over the frozen declaration. Shell + jq only. Usage (inside the 22 # caller's quietlock hold, ACCEPTANCE-v6 Section 8): 23 # AIEN_BIN=... AIEN_MODEL_PATH=... AIEN_TOKENIZER_PATH=... \ 24 # run-v6.sh RUN_BASE OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT OMEGA_GPU_COMMIT REFERENCE_BIN 25 # Writes RUN_BASE// (run roots), RUN_BASE/R1.reference.json, one 26 # receipt per launch in OUT_DIR, OUT_DIR/v6-results.jsonl and OUT_DIR/v6-score.json. 27 set -u 28 HERE=$(cd "$(dirname "$0")" && pwd) 29 BASE=${1:?RUN_BASE} OUT=${2:?OUT_DIR} SC=${3:?SC_COMMIT} OMC=${4:?OMEGA_COMPOSE} OMG=${5:?OMEGA_GPU} REFBIN=${6:?REFERENCE_BIN} 30 TASKS=$HERE/tasks-v6.json 31 DECL=$HERE/../scoring/declarations/np1-v6.decl.json 32 SCORER=$HERE/../scoring/score-rows.sh 33 [ -f "$DECL" ] && [ -x "$SCORER" ] && [ -x "$REFBIN" ] || { echo "run-v6: declaration, scorer or reference binary missing" >&2; exit 2; } 34 MODEL_DIR=$(dirname "${AIEN_MODEL_PATH:?}") 35 mkdir -p "$BASE" "$OUT" 36 RES=$OUT/v6-results.jsonl 37 : >"$RES" 38 for id in $(jq -r '.tasks[].id' "$TASKS"); do 39 t=$(jq -c --arg id "$id" '.tasks[] | select(.id == $id)' "$TASKS") 40 goal=$(jq -r .goal <<<"$t"); max=$(jq -r .max_tokens <<<"$t"); seed=$(jq -r '.seed // empty' <<<"$t") 41 seed_dir=; [ -n "$seed" ] && seed_dir=$HERE/$seed 42 NP1_GOAL=$goal AIEN_COMPOSE_MAX_TOKENS=$max NP1_SEED_DIR=$seed_dir \ 43 bash "$HERE/run-campaign.sh" "$BASE/$id" >"$BASE/$id.driver.out" 2>&1 44 echo "launch $id driver exit $? (max_tokens $max${seed:+, seed $seed})" 45 ref= 46 if [ "$(jq -r .kind <<<"$t")" = identity ] && [ -d "$BASE/$id/ws" ]; then 47 ws=$(cd "$BASE/$id/ws" && pwd -P) 48 "$REFBIN" "$MODEL_DIR" "$goal" "$ws" "$max" new >"$BASE/$id.reference.json" 2>"$BASE/$id.reference.err" 49 echo "launch $id CPU reference exit $?" 50 ref=$BASE/$id.reference.json 51 fi 52 if [ -f "$BASE/$id/run.json" ]; then 53 v5env=(); [ "$(jq -r '.destination // empty' <<<"$t")" != "" ] && [ "${id#N}" = "$id" ] && \ 54 v5env=(TASK_ID="$id" TASK_SPEC="$TASKS" TASK_ACCEPTANCE="$HERE/ACCEPTANCE-v6.md") 55 env "${v5env[@]}" V6_TASK="$id" V6_MAX_TOKENS="$max" V6_REFERENCE="$ref" \ 56 SPEC="ACCEPTANCE-v6.md spec_version 6" bash "$HERE/make-receipt.sh" \ 57 "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "NEXT-PHASE-1 v6 launch $id" >"$BASE/$id.receipt.out" 2>&1 58 rec=$OUT/$(head -1 "$BASE/$id.receipt.out" | sed -n 's/.*receipt \([0-9a-f]*\.json\).*/\1/p') 59 if [ -f "$rec" ]; then bash "$HERE/v6-results.sh" "$id" "$rec" >>"$RES" 60 else bash "$HERE/v6-results.sh" "$id" - "$DECL" "receipt not written" >>"$RES"; fi 61 echo "launch $id receipt $(basename "$rec")" 62 else 63 bash "$HERE/v6-results.sh" "$id" - "$DECL" "launch failed: no run.json" >>"$RES" # ACCEPTANCE-v6 Section 7 64 echo "launch $id FAILED to launch" 65 fi 66 jq -r --arg id "$id" 'select(.row | startswith($id + "/")) | select(.verdict != "PASS") | " \(.verdict) \(.row)"' "$RES" 67 done 68 bash "$SCORER" "$DECL" "$RES" >"$OUT/v6-score.json"; rc=$? 69 echo "NEXT-PHASE-1 v6 campaign verdict (scoring-v5, score-rows.sh exit $rc): $(jq -r .verdict "$OUT/v6-score.json" 2>/dev/null || echo ERROR)" 70 exit $rc