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 / docs / campaigns / open-model-qwen3 / gen-decl-oq3-v4.sh

30 lines · 2805 bytes Raw Blame History
1#!/usr/bin/env bash
2# OPEN-MODEL-QWEN3 v4 (ACCEPTANCE-v4.md Section 4, PREPARED, NOT FROZEN): writes two declarations from the v8 row
3# shapes of the v2 declaration plus the v4 extra rows. Shell + jq only. Usage:
4# gen-decl-oq3-v4.sh [QUAL_OUT [REGRESSION_OUT]] (default: the committed paths)
5# Qualification = tasks with group "qualification"; regression = group "regression". They are scored separately.
6set -eu
7HERE=$(cd "$(dirname "$0")" && pwd)
8V2=$HERE/../scoring/declarations/oq3-v2.decl.json
9QOUT=${1:-$HERE/../scoring/declarations/oq3-v4.decl.json}
10ROUT=${2:-$HERE/../scoring/declarations/oq3-v4-regression.decl.json}
11TASKS=$HERE/tasks-oq3-v4.json
12gen() { # group out note
13 jq -n --slurpfile v2 "$V2" --slurpfile t "$TASKS" --arg g "$1" --arg note "$3" --arg camp "$4" '
14 def shape($from; $to): [$v2[0].rows[] | select(.row | startswith($from + "/"))
15 | .row |= ($to + "/" + (.[($from | length) + 1:] | gsub($from + "-"; $to + "-")))];
16 def extra($id; $names): [$names[] | {row: ($id + "/" + $id + "-" + .), role: "case", reps: 1, expected: "PASS", control: null, not_applicable: false}];
17 ([$t[0].tasks[] | select(.group == $g)]) as $tasks
18 | ([$tasks[] | select(.kind == "long") | .id as $i | (.requirements | length) as $n
19 | shape("T4"; $i) + extra($i; ["SB", "F", "CUT"] + [range(1; $n + 1) | "RQ\(.)"] + (if .source != null then ["SRC"] else [] end) + ["D", "BE"])]
20 + [$tasks[] | select(.kind == "edit") | .id as $i | shape("T5"; $i) + extra($i; ["SB", "CUT", "EO", "D", "BE"])]
21 + [$tasks[] | select(.kind == "identity") | .id as $i | shape("R1"; $i) + extra($i; ["SB", "CUT", "D", "BE"])]
22 + [$tasks[] | select(.kind == "negative-boundary") | .id as $i | shape("N1"; $i) + extra($i; ["D", "NC", "BE"])]
23 + [$tasks[] | select(.kind == "negative-budget") | .id as $i | shape("N2"; $i) + extra($i; ["D", "NC", "R", "BE"])]
24 | add) as $rows
25 | {contract: "scoring-v5", campaign: $camp,
26 frozen_by: "docs/campaigns/open-model-qwen3/ACCEPTANCE-v4.md (Section 4); PREPARED, NOT FROZEN until that file says FROZEN on main",
27 note: $note, rows: $rows}' >"$2"
28}
29gen qualification "$QOUT" "v8 row shapes (the v2 declaration rows renamed to the v4 launch ids) plus the v4 extra rows (SB, F, CUT, RQ<k> one per declared requirement, SRC, EO, D, NC, N2-R). One repetition each, no controls, no NOT_APPLICABLE. This is the QUALIFICATION declaration. Generated by gen-decl-oq3-v4.sh from tasks-oq3-v4.json." "open-model-qwen3 v4 qualification"
30gen regression "$ROUT" "REGRESSION declaration: reported, never part of the qualification verdict (ACCEPTANCE-v4 Section 6). Same row shapes as the qualification declaration. Generated by gen-decl-oq3-v4.sh from tasks-oq3-v4.json." "open-model-qwen3 v4 regression (reported only)"