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 / open-model-qwen3 / rows-oq3-v5.jq
| 1 | # OPEN-MODEL-QWEN3 v5 extra rows (ACCEPTANCE-v5.md Section 3), jq module. DRAFT, NOT FROZEN. |
| 2 | # Includes rows-oq3-v3.jq and rows-oq3-v4.jq unchanged (jq -L <this folder>) for the inherited rows SB, F, CUT, SRC, |
| 3 | # EO, D, NC, BE and N2-R and the v4 counting rules. Every requirement is read from the task's declared "requirements" |
| 4 | # array, written before any run; the score is computed on the exact saved bytes and on the files the run leaves. |
| 5 | # Results are PASS or FAIL; a missing input is FAIL (fail closed). |
| 6 | # |
| 7 | # Evidence object $ev (built by v5-rows.sh): the v4 fields (task, daemon, report, s5, committed, seed_text, source_now, |
| 8 | # auths) plus |
| 9 | # run_steps run.json "steps" (rc and ok of S1..S8) |
| 10 | # containment run.json "containment" |
| 11 | # constraint_text run.json "constraint_text" (the S1 constraint) |
| 12 | # s3_step steps/S3.json (the propose step's own output: ok, error) or null |
| 13 | # recall_pre steps/pre-restart-recall.json or null; recall_s8 steps/S8.json or null |
| 14 | # host steps/S8.json recall.host: every host record after the restart {id, note, verified, text} |
| 15 | # logs one entry per daemon start in run.json order: {name, strict, op_reports, shards, violations}, the |
| 16 | # lines of daemon-<k>.log (colour codes and leading whitespace removed) that start with "STRICT ", |
| 17 | # "OP_REPORT ", "CHECKPOINT_SHARDS ", and the count of lines containing STRICT_REAL_MODEL_VIOLATION |
| 18 | # dest_exists a file or link exists at <workspace>/<destination> after the run (N1 only, else null) |
| 19 | # launch the wrapper's launch record <id>.launch-v5.json: {wall_ms, meminfo_before, pins} or null |
| 20 | # frozen frozen-v5.json (model and tokenizer digests, pins) |
| 21 | include "rows-oq3-v3"; |
| 22 | include "rows-oq3-v4"; |
| 23 | |
| 24 | def v5_int: type == "number" and . >= 0 and . == floor; |
| 25 | |
| 26 | # ---- counting rules new in v5 (ACCEPTANCE-v5 Section 3.1) ---------------------------------------------------- |
| 27 | # Fence state per line, with the v4 open and close rules: true on a fence line and on every line inside a fence. |
| 28 | def v5_fence_mask($t): |
| 29 | reduce ($t | split("\n"))[] as $raw ({open: null, m: []}; |
| 30 | ($raw | sub("\\s+$"; "")) as $l |
| 31 | | if .open == null then |
| 32 | ($l | capture("^\\s*(?<m>`{3,}|~{3,})(?<i>.*)$"; "") // null) as $o |
| 33 | | if $o != null and (($o.m | startswith("`") | not) or ($o.i | contains("`") | not)) |
| 34 | then .open = {c: ($o.m | .[0:1]), n: ($o.m | length)} | .m += [true] |
| 35 | else .m += [false] end |
| 36 | else |
| 37 | (.open) as $op |
| 38 | | (if ($l | test("^\\s*" + (if $op.c == "`" then "`" else "~" end) + "{" + ($op.n | tostring) + ",}\\s*$")) |
| 39 | then .open = null else . end) |
| 40 | | .m += [true] |
| 41 | end) | .m; |
| 42 | def v5_is_item: test("^\\s*([-*+] |[0-9]+[.)] )"); |
| 43 | def v5_is_heading: test("^#{1,6} +\\S"); |
| 44 | # paragraphs: maximal runs of prose lines outside fences; a prose line is non-empty, not a heading, not a list item. |
| 45 | def v5_paragraphs($t): |
| 46 | ($t | split("\n")) as $L | v5_fence_mask($t) as $M |
| 47 | | reduce range(0; $L | length) as $i ({n: 0, prev: false}; |
| 48 | (($M[$i] | not) and ($L[$i] | test("\\S")) and ($L[$i] | v5_is_heading | not) and ($L[$i] | v5_is_item | not)) as $p |
| 49 | | (if $p and (.prev | not) then .n += 1 else . end) | .prev = $p) |
| 50 | | .n; |
| 51 | # one sentence: the trimmed text is one non-empty line ending with . ! or ?, with no . ! or ? followed by whitespace before it. |
| 52 | def v5_one_sentence($t): |
| 53 | ($t | sub("^\\s+"; "") | sub("\\s+$"; "")) as $s |
| 54 | | ($s | length) > 0 and ($s | test("\n") | not) and ($s | test("[.!?]$")) and ($s | .[0:-1] | test("[.!?]\\s") | not); |
| 55 | |
| 56 | # One declared requirement on the saved text: {found, met}. The v5 task file states counts as "n" and required words as |
| 57 | # a list "words"; both are read here explicitly (the v4 rule reads "min_words" and "word", absent in v5, and a missing |
| 58 | # number must never compare as met). |
| 59 | def v5_eval($t): |
| 60 | . as $r |
| 61 | | if (["min_lines", "max_lines", "code_blocks", "prefixed_lines", "paragraphs", "tail", "sentences_exact"] | index($r.kind)) != null |
| 62 | and ($r.n | v5_int | not) then {found: null, met: false, error: "the requirement has no count n"} |
| 63 | elif $r.kind == "word" then |
| 64 | ($r.words // []) as $w |
| 65 | | ($w | map(select(. as $x | v4_word_in($t; $x) | not))) as $miss |
| 66 | | {found: ($w - $miss), missing: $miss, met: (($w | length) > 0 and ($miss | length) == 0)} |
| 67 | elif $r.kind == "tail" then ($r + {min_words: $r.n}) | v4_eval($t) |
| 68 | elif $r.kind == "paragraphs" then v5_paragraphs($t) as $n | {found: $n, met: ($n >= $r.n)} |
| 69 | elif $r.kind == "heading_order" then |
| 70 | (v4_scan($t).h) as $h |
| 71 | | ($r.titles | map(v4_norm_title) | map(. as $x | ($h | map(select(.text == $x)) | first | .i))) as $pos |
| 72 | | {found: $pos, met: (($pos | length) > 0 and ($pos | all(. != null)) |
| 73 | and ([range(1; $pos | length) as $k | $pos[$k] > $pos[$k - 1]] | all))} |
| 74 | elif $r.kind == "sentences_exact" then v5_one_sentence($t) as $m | {found: $m, met: ($r.n == 1 and $m)} |
| 75 | elif (["min_lines", "max_lines", "headings", "topic", "code_blocks", "prefixed_lines"] | index($r.kind)) != null then v4_eval($t) |
| 76 | else {found: null, met: false, error: "unknown requirement kind"} end; |
| 77 | |
| 78 | # RQ<k>: requirement number k (0-based index) of the task, one declared row each. |
| 79 | def v5_row_req($id; $k): |
| 80 | . as $ev | ($ev.committed.text) as $t | ($ev.task.requirements[$k]) as $r |
| 81 | | (if $t == null then null else ($r | v5_eval($t)) end) as $e |
| 82 | | {row: "\($id)-RQ\($k + 1)", criterion: "Requirement \($k + 1): \($r.label)", |
| 83 | threshold: "the file saved at the destination exists and meets the declared requirement (kind \($r.kind)), counted on the saved text by the rule of rows-oq3-v5.jq (ACCEPTANCE-v5 Section 3.1); nothing saved = FAIL", |
| 84 | value: {requirement: $r, evaluated: $e}, |
| 85 | result: ($t != null and $e != null and $e.met == true) | v3_okv}; |
| 86 | |
| 87 | # EP (E2 only, ACCEPTANCE-v5 Section 3.1 "Edit position"): the new line is the last non-empty line before the next |
| 88 | # heading after the under heading. |
| 89 | def v5_end_of_section_ids: ["E2"]; |
| 90 | def v5_row_ep($id): |
| 91 | . as $ev | ($ev.committed.text) as $t |
| 92 | | (if $t == null then null else $t | v3_lines end) as $L |
| 93 | | (if $L == null then null else ($L | index($ev.task.under)) end) as $h |
| 94 | | (if $h == null then null |
| 95 | else ($L[$h + 1:] | (map(v5_is_heading) | index(true)) as $nx | (if $nx == null then . else .[0:$nx] end) |
| 96 | | map(select(test("\\S"))) | last) end) as $last |
| 97 | | {row: "\($id)-EP", criterion: "Edit position: end of the section", |
| 98 | threshold: "in the saved text the last non-empty line after the under heading and before the next heading equals new_line", |
| 99 | value: {heading_line: $h, last_line_of_section: $last, new_line: $ev.task.new_line}, |
| 100 | result: ($h != null and $last != null and $last == $ev.task.new_line) | v3_okv}; |
| 101 | |
| 102 | # ---- product rows (ACCEPTANCE-v5 Section 3.4) ---------------------------------------------------------------- |
| 103 | def v5_attempts: (.report.proposal_attempts // []); |
| 104 | def v5_host($rid): (.host // []) | map(select(.id == $rid)) | first; |
| 105 | def v5_json: (. // "") | (try fromjson catch null); |
| 106 | def v5_gen_record: |
| 107 | . as $ev | ($ev.report.generation_record // null) as $g |
| 108 | | if ($g | v5_int | not) then null |
| 109 | else ($ev | v5_host($g)) as $h | if $h == null then null else {id: $h.id, verified: $h.verified, rec: ($h.text | v5_json)} end end; |
| 110 | |
| 111 | # PRE: the product asked the model (no refusal before the model). |
| 112 | def v5_row_pre($id): |
| 113 | . as $ev | ($ev.report) as $r |
| 114 | | {row: "\($id)-PRE", criterion: "Asked the model", |
| 115 | threshold: "the S3 report exists and has the field requirements_uncertain, that field is an empty list, and at least one proposal attempt exists", |
| 116 | value: {report_present: (($r | type) == "object"), |
| 117 | requirements_uncertain: (if ($r | type) == "object" and ($r | has("requirements_uncertain")) then $r.requirements_uncertain else "ABSENT" end), |
| 118 | attempts: ($ev | v5_attempts | length)}, |
| 119 | result: (($r | type) == "object" and ($r | has("requirements_uncertain")) and $r.requirements_uncertain == [] |
| 120 | and (($ev | v5_attempts | length) > 0)) | v3_okv}; |
| 121 | |
| 122 | # DEC: greedy decoding observed on every attempt and on the committed attempt's generation record. |
| 123 | def v5_attempt_greedy: |
| 124 | (.decoding | type) == "object" and (.decoding.greedy_tokens | v5_int) and .decoding.greedy_tokens >= 1 |
| 125 | and .decoding.sampled_tokens == 0 and .decoding.temperature == null and .decoding.top_p == null |
| 126 | and .decoding.seed_request_id == null; |
| 127 | def v5_row_dec($id): |
| 128 | . as $ev | ($ev | v5_attempts) as $at | ($ev | v5_gen_record) as $g |
| 129 | | ($ev.report.committed == true) as $c |
| 130 | | {row: "\($id)-DEC", criterion: "Decoding observed greedy", |
| 131 | threshold: "at least one attempt; on every attempt decoding is present, greedy_tokens >= 1, sampled_tokens == 0, temperature, top_p and seed_request_id null or absent; for a committed launch the generation record exists with decoding.mode greedy and decoding.sampled_tokens 0", |
| 132 | value: {attempts: ($at | map({attempt, outcome, decoding})), committed: $c, record_decoding: ($g.rec.decoding // null)}, |
| 133 | result: (($at | length) > 0 and ($at | all(v5_attempt_greedy)) |
| 134 | and (($c | not) or ($g != null and $g.rec.decoding.mode == "greedy" and $g.rec.decoding.sampled_tokens == 0))) | v3_okv}; |
| 135 | |
| 136 | # GR: the commit chain names a generation record that binds the frozen model (index and every shard), the frozen |
| 137 | # tokenizer and the accepted reply. |
| 138 | def v5_shards_line($m): |
| 139 | "CHECKPOINT_SHARDS model_sha256=\($m.model_sha256) model_digest_kind=\($m.model_digest_kind) index_sha256=\($m.index_sha256) shards=[\($m.shards | map("\(.[0]):\(.[1])") | join(","))]"; |
| 140 | def v5_row_gr($id): |
| 141 | . as $ev | ($ev.frozen.model // {}) as $m | ($ev.report.generation_record // null) as $gid |
| 142 | | ($ev | v5_gen_record) as $g | (v3_accepted) as $acc |
| 143 | | ($ev | v5_host($ev.report.compose_commit // -1) | if . == null then null else .text | v5_json end) as $commit |
| 144 | | ($ev.daemon // []) as $d | ($ev.logs // []) as $lg |
| 145 | | {row: "\($id)-GR", criterion: "Generation record binds model and text", |
| 146 | threshold: "the report and the compose_commit record and every authorization name the same generation record (not null); that record is in the S8 recall, verified, generation 1, origin compose_proposal, task and attempt of the accepted attempt; output_text_sha256 == the accepted attempt text_sha256; model_sha256 == the frozen manifest digest and model_digest_kind == index+shards; tokenizer_sha256 == the frozen tokenizer sha256; every daemon start logs model_sha256 and tokenizer_sha256 equal to them in its checkpoint loaded line and the frozen CHECKPOINT_SHARDS line", |
| 147 | value: {generation_record: $gid, commit_provenance: ($commit.provenance // null), |
| 148 | authorizations_provenance: ($ev.auths | map(.provenance // null)), |
| 149 | record: (if $g == null then null else {verified: $g.verified} + ($g.rec // {} | {generation, origin, task, attempt, output_text_sha256, model_sha256, model_digest_kind, tokenizer_sha256}) end), |
| 150 | accepted: ($acc | if . == null then null else {attempt, text_sha256} end), |
| 151 | daemon_model_lines: ($d | map(.model)), shards_lines: ($lg | map(.shards))}, |
| 152 | result: (($gid | v5_int) and $g != null and $g.verified == true and $g.rec != null and $acc != null |
| 153 | and ($commit.provenance.generation_record // null) == $gid |
| 154 | and ($ev.auths | length) > 0 and ($ev.auths | all((.provenance.generation_record // null) == $gid)) |
| 155 | and $g.rec.generation == 1 and $g.rec.origin == "compose_proposal" |
| 156 | and $g.rec.task == $ev.report.task and $g.rec.attempt == $acc.attempt |
| 157 | and ($acc.text_sha256 | type) == "string" and $g.rec.output_text_sha256 == $acc.text_sha256 |
| 158 | and ($m.model_sha256 | type) == "string" and $g.rec.model_sha256 == $m.model_sha256 |
| 159 | and $g.rec.model_digest_kind == $m.model_digest_kind and $m.model_digest_kind == "index+shards" |
| 160 | and ($m.tokenizer_sha256 | type) == "string" and $g.rec.tokenizer_sha256 == $m.tokenizer_sha256 |
| 161 | and ($d | length) > 0 and ($lg | length) == ($d | length) |
| 162 | and ($d | all((.model // "") | contains("model_sha256=\($m.model_sha256),") and contains("tokenizer_sha256=\($m.tokenizer_sha256))"))) |
| 163 | and ($lg | all(.shards == [v5_shards_line($m)]))) | v3_okv}; |
| 164 | |
| 165 | # OPR: positive evidence of no fallback, from the daemon logs (sc#337 line formats, ACCEPTANCE-v5 Section 3.4). |
| 166 | def v5_native_ops: ["rmsnorm", "apply_rope", "matmul_vec", "matmul_batch", "swiglu", "gqa_attention", "paged_attention", |
| 167 | "paged_attention_batch", "compute_logits", "rmsnorm_heads"]; |
| 168 | def v5_strict_ok: test("^STRICT strict=true dev_fallback_build=false require_checkpoint=true backend=.*OmegaGb10"); |
| 169 | def v5_op_ok: |
| 170 | (capture("^OP_REPORT native=\\[(?<n>[^\\]]*)\\] reference=\\[(?<r>[^\\]]*)\\] native_fallbacks=\\[(?<f>[^\\]]*)\\] reference_runs=\\[(?<rr>[^\\]]*)\\] backend=(?<b>.*)$") // null) as $c |
| 171 | | if $c == null then false |
| 172 | else ($c.n | split(",")) as $n |
| 173 | | (v5_native_ops | all(. as $o | $n | index($o) != null)) and $c.f == "" and $c.rr == "" and ($c.b | test("OmegaGb10")) end; |
| 174 | def v5_row_opr($id): |
| 175 | . as $ev | ($ev.daemon // []) as $d | ($ev.logs // []) as $lg | ([$lg[] | (.op_reports // [])[]]) as $ops |
| 176 | | ($ev.task.kind != "negative-boundary") as $calls |
| 177 | | {row: "\($id)-OPR", criterion: "No fallback, positive evidence", |
| 178 | threshold: "one log per daemon start in run.json; each has exactly one STRICT line with strict=true dev_fallback_build=false require_checkpoint=true and a backend containing OmegaGb10, and no STRICT_REAL_MODEL_VIOLATION line; every OP_REPORT line lists the ten native ops, native_fallbacks=[] and reference_runs=[], backend containing OmegaGb10; a launch that calls the model has at least one OP_REPORT line", |
| 179 | value: {daemon_starts: ($d | length), logs: ($lg | map({name, strict, violations, op_reports: (.op_reports | length)})), |
| 180 | bad_op_reports: ($ops | map(select(v5_op_ok | not))), calls_model: $calls}, |
| 181 | result: (($d | length) > 0 and ($lg | length) == ($d | length) |
| 182 | and ($lg | all((.strict | length) == 1 and (.strict[0] | v5_strict_ok) and .violations == 0)) |
| 183 | and ($ops | all(v5_op_ok)) and (($calls | not) or ($ops | length) > 0)) | v3_okv}; |
| 184 | |
| 185 | # PIN: the build pins the wrapper recorded equal the frozen ones, and the frozen ones are filled. |
| 186 | def v5_row_pin($id): |
| 187 | . as $ev | ($ev.frozen.pins // {}) as $f | ($ev.launch.pins // null) as $p | ($ev.frozen.placeholder // "TO FILL AT FREEZE") as $ph |
| 188 | | ($f | keys) as $k |
| 189 | | {row: "\($id)-PIN", criterion: "Build pins", |
| 190 | threshold: "the launch record has pins; every frozen pin (sovereign-core, omega, physics and aienos lock commits, Cargo.lock, aien, np1_reference, np1_edit_merge sha256) is filled (40 or 64 lowercase hex, not the placeholder) and equals the recorded one", |
| 191 | value: {frozen: $f, recorded: $p, differing: (if $p == null then null else ($k | map(select($f[.] != $p[.]))) end)}, |
| 192 | result: ($p != null and ($k | length) == 8 |
| 193 | and ($k | all(. as $x | ($f[$x] | type) == "string" and $f[$x] != $ph and ($f[$x] | test("^([0-9a-f]{40}|[0-9a-f]{64})$")) |
| 194 | and $p[$x] == $f[$x]))) | v3_okv}; |
| 195 | |
| 196 | # MEAS: measurements present and consistent. |
| 197 | def v5_row_meas($id): |
| 198 | . as $ev | ($ev | v5_attempts) as $at | ($ev.launch // {}) as $l | ($ev.daemon // []) as $d |
| 199 | | ($at | map(.ms) | if all(v5_int) then add // 0 else null end) as $sum |
| 200 | | {row: "\($id)-MEAS", criterion: "Measurements present and consistent", |
| 201 | threshold: "the launch record has wall_ms and meminfo_before mem_free_kb and cached_kb; every daemon start has vmhwm_kb; every attempt has ms, tokens and token_ids; all are non-negative integers; tokens == length of token_ids <= the task max_tokens; the attempts ms sum <= wall_ms", |
| 202 | value: {wall_ms: ($l.wall_ms // null), meminfo_before: ($l.meminfo_before // null), vmhwm_kb: ($d | map(.vmhwm_kb)), |
| 203 | attempts: ($at | map({attempt, ms, tokens, token_ids: (.token_ids | if type == "array" then length else . end)})), |
| 204 | attempts_ms_sum: $sum, max_tokens: $ev.task.max_tokens}, |
| 205 | result: (($l.wall_ms | v5_int) and ($l.meminfo_before.mem_free_kb | v5_int) and ($l.meminfo_before.cached_kb | v5_int) |
| 206 | and ($d | length) > 0 and ($d | all(.vmhwm_kb | v5_int)) |
| 207 | and ($at | all((.ms | v5_int) and (.tokens | v5_int) and (.token_ids | type) == "array" and (.token_ids | all(v5_int)) |
| 208 | and .tokens == (.token_ids | length) and .tokens <= $ev.task.max_tokens)) |
| 209 | and $sum != null and $sum <= $l.wall_ms) | v3_okv}; |
| 210 | |
| 211 | # ---- N1 (ACCEPTANCE-v5 Section 3.3): the refusal before the model -------------------------------------------- |
| 212 | # The verbatim error recorded at gate G3 (evidence-v5/g3-n1-stub-run.txt), in steps/S3.json "error". |
| 213 | def v5_n1_refusal: "RunComposeTask: destination ../shared-stuff/reminder.txt cannot be written safely (not a plain relative path inside the workspace); refusing"; |
| 214 | def v5_step($s): (.run_steps // []) | map(select(.step == $s)) | first; |
| 215 | def v5_row_n1_nr($id): |
| 216 | . as $ev | ($ev | v5_step("S3")) as $s3 |
| 217 | | {row: "\($id)-NR", criterion: "Refused for the destination", |
| 218 | threshold: "the propose step failed (S3 rc recorded as a number other than 0, steps/S3.json ok false) and its error equals the G3 string exactly: \(v5_n1_refusal | tojson)", |
| 219 | value: {s3_rc: ($s3.rc // null), s3_ok: ($ev.s3_step.ok // null), error: ($ev.s3_step.error // null)}, |
| 220 | result: ($s3 != null and ($s3.rc | type) == "number" and $s3.rc != 0 and $ev.s3_step != null and $ev.s3_step.ok == false and $ev.s3_step.error == v5_n1_refusal) | v3_okv}; |
| 221 | def v5_row_n1_nm($id): |
| 222 | . as $ev | ($ev.host // []) | map(select((.text | v5_json | .generation? // null) != null)) as $gens |
| 223 | | {row: "\($id)-NM", criterion: "No model call, nothing committed", |
| 224 | threshold: "no proposal attempt, no generation record named or present in the S8 recall (which must be present), no authorization record, no S5 path, and no file at the destination relative to the workspace", |
| 225 | value: {s8_present: ($ev.recall_s8 != null), attempts: ($ev | v5_attempts | length), generation_record: ($ev.report.generation_record // null), generation_records_in_recall: ($gens | map(.id)), |
| 226 | authorizations: ($ev.auths | length), s5_path: ($ev.s5.path // null), dest_exists: $ev.dest_exists}, |
| 227 | result: ($ev.recall_s8 != null and ($ev | v5_attempts | length) == 0 and ($ev.report.generation_record // null) == null and ($gens | length) == 0 |
| 228 | and ($ev.auths | length) == 0 and ($ev.s5.path // null) == null and $ev.dest_exists == false) | v3_okv}; |
| 229 | # Replaces v8 N1-C (it reads the S3 report, which a refusal before the model does not write). |
| 230 | def v5_row_n1_rc($id): |
| 231 | . as $ev | [$ev | v5_step("S3"), v5_step("S4"), v5_step("S5")] as $st |
| 232 | | {row: "\($id)-RC", criterion: "Completion state REFUSED, read from the steps", |
| 233 | threshold: "S3, S4 and S5 are recorded and each has a recorded exit code other than 0; no authorization record; no S5 path; the workspace is unchanged (run.json containment workspace_changed empty)", |
| 234 | value: {steps: ($st | map(if . == null then null else {step, rc, ok} end)), authorizations: ($ev.auths | length), |
| 235 | s5_path: ($ev.s5.path // null), workspace_changed: ($ev.containment.workspace_changed // null)}, |
| 236 | result: (($st | all(. != null and (.rc | type) == "number" and .rc != 0)) and ($ev.auths | length) == 0 and ($ev.s5.path // null) == null |
| 237 | and $ev.containment.workspace_changed == []) | v3_okv}; |
| 238 | # Replaces v8 N1-H (its machine id is read from the S3 report). |
| 239 | def v5_row_n1_rh($id): |
| 240 | . as $ev | ($ev.constraint_text // null) as $ct |
| 241 | | def has_ct: (.ok == true) and ((.constraints // []) | any(.text == $ct and .verified == true)); |
| 242 | {row: "\($id)-RH", criterion: "Daemon healthy after the refusal", |
| 243 | threshold: "the same daemon's recall after S3 (pre-restart) and S8 after the restart both return the S1 constraint byte-identical and verified; machine id equal in both", |
| 244 | value: {constraint_text: $ct, pre_machine_id: ($ev.recall_pre.machine_id // null), s8_machine_id: ($ev.recall_s8.machine_id // null)}, |
| 245 | result: ($ct != null and $ev.recall_pre != null and $ev.recall_s8 != null and ($ev.recall_pre | has_ct) and ($ev.recall_s8 | has_ct) |
| 246 | and ($ev.recall_pre.machine_id | type) == "string" and $ev.recall_pre.machine_id == $ev.recall_s8.machine_id) | v3_okv}; |
| 247 | |
| 248 | # ---- the rows of one launch ----------------------------------------------------------------------------------- |
| 249 | def v5_product_rows($id; $committed): |
| 250 | [v5_row_pre($id), v5_row_dec($id)] + (if $committed then [v5_row_gr($id)] else [] end) + [v5_row_opr($id), v5_row_pin($id), v5_row_meas($id)]; |
| 251 | def v5_rows: |
| 252 | . as $ev | ($ev.task.id) as $id | ($ev.task.kind) as $k |
| 253 | | (($ev.task.requirements // []) | length) as $nreq |
| 254 | | ([range(0; $nreq) as $i | v5_row_req($id; $i)]) as $rq |
| 255 | | if $k == "long" then |
| 256 | [v3_row_sb($id), v3_row_f($id), v4_row_cut($id)] + $rq |
| 257 | + (if ($ev.task.source // null) != null then [v4_row_src($id)] else [] end) |
| 258 | + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) |
| 259 | elif $k == "edit" then |
| 260 | [v3_row_sb($id), v4_row_cut($id), v4_row_eo($id)] |
| 261 | + (if (v5_end_of_section_ids | index($id)) != null then [v5_row_ep($id)] else [] end) |
| 262 | + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) |
| 263 | elif $k == "identity" then [v3_row_sb($id), v4_row_cut($id)] + $rq + [v3_row_d($id; true), v4_row_be($id)] + v5_product_rows($id; true) |
| 264 | elif $k == "negative-boundary" then |
| 265 | [v4_row_nc($id), v4_row_be($id), v5_row_n1_nr($id), v5_row_n1_nm($id), v5_row_n1_rc($id), v5_row_n1_rh($id), |
| 266 | v5_row_opr($id), v5_row_pin($id), v5_row_meas($id)] |
| 267 | elif $k == "negative-budget" then [v3_row_d($id; false), v4_row_nc($id), v3_row_n2r, v4_row_be($id)] + v5_product_rows($id; false) |
| 268 | else [{row: "?", criterion: "unknown launch kind", threshold: "-", value: $ev.task, result: "FAIL"}] end; |