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 / evidence / motor-chip-20261021 / scripts / stroke-vs-alone.sh
| 1 | #!/usr/bin/env bash |
| 2 | # Every head of a stroke run against the same conversation run alone on the chip: chip tokens equal, position by position. |
| 3 | # usage: stroke-vs-alone.sh <stroke.json> <alone.json>... (alone = qwen36_stroke_gate N=1 output, or qwen38_omega_full gate output) |
| 4 | set -eu |
| 5 | S=$1; shift |
| 6 | i=0; all=1 |
| 7 | for a in "$@"; do |
| 8 | name=$(jq -r ".conversations[$i].name" "$S") |
| 9 | chip=$(jq -c ".conversations[$i].chip_ids" "$S") |
| 10 | alone=$(jq -c 'if .conversations then .conversations[0].chip_ids else .chip_ids end' "$a") |
| 11 | r=$(jq -n --argjson a "$chip" --argjson b "$alone" '{n: ($a|length), m: ($b|length), equal: ($a == $b), first_diff: ([range(0; ([($a|length),($b|length)]|min)) | select($a[.] != $b[.])] | .[0])}' -c) |
| 12 | echo "head $i $name vs $(basename "$a"): $r" |
| 13 | echo "$r" | grep -q '"equal":true' || all=0 |
| 14 | i=$((i+1)) |
| 15 | done |
| 16 | [ $all -eq 1 ] && echo "ALL HEADS EQUAL THEIR RUN ALONE" || { echo "A HEAD DIFFERS FROM ITS RUN ALONE"; exit 1; } |