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 / benchmarks / data / headstart / patched-20261015-4c83e38 / toolchain / 09-harvest-ice.sh

38 lines · 1609 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# Move the ICE reports left by the first (pre-harvest) abincr run out of the
18# measured worktree: keep each report's head (up to the backtrace) in the
19# committed data, delete the files so the worktree root is clean again.
20set -euo pipefail
21S=~/workspace/headstart-exp/aien-work/src
22OUT=~/aien-sovereign-core/.claude/worktrees/agent-adc52ad674d7b621a/benchmarks/data/headstart/patched-20261015-4c83e38
23dst="$OUT/logs/abincr-run1-ice-heads.txt"
24: > "$dst"
25n=0
26for f in "$S"/rustc-ice-*.txt; do
27 [ -e "$f" ] || continue
28 n=$((n + 1))
29 { printf '== %s ==\n' "${f##*/}"
30 awk '/^stack backtrace:/ { exit } NR > 12 { exit } { print }' "$f" | LC_ALL=C tr -cd '\11\12\15\40-\176'
31 } >> "$dst"
32 rm -f "$f"
33done
34echo "harvested $n ICE reports into $dst"
35echo "distinct panic sites:"
36grep -h 'panicked at' "$dst" | sort | uniq -c
37echo "distinct assertion messages:"
38grep -h -A1 'panicked at' "$dst" | grep -v 'panicked at' | grep -v '^--' | sort | uniq -c