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 / evidence / merge-train / verdict.jq

26 lines · 1747 bytes Raw Blame History
1# merge-train: cells (one JSON per arm x case, slurped) -> the lever x case verdict table.
2# $s[0] = suite.json, $present[0] = {"Lnnn": "yes"|"no"|"unknown"}.
3def rank: {"FAIL":6, "RED-FAIL":6, "ERROR":5, "NOT-ON-TRAIN":4, "SKIP":3, "PASS":1, "RED-OK":1, "-":0}[.] // 5;
4. as $cells | $s[0] as $suite | $present[0] as $pr | ($suite.cases | map(.id)) as $ids
5| {cases: $ids,
6 levers: [$suite.levers[] | . as $l | ($pr[$l.id] // "unknown") as $p
7 | [$ids[] | . as $cid
8 | ([$suite.cases[] | select(.id == $cid)][0].levers // null) as $only
9 | [$cells[] | . as $x
10 | select($x.case == $cid and (($l.arms | index($x.arm)) != null)
11 and ($only == null or (($only | index($l.id)) != null)))
12 | $x.verdict]
13 | if length == 0 then "-" else max_by(rank) end] as $row
14 | {id: $l.id, name: $l.name, present: $p, cells: $row,
15 verdict: (if $p == "no" then "NOT-ON-TRAIN"
16 else ($row | map(select(. != "-"))
17 | if length == 0 then "-"
18 elif any(.[]; . == "FAIL" or . == "RED-FAIL") then "FAIL"
19 elif any(.[]; . == "ERROR") then "ERROR"
20 elif any(.[]; . == "NOT-ON-TRAIN") then "NOT-ON-TRAIN"
21 elif all(.[]; . == "SKIP") then "SKIP"
22 else "PASS" end)
23 + (if $p == "unknown" then "?" else "" end) end)}],
24 red_controls: {ran: ([$cells[] | select(.verdict == "RED-OK" or .verdict == "RED-FAIL")] | length),
25 ok: ([$cells[] | select(.verdict == "RED-OK")] | length),
26 total: ([$suite.cases[] | select(.expect == "red" or .expect_red != null)] | length)}}