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/release/receipts/np4-v2-evidence/demo.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 / release / receipts / np4-v2-evidence / demo.sh` 40 lines · 3379 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 2 # Copyright 2026 Drake Stapleton (AIEN / aien-dev) 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 V=$1; P=$2 17 BIN=$V/bin; CFG=$V/config; SA=$V/standalone/install.sh 18 inst(){ rel=$1; shift; env -i PATH=/usr/bin:/bin HOME=$V/home AIEN_RELEASE_TAG=v0.0.0-np4 AIEN_RELEASE_BASE_URL=file://$V/$rel AIEN_BIN_DIR=$BIN AIEN_CONFIG_DIR=$CFG AIEN_INSTALL_NO_PROFILE=1 AIEN_ALLOWED_SIGNERS=$P/keys/allowed_signers "$@" ; } 19 run_aien(){ (cd $V/empty && env -i PATH=$V/empty HOME=$V/home $BIN/aien --version); } 20 live(){ readlink $CFG/releases/current; } 21 echo "## 1 INSTALL"; inst relA bash $SA 2>&1 | grep -v '^ *aien \|^ *Quick\|====' | sed -n 4,30p 22 sha256sum $(readlink -f $BIN/aien); ls -l $BIN | sed 's/.* \([^ ]* -> .*\)/\1/' | head -9; echo "live=$(live)"; cat $CFG/installed.toml 23 echo "## 2 EXECUTE"; run_aien; bash $P/build2/scripts/zero-cuda-gate.sh $BIN/aien | cut -c1-70 24 echo "# user edit" >> $CFG/operator.toml; sha256sum $CFG/operator.toml > $V/op.sum 25 echo "## 3 UPGRADE (candidate equal CAND-3, harmless version string change)"; inst relB bash $SA 2>&1 | grep -n 'Live release\|Verifying\|Error' 26 sha256sum $(readlink -f $BIN/aien); run_aien; echo "live=$(live)"; cat $CFG/installed.toml; ls $CFG/releases; (cd $V; sha256sum -c op.sum) 27 echo "## 3b DOWNGRADE GUARD (repackaged as CAND-2)"; inst relOld bash $SA 2>&1 | grep 'Error'; echo "live still $(live)" 28 echo "## 4 ROLLBACK"; env -i PATH=/usr/bin:/bin HOME=$V/home AIEN_BIN_DIR=$BIN AIEN_CONFIG_DIR=$CFG bash $SA --rollback 2>&1 | grep -v '====\|⚡' 29 sha256sum $(readlink -f $BIN/aien); run_aien; echo "live=$(live)"; grep '^current\|^previous\|^last-action' $CFG/installed.toml; (cd $V; sha256sum -c op.sum) 30 echo "## 5 INTERRUPTED UPGRADE to a fresh third release relC (kill -9 at three points, then rerun)" 31 for point in mid-copy after-copy before-swap; do 32 OLD=$(live); OLDSHA=$(sha256sum $(readlink -f $BIN/aien)|cut -c1-12) 33 inst relC env AIEN_TEST_PAUSE_AT=$point bash $SA > $V/int.log 2>&1 & 34 pid=$!; for i in $(seq 1 100); do grep -q "paused at $point" $V/int.log && break; sleep 0.1; done 35 grep -q "paused at $point" $V/int.log || echo "NEVER PAUSED" 36 pkill -9 -P $pid; kill -9 $pid; wait $pid 2>/dev/null 37 echo "killed at $point: live=$(live) (was $OLD) aien=$(sha256sum $(readlink -f $BIN/aien)|cut -c1-12) (was $OLDSHA) runs: $(run_aien) | leftovers: $(ls -A $CFG/releases | tr '\n' ' ')" 38 done 39 echo "rerun after interruption (relC):"; inst relC bash $SA 2>&1 | grep 'Live release\|Error'; echo "live=$(live) aien=$(sha256sum $(readlink -f $BIN/aien)|cut -c1-12)"; run_aien; ls -A $CFG/releases 40 echo "## 6 pinned key refusal (no signer override)"; env -i PATH=/usr/bin:/bin HOME=$V/home AIEN_RELEASE_TAG=v0.0.0-np4 AIEN_RELEASE_BASE_URL=file://$V/relA AIEN_BIN_DIR=$V/binX AIEN_CONFIG_DIR=$V/cfgX AIEN_INSTALL_NO_PROFILE=1 bash $SA 2>&1 | tail -1; ls $V/binX 2>&1 | head -1