interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

GitHub aien-dev/omega-mv#287 (code only)

closed derived 5654ad1fe653912d #287

Imported from GitHub aien-dev/omega-mv#287 (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 b2d8455dd48c60b8e15d4b913a6eb16993e3b74e · Head 7ca2c4025ee4dd17a17f0b6e39fbd12391334555

Apply it

git checkout -b patch-5654ad1fe653912d b2d8455dd48c60b8e15d4b913a6eb16993e3b74e
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/5654ad1fe653912d.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/omega-mv
287
7ca2c4025ee4dd17a17f0b6e39fbd12391334555
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":287,"url":"https://github.com/aien-dev/omega-mv/pull/287","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:08Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index e8bf0e05b..6500ccaaf 100644
--- a/.crumb
+++ b/.crumb
@@ -93,27 +93,27 @@
           "purpose": "Directory src. Purpose not yet described by a human."
         },
         {
-          "digest": "ec1ce01e9b904b40a7d8231a60cc7308a64df8d8c39d6ebdf0db837dc904a893",
-          "last_commit": "ad8ca9a",
+          "digest": "2154f18449ff36ac609f471d4316152cbacdf58e903410e55e59170d9a401aac",
+          "last_commit": "66dc05e",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
         {
-          "digest": "a73d0d57e85ad3212a677ae5bfca5b7ff187e871e01f198039a7b4cb275a3a83",
-          "last_commit": "ad8ca9a",
+          "digest": "084aca8aaf5c386b4459e9aeeff2ddbe68169bb94c7c86e2bf1037dd1763e23c",
+          "last_commit": "66dc05e",
           "name": "tools",
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:617ba13115ed3fd335ff5395b9f3660962f6af0d70cce1d502b83961ea90bde0",
-      "compiled_at": "2026-10-05T13:02:11Z",
+      "children_root": "sha256:c13f25d19b0111a82dbbe058f2b8dd433f450c04bbb99852cf10d90feac2a6e4",
+      "compiled_at": "2026-10-05T13:14:18Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:ae18de5579b32a5d45cbb2089bfab216f306e13673a15e689a18b7de310708ba",
+      "digest": "sha256:77be33450c920ec43e855191f1894242a334a83d85b4e8ae335a85619d4e6323",
       "evidence_files": 2184,
       "evidence_root": "sha256:6cbb4ec5b368be70f37cda92e0577f6a996f9c52042838375735c10268963c12",
       "files": 3964,
-      "generated_at_commit": "e55855ddfc098407fddb702d20966aacb9a87463",
-      "source_tree": "sha256:f54421c5535c841b6b2cdd1bfce355990a2870ea4805a3e6ab1127864a82c17c"
+      "generated_at_commit": "0c406321c84491f9069d9d438e3f5a9896044869",
+      "source_tree": "sha256:48e66e55203c1a453967d25cf13736ad86eba15f2299099e24a7a46f97e04768"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/.crumb b/tests/.crumb
index 5e22018f4..beb9c1e2e 100644
--- a/tests/.crumb
+++ b/tests/.crumb
@@ -284,14 +284,14 @@
         }
       ],
       "children_root": "sha256:215c9654ba0e4f579f3f1c7f09b3ecdacc7c922de1af68565150b55fedf9729a",
-      "compiled_at": "2026-10-05T13:02:11Z",
+      "compiled_at": "2026-10-05T13:14:18Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:ec1ce01e9b904b40a7d8231a60cc7308a64df8d8c39d6ebdf0db837dc904a893",
+      "digest": "sha256:2154f18449ff36ac609f471d4316152cbacdf58e903410e55e59170d9a401aac",
       "evidence_files": 11,
       "evidence_root": "sha256:d5c1bceb4d57ef0eb42797c58801b5926509711614c3e38bb7105b6efa3942f2",
       "files": 797,
-      "generated_at_commit": "e55855ddfc098407fddb702d20966aacb9a87463",
-      "source_tree": "sha256:599f7f60864671452aee805e4ffc5e09c957e5445524d600a84e060401c31ee2"
+      "generated_at_commit": "0c406321c84491f9069d9d438e3f5a9896044869",
+      "source_tree": "sha256:182e14a0ed6200893a29f2f5d42fa464b2a3c002ad4c584a7ceed83bd972e084"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tests/r16_qualify/run.sh b/tests/r16_qualify/run.sh
index 3ab5c4114..6902ac6df 100755
--- a/tests/r16_qualify/run.sh
+++ b/tests/r16_qualify/run.sh
@@ -17,6 +17,8 @@ check() { if eval "$2"; then echo "ok   $1"; else echo "FAIL $1"; FAILS=$((FAILS
 W=$SCR/w
 mkdir -p "$W/tools"
 cp "$HERE/tools/r16_qualify.sh" "$W/tools/"
+G6FILES="src/omega_accelerator_world.c src/runtime/rx_generation.c src/omega_world_gates.c tools/omegatool.c src/runtime/rx_native_bind.c src/omega_evidence.c src/omega_verify.c src/runtime/rx_resident_gpu.c src/runtime/rx_seq_reference.c src/runtime/rx_world.c src/runtime/rx_living.c"
+for p in $G6FILES; do mkdir -p "$W/$(dirname "$p")"; cp "$HERE/$p" "$W/$p"; done
 printf 'build/\n' > "$W/.gitignore"
 g() { git -C "$W" -c user.name=r16 -c user.email=r16@invalid -c commit.gpgsign=false "$@"; }
 g init -q && g add -A && g commit -qm fixture || exit 2
@@ -47,8 +49,8 @@ check "output under evidence/: exit 2" '[ $rc = 2 ]'
 out=$(Q R16_RUN_ID=none 2>&1); rc=$?
 R=$W/build/r16-raw/none/DRY-RUN-receipt.json
 check "no fixtures: exit 3 (nothing ran)" '[ $rc = 3 ]'
-check "no fixtures: G6 prints NOT_RUN" 'echo "$out" | grep -q "R16-G6: NOT_RUN"'
-check "no fixtures: summary all NOT_RUN" 'echo "$out" | grep -q "^Gates: G1=NOT_RUN G2=NOT_RUN G3=NOT_RUN G4=NOT_RUN G5=NOT_RUN G6=NOT_RUN G7=NOT_RUN G8=NOT_RUN$"'
+check "no fixtures: G6 MISSING_IMPLEMENTATION (one item has no implementation; no test ran)" 'echo "$out" | grep -q "G6=MISSING_IMPLEMENTATION (items missing: 1)"'
+check "no fixtures: summary all NOT_RUN" 'echo "$out" | grep -q "^Gates: G1=NOT_RUN G2=NOT_RUN G3=NOT_RUN G4=NOT_RUN G5=NOT_RUN G6=MISSING_IMPLEMENTATION G7=NOT_RUN G8=NOT_RUN$"'
 check "no fixtures: receipt gate NOT_RUN" 'grep -q "\"gate\": \"NOT_RUN\"" "$R"'
 check "no fixtures: receipt has no PASS value" '! grep -q "\"PASS\"" "$R"'
 check "no fixtures: silicon_observed false (computed)" 'grep -q "\"silicon_observed\": false" "$R"'
@@ -77,7 +79,7 @@ check "bad exit status with pass line: G5 FAIL, exit 1" '[ $rc = 1 ] && echo "$o
 echo 0 > "$F/r16_surface.log.rc"
 out=$(Q R16_RUN_ID=fx 2>&1); rc=$?
 check "good G4/G5 fixtures: those gates PASS" 'echo "$out" | grep -q "G4=PASS" && echo "$out" | grep -q "G5=PASS"'
-check "all-good G4/G5 still exit 3 (G6 has no check)" '[ $rc = 3 ] && echo "$out" | grep -q "G6=NOT_RUN"'
+check "all-good G4/G5 still exit 3 (G6 tests did not run)" '[ $rc = 3 ] && echo "$out" | grep -q "G6=MISSING_IMPLEMENTATION"'
 
 # 6b. R11 that skipped its living run (load > 2) exits 0 with "failures 0": NOT_RUN, never PASS
 printf 'checks 400 failures 0\n' > "$F/r11_aien.log"; echo 0 > "$F/r11_aien.log.rc"
@@ -200,6 +202,140 @@ r15_bad "candidate_bound false" "$(r15_receipt candidate_bound=false)"
 r15_bad "tree_dirty true" "$(r15_receipt tree_dirty=true)"
 r15_bad "silicon_observed false" "$(r15_receipt silicon_observed=false)"
 
+# 8b. G6 protected things kept. Presence (symbol defined) and operation (test ran and
+# passed in this run) are separate. All good first, then one control at a time.
+G=$W/build/r16-raw/g6
+mkdir -p "$G"
+# A stand-in for the pinned capability-root tree (the pinned-commit lookup of the lock file): a tiny repo holding the file
+# the script looks for, and a lock file in the fixture repo naming its commit.
+LK=$SCR/lockrepo
+mkdir -p "$LK/native/capability"
+printf 'int aienos_cap_validate(const void *view)\n{ return 0; }\nint aienos_cap_mint(void *admin)\n{ return 0; }\n' > "$LK/native/capability/aienos_capability.c"
+git -C "$LK" init -q && git -C "$LK" add -A && git -C "$LK" -c user.name=r16 -c user.email=r16@invalid -c commit.gpgsign=false commit -qm lock
+git -C "$LK" rev-parse HEAD > "$W/aienos.lock"
+g add -A; g commit -qm "lock file"
+export AIENOS_LOCK_REPO=$LK
+# g6log <file> <pattern> [rc]: fixture log + exit status for one exercising test
+g6log() { printf '%s\n' "$2" > "$G/$1"; echo "${3:-0}" > "$G/$1.rc"; }
+g6_good_logs() {
+    g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 18 / 18 M19 GATES PASSED"
+    g6log r9_barrier.log "generation barrier kept a single coherent generation through every injected stop"
+    g6log r10_omega.log "checks 40 failures 0"
+    g6log r7_native.log "native authority matched the linux oracle"
+    g6log r12_host.log "checks 40 failures 0"
+    g6log r12_silicon.log "checks 40 failures 0 silicon 1"
+    g6log r13_host.log "R13 gate: R13_LIVING_SYSTEM=HOST_PASS_NON_SILICON"
+    g6log r14_host.log "R14 gate: R14_LIVING_RECOVERY=HOST_PASS_NON_SILICON"
+    g6log r14_silicon.log "R14 gate: R14_LIVING_RECOVERY=PASS"
+    g6log r15_parity_host.log "SEQ_SEMANTIC_PARITY=PASS"
+    g6log r15_parity_silicon.log "SEQ_SEMANTIC_PARITY=PASS"
+    g6log r15_receipt.log "r15 receipt test: 0 failure(s)"
+}
+G6Q() { Q R16_RUN_ID=g6 2>&1; }
+R=$G/DRY-RUN-receipt.json
+g6_item() { sed -n 's/^.*"item": "'"$1"'", "status": "\([A-Z_]*\)".*$/\1/p' "$R"; }
+g6_good_logs
+out=$(G6Q); rc=$?
+check "G6 all good: G6 is MISSING_IMPLEMENTATION (operator emergency controls named nowhere), never PASS" 'echo "$out" | grep -q "G6=MISSING_IMPLEMENTATION" && ! echo "$out" | grep -q "G6=PASS"'
+check "G6 all good: eleven items PASS, operator emergency controls MISSING_IMPLEMENTATION" '[ "$(grep -c "\"item\": \"[a-z0-9_]*\", \"status\": \"PASS\"" "$R")" = 11 ] && [ "$(g6_item operator_emergency_controls_passing)" = MISSING_IMPLEMENTATION ]'
+check "G6 all good: protected_surfaces_kept six presence flags true" '[ "$(grep -c "_present\": true" "$R")" = 6 ]'
+check "G6 all good: no FAIL anywhere and G6 alone does not make the run pass (exit 3)" '[ $rc = 3 ] && ! echo "$out" | grep -q "G6=FAIL"'
+check "G6 all good: receipt names file and symbol per item" 'grep -q "\"file\": \"src/runtime/rx_generation.c\", \"symbol\": \"rx_gen_recover\", \"defined\": true" "$R"'
+check "G6 operated checks cite the test and its status" 'grep -q "{\"name\": \"R9\", \"target\": \"test-r9\", \"status\": \"PASS\"}" "$R"'
+
+# presence without operation: symbols all defined, tests never ran -> NOT_RUN, never PASS
+rm -f "$G"/*.log "$G"/*.rc
+out=$(G6Q)
+check "G6 presence alone (no test ran): item NOT_RUN, G6 not PASS" '[ "$(g6_item recovery_path_present)" = NOT_RUN ] && ! echo "$out" | grep -q "G6=PASS"'
+g6_good_logs
+
+# symbol removed / commented out / reduced to a prototype -> MISSING_IMPLEMENTATION
+RG=$W/src/runtime/rx_generation.c
+g6_mut() {   # g6_mut <label> <sed expression>: mutate the fixture source, commit, run, report, revert
+    sed -i "$2" "$RG"; g add -A; g commit -qm "mutation: $1"
+    out=$(G6Q); rc=$?
+}
+g6_unmut() { g reset -q --hard HEAD~1; }
+g6_mut "symbol removed" 's/rx_gen_recover/rx_gen_rec0ver/'
+check "G6 symbol removed: recovery_path MISSING_IMPLEMENTATION" '[ "$(g6_item recovery_path_present)" = MISSING_IMPLEMENTATION ]'
+check "G6 symbol removed: r9 item (same routine) also MISSING_IMPLEMENTATION, r14 (fn_restore) unaffected" '[ "$(g6_item r9_crash_recovery_passing)" = MISSING_IMPLEMENTATION ] && [ "$(g6_item r14_recovery_paths_passing)" = PASS ]'
+check "G6 symbol removed: G6 is not PASS even though every test passed" 'echo "$out" | grep -q "G6=MISSING_IMPLEMENTATION" && [ $rc = 3 ]'
+check "G6 symbol removed: receipt flag is not true" 'grep -q "\"recovery_path_present\": \"MISSING_IMPLEMENTATION\"" "$R"'
+g6_unmut
+g6_mut "definition commented out (disabled)" 's|^int rx_gen_recover(|// int rx_gen_recover(|'
+check "G6 definition commented out: MISSING_IMPLEMENTATION" '[ "$(g6_item recovery_path_present)" = MISSING_IMPLEMENTATION ]'
+g6_unmut
+g6_mut "definition reduced to a prototype" 's|^int rx_gen_recover(const char \*dir, RxRecoveryRecord \*out) {|int rx_gen_recover(const char *dir, RxRecoveryRecord *out);|'
+check "G6 prototype only: MISSING_IMPLEMENTATION" '[ "$(g6_item recovery_path_present)" = MISSING_IMPLEMENTATION ]'
+g6_unmut
+out=$(G6Q)
+check "G6 mutations reverted: recovery_path back to PASS" '[ "$(g6_item recovery_path_present)" = PASS ]'
+
+# failing tests -> FAIL
+g6log r9_barrier.log "generation barrier kept a single coherent generation through every injected stop" 1
+out=$(G6Q); rc=$?
+check "G6 test exits 1 with its pass line present: item FAIL, G6 FAIL, exit 1" '[ $rc = 1 ] && echo "$out" | grep -q "G6=FAIL" && [ "$(g6_item recovery_path_present)" = FAIL ] && [ "$(g6_item generation_mechanism_present)" = FAIL ]'
+g6log r9_barrier.log "2 generation-barrier failures"
+out=$(G6Q); rc=$?
+check "G6 fake log reporting failures (no pass line): FAIL, exit 1" '[ $rc = 1 ] && echo "$out" | grep -q "G6=FAIL"'
+g6log r9_barrier.log "generation barrier kept a single coherent generation through every injected stop"
+g6log r12_silicon.log "checks 40 failures 3 silicon 1" 1
+out=$(G6Q)
+check "G6 operator emergency controls stay MISSING_IMPLEMENTATION even when its mapped test fails or passes" '[ "$(g6_item operator_emergency_controls_passing)" = MISSING_IMPLEMENTATION ] && echo "$out" | grep -q "G6=FAIL"'
+g6log r12_silicon.log "checks 40 failures 0 silicon 1"
+g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 17 / 18 M19 GATES PASSED
+  [FAIL] OMEGA_ACCEL_RESIDENT_FAULT_RECOVERY_PASS : x" 0
+out=$(G6Q)
+check "G6 M19 log with a [FAIL] gate line (exit 0): known_good_fallback FAIL" '[ "$(g6_item known_good_fallback_present)" = FAIL ]'
+g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 18 / 18 M19 GATES PASSED"
+
+# skipped tests are never PASS
+g6log r9_barrier.log "[-] living run not exercised: SKIPPED-LOADED
+generation barrier kept a single coherent generation through every injected stop"
+out=$(G6Q); rc=$?
+check "G6 skipped test with pass line and exit 0: item NOT_RUN, never PASS" '[ "$(g6_item recovery_path_present)" = NOT_RUN ] && ! echo "$out" | grep -q "G6=PASS" && [ $rc = 3 ]'
+g6log r9_barrier.log "generation barrier kept a single coherent generation through every injected stop"
+
+# a test that never ran (log absent) -> NOT_RUN for exactly the items that need it
+rm -f "$G/r10_omega.log" "$G/r10_omega.log.rc"
+out=$(G6Q)
+check "G6 one test absent: only its item NOT_RUN" '[ "$(g6_item r10_verifier_passing)" = NOT_RUN ] && [ "$(g6_item r9_crash_recovery_passing)" = PASS ]'
+# M19 must show N / N with N nonzero: 17 / 18 (exit 0, no [FAIL] line) and 0 / 0 are not PASS
+g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 17 / 18 M19 GATES PASSED"
+out=$(G6Q)
+check "G6 M19 log 17 / 18 with exit 0: known_good_fallback FAIL" '[ "$(g6_item known_good_fallback_present)" = FAIL ]'
+g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 0 / 0 M19 GATES PASSED"
+out=$(G6Q)
+check "G6 M19 log 0 / 0: known_good_fallback FAIL" '[ "$(g6_item known_good_fallback_present)" = FAIL ]'
+g6log m19_world.log "M19 GATES PASSED"
+out=$(G6Q)
+check "G6 M19 log with only the substring: known_good_fallback FAIL" '[ "$(g6_item known_good_fallback_present)" = FAIL ]'
+g6log m19_world.log "STAGE 1 / PERSISTENT WORLD QUALIFICATION: 18 / 18 M19 GATES PASSED"
+
+# second and third items' presence checks: another omega file, and the pinned capability-root source
+AW=$W/src/omega_accelerator_world.c
+sed -i 's/omega_world_drain(/omega_world_dra1n(/' "$AW"; g add -A; g commit -qm "mutation: omega_world_drain removed"
+out=$(G6Q)
+check "G6 omega_world_drain removed (other file): known_good_fallback MISSING_IMPLEMENTATION" '[ "$(g6_item known_good_fallback_present)" = MISSING_IMPLEMENTATION ] && ! echo "$out" | grep -q "G6=PASS"'
+g reset -q --hard HEAD~1
+sed -i 's/aienos_cap_mint(/aienos_cap_m1nt(/' "$LK/native/capability/aienos_capability.c"
+git -C "$LK" -c user.name=r16 -c user.email=r16@invalid -c commit.gpgsign=false commit -qam mut
+git -C "$LK" rev-parse HEAD > "$W/aienos.lock"; g add -A; g commit -qm "lock mutated"
+out=$(G6Q)
+check "G6 capability-root symbol removed from the pinned tree: trusted_capability_root MISSING_IMPLEMENTATION" '[ "$(g6_item trusted_capability_root_present)" = MISSING_IMPLEMENTATION ]'
+g reset -q --hard HEAD~1
+out=$(Q R16_RUN_ID=g6 AIENOS_LOCK_REPO=/nonexistent 2>&1)
+check "G6 pinned tree unreadable: trusted_capability_root NOT_RUN (not MISSING, not PASS)" '[ "$(g6_item trusted_capability_root_present)" = NOT_RUN ]'
+out=$(G6Q)
+check "G6 pinned tree readable again: trusted_capability_root PASS" '[ "$(g6_item trusted_capability_root_present)" = PASS ]'
+
+# receipt is valid JSON; each item says plainly what its mapping is (no shared boilerplate)
+check "G6 receipt is valid JSON (jq)" 'jq -e . "$R" >/dev/null'
+check "G6 receipt: twelve items, twelve different basis texts" '[ "$(jq "[.g6_items[].basis] | unique | length" "$R")" = 12 ] && [ "$(jq ".g6_items | length" "$R")" = 12 ]'
+check "G6 receipt: proxy mappings say PROXY, emergency item says MISSING_IMPLEMENTATION" '[ "$(jq "[.g6_items[] | select(.basis | startswith(\"PROXY\"))] | length" "$R")" -ge 5 ] && jq -e ".g6_items[] | select(.item==\"operator_emergency_controls_passing\") | .basis | startswith(\"MISSING_IMPLEMENTATION\")" "$R" >/dev/null'
+check "G6 receipt: seat kill hook is not an item symbol" '! jq -e ".g6_items[].implementation[] | select(.symbol==\"rx_gpu_seat_kill\")" "$R" >/dev/null'
+rm -rf "$G"
+
 # 9. the script holds no literal for observed fields and does not touch tracked evidence
 check "no literal tree_dirty/candidate_bound/silicon_observed values" \
     '! grep -E "\"(tree_dirty|candidate_bound|silicon_observed)\": (true|false)" "$HERE/tools/r16_qualify.sh"'
diff --git a/tools/.crumb b/tools/.crumb
index a8f818467..92ca7df25 100644
--- a/tools/.crumb
+++ b/tools/.crumb
@@ -56,14 +56,14 @@
         }
       ],
       "children_root": "sha256:6ed09e33b610372de30ea2d6372b94240127e9acb4d178879cbd5448faab6909",
-      "compiled_at": "2026-10-05T12:57:09Z",
+      "compiled_at": "2026-10-05T13:05:21Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:a73d0d57e85ad3212a677ae5bfca5b7ff187e871e01f198039a7b4cb275a3a83",
+      "digest": "sha256:084aca8aaf5c386b4459e9aeeff2ddbe68169bb94c7c86e2bf1037dd1763e23c",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 127,
-      "generated_at_commit": "30c65a33c8f7523fa1e0dbe752cb47667d6bf9b2",
-      "source_tree": "sha256:3867d4b3de9dbfe7a8bf2906b03e78e2633a11054860a385d1c0178907f5eece"
+      "generated_at_commit": "9974ecc3b5c7afac1e4b92d3e686a75230736829",
+      "source_tree": "sha256:b8692b3c809b29c989fad0f1e8417e2c730b72224b40d9b7cd9eccad69814502"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/tools/r16_qualify.sh b/tools/r16_qualify.sh
index ece14ca4c..93d2e503a 100755
--- a/tools/r16_qualify.sh
+++ b/tools/r16_qualify.sh
@@ -94,12 +94,12 @@ verdict() {
     if [ "$rc" != 0 ]; then echo FAIL; return; fi
     if [ -s "$log" ] && grep -Fq -- "$pat" "$log"; then echo PASS; else echo FAIL; fi
 }
-# combine <status...>: FAIL beats NOT_RUN beats PASS.
+# combine <status...>: FAIL beats NOT_RUN (or MISSING_IMPLEMENTATION) beats PASS.
 combine() {
     local s r=PASS
     for s in "$@"; do
         if [ "$s" = FAIL ]; then echo FAIL; return; fi
-        if [ "$s" = NOT_RUN ]; then r=NOT_RUN; fi
+        if [ "$s" != PASS ]; then r=NOT_RUN; fi   # NOT_RUN, MISSING_IMPLEMENTATION, anything else
     done
     echo "$r"
 }
@@ -241,14 +241,14 @@ R15_parity_host|test-r15-parity-host|r15_parity_host.log|SEQ_SEMANTIC_PARITY=PAS
 R15_g7_host|test-r15-g7-host|r15_g7_host.log|R15 G7 worker split: 57 checks, 0 failures|0
 R15_parity_silicon|test-r15-parity-silicon|r15_parity_silicon.log|SEQ_SEMANTIC_PARITY=PASS|1
 R15_receipt|test-r15-receipt|r15_receipt.log|r15 receipt test: 0 failure(s)|0'
-declare -A LV TG
+declare -A LV TG LOGF
 SILICON_RAN=0; SILICON_PASS=0
 if [ "$G3S" != NOT_RUN ]; then
     SILICON_RAN=1
     if [ "$G3S" = PASS ]; then SILICON_PASS=1; fi
 fi
 while IFS='|' read -r name target log pat sil; do
-    TG[$name]=$target
+    TG[$name]=$target; LOGF[$name]="$RAW_DIR/$log"
     if [ "$sil" = 1 ]; then
         silicon_run "$name" "$RAW_DIR/$log" "$pat" "$target"
         LV[$name]=$V
@@ -289,11 +289,108 @@ G7=$(combine "${LV[R1_R6]}" "${LV[R7]}" "${LV[R8]}" "${LV[R9]}" "${LV[R10]}" "${
 echo "    G7=$G7 (R15 acceptance receipt: $R15ACC)"
 
 # ---- 7. G6: protected things kept -------------------------------------------
-# The spec asks for the six section-49 items to be shown present with file/symbol and
-# the exercising test. No such check is implemented in this script, so those six items
-# and G6 are NOT_RUN. Items covered by ladder runs are derived from those runs.
-G6=NOT_RUN
-echo "[*] R16-G6: NOT_RUN (presence checks for the six section-49 items are not implemented)"
+# The twelve items of spec R16-G6: the six section-49 items plus R9 crash recovery, R10
+# verifier, R12 seat-loss handling, R14 recovery paths, operator emergency controls and
+# the benchmark reference paths (SEQ). Presence and operation are separate facts:
+#   * present  = every named implementation symbol is DEFINED in its file (a function
+#     definition line; a comment, prototype or call does not count). Absent: MISSING_IMPLEMENTATION.
+#     An item with no implementation named at all is MISSING_IMPLEMENTATION (never a proxy PASS).
+#   * operated = every named exercising test ran in THIS invocation and passed (exit
+#     status AND required log line). A log that reports a skipped or unexercised run is
+#     NOT_RUN, never PASS. FAIL if any test ran and failed.
+# Item status: MISSING_IMPLEMENTATION if not present; else FAIL > NOT_RUN > PASS over its
+# tests. G6 combines the items like combine() (FAIL > NOT_RUN/MISSING > PASS); G6 names
+# MISSING_IMPLEMENTATION when an item is missing and nothing failed.
+# Each item carries its own "basis" text in the receipt: it says whether the file:symbol is
+# what the spec itself names or a mapping chosen here (PROXY), and what the tests do not cover.
+echo "[*] R16-G6: protected things kept..."
+# g6_defined <file> <symbol> <f|t|l>: f = C function definition line, t = fixed text,
+# l = function definition in the tree pinned by aienos.lock (the trusted capability
+# root source). Returns 0 defined, 1 absent, 2 cannot look (lock tree unavailable).
+G6_LOCK_COMMIT=$(head -n 1 "$HERE/aienos.lock" 2>/dev/null || true)
+g6_lock_source() {   # prints the file from the aienos.lock tree, or returns 2
+    local rel=$1 d
+    for d in "${AIENOS_R7_DIR:-}" "$HERE/build/aienos-authority/${G6_LOCK_COMMIT:0:7}"; do
+        if [ -n "$d" ] && [ -f "$d/$rel" ]; then cat "$d/$rel"; return 0; fi
+    done
+    if [ -n "$G6_LOCK_COMMIT" ] && git -C "${AIENOS_LOCK_REPO:-$HERE/../aienos-argus-cap}" show "$G6_LOCK_COMMIT:$rel" 2>/dev/null; then return 0; fi
+    return 2
+}
+g6_defined() {
+    local re="^[A-Za-z_][^;]*[ *]$2\\([^;]*\$"
+    if [ "$3" = l ]; then
+        local src; src=$(g6_lock_source "$1") || return 2
+        printf '%s\n' "$src" | grep -Eq -- "$re"; return $?
+    fi
+    [ -f "$HERE/$1" ] || return 1
+    if [ "$3" = t ]; then grep -Fq -- "$2" "$HERE/$1"; else grep -Eq -- "$re" "$HERE/$1"; fi
+}
+# M19 accelerator world (the known-good fallback, spec lines 182-183) and its maintenance
+# entry: one silicon run. PASS needs exit 0, no [FAIL] gate line and "N / N M19 GATES PASSED"
+# with N equal and nonzero.
+silicon_run m19 "$RAW_DIR/m19_world.log" "M19 GATES PASSED" test-m19
+LV[M19]=$V; TG[M19]=test-m19; LOGF[M19]="$RAW_DIR/m19_world.log"
+if [ "${LV[M19]}" = PASS ]; then
+    if grep -Fq -- "[FAIL]" "$RAW_DIR/m19_world.log" || \
+       ! grep -Eq -- "PERSISTENT WORLD QUALIFICATION: ([1-9][0-9]*) / \1 M19 GATES PASSED" "$RAW_DIR/m19_world.log"; then
+        LV[M19]=FAIL
+    fi
+fi
+# g6_test <name>: status of one exercising test; a skipped or unexercised log is NOT_RUN.
+g6_test() {
+    local s=${LV[$1]:-NOT_RUN}
+    if [ "$s" = PASS ] && [ -s "${LOGF[$1]:-/nonexistent}" ] && grep -Eq -- "SKIPPED|not exercised" "${LOGF[$1]}"; then s=NOT_RUN; fi
+    echo "$s"
+}
+# key|file:symbol:kind;...|tests (comma separated)|basis
+G6_ITEMS='known_good_fallback_present|src/omega_accelerator_world.c:omega_world_drain:f;src/omega_accelerator_world.c:omega_world_init:f|M19|Spec lines 182-183 name M19 omega_world_* as the known-good fallback (class C): the spec own mapping, not a proxy. Exercised by test-m19 (silicon, N/N gates). Does not test falling back from the reaction world to the M19 world.
+recovery_path_present|src/runtime/rx_generation.c:rx_gen_recover:f|R9,R14_host|PROXY: the spec names no single recovery symbol; rx_gen_recover is the generation-store crash recovery chosen here. R9 stops after each persistence step and R14 host recovers; boot or repair recovery outside omega is not covered.
+deterministic_maintenance_controls_present|src/omega_world_gates.c:run_m19_gates:f;tools/omegatool.c:--run-m19-gates:t|M19|Spec line 182 classes omegatool --run-*-gates as B (deterministic maintenance). PARTIAL: only the M19 runner is exercised (by test-m19); the other --run-*-gates entries are not.
+trusted_capability_root_present|src/runtime/rx_native_bind.c:rx_world_init_native:f;native/capability/aienos_capability.c:aienos_cap_validate:l;native/capability/aienos_capability.c:aienos_cap_mint:l|R7,R12_host|Spec C3: the native C library at aienos.lock is the sole authoritative root. Checks that source (lock tree) plus omega binding; NOT_RUN if the lock tree cannot be read. R7 compares native authority with the Linux oracle.
+generation_mechanism_present|src/runtime/rx_generation.c:rx_gen_propose:f|R9,R13_host|Map row OM-022 and spec line 659 name rx_generation.c as the protected generation mechanism; rx_gen_propose is the entry chosen here (PROXY for the symbol). R9 barrier and R13 host promote.
+evidence_present|src/omega_evidence.c:omega_evidence_write_digest:f|R15_receipt,R9|PROXY: the spec names no evidence symbol; omega_evidence_write_digest (content-addressed evidence writer) chosen here. R15 receipt test and R9 evidence blob exercise it indirectly.
+r9_crash_recovery_passing|src/runtime/rx_generation.c:rx_gen_recover:f|R9|PROXY: R9 exercises rx_gen_recover (same routine as recovery_path_present, not independent). PASS means the R9 barrier test passed in this run.
+r10_verifier_passing|src/omega_verify.c:omega_verify_v0_structural:f|R10|PROXY: omega_verify_v0_structural is the verifier R10 reaches through rx_omega.c; R10 pass in this run is the evidence.
+r12_seat_loss_handling_passing|src/runtime/rx_world.c:rx_resident_seat_lost:f|R12_host,R12_silicon|rx_resident_seat_lost is the seat-loss handler (spec/r12-resident-seat.md, Seat loss). R12 host and silicon exercise it; rx_gpu_seat_kill is only the test hook and is not counted here.
+r14_recovery_paths_passing|src/runtime/rx_living.c:fn_restore:f|R14_host,R14_silicon|PROXY: fn_restore (generation.restore reaction) is one R14 recovery path chosen here; R14 host and silicon exercise the recovery runs.
+operator_emergency_controls_passing||R12_silicon|MISSING_IMPLEMENTATION: the spec and brief only list operator emergency controls (docs/r16-operator-brief.md:245) and name no implementation. A search of omega, sovereign-core, aegis-runtime, aienos and physics found none with a test (aegis-runtime EmergencyStop is an unused enum variant). rx_gpu_seat_kill is a test hook, not an operator control, and is not a proxy PASS.
+benchmark_reference_paths_seq_passing|src/runtime/rx_seq_reference.c:rx_seq_pulse:f|R15_parity_host,R15_parity_silicon|Spec line 183 names rx_seq_reference as class D reference oracle. R15 parity host and silicon compare the reaction path with it.'
+declare -A G6S
+G6LIST=""; G6ALL=""; G6MISSING=0
+while IFS='|' read -r key pairs tests basis; do
+    present=true; implj=""
+    if [ -z "$pairs" ]; then present=false; fi
+    IFS=';' read -ra PA <<< "$pairs"
+    for p in "${PA[@]}"; do
+        [ -n "$p" ] || continue
+        pf=${p%%:*}; rest=${p#*:}; kind=${rest##*:}; sym=${rest%:*}
+        if g6_defined "$pf" "$sym" "$kind"; then dr=0; else dr=$?; fi
+        if [ "$dr" = 0 ]; then d=true
+        elif [ "$dr" = 2 ]; then d='"unreadable"'; if [ "$present" = true ]; then present=unknown; fi
+        else d=false; present=false; fi
+        implj="$implj{\"file\": \"$pf\", \"symbol\": \"$sym\", \"defined\": $d}, "
+    done
+    implj=${implj%, }
+    tj=""; ts=PASS; IFS=',' read -ra TA <<< "$tests"
+    for t in "${TA[@]}"; do
+        s=$(g6_test "$t"); ts=$(combine "$ts" "$s")
+        tj="$tj{\"name\": \"$t\", \"target\": \"${TG[$t]}\", \"status\": \"$s\"}, "
+    done
+    tj=${tj%, }
+    if [ "$present" = false ]; then st=MISSING_IMPLEMENTATION; G6MISSING=$((G6MISSING + 1))
+    elif [ "$present" = unknown ]; then st=$(combine "$ts" NOT_RUN)
+    else st=$ts; fi
+    G6S[$key]=$st; G6ALL="$G6ALL $st"
+    G6LIST="$G6LIST    {\"item\": \"$key\", \"status\": \"$st\", \"present\": \"$present\", \"implementation\": [$implj], \"tests\": [$tj], \"basis\": \"$basis\"},
+"
+    echo "    $key: $st"
+done <<< "$G6_ITEMS"
+G6LIST=${G6LIST%$'\n'}; G6LIST=${G6LIST%,}
+# shellcheck disable=SC2086
+G6=$(combine $G6ALL)
+if [ "$G6" = NOT_RUN ] && [ "$G6MISSING" -gt 0 ] && [[ " $G6ALL " != *" FAIL "* ]]; then G6=MISSING_IMPLEMENTATION; fi
+echo "    G6=$G6 (items missing: $G6MISSING)"
+g6j() { local s=${G6S[$1]}; if [ "$s" = PASS ]; then echo true; elif [ "$s" = FAIL ]; then echo false; else echo "\"$s\""; fi; }
 
 # ---- 8. observed binding ----------------------------------------------------------
 END_COMMIT=$(git rev-parse HEAD)
@@ -358,19 +455,22 @@ cat > "$OUT_RECEIPT_TMP" <<RECOBJ
   "remaining_central_loop_count": $REMAINING_CENTRAL,
   "remaining_unclassified_semantic_loop_count": $REMAINING_UNCLASS,
   "protected_surfaces_kept": {
-    "known_good_fallback_present": "NOT_RUN",
-    "recovery_path_present": "NOT_RUN",
-    "deterministic_maintenance_controls_present": "NOT_RUN",
-    "trusted_capability_root_present": "NOT_RUN",
-    "generation_mechanism_present": "NOT_RUN",
-    "evidence_present": "NOT_RUN",
-    "r9_crash_recovery_passing": $(b2j "${LV[R9]}"),
-    "r10_verifier_passing": $(b2j "${LV[R10]}"),
-    "r12_seat_loss_handling_passing": $(b2j "$(combine "${LV[R12_host]}" "${LV[R12_silicon]}")"),
-    "r14_recovery_paths_passing": $(b2j "$(combine "${LV[R14_host]}" "${LV[R14_silicon]}")"),
-    "operator_emergency_controls_passing": "NOT_RUN",
-    "benchmark_reference_paths_seq_passing": $(b2j "$(combine "${LV[R15_parity_host]}" "${LV[R15_parity_silicon]}")")
+    "known_good_fallback_present": $(g6j known_good_fallback_present),
+    "recovery_path_present": $(g6j recovery_path_present),
+    "deterministic_maintenance_controls_present": $(g6j deterministic_maintenance_controls_present),
+    "trusted_capability_root_present": $(g6j trusted_capability_root_present),
+    "generation_mechanism_present": $(g6j generation_mechanism_present),
+    "evidence_present": $(g6j evidence_present),
+    "r9_crash_recovery_passing": $(g6j r9_crash_recovery_passing),
+    "r10_verifier_passing": $(g6j r10_verifier_passing),
+    "r12_seat_loss_handling_passing": $(g6j r12_seat_loss_handling_passing),
+    "r14_recovery_paths_passing": $(g6j r14_recovery_paths_passing),
+    "operator_emergency_controls_passing": $(g6j operator_emergency_controls_passing),
+    "benchmark_reference_paths_seq_passing": $(g6j benchmark_reference_paths_seq_passing)
   },
+  "g6_items": [
+$G6LIST
+  ],
   "r15_acceptance_still_passing": $(b2j "$R15ACC"),
   "correctness_reruns": {
 $(lr R1 R1_R6),
@@ -413,7 +513,7 @@ $(lr R15_receipt R15_receipt)
     "Retirement of the aien-sovereign-core LLM request loop (section 3.1, Q1)",
     "Removal of any Rust code (section 3.1, Q2); the Rust loops still run if started by hand outside the AIEN production path",
     "Retirement or code removal of the aien-sovereign-core aien-cli operator tool loops (13 rows) and spark-dream idle-time cycle loop (1 row); classified as class A (retired by non-use), their code is not removed under section 3.1 Q2",
-    "Any gate or field written NOT_RUN: no check for it is implemented, or its target was not run in this run"
+    "Any gate or field written NOT_RUN or MISSING_IMPLEMENTATION: no check or implementation was found for it, or its target was not run in this run"
   ],
   "raw_digest_note": "sha256 of SHA256SUMS over the raw directory",
   "raw_directory_digest_sha256": "$RAW_DIGEST",