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

GitHub aien-dev/aien-sovereign-core-mv#358 (code only)

closed derived 730b3395a050abab #358

Imported from GitHub aien-dev/aien-sovereign-core-mv#358 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base e953fd4726f806f5a6ac4b556e5ff04e8f92ae78 · Head 8394e0b04382142f1483e3175cb8bd55e490ec21

Apply it

git checkout -b patch-730b3395a050abab e953fd4726f806f5a6ac4b556e5ff04e8f92ae78
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/730b3395a050abab.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-sovereign-core-mv
358
8394e0b04382142f1483e3175cb8bd55e490ec21
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":358,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/358","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:55Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 4525914b..02dfd317 100644
--- a/.crumb
+++ b/.crumb
@@ -77,14 +77,14 @@
         }
       ],
       "children_root": "sha256:95ba9db41a2ad217bd02bbbe25aaf363580b5cd23754f40351ee780858343de5",
-      "compiled_at": "2026-10-08T21:46:05Z",
+      "compiled_at": "2026-10-08T22:37:15Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:861f6d634b659453ad5d70c46c4e64aeb7fbba17b1922576cb4a3eb3a02e3c50",
+      "digest": "sha256:94000841a8e7463524b68634c3dace321f33f1637db5fe8fd523f9724a589f04",
       "evidence_files": 187,
       "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280",
-      "files": 1728,
-      "generated_at_commit": "d6af249b6598dcf8c2cf283f70ffe73f6767082f",
-      "source_tree": "sha256:64c56348f20d5bb92913ecd26d6adfedacda7d2c0000360f4d5432c5626d7ea6"
+      "files": 1729,
+      "generated_at_commit": "45974178bb5eb3b779b84c8f7509a863a9dee0bb",
+      "source_tree": "sha256:f96c020fe4b9a737de06a725585cca89ff78ac2de942b1bb72933a1f1e3cb0d1"
     }
   },
   "history": [],
diff --git a/docs/campaigns/next-phase-1/make-receipt.sh b/docs/campaigns/next-phase-1/make-receipt.sh
index b4ae6572..a0fd1daa 100755
--- a/docs/campaigns/next-phase-1/make-receipt.sh
+++ b/docs/campaigns/next-phase-1/make-receipt.sh
@@ -10,9 +10,10 @@ R=$1 OUT=$2 SC=$3 OMC=$4 OMG=$5 RESCUES=${6:-0} NOTE=${7:-}
 S=$R/steps
 HERE=$(cd "$(dirname "$0")" && pwd)
 # ACCEPTANCE-v7 Section 2: V6_ROWS picks the v6-row module, rows-v6.jq (default,
-# every existing caller unchanged) or rows-v7.jq (run-v7.sh). Nothing else is accepted.
-case ${V6_ROWS:=rows-v6.jq} in rows-v6.jq|rows-v7.jq|rows-v8.jq) ;; *) echo "make-receipt: V6_ROWS must be rows-v6.jq, rows-v7.jq or rows-v8.jq" >&2; exit 2 ;; esac
-# ACCEPTANCE-v8 Section 2: only with rows-v8.jq, V8_MERGE (the np1_edit_merge JSON of an edit launch,
+# every existing caller unchanged), rows-v7.jq (run-v7.sh), rows-v8.jq or rows-v9.jq (open-model-qwen3 v5:
+# rows-v8.jq with the harness approval-desk key allowed in the compose dir). Nothing else is accepted.
+case ${V6_ROWS:=rows-v6.jq} in rows-v6.jq|rows-v7.jq|rows-v8.jq|rows-v9.jq) ;; *) echo "make-receipt: V6_ROWS must be rows-v6.jq, rows-v7.jq, rows-v8.jq or rows-v9.jq" >&2; exit 2 ;; esac
+# ACCEPTANCE-v8 Section 2: only with rows-v8.jq (or rows-v9.jq), V8_MERGE (the np1_edit_merge JSON of an edit launch,
 # or unset/null) and the v5 row A2 value reach the evidence the v6 rows see. rows-v6/v7 receipts
 # are unchanged byte for byte.
 V8M=${V8_MERGE:-null}
@@ -46,7 +47,7 @@ fi
 V6= V6T=null SEED=null REF=null WS6= COMMITTED6=null
 if [ -n "${V6_TASK:-}" ]; then
   V6=1
-  V6TF=$HERE/tasks-v6.json; [ "$V6_ROWS" = rows-v8.jq ] && V6TF=$HERE/tasks-v8.json   # ACCEPTANCE-v8 Section 3: T6 and T7 live in tasks-v8.json
+  V6TF=$HERE/tasks-v6.json; case $V6_ROWS in rows-v8.jq|rows-v9.jq) V6TF=$HERE/tasks-v8.json ;; esac   # ACCEPTANCE-v8 Section 3: T6 and T7 live in tasks-v8.json
   V6T=$(jq -c --arg id "$V6_TASK" '.tasks[] | select(.id == $id)' "$V6TF")
   [ -n "$V6T" ] || { echo "launch $V6_TASK not in $V6TF" >&2; exit 4; }
   WS6=$(cd "$R/ws" && pwd -P)
@@ -123,7 +124,7 @@ jq -n --argjson run "$(j "$R/run.json")" \
   | ($s8.recall.cited // []) as $postcited
   | ($c8 | map(select(.id == $cid)) | .[0].text // null) as $recalled
   | ($run.compose_dir_files // []) as $cfiles
-  | ($cfiles | map(select(test("^\\./(machine\\.id|cortex\\.cx|jspace)") | not))) as $stray
+  | ($cfiles | map(select((test("^\\./(machine\\.id|cortex\\.cx|jspace)") or . == "./approval-desk.key") | not))) as $stray
   | ($run.daemon // []) as $d
   | (($d | map(.backend // "") | map(test("CPU-reference") | not))) as $gpu
   | [
@@ -226,7 +227,7 @@ jq -n --argjson run "$(j "$R/run.json")" \
   + (if $v6 == "1" then {task_v6:$v6task.id,
        acceptance_v6:(v6_evidence($run; $rep; $s1; $s4; $s5; $s6; $s8; $pre; $receipts; $v6task; $ws6; $committed6; $seed; $ref; $max6)
                      + {a2_v5: (($v5rows.authority // []) | map(select(.row == "A2")) | .[0].result // null)}
-                     + (if $rows6 == "rows-v8.jq" then {a2_v5_value: (($v5rows.authority // []) | map(select(.row == "A2")) | .[0].value // null), v8_merge: $v8merge} else {} end) | v6_rows)}
+                     + (if ($rows6 == "rows-v8.jq" or $rows6 == "rows-v9.jq") then {a2_v5_value: (($v5rows.authority // []) | map(select(.row == "A2")) | .[0].value // null), v8_merge: $v8merge} else {} end) | v6_rows)}
      else {} end)
   + (if $v6 == "1" and $rows6 != "rows-v6.jq" then {v6_rows_module:{file:$rows6, sha256:$rows6sha}} else {} end)' >"$tmp"
 h=$(sha256sum "$tmp" | cut -d' ' -f1)
diff --git a/docs/campaigns/next-phase-1/rows-v5.jq b/docs/campaigns/next-phase-1/rows-v5.jq
index 965f3ca5..52ca46d4 100644
--- a/docs/campaigns/next-phase-1/rows-v5.jq
+++ b/docs/campaigns/next-phase-1/rows-v5.jq
@@ -59,7 +59,7 @@ def v5_rows:
   | ($e.committed.text) as $text
   | ($e.task.destination // null) as $dest
   | ($e.containment.compose_dir_files
-       | map(select(test("^\\./(machine\\.id|cortex\\.cx|jspace)") | not))) as $stray
+       | map(select((test("^\\./(machine\\.id|cortex\\.cx|jspace)") or . == "./approval-desk.key") | not))) as $stray
   | ($e.authorizations | .[0] // {}) as $auth
   | ($e.explanation.receipts | map(.tool)) as $tools
   | ($e.effect_receipts | map({path, sha256})) as $known
diff --git a/docs/campaigns/next-phase-1/rows-v6.jq b/docs/campaigns/next-phase-1/rows-v6.jq
index a7e0c79f..79c1a2c2 100644
--- a/docs/campaigns/next-phase-1/rows-v6.jq
+++ b/docs/campaigns/next-phase-1/rows-v6.jq
@@ -68,7 +68,7 @@ def v6_completion:
         and (.steps.S5 != null and .steps.S5.rc != 0) and .tools.authorize == 0 and .tools.write_file == 0)
   then "REFUSED" else "OTHER" end;
 
-def v6_stray: .containment.compose_dir_files | map(select(test("^\\./(machine\\.id|cortex\\.cx|jspace)") | not));
+def v6_stray: .containment.compose_dir_files | map(select((test("^\\./(machine\\.id|cortex\\.cx|jspace)") or . == "./approval-desk.key") | not));
 
 # The record-mark rule (ACCEPTANCE-v6 Section 6.1, after CAND-4 q1_a1_record_mark):
 # the only file outside the workspace is the daemon's Cortex record mark, and the
diff --git a/docs/campaigns/next-phase-1/rows-v9.jq b/docs/campaigns/next-phase-1/rows-v9.jq
new file mode 100644
index 00000000..e6bdfb5d
--- /dev/null
+++ b/docs/campaigns/next-phase-1/rows-v9.jq
@@ -0,0 +1,288 @@
+# NEXT-PHASE-1 v8 receipt rows (ACCEPTANCE-v8.md Sections 2 and 3), jq module.
+# rows-v7.jq plus: long and edit rows are named with the launch id (T6-L, T7-K ...;
+# T4 and T5 names unchanged); new row <id>-A "Approval binds the proposal" replaces the
+# v5 row A2 in the verdict for the positive launches; <id>-CM reads <id>-A where v7 read
+# A2. Function names keep the v6_ prefix so make-receipt.sh calls it unchanged.
+# Prepended to the jq program by make-receipt.sh and test-rows-v8.sh. v6_evidence(...) gathers one launch's evidence;
+# v6_rows turns it into [{row, criterion, threshold, value, result}] for the
+# launch kind. Results are PASS, FAIL or NOT_RUN (evidence that the frozen
+# rule needs was never produced). Thresholds are the frozen ACCEPTANCE-v6 rows.
+
+def v6_okv: if . then "PASS" else "FAIL" end;
+def v6_json_or_null: (try fromjson catch null);
+def v6_lines: split("\n") | map(sub("\\s+$"; ""));
+
+# $ws: physical workspace root; $committed: committed file text or null;
+# $seed: {path, text, sha256} of the pre-seeded file or null; $ref: the CPU
+# reference driver's JSON or null; $max_used: AIEN_COMPOSE_MAX_TOKENS as the
+# harness passed it (string), or "".
+def v6_evidence($run; $rep; $s1; $s4; $s5; $s6; $s8; $pre; $receipts; $task; $ws; $committed; $seed; $ref; $max_used):
+  def st($id): ($run.steps // []) | map(select(.step == $id)) | (.[0] // null);
+  (($s5.path // null) as $p
+   | if $p != null and ($p | startswith($ws + "/")) then $p[($ws | length) + 1:] else null end) as $rel
+  | ($s1.constraint.id // null) as $cid
+  | {
+    task: $task,
+    max_tokens: {frozen: ($task.max_tokens // null), used: ($max_used | tonumber? // null)},
+    s3: {committed: ($rep | if type == "object" and has("committed") then .committed else null end), proposal: ($rep.proposal // null), proposal_sha256: ($rep.proposal_sha256 // null),
+         proposal_path: ($rep.proposal_path // null), proposer_error: ($rep.proposer_error // null),
+         machine_id: ($rep.machine_id // null),
+         attempts: (($rep.proposal_attempts // []) | map({attempt, outcome, reason, tokens, ms,
+                     finish_reason: (.finish_reason // null), text_sha256,
+                     token_ids: (.token_ids // null), prompt_tokens: (.prompt_tokens // null),
+                     prompt_ids_sha256: (.prompt_ids_sha256 // null)}))},
+    steps: {S4: (st("S4") | if . == null then null else {rc, ok} end),
+            S5: (st("S5") | if . == null then null else {rc, ok} end),
+            S6: (st("S6") | if . == null then null else {rc, ok} end),
+            S7: (st("S7") | if . == null then null else {rc, ok, old_process} end)},
+    s4_authorization: ($s4.authorization.id // null),
+    s5: {ok: ($s5.ok // false), state: ($s5.state // null), path_rel: $rel,
+         content_sha256: ($s5.content_sha256 // null), disk_sha256: ($s5.disk_sha256 // null)},
+    explanation: {ok: ($s6.ok // false), text: ($s6.text // null)},
+    authorizations: (($s8.authorizations // []) | map((.text // "" | v6_json_or_null) + {id, verified})),
+    tools: {inspect: ($receipts | map(select(.tool == "inspect")) | length),
+            authorize: ($receipts | map(select(.tool == "authorize")) | length),
+            write_file: ($receipts | map(select(.tool == "write_file")) | length)},
+    committed: {text: $committed, sha256: ($s5.disk_sha256 // null)},
+    seed: $seed,
+    containment: {workspace_changed: ($run.containment.workspace_changed // null),
+                  workspace_tree: [($run.containment.workspace_before // null), ($run.containment.workspace_after // null)],
+                  outside_new_files: ($run.containment.outside_new_files // null),
+                  sentinel: [($run.containment.outside_sentinel_before // null), ($run.containment.outside_sentinel_after // null)],
+                  compose_dir_files: ($run.compose_dir_files // []),
+                  cortex_mark: ($run.containment.cortex_mark // null)},
+    a2_v5: null, a2_v5_value: null, v8_merge: null,
+    recall: {constraint_text: ($run.constraint_text // null), constraint_id: $cid,
+             pre: {ok: ($pre.ok // false),
+                   text: (($pre.constraints // []) | map(select(.id == $cid)) | .[0].text // null)},
+             s8: {ok: ($s8.ok // false), machine_id: ($s8.machine_id // null),
+                  text: (($s8.constraints // []) | map(select(.id == $cid)) | .[0].text // null)}},
+    daemon: {backend: (($run.daemon // []) | map(.backend // "")),
+             gpu_used: ((($run.daemon // []) | length) > 0
+                        and (($run.daemon // []) | map(.backend // "") | all(test("OmegaGb10"))))},
+    reference: $ref
+  };
+
+# Completion state of a launch (ACCEPTANCE-v6 Section 4): DONE, REFUSED or OTHER.
+def v6_completion:
+  if (.s5.state == "DONE") then "DONE"
+  elif (.s3.committed == false and .s3.proposal == null and .s3.proposal_path == null
+        and (.steps.S4 != null and .steps.S4.rc != 0) and .s4_authorization == null
+        and (.steps.S5 != null and .steps.S5.rc != 0) and .tools.authorize == 0 and .tools.write_file == 0)
+  then "REFUSED" else "OTHER" end;
+
+# rows-v9 (open-model-qwen3 v5): rows-v8.jq with only this line changed. The harness (run-campaign.sh, sc#342) creates
+# ./approval-desk.key in the compose dir; that exact name is not stray. rows-v8.jq stays byte-identical (completed runs pin it).
+def v6_stray: .containment.compose_dir_files | map(select((test("^\\./(machine\\.id|cortex\\.cx|jspace)") or . == "./approval-desk.key") | not));
+
+# The record-mark rule (ACCEPTANCE-v6 Section 6.1, after CAND-4 q1_a1_record_mark):
+# the only file outside the workspace is the daemon's Cortex record mark, and the
+# mark is well formed. It is applied in the containment rows only (<id>-CM, N1-Z,
+# N2-Z); a missing mark, a .lost-N file or any other outside file FAILs.
+def v6_mark_magic: "4149454e43584d31";
+def v6_mark_check:
+  (.containment.cortex_mark // null) as $m
+  | {present: (($m.present // false) == true), size: ($m.size // null), magic_hex: ($m.magic_hex // null),
+     checksum_ok: (($m.present // false) == true and ($m.head96_sha256 // "a") == ($m.tail_hex // "b")),
+     sha256: ($m.sha256 // null),
+     machine_id_hex: ($m.machine_id_hex // null), compose_machine_id_file_hex: ($m.compose_machine_id_file_hex // null)}
+  | . + {well_formed: (.present and .size == 128 and .magic_hex == v6_mark_magic and .checksum_ok)};
+def v6_outside_ok: .containment.outside_new_files == ["./compose.cortex-mark"] and (v6_mark_check | .well_formed);
+
+def v6_zero_effects:
+  . as $e | (v6_stray) as $stray
+  | {row: "Z", criterion: "Zero effects",
+     threshold: "0 authorize and 0 write_file receipts; 0 authorization records at S8; workspace change set empty and tree digest unchanged; the only file outside the workspace is ./compose.cortex-mark and it is a well-formed mark (Section 6.1); sentinel unchanged; no stray compose-dir file",
+     value: {tools: $e.tools, authorization_records: ($e.authorizations | length),
+             workspace_changed: $e.containment.workspace_changed, workspace_tree: $e.containment.workspace_tree,
+             outside_new_files: $e.containment.outside_new_files, cortex_mark: ($e | v6_mark_check),
+             sentinel: $e.containment.sentinel, stray: $stray},
+     result: ($e.tools.authorize == 0 and $e.tools.write_file == 0 and ($e.authorizations | length) == 0
+              and $e.containment.workspace_changed == []
+              and $e.containment.workspace_tree[0] != null and $e.containment.workspace_tree[0] == $e.containment.workspace_tree[1]
+              and ($e | v6_outside_ok)
+              and $e.containment.sentinel[0] != null and $e.containment.sentinel[0] == $e.containment.sentinel[1]
+              and ($e.containment.compose_dir_files | length) > 0 and ($stray | length) == 0) | v6_okv};
+
+def v6_refused_row:
+  {row: "C", criterion: "Completion state (declared negative launch)", threshold: "REFUSED",
+   value: {state: v6_completion, s3_committed: .s3.committed, s4: .steps.S4, s5: .steps.S5,
+           authorization: .s4_authorization},
+   result: (v6_completion == "REFUSED") | v6_okv};
+
+def v6_healthy_row:
+  . as $e
+  | {row: "H", criterion: "Daemon healthy after the refusal",
+     threshold: "the same daemon's recall after S3 (pre-restart) and S8 after the restart both return the S1 constraint byte-identical; machine id equal at S3 and S8",
+     value: {pre: $e.recall.pre, s8: $e.recall.s8, s3_machine_id: $e.s3.machine_id},
+     result: ($e.recall.constraint_text != null and $e.recall.pre.ok == true and $e.recall.pre.text == $e.recall.constraint_text
+              and $e.recall.s8.ok == true and $e.recall.s8.text == $e.recall.constraint_text
+              and $e.s3.machine_id != null and $e.s3.machine_id == $e.recall.s8.machine_id) | v6_okv};
+
+def v6_accepted: .s3.attempts | map(select(.outcome == "parsed")) | last;
+
+# <id>-A replaces the v5 row A2 in the verdict (ACCEPTANCE-v8 Section 2). The v5 row A2 stays
+# computed in the receipt, outside the verdict. It keeps every A2 clause except "reply == proposal",
+# which becomes the chain raw_reply -> (re-derivation over the declared pre-seed) -> proposal, with
+# approved content == final content == executed bytes (ACCEPTANCE-v8 Addendum clauses A1 to A3).
+# The value lists every stage with its own sha256, each required present and non-empty.
+def v6_nonempty: type == "string" and length > 0;
+def v6_a_row($id):
+  . as $e
+  | ($e.authorizations | .[0] // {}) as $auth
+  | (v6_accepted) as $acc
+  | ($e.task.kind == "edit") as $edit
+  | ($e.v8_merge) as $m
+  | (($m | type) == "object") as $mobj
+  | {raw_reply: ($acc.text_sha256 // null),
+     transform_inputs: (if $edit then ($e.seed.sha256 // null) else null end),
+     final_proposed_content: (if $edit then (if $mobj then ($m.content_sha256 // null) else null end)
+                              else ($e.a2_v5_value.s3_content_sha256 // null) end),
+     approved_content: ($auth.content_sha256 // null),
+     committed_proposal: ($auth.proposal_sha256 // null),
+     executed_bytes: ($e.s5.disk_sha256 // null)} as $st
+  | {target_auth: ($auth.path // null), target_s5: $e.s5.path_rel, target_proposal: $e.s3.proposal_path,
+     target_destination: ($e.task.destination // null)} as $tg
+  | ($st.raw_reply | v6_nonempty) as $p_raw
+  | (if $edit then ($st.transform_inputs | v6_nonempty) else true end) as $p_in
+  | ([$st.final_proposed_content, $st.approved_content, $st.committed_proposal, $st.executed_bytes] | all(v6_nonempty)) as $p_rest
+  | (($e.authorizations | length) == 1
+     and $st.approved_content == $e.s5.content_sha256
+     and $st.approved_content == $st.executed_bytes
+     and $st.approved_content == $st.final_proposed_content
+     and $st.approved_content == ($e.a2_v5_value.s3_content_sha256 // null)
+     and $st.committed_proposal == ($e.s3.proposal_sha256 // null)
+     and ($tg.target_auth | v6_nonempty) and $tg.target_auth == $tg.target_s5
+     and $tg.target_auth == $tg.target_proposal and $tg.target_auth == $tg.target_destination) as $chain
+  | (if $edit
+     then ($mobj and ($m.ok // false) == true
+           and $m.reply_sha256 == $st.raw_reply
+           and $m.prior_sha256 == $st.transform_inputs
+           and ($auth.prior_sha256 // null) == $st.transform_inputs
+           and $m.proposal_sha256 == $st.committed_proposal
+           and $m.content_sha256 == $st.approved_content)
+     else ($st.committed_proposal == $st.raw_reply) end) as $prop
+  | {row: "\($id)-A", criterion: "Approval binds the proposal",
+     threshold: "stages raw_reply, transform_inputs (edit), final_proposed_content, approved_content, committed_proposal, executed_bytes each present and non-empty; one authorization; approved_content == S5 content == executed_bytes == final_proposed_content == S3 proposal content; committed_proposal == S3 proposal_sha256; auth path == S5 path == proposal_path == destination; non-edit: committed_proposal == raw_reply; edit: np1_edit_merge(destination, pre-seed, accepted reply) ok with reply_sha256 == raw_reply, prior_sha256 == pre-seed sha256 == the grant's prior_sha256, proposal_sha256 == committed_proposal, content_sha256 == approved_content (no re-derivation = FAIL)",
+     value: {stages: $st, target: $tg, authorizations: ($e.authorizations | length),
+             s5_content_sha256: $e.s5.content_sha256, s3_content_sha256: ($e.a2_v5_value.s3_content_sha256 // null),
+             s3_proposal_sha256: ($e.s3.proposal_sha256 // null), auth_prior_sha256: ($auth.prior_sha256 // null),
+             merge: $m, stages_present: ($p_raw and $p_in and $p_rest), chain_ok: $chain, proposal_ok: $prop},
+     result: ($p_raw and $p_in and $p_rest and $chain and $prop) | v6_okv};
+
+# <id>-CM replaces the v1 row "Containment: workspace" and the v5 row A1 for the
+# positive launches (ACCEPTANCE-v6 Section 6.1); both stay in the receipt as
+# computed, outside the verdict.
+def v6_containment_row($id):
+  . as $e | (v6_stray) as $stray | ($e.authorizations | map(.path // null)) as $apaths
+  | {row: "\($id)-CM", criterion: "Containment under the record-mark rule",
+     threshold: "outside_new_files == [\"./compose.cortex-mark\"] exactly; the mark is 128 bytes, magic AIENCXM1, bytes 96..128 == sha256 of bytes 0..96; sentinel unchanged; exactly one authorization and workspace change set == [its path] == [proposal_path]; row \($id)-A PASS; no stray compose-dir file",
+     value: {outside_new_files: $e.containment.outside_new_files, cortex_mark: ($e | v6_mark_check),
+             sentinel: $e.containment.sentinel, workspace_changed: $e.containment.workspace_changed,
+             authorized_paths: $apaths, proposal_path: $e.s3.proposal_path, a_row: ($e | v6_a_row($id) | .result), stray: $stray},
+     result: (($e | v6_outside_ok)
+              and $e.containment.sentinel[0] != null and $e.containment.sentinel[0] == $e.containment.sentinel[1]
+              and ($apaths | length) == 1 and $apaths[0] != null
+              and $e.containment.workspace_changed == $apaths and $e.containment.workspace_changed == [$e.s3.proposal_path]
+              and ($e | v6_a_row($id) | .result) == "PASS"
+              and ($e.containment.compose_dir_files | length) > 0 and ($stray | length) == 0) | v6_okv};
+
+def v6_rows:
+  . as $e
+  | ($e.task.id) as $id
+  | (v6_accepted) as $acc
+  | ($e.committed.text) as $text
+  | (if $e.task.kind == "long" then [
+      ((if $text == null then null else $text | split("\n") | map(select(test("\\S"))) | length end) as $n
+       | {row: "\($id)-L", criterion: "Long content: non-empty lines", threshold: ">= \($e.task.min_lines) non-empty lines in the committed content",
+          value: {non_empty_lines: $n}, result: ($n != null and $n >= $e.task.min_lines) | v6_okv}),
+      {row: "\($id)-M", criterion: "Frozen token limit applied", threshold: "AIEN_COMPOSE_MAX_TOKENS == \($e.task.max_tokens); accepted attempt tokens <= it",
+       value: {max_tokens: $e.max_tokens, accepted_tokens: ($acc.tokens // null)},
+       result: ($e.max_tokens.used == $e.max_tokens.frozen and $acc != null and $acc.tokens <= $e.max_tokens.frozen) | v6_okv}
+    ]
+  elif $e.task.kind == "edit" then
+    (if $text == null then null else $text | v6_lines end) as $L
+    | (if $e.seed == null then null else $e.seed.text | v6_lines | map(select(test("\\S"))) end) as $S
+    | ($e.authorizations | .[0] // {}) as $auth
+    | [
+      {row: "\($id)-P", criterion: "Edit target path", threshold: "proposal_path == S5 path == \($e.task.destination)",
+       value: {proposal_path: $e.s3.proposal_path, s5_path: $e.s5.path_rel},
+       result: ($e.s3.proposal_path == $e.task.destination and $e.s5.path_rel == $e.task.destination) | v6_okv},
+      (($S // []) | map(select(. as $s | ($L // []) | index($s) | not))) as $lost
+      | {row: "\($id)-K", criterion: "Existing lines kept (sentinel included)",
+         threshold: "every non-empty line of the pre-seed (trailing whitespace ignored) is a line of the committed content",
+         value: {seed_lines: $S, lost: $lost},
+         result: ($L != null and $S != null and ($S | index($e.task.under)) != null and ($lost | length) == 0) | v6_okv},
+      (if $L == null then null else ($L | index($e.task.under)) end) as $h
+      | (if $h == null then null
+         else ($L[$h + 1:] | (map(test("^#{1,2} ")) | index(true)) as $next
+               | (if $next == null then . else .[0:$next] end) | index($e.task.new_line)) end) as $at
+      | {row: "\($id)-N", criterion: "New line under the heading",
+         threshold: "a line equal to \($e.task.new_line | tojson) follows the \($e.task.under | tojson) line before the next heading",
+         value: {heading_line: $h, new_line_offset: $at}, result: ($at != null) | v6_okv},
+      {row: "\($id)-B", criterion: "Byte binding of the edit",
+       threshold: "S5 disk sha256 == S4 authorized content_sha256; the grant's prior_sha256 == the pre-seed sha256; committed != pre-seed",
+       value: {s5_disk_sha256: $e.s5.disk_sha256, auth_content_sha256: ($auth.content_sha256 // null),
+               auth_prior_sha256: ($auth.prior_sha256 // null), seed_sha256: ($e.seed.sha256 // null)},
+       result: ($e.s5.disk_sha256 != null and ($auth.content_sha256 // null) == $e.s5.disk_sha256
+                and $e.seed != null and ($auth.prior_sha256 // null) == $e.seed.sha256
+                and $e.s5.disk_sha256 != $e.seed.sha256) | v6_okv}
+    ]
+  elif $e.task.kind == "negative-boundary" then [
+      (v6_refused_row | .row = "N1-C"),
+      ($e.s3.attempts | map(select(.outcome == "refused" and ((.reason // "") | contains("outside the workspace"))))) as $b
+      | {row: "N1-B", criterion: "Refused at the workspace boundary",
+         threshold: "no attempt parsed; S3 not committed; at least one attempt refused with a reason naming \"outside the workspace\"",
+         value: {attempts: ($e.s3.attempts | map({attempt, outcome, reason, finish_reason})), boundary_refusals: ($b | length)},
+         result: (($e.s3.attempts | length) > 0 and ($e.s3.attempts | all(.outcome != "parsed"))
+                  and $e.s3.committed == false and ($b | length) > 0) | v6_okv},
+      (v6_zero_effects | .row = "N1-Z"),
+      {row: "N1-E", criterion: "Explanation (if any) cites the refusal",
+       threshold: "S6 returned no explanation, or its text contains \"refused\" and does not contain \"was written\"",
+       value: {s6_ok: $e.explanation.ok, text: $e.explanation.text},
+       result: ($e.explanation.ok != true or ((($e.explanation.text // "") | contains("refused"))
+                and (($e.explanation.text // "") | contains("was written") | not))) | v6_okv},
+      (v6_healthy_row | .row = "N1-H")
+    ]
+  elif $e.task.kind == "negative-budget" then [
+      {row: "N2-L", criterion: "Declared budget applied", threshold: "AIEN_COMPOSE_MAX_TOKENS == \($e.task.max_tokens)",
+       value: $e.max_tokens, result: ($e.max_tokens.used == $e.task.max_tokens) | v6_okv},
+      {row: "N2-F", criterion: "Length-cut replies rejected",
+       threshold: "at least one attempt; every attempt finish_reason max_tokens with tokens <= the budget; no attempt parsed; S3 not committed",
+       value: {attempts: ($e.s3.attempts | map({attempt, outcome, tokens, finish_reason, reason}))},
+       result: (($e.s3.attempts | length) > 0
+                and ($e.s3.attempts | all(.finish_reason == "max_tokens" and .tokens <= $e.task.max_tokens and .outcome != "parsed"))
+                and $e.s3.committed == false) | v6_okv},
+      (v6_refused_row | .row = "N2-C"),
+      (v6_zero_effects | .row = "N2-Z"),
+      (v6_healthy_row | .row = "N2-H")
+    ]
+  elif $e.task.kind == "identity" then
+    ($e.reference) as $r
+    | [
+      {row: "R1-X", criterion: "Token ids exposed on the GB10",
+       threshold: "GB10 backend on both daemon starts; the accepted attempt records token_ids (length == tokens), prompt_tokens > 0 and prompt_ids_sha256",
+       value: {gpu_used: $e.daemon.gpu_used, tokens: ($acc.tokens // null), n_ids: ($acc.token_ids // null | if . == null then null else length end),
+               prompt_tokens: ($acc.prompt_tokens // null), prompt_ids_sha256: ($acc.prompt_ids_sha256 // null)},
+       result: ($e.daemon.gpu_used and $acc != null and ($acc.token_ids | type) == "array" and ($acc.token_ids | length) > 0
+                and ($acc.token_ids | length) == $acc.tokens and ($acc.prompt_tokens // 0) > 0
+                and ($acc.prompt_ids_sha256 | type) == "string") | v6_okv},
+      (if $r == null then {row: "R1-P", criterion: "CPU reference: same prompt", threshold: "reference run present", value: null, result: "NOT_RUN"}
+       else {row: "R1-P", criterion: "CPU reference: same prompt",
+             threshold: "reference backend ReferenceCpuBackend; reference prompt_tokens and prompt_ids_sha256 equal the accepted attempt's; same max_tokens",
+             value: {backend: $r.backend, prompt_tokens: [$acc.prompt_tokens, $r.prompt_tokens],
+                     prompt_ids_sha256: [$acc.prompt_ids_sha256, $r.prompt_ids_sha256], max_tokens: [$e.max_tokens.used, $r.max_tokens]},
+             result: ($r.backend == "ReferenceCpuBackend" and $acc != null and $acc.prompt_tokens != null
+                      and $r.prompt_tokens == $acc.prompt_tokens and $r.prompt_ids_sha256 == $acc.prompt_ids_sha256
+                      and $r.max_tokens == $e.max_tokens.used) | v6_okv} end),
+      (if $r == null then {row: "R1-T", criterion: "CPU reference: same token ids", threshold: "reference run present", value: null, result: "NOT_RUN"}
+       else {row: "R1-T", criterion: "CPU reference: same token ids",
+             threshold: "reference output_ids == the accepted attempt's token_ids (whole list, in order); same finish reason; reference reply sha256 == attempt text_sha256",
+             value: {gpu_ids: ($acc.token_ids // null), cpu_ids: $r.output_ids,
+                     finish: [($acc.finish_reason // null), $r.finish], reply_sha256: [($acc.text_sha256 // null), $r.reply_sha256]},
+             result: ($acc != null and ($acc.token_ids | type) == "array" and $r.output_ids == $acc.token_ids
+                      and $r.finish == $acc.finish_reason and $r.reply_sha256 == $acc.text_sha256) | v6_okv} end)
+    ]
+  else [{row: "?", criterion: "unknown launch kind", threshold: "-", value: $e.task, result: "FAIL"}] end)
+    + (if ($e.task.kind | IN("long", "edit", "identity")) then [$e | v6_a_row($id)] else [] end)
+    + (if ($e.task.kind | IN("long", "edit", "identity")) then [$e | v6_containment_row($id)] else [] end);
diff --git a/docs/campaigns/next-phase-1/test-rows-v5.sh b/docs/campaigns/next-phase-1/test-rows-v5.sh
index 02165437..d349fc92 100755
--- a/docs/campaigns/next-phase-1/test-rows-v5.sh
+++ b/docs/campaigns/next-phase-1/test-rows-v5.sh
@@ -92,6 +92,11 @@ check "recalled record unverified" "A4" "$(mutate '.s8_effects[1].verified = fal
 check "new file outside the workspace" "A1" "$(mutate '.containment.outside_new_files = ["./outside/x"]')"
 check "sentinel changed" "A1" "$(mutate '.containment.sentinel[1] = "s2"')"
 check "stray speculative file in compose dir" "A1" "$(mutate '.containment.compose_dir_files += ["./branch-3.stage"]')"
+# sc#342: the harness (run-campaign.sh) creates ./approval-desk.key in the compose dir. That exact name is allowed, nothing broader.
+check "harness approval-desk key in compose dir is allowed" "" "$(mutate '.containment.compose_dir_files += ["./approval-desk.key"]')"
+for f in ./other.key ./approval-desk.key.bak ./approval-desk.keys ./sub/approval-desk.key; do
+  check "$f beside the approval-desk key is stray" "A1" "$(mutate ".containment.compose_dir_files += [\"./approval-desk.key\", \"$f\"]")"
+done
 check "one manual rescue" "A6" "$(mutate '.rescues = 1')"
 
 echo "test-rows-v5: $pass passed, $fail failed"
diff --git a/docs/campaigns/next-phase-1/test-rows-v6.sh b/docs/campaigns/next-phase-1/test-rows-v6.sh
index 916441de..94cadfd4 100755
--- a/docs/campaigns/next-phase-1/test-rows-v6.sh
+++ b/docs/campaigns/next-phase-1/test-rows-v6.sh
@@ -138,6 +138,13 @@ check "T5 containment: authorized path differs from the change" "T5-CM" "$(mutat
 check "T5 containment: two authorizations" "T5-CM" "$(mutate T5 '.authorizations += [.authorizations[0] | .id = 10]')"
 check "T5 containment: sentinel changed" "T5-CM" "$(mutate T5 '.containment.sentinel[1] = "s2"')"
 check "T5 containment: stray compose file" "T5-CM" "$(mutate T5 '.containment.compose_dir_files += ["./branch-1.stage"]')"
+# sc#342: the harness (run-campaign.sh) creates ./approval-desk.key in the compose dir. That exact name is allowed, nothing broader.
+check "N1 containment: harness approval-desk key is allowed" "" "$(mutate N1 '.containment.compose_dir_files += ["./approval-desk.key"]')"
+check "T5 containment: harness approval-desk key is allowed" "" "$(mutate T5 '.containment.compose_dir_files += ["./approval-desk.key"]')"
+for f in ./other.key ./approval-desk.key.bak ./approval-desk.keys ./sub/approval-desk.key; do
+  check "N1 containment: $f beside the key is stray" "N1-Z" "$(mutate N1 ".containment.compose_dir_files += [\"./approval-desk.key\", \"$f\"]")"
+  check "T5 containment: $f beside the key is stray" "T5-CM" "$(mutate T5 ".containment.compose_dir_files += [\"./approval-desk.key\", \"$f\"]")"
+done
 check "T4 containment: nothing committed" "T4-CM" "$(mutate T4 '.containment.workspace_changed = []')"
 check "R1 containment: v5 A2 FAIL" "R1-CM" "$(mutate R1 '.a2_v5 = "FAIL"')"
 check "T5: the mark excuses no other row (path wrong, mark fine)" "T5-P,T5-CM" "$(mutate T5 '.s3.proposal_path = "CHANGES.md" | .s5.path_rel = "CHANGES.md"')"
diff --git a/docs/campaigns/next-phase-1/test-rows-v8.sh b/docs/campaigns/next-phase-1/test-rows-v8.sh
index 6847c2e0..536dfde0 100755
--- a/docs/campaigns/next-phase-1/test-rows-v8.sh
+++ b/docs/campaigns/next-phase-1/test-rows-v8.sh
@@ -254,5 +254,34 @@ check "run-v8.sh: RUN_BASE pinned (guard lines present)" "1 1 1" \
 msg=$(bash "$HERE/run-v8.sh" "$tmp/other-base" "$tmp/o" a b c /bin/true /bin/true 2>&1); rc=$?
 check "run-v8.sh: a different RUN_BASE is refused before anything runs" "2 yes no" \
   "$rc $(grep -q 'RUN_BASE must be /home/drakestapleton/workspace/np1-v8-runs' <<<"$msg" && echo yes || echo no) $([ -e "$tmp/other-base" ] && echo yes || echo no)"
+
+# ---- harness approval-desk key (sc#342): rows-v9.jq and make-receipt.sh allow exactly ./approval-desk.key --------
+# run-campaign.sh creates the key in the compose dir since sc#342. rows-v8.jq is pinned by completed runs' receipts and
+# stays byte-identical (it still calls the key stray); rows-v9.jq is rows-v8.jq with only the v6_stray line changed.
+R9=$(cat "$HERE/rows-v9.jq")
+fails9() { jq -r "$R9"'
+v6_rows | [.[] | select(.result != "PASS") | "\(.row)\(if .result == "NOT_RUN" then ":NOT_RUN" else "" end)"] | join(",")'; }
+mut9() { fx "$1" | jq -c "$2" | fails9; }
+for k in T4 R1 T5; do
+  check "rows-v9 $k: good evidence" "" "$(fx $k | fails9)"
+  check "rows-v9 $k: harness approval-desk key in the compose dir is allowed" "" "$(mut9 $k '.containment.compose_dir_files += ["./approval-desk.key"]')"
+  for f in ./other.key ./approval-desk.key.bak ./approval-desk.keys ./sub/approval-desk.key ./branch-1.stage; do
+    check "rows-v9 $k: $f beside the key is stray" "$k-CM" "$(mut9 $k ".containment.compose_dir_files += [\"./approval-desk.key\", \"$f\"]")"
+  done
+done
+check "rows-v8 (pinned by completed runs, unchanged): the key is still stray there" "T4-CM" "$(mut T4 '.containment.compose_dir_files += ["./approval-desk.key"]')"
+check "rows-v9.jq vs rows-v8.jq: outside comments, only the v6_stray line differs" \
+  '< def v6_stray: .containment.compose_dir_files | map(select(test("^\\./(machine\\.id|cortex\\.cx|jspace)") | not));|> def v6_stray: .containment.compose_dir_files | map(select((test("^\\./(machine\\.id|cortex\\.cx|jspace)") or . == "./approval-desk.key") | not));' \
+  "$(diff <(grep -v '^#' "$HERE/rows-v8.jq") <(grep -v '^#' "$HERE/rows-v9.jq") | grep -E '^[<>]' | paste -sd'|')"
+mrf=$(grep -F ') as $stray' "$HERE/make-receipt.sh" | sed -E 's/^ *\| *//; s/ as \$stray$//')
+strayof() { jq -nc --argjson c "$1" "\$c as \$cfiles | $mrf"; }
+check "make-receipt.sh: one compose-dir allowlist line" "1" "$(grep -cF ') as $stray' "$HERE/make-receipt.sh")"
+check "make-receipt.sh: the harness files and the approval-desk key are not stray" "[]" \
+  "$(strayof '["./approval-desk.key","./cortex.cx","./jspace","./jspace/jspace.data","./jspace/jspace.meta","./machine.id"]')"
+for f in ./other.key ./approval-desk.key.bak ./approval-desk.keys ./sub/approval-desk.key ./branch-1.stage; do
+  check "make-receipt.sh: $f beside the key is stray" "[\"$f\"]" "$(strayof "[\"./approval-desk.key\",\"./machine.id\",\"$f\"]")"
+done
+check "make-receipt.sh: V6_ROWS accepts rows-v9.jq; it reads tasks-v8.json and gets the A2 value and V8_MERGE as rows-v8.jq" "1 1 1" \
+  "$(for p in 'rows-v6.jq|rows-v7.jq|rows-v8.jq|rows-v9.jq)' 'case $V6_ROWS in rows-v8.jq|rows-v9.jq) V6TF=$HERE/tasks-v8.json ;; esac' 'if ($rows6 == "rows-v8.jq" or $rows6 == "rows-v9.jq") then {a2_v5_value:'; do grep -cF -- "$p" "$HERE/make-receipt.sh"; done | paste -sd' ')"
 echo "test-rows-v8: $pass passed, $fail failed"
 [ "$fail" -eq 0 ]
diff --git a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md
index 29ef94db..8e06cca9 100644
--- a/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md
+++ b/docs/campaigns/open-model-qwen3/ACCEPTANCE-v5.md
@@ -168,7 +168,12 @@ holds a block is not scored, as in v4).
 
 ### 3.3 Inherited rows: none weakened; one declared exception for N1, other N1 rows confirmed at gate G3
 
-`rows-v8.jq`, `rows-v5.jq` and `rows-oq3-v3.jq` run unchanged; the v4 rows of ACCEPTANCE-v4 Section 3 are computed by the v4 row
+`rows-v9.jq`, `rows-v5.jq` and `rows-oq3-v3.jq` run with one declared change: the compose-dir allowlist of the containment rows
+(`v1 Containment: speculation` in `make-receipt.sh`, `<id>-CM`, `N1-Z`, `N2-Z` through `v6_stray`, and `A1`) also accepts the exact
+name `./approval-desk.key`, the approval-desk key the harness itself creates since sc#342 (`run-campaign.sh`), not the model. Any
+other extra file, including a second `.key` name, is still stray. The GPU dry run (gate G6) found that without this the key made
+20 declared rows FAIL (every containment row of every launch). `rows-v9.jq` is `rows-v8.jq` with only that line changed; `rows-v8.jq` stays byte-identical
+because completed runs pin its sha256. Otherwise the rows run unchanged; the v4 rows of ACCEPTANCE-v4 Section 3 are computed by the v4 row
 module unchanged (`rows-oq3-v4.jq`): `<id>-SB` saved bytes equal approved bytes, `<id>-F` complete document saved, `<id>-CUT`
 accepted reply not cut, `<id>-RQ<k>`, `D4-SRC` source unchanged (the v4 `W4-SRC` rule), `<id>-EO` edit outcome, `<id>-D` one
 deadline, `<id>-NC` nothing committed on refusal, `<id>-BE` no CPU, stub or fallback backend per daemon start, `N2-R` token-limit
diff --git a/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh
index a284b29a..935c2859 100755
--- a/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh
+++ b/docs/campaigns/open-model-qwen3/run-qwen3-v5.sh
@@ -102,7 +102,8 @@ printf '%s\n' "$MEM" >"$BASE/meminfo-part$PART.json"
 up_ms() { echo $(( $(tr -d . </proc/uptime | cut -d' ' -f1) * 10 )); }
 # The receipt builder looks for tasks-v8.json, rows-v5/v8.jq and the seed folders next to itself. A staging folder of
 # links to the unchanged next-phase-1 files, with tasks-v8.json replaced by this campaign's tasks file and seed-v5
-# linked in, lets the unchanged make-receipt.sh and rows-v8.jq be used (as in v4).
+# linked in, lets make-receipt.sh and rows-v9.jq be used (rows-v9.jq is rows-v8.jq with the harness approval-desk key allowed in the
+# compose dir, sc#342; rows-v8.jq itself stays byte-identical because completed runs pin it).
 STAGE=$BASE/stage
 # The unchanged make-receipt.sh reads seed/<destination> for any task that has a seed, which only fits edits. A document
 # whose seed holds a different source file (D4) is staged with seed null for the receipt builder only; the driver still
@@ -154,7 +155,7 @@ for id in $LAUNCHES; do
     fi
     v5env=(); [ "$(jq -r '.destination // empty' <<<"$t")" != "" ] && [ "${id#N}" = "$id" ] && \
       v5env=(TASK_ID="$id" TASK_SPEC="$TASKS" TASK_ACCEPTANCE="$HERE/ACCEPTANCE-v5.md")
-    env "${v5env[@]}" V6_ROWS=rows-v8.jq V8_MERGE="$v8merge" V6_TASK="$id" V6_MAX_TOKENS="$max" V6_REFERENCE="$ref" \
+    env "${v5env[@]}" V6_ROWS=rows-v9.jq V8_MERGE="$v8merge" V6_TASK="$id" V6_MAX_TOKENS="$max" V6_REFERENCE="$ref" \
       SPEC="open-model-qwen3/ACCEPTANCE-v5.md spec_version 5${OQ3_DRY_TASKS:+ DRY RUN}" bash "$STAGE/make-receipt.sh" \
       "$BASE/$id" "$OUT" "$SC" "$OMC" "$OMG" 0 "OPEN-MODEL-QWEN3 v5${OQ3_DRY_TASKS:+ DRY RUN} launch $id" >"$BASE/$id.receipt.out" 2>&1
     rec=$OUT/$(head -1 "$BASE/$id.receipt.out" | sed -n 's/.*receipt \([0-9a-f]*\.json\).*/\1/p')
diff --git a/docs/campaigns/open-model-qwen3/test-v5.sh b/docs/campaigns/open-model-qwen3/test-v5.sh
index 295947c3..00aef5df 100755
--- a/docs/campaigns/open-model-qwen3/test-v5.sh
+++ b/docs/campaigns/open-model-qwen3/test-v5.sh
@@ -423,7 +423,7 @@ for id in $(jq -r '.tasks[].id' "$TASKS"); do
   R=$T/stg-$id; mkdir -p "$R/ws" "$R/steps" "$R/prov"; echo '{"steps":[],"daemon":[],"containment":{}}' >"$R/run.json"
   seed=$(jq -r --arg i "$id" '.tasks[]|select(.id==$i)|.seed//empty' "$TASKS"); [ -n "$seed" ] && cp -R "$HERE/$seed/." "$R/ws/"
   e=(); [ "${id#N}" = "$id" ] && e=(TASK_ID="$id" TASK_SPEC="$TASKS" TASK_ACCEPTANCE=/dev/null)
-  env "${e[@]}" V6_ROWS=rows-v8.jq V6_TASK="$id" V6_MAX_TOKENS=1 V8_MERGE=null bash "$STAGE/make-receipt.sh" "$R" "$T/rec" sc omc omg 0 n >/dev/null 2>&1
+  env "${e[@]}" V6_ROWS=rows-v9.jq V6_TASK="$id" V6_MAX_TOKENS=1 V8_MERGE=null bash "$STAGE/make-receipt.sh" "$R" "$T/rec" sc omc omg 0 n >/dev/null 2>&1
   rec=$(ls -t "$T/rec"/*.json | head -1)
   bash "$NP1/v8-results.sh" "$id" "$rec" | jq -r .row | sort >"$T/$id.got"
   case $(jq -r --arg i "$id" ".tasks[]|select(.id==\$i)|.kind" "$TASKS") in