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 / tools / aien-local-ci / repeat-gates.sh

20 lines · 1503 bytes Raw Blame History
1#!/usr/bin/env bash
2# repeat-gates.sh [SINCE_UTC] [STATE]: how much gate time went into running the same gate on the same head again.
3# Reads every receipt under $STATE/evidence (core.commit, core.gate, core.stderr_sha256, volatile.duration_ms and
4# started_utc). The first run of each (head, gate) is the work; every later run is a repeat. "equal" repeats gave
5# byte-identical stderr, so they were pure waste; the rest changed (a flake, a retry after a harness fault, or a real change).
6# Prints: day, total gate seconds, repeat seconds and share, equal-stderr repeat seconds. SINCE_UTC (default all) keeps
7# only receipts that started at or after it, e.g. 2026-10-21T00:00 to check the rounds after a harness fix (L337, G3-ci-judge-3).
8set -euo pipefail
9SINCE=${1:-}
10STATE=${2:-${AIEN_STATE:-$HOME/.local/state/aien-local-ci}}
11find "$STATE/evidence" -name '*.json' -print0 | xargs -0 jq -r \
12 '[.core.commit, .core.gate, (.core.stderr_sha256 // ""), (.volatile.duration_ms // 0), (.volatile.started_utc // "")] | @tsv' \
13 | sort -t$'\t' -k1,1 -k2,2 -k5,5 \
14 | awk -F'\t' -v since="$SINCE" '
15 { k = $1 "\t" $2; take = (since == "" || $5 >= since)
16 if (take) { tot += $4 }
17 if (k == pk && take) { rep += $4; n++; if ($3 == ps) { eq += $4 } }
18 pk = k; ps = $3 }
19 END { if (tot == 0) { print "no receipts in the window"; exit }
20 printf "total_s=%.0f repeat_s=%.0f (%.1f%%) repeat_runs=%d equal_stderr_s=%.0f\n", tot/1000, rep/1000, 100*rep/tot, n, eq/1000 }'