interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / docs / campaigns / next-phase-1 / run-v5.sh

44 lines · 2348 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 v5 campaign: the three tasks of tasks-v5.json (ACCEPTANCE-v5
18# Section 2), one run-campaign.sh launch each, in order, each scored by
19# make-receipt.sh with its v5 rows. Shell + jq only. No task is repeated.
20# Usage (inside the caller's quietlock hold, ACCEPTANCE-v5 Section 6):
21# AIEN_BIN=... AIEN_MODEL_PATH=... AIEN_TOKENIZER_PATH=... AIEN_COMPOSE_MAX_TOKENS=<frozen> \
22# run-v5.sh RUN_BASE OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT OMEGA_GPU_COMMIT
23# Writes RUN_BASE/<task>/ (run roots) and one receipt per task in OUT_DIR.
24# Prints one line per task and the campaign verdict (PASS only if all PASS).
25set -u
26HERE=$(cd "$(dirname "$0")" && pwd)
27BASE=${1:?RUN_BASE} OUT=${2:?OUT_DIR} SC=${3:?SC_COMMIT} OMC=${4:?OMEGA_COMPOSE} OMG=${5:?OMEGA_GPU}
28mkdir -p "$BASE" "$OUT"
29verdict=PASS
30for id in $(jq -r '.tasks[].id' "$HERE/tasks-v5.json"); do
31 goal=$(jq -r --arg id "$id" '.tasks[] | select(.id == $id) | .goal' "$HERE/tasks-v5.json")
32 NP1_GOAL=$goal bash "$HERE/run-campaign.sh" "$BASE/$id" >"$BASE/$id.driver.out" 2>&1
33 echo "task $id driver exit $?"
34 if [ -f "$BASE/$id/run.json" ]; then
35 TASK_ID=$id SPEC="ACCEPTANCE-v5.md spec_version 5" bash "$HERE/make-receipt.sh" \
36 "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "NEXT-PHASE-1 v5 task $id" >"$BASE/$id.receipt.out" 2>&1
37 v=$(head -1 "$BASE/$id.receipt.out" | sed -n 's/.* verdict \([A-Z]*\)$/\1/p')
38 else
39 v=FAIL # the launch failed (ACCEPTANCE-v5 Section 4)
40 fi
41 echo "task $id verdict ${v:-FAIL} ($(head -1 "$BASE/$id.receipt.out" 2>/dev/null))"
42 [ "${v:-FAIL}" = PASS ] || verdict=FAIL
43done
44echo "NEXT-PHASE-1 v5 campaign verdict (rows only; VERDICT-v5.md is written by the reviewer): $verdict"