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 / docs / campaigns / next-phase-1 / v8-results.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 | # NEXT-PHASE-1 v8: one launch's scoring-v5 result lines (ACCEPTANCE-v8 Section 7; v6-results.sh with A2 dropped, <id>-A kept) (ACCEPTANCE-v6 |
| 18 | # Section 7). Shell + jq only. Usage: |
| 19 | # v6-results.sh LAUNCH_ID RECEIPT.json -> the launch's rows, one JSON line each |
| 20 | # v6-results.sh LAUNCH_ID - DECL.json WHY -> every declared row of the launch as |
| 21 | # FAIL (the launch produced no run.json) |
| 22 | # Row ids: "<launch>/v1 <criterion>" (v1..v4 rows, REPORTED rows left out), |
| 23 | # "<launch>/<Q1..Q4|A1..A6>" (v5 rows), "<launch>/<v6 row>". Declared negative |
| 24 | # launches (N1, N2) contribute only their v6 rows (ACCEPTANCE-v6 Section 4). For the |
| 25 | # positive launches the v1 row "Containment: workspace" and the v5 row A1 are |
| 26 | # replaced by the v6 row <id>-CM (record-mark rule, ACCEPTANCE-v6 Section 6.1) and the v5 row |
| 27 | # A2 by the row <id>-A (ACCEPTANCE-v8 Section 2), which is in the acceptance_v6 rows. |
| 28 | set -u |
| 29 | ID=${1:?LAUNCH_ID} REC=${2:?RECEIPT} |
| 30 | if [ "$REC" = - ]; then |
| 31 | jq -c --arg id "$ID" --arg why "${4:-launch failed}" \ |
| 32 | '.rows[] | select(.row | startswith($id + "/")) | {row, rep: 1, verdict: "FAIL", outcome: $why}' "${3:?DECL}" |
| 33 | exit 0 |
| 34 | fi |
| 35 | jq -c --arg id "$ID" --arg rec "$(basename "$REC")" ' |
| 36 | (if (.acceptance_v6 // null) == null then error("receipt has no acceptance_v6") else . end) |
| 37 | | (.task_v6 == $id) as $same |
| 38 | | (if $same | not then error("receipt is launch \(.task_v6), not \($id)") else . end) |
| 39 | | ($id | test("^N")) as $neg |
| 40 | | ((if $neg then [] else |
| 41 | [.acceptance[] | select(.result != "REPORTED" and .criterion != "Containment: workspace") | {row: ($id + "/v1 " + .criterion), verdict: .result}] |
| 42 | + [((.acceptance_v5.task_quality // []) + (.acceptance_v5.authority // []))[] | select(.row != "A1" and .row != "A2") | {row: ($id + "/" + .row), verdict: .result}] |
| 43 | end) |
| 44 | + [.acceptance_v6[] | {row: ($id + "/" + .row), verdict: .result}])[] |
| 45 | | . + {rep: 1, receipt: $rec}' "$REC" |