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/tools/aien-local-ci/aien-alpha # 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 / tools / aien-local-ci / aien-alpha` 76 lines ยท 4088 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 # aien-alpha: cut an Alpha build. Alpha is the stage that is qualified on the Spark (Drake 2026-10-24); merging to 18 # main never waits for the Spark. 19 # 20 # aien-alpha REPO [REF] qualify REF (default origin/main; must be on main) with a full-scope Spark judge: 21 # every gate, GPU gates included (aien-test worker --once --full --operator). Then 22 # publish the signed bundle and let pipeline.sh tag it alpha/YYYYMMDD.N (annotated tag 23 # naming the bundle digest). Foreground. Exit 0 only when the commit carries an alpha tag. 24 # aien-alpha list [REPO]... the alpha tags of each repository (default: every enrolled repository), newest first. 25 # 26 # Source: aien-sovereign-core tools/aien-local-ci/aien-alpha, installed as ~/.local/bin/aien-alpha. 27 set -euo pipefail 28 CLONES=${AIEN_CLONES:-$HOME/workspace/pipeline/clones} 29 STATE=${AIEN_STATE:-$HOME/.local/state/aien-local-ci} 30 LIB=${AIEN_LIB:-$HOME/.local/lib/aien-local-ci} 31 REPOS=${AIEN_REPOS:-aien-sovereign-core,omega,aienux,physics,aien-protocols,aegis-runtime,spark-rsi,aien-architecture,benchmarks,synapse,interplane} 32 LOCAL_CI=${AIEN_LOCAL_CI:-aien-local-ci} 33 die() { echo "aien-alpha: $*" >&2; exit 2; } 34 usage() { sed -n '17,24p' "$0" >&2; exit 2; } 35 36 list() { 37 local repo 38 if [[ $# -eq 0 ]]; then IFS=, read -r -a repos <<< "$REPOS"; set -- "${repos[@]}"; fi 39 for repo in "$@"; do 40 [[ -d $CLONES/$repo ]] || continue 41 git -C "$CLONES/$repo" fetch -q origin '+refs/tags/alpha/*:refs/tags/alpha/*' 2>/dev/null || true 42 git -C "$CLONES/$repo" for-each-ref --sort=-creatordate --format="$repo %(refname:short) %(*objectname:short) %(creatordate:iso-strict)" refs/tags/alpha/ 43 done 44 } 45 46 [[ $# -ge 1 ]] || usage 47 case $1 in 48 list) shift; list "$@"; exit 0 ;; 49 -h|--help) usage ;; 50 esac 51 repo=$1 ref=${2:-origin/main} 52 [[ $repo =~ ^[A-Za-z0-9._-]+$ ]] || die "bad repository name '$repo'" 53 clone=$CLONES/$repo 54 [[ -d $clone ]] || die "no trusted clone $clone" 55 git -C "$clone" fetch -q origin 56 sha=$(git -C "$clone" rev-parse --verify "$ref^{commit}") || die "unknown ref $ref in $clone" 57 git -C "$clone" merge-base --is-ancestor "$sha" origin/main || die "$sha is not on origin/main: an Alpha is cut from main only" 58 existing=$(git -C "$clone" tag -l 'alpha/*' --points-at "$sha") 59 [[ -z $existing ]] || { echo "aien-alpha: $repo $sha is already $existing"; exit 0; } 60 61 echo "aien-alpha: $repo $sha: full-scope Spark qualification (every gate, GPU included)" 62 rc=0 63 "$LOCAL_CI" once "$repo" "$sha" --full --operator || rc=$? 64 echo "aien-alpha: judge exit $rc (0 PASS, 1 FAIL, 2 NOT_RUN, 3 BLOCKED_HARDWARE, 4 BLOCKED_OPERATOR)" 65 [[ $rc == 0 ]] || { echo "aien-alpha: not an Alpha. Evidence: $STATE/evidence/$repo/$sha/ bundle: $STATE/bundles/$repo/$sha/bundle.json"; exit 1; } 66 # Wait for a running round to finish rather than be skipped by its lock. 67 AIEN_LOCK_WAIT=900 bash "$LIB/pipeline.sh" publish --repos "$repo" 68 AIEN_LOCK_WAIT=900 bash "$LIB/pipeline.sh" alpha --repos "$repo" 69 tag=$(git -C "$clone" tag -l 'alpha/*' --points-at "$sha") 70 if [[ -n $tag ]]; then 71 echo "aien-alpha: $repo $sha is $tag" 72 echo " https://github.com/$(git -C "$clone" remote get-url origin | sed -E 's#^(git@github.com:|https://github.com/)##; s#\.git$##')/releases/tag/$tag" 73 exit 0 74 fi 75 echo "aien-alpha: PASS but no tag: a newer Alpha may already contain $sha; see: aien-alpha list $repo; $STATE/pipeline.jsonl" >&2 76 exit 1