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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 06-collect.sh
| 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 | # Stage 6: copy the toolchain pin, digests and small upstream-test logs into |
| 18 | # the evidence dir. No upstream source or binaries are copied. |
| 19 | set -euo pipefail |
| 20 | E=~/workspace/headstart-exp |
| 21 | H=$E/headstart |
| 22 | L=$E/logs |
| 23 | OUT=~/aien-sovereign-core/.claude/worktrees/agent-adc52ad674d7b621a/benchmarks/data/headstart/patched-20261015-4c83e38 |
| 24 | mkdir -p "$OUT/toolchain" "$OUT/upstream-tests" |
| 25 | clean() { LC_ALL=C tr -cd '\11\12\15\40-\176' | sed "s#$HOME#~#g"; } |
| 26 | clean < "$L/03-digests.txt" > "$OUT/toolchain/digests.txt" |
| 27 | { grep -E 'downloading|Building stage|Build completed|Finished|RUSTC_BUILD_S|CARGO_BUILD_S|BUILD_OK' "$L/02-build.log" | head -40; } | clean > "$OUT/toolchain/build-log-excerpt.txt" |
| 28 | clean < "$L/01-fetch.log" | tail -20 > "$OUT/toolchain/fetch-log-tail.txt" |
| 29 | for f in "$E"/bin/[01]*.sh; do clean < "$f" > "$OUT/toolchain/$(basename "$f")"; done |
| 30 | for f in "$L"/03-*.log "$L"/04-active.log; do |
| 31 | b=$(basename "$f" .log) |
| 32 | tail -n 60 "$f" | clean > "$OUT/upstream-tests/$b.tail.txt" |
| 33 | done |
| 34 | clean < "$L/03-results.txt" > "$OUT/upstream-tests/results.txt" |
| 35 | for f in "$L"/07-*.log; do |
| 36 | [ -e "$f" ] || continue |
| 37 | tail -n 60 "$f" | clean > "$OUT/upstream-tests/$(basename "$f" .log).tail.txt" |
| 38 | done |
| 39 | for f in "$OUT"/diag-once/*; do |
| 40 | clean < "$f" > "$f.tmp" && mv "$f.tmp" "$f" |
| 41 | done |
| 42 | echo COLLECT_OK |