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#424 (code only)

closed derived 36fa49354e7207eb #424

Imported from GitHub aien-dev/aien-sovereign-core-mv#424 (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 4272f42675baea2192282a871f57132f598c57a6 · Head 32b343cf1ed4204559c19f5c1058685ada822e7b

Apply it

git checkout -b patch-36fa49354e7207eb 4272f42675baea2192282a871f57132f598c57a6
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/36fa49354e7207eb.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
424
32b343cf1ed4204559c19f5c1058685ada822e7b
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":424,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/424","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:08Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 411b78dd..b43d3eab 100644
--- a/.crumb
+++ b/.crumb
@@ -77,14 +77,14 @@
         }
       ],
       "children_root": "sha256:0c69c37ec527d2183340aa639635588d47acef703c467df22a0c42b2c22d4740",
-      "compiled_at": "2026-10-11T05:27:42Z",
+      "compiled_at": "2026-10-11T05:42:11Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:b1ec1ec007377d5ee3f51a5646b034ff97f2898a778a5e7719b62196b2c1a666",
+      "digest": "sha256:12f5eeb42ada10d90bfda9ec8a90013ccb8a6838c44be4d767ab926d0bd8e13c",
       "evidence_files": 187,
       "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280",
-      "files": 3194,
-      "generated_at_commit": "ea6feabae1b0bf78462b08b343b773b9e56d055e",
-      "source_tree": "sha256:bd7e7958ec533b17633799280788af5279b9c955d815d490ec213c77780a40cf"
+      "files": 3195,
+      "generated_at_commit": "d609d43b811eb5f1e5f5d803ed00e45f538f81a2",
+      "source_tree": "sha256:e22d013f8636907a075ab57a2b982d0e24dfa3ed7df772fe1d17baeceeb9eb78"
     }
   },
   "history": [],
diff --git a/docs/campaigns/whole-system-e2e/VERIFIER-v1.1-e3m.md b/docs/campaigns/whole-system-e2e/VERIFIER-v1.1-e3m.md
new file mode 100644
index 00000000..42eca7f1
--- /dev/null
+++ b/docs/campaigns/whole-system-e2e/VERIFIER-v1.1-e3m.md
@@ -0,0 +1,66 @@
+# aien-verify v1.1: E3m topic words follow the rule the run was judged under (sc#423, R6 #402)
+
+Committed before the verifier change that implements it. `VERIFIER-v1.md` stays as written; this file adds to it.
+Contract: `ACCEPTANCE_E2E.md` FROZEN at aien-architecture b2400fe, sha256 `9e3d5f4e...`, unchanged.
+
+## Why
+
+`ACCEPTANCE-v1.3.1-e3m.md` (sc#416) changed the harness's check D4 of the supplementary row E3m to case-insensitive
+whole-word matching of the topic words and left the verifier on exact matching, so RUN-3-GB10 recorded
+`status_disagreement: E3m receipt says PASS but the facts derive FAIL` (its report names `Windmill` only in the heading).
+The verifier should judge each folder by the rule that folder was judged under, so recorded folders keep their results.
+
+## E3m D4 rule (new)
+
+The harness writes the rule it used into the E3m receipt as `d4_rule` (since v1.3.1; inside the hash chain, so it cannot
+be changed without breaking a link). The verifier reads that fact:
+
+| E3m receipt `d4_rule` | D4 topic-word rule the verifier applies |
+|---|---|
+| absent (RUN-1, RUN-2-GB10 and every folder before v1.3.1) | exact, case-sensitive substring, as v1 |
+| exactly `case-insensitive whole word: LC_ALL=C grep -q -i -w (ACCEPTANCE-v1.3.1-e3m.md)` | case-insensitive whole word, the v1.3.1 rule: a topic word counts when it occurs in any ASCII letter case with no ASCII letter, digit or underscore directly before or after it (GNU `grep -w` under `LC_ALL=C`) |
+| any other value | E3m NOT_RUN, naming the unknown rule (never a guess) |
+
+The `ACCEPTANCE-v1.3.1-e3m.as-run.md` copy in a run folder is NOT the key: it is not inside the chain and says what was
+in force, not what the receipt was judged by. Check D4 of E3 (file names) is unchanged: exact, case-sensitive.
+
+E3m is a supplementary row. It is not one of the twelve rows that make the `verdict_id`, so this change cannot move any
+recorded verdict id; it changes only the E3m line and the status disagreements in `VERIFIER_VERDICT.txt`.
+
+## CTRL-E4: the disagreement with the harness stays, and why
+
+The harness (ACCEPTANCE-v1.2.md CTRL-E4) passes CTRL-E4 on a refusal by name with the report unchanged. The verifier
+(VERIFIER-v1.md, pre-registered) also requires E4 itself to have shown a recall; otherwise CTRL-E4 is NOT_RUN. That stays:
+
+1. The frozen contract pairs CTRL-E4 with E4 ("with the store's files removed ... the second objective fails with a
+   named refusal"). A negative control shows that the success depends on the thing removed. Without a success there is
+   nothing to contrast: in RUN-3-GB10 the second objective was refused with the store intact (a path-form refusal), so a
+   refusal with the store removed shows only that the daemon refuses, not that memory was what it needed.
+2. NOT_RUN is never a PASS, and the case cannot change a program outcome: whenever the two disagree, E4 is not PASS, so
+   the run already fails the contract. When E4 recalls, the two rules give the same answer.
+3. Changing it would move recorded verdict ids (RUN-3-GB10 CTRL-E4 NOT_RUN is inside its id), which this lane must not do.
+
+## Regression (filled in after the change, on scratch copies)
+
+| folder | recorded `verdict_id` (its `VERIFIER_RECEIPT.json`) | expected after |
+|---|---|---|
+| RUN-1-20261010T154724Z | base `a50fccb6...`; with that base as peer `437467db...` | same, E3m PASS as before |
+| RUN-2-GB10-20261011T030554Z | `af9e744c...` | same, E3m FAIL as before (no `d4_rule`, exact rule) |
+| RUN-3-GB10-20261011T045450Z | `9ca9b7af...` | same; E3m PASS under its `d4_rule`, its E3m disagreement gone, CTRL-E4 disagreement stays |
+
+## Results (2026-10-11, branch e2e/r6-verify, verifier built with `tools/aien-verify/build.sh`, rustc only, 0 warnings)
+
+| check | result |
+|---|---|
+| `tools/aien-verify/tests/run.sh` | passed 51, failed 0 (was 43; eight new checks below plus one new unit test) |
+| the same tests against the main verifier (8c09217) | 3 FAIL: RUN-3 E3m PASS under its `d4_rule`, RUN-3 E3m disagreement gone, unknown `d4_rule` NOT_RUN (red before green) |
+| `rustc --test` unit tests | 3 passed (new: `whole_word_ci_is_grep_i_w`) |
+| `scripts/whole_system_e2e.sh selftest` | PASS |
+| RUN-1-20261010T154724Z, scratch copy | `verdict_id a50fccb63363ef9224a19bd8bf4f249754abf5d88667ba0fd6ce93dfb8d63d80`; with it as peer `verdict_id 437467db4149b013738578c10ef68b7168dfb95feae8dea882de17a6118fc5fd`; E3m PASS (unchanged) |
+| RUN-2-GB10-20261011T030554Z, scratch copy | `verdict_id af9e744cc3187400e00599159999f357f53c1df867556f62c8f71a552662800c` (as recorded); E3m FAIL `["windmill"]` (unchanged) |
+| RUN-3-GB10-20261011T045450Z, scratch copy | `verdict_id 9ca9b7af6f9255fc7247acae33492768252d5f2017b40c29c159e04fbca833d5` (as recorded); E3m PASS under its `d4_rule`; the E3m disagreement is gone; the CTRL-E4 disagreement stays |
+| RUN-3 copy with `d4_rule` removed, links and manifest repaired | chain unbroken, E3m FAIL `windmill` (exact rule) |
+| RUN-3 copy with an unknown `d4_rule`, repaired | E3m NOT_RUN naming the unknown rule |
+
+`runs/` was not modified (the test's tree digest before and after is equal). The recorded `VERIFIER_VERDICT.txt` files keep
+the text the older verifier wrote; they are evidence of that run and are not regenerated.
diff --git a/tools/aien-verify/src/main.rs b/tools/aien-verify/src/main.rs
index d0e6ea77..d80f25a1 100644
--- a/tools/aien-verify/src/main.rs
+++ b/tools/aien-verify/src/main.rs
@@ -622,6 +622,22 @@ fn required_names(ctx: &Ctx, step: &str) -> Vec<String> {
     }
 }
 
+/// The E3m D4 rule of ACCEPTANCE-v1.3.1-e3m.md, as the harness writes it into the E3m receipt's `d4_rule`.
+const D4_RULE_V131: &str = "case-insensitive whole word: LC_ALL=C grep -q -i -w (ACCEPTANCE-v1.3.1-e3m.md)";
+
+/// GNU `grep -i -w` under `LC_ALL=C`: `word` occurs in `text` in any ASCII letter case with no ASCII letter, digit or
+/// underscore directly before or after that occurrence (VERIFIER-v1.1-e3m.md).
+fn contains_word_ci(text: &str, word: &str) -> bool {
+    let (t, w) = (text.as_bytes(), word.as_bytes());
+    if w.is_empty() || w.len() > t.len() {
+        return false;
+    }
+    let wc = |c: u8| c.is_ascii_alphanumeric() || c == b'_';
+    (0..=t.len() - w.len()).any(|i| {
+        t[i..i + w.len()].eq_ignore_ascii_case(w) && (i == 0 || !wc(t[i - 1])) && (i + w.len() == t.len() || !wc(t[i + w.len()]))
+    })
+}
+
 fn base(p: &str) -> &str {
     p.rsplit('/').next().unwrap_or(p)
 }
@@ -675,7 +691,14 @@ fn doc_row(ctx: &Ctx, step: &str) -> Row {
     if names.is_empty() {
         return row(step, V::NotRun, "no required names or topics can be read from the receipts");
     }
-    let missing: Vec<&String> = names.iter().filter(|n| !text.contains(n.as_str())).collect();
+    // D4: E3m topic words follow the rule its receipt was judged under (VERIFIER-v1.1-e3m.md); E3 file names stay exact.
+    let whole_word = match (step, j.s("d4_rule")) {
+        ("E3m", Some(D4_RULE_V131)) => true,
+        ("E3m", Some(other)) => return row(step, V::NotRun, format!("unknown d4_rule {:?} in the receipt", other)),
+        _ => false,
+    };
+    let missing: Vec<&String> =
+        names.iter().filter(|n| if whole_word { !contains_word_ci(&text, n) } else { !text.contains(n.as_str()) }).collect();
     if !missing.is_empty() {
         failed.push(format!("D4 required name(s) missing: {:?}", missing));
     }
@@ -1203,6 +1226,17 @@ mod tests {
         selftest().unwrap();
     }
     #[test]
+    fn whole_word_ci_is_grep_i_w() {
+        for yes in ["# Windmill\n", "WINDMILL", "the windmill.", "windmill,", "windmill's", "a windmill", "x-windmill"] {
+            assert!(contains_word_ci(yes, "windmill"), "{yes:?}");
+        }
+        for no in ["windmills", "windmill_x", "wind-mill", "awindmill", "windmill9", "", "windmil"] {
+            assert!(!contains_word_ci(no, "windmill"), "{no:?}");
+        }
+        assert!(contains_word_ci("windmills and a Windmill", "windmill"), "a later occurrence counts");
+        assert!(contains_word_ci("caf\u{e9} windmill", "windmill"));
+    }
+    #[test]
     fn topics() {
         assert_eq!(
             topics_from("Write x. Mention the harbour, the orchard and the windmill."),
diff --git a/tools/aien-verify/tests/run.sh b/tools/aien-verify/tests/run.sh
index 2e340771..a0e42d71 100755
--- a/tools/aien-verify/tests/run.sh
+++ b/tools/aien-verify/tests/run.sh
@@ -158,6 +158,40 @@ if [ -d "$R1" ]; then
   printf '%s\n' "$out" | grep -q '^base_verdict_id a50fccb63363ef9224a19bd8bf4f249754abf5d88667ba0fd6ce93dfb8d63d80$' && ok "RUN-1 base_verdict_id unchanged" || bad "RUN-1 base_verdict_id unchanged"
 fi
 
+
+# VERIFIER-v1.1-e3m (sc#423): E3m D4 follows the receipt's d4_rule; recorded GB10 folders keep their verdict ids
+C9=9e3d5f4e23d65ac17be8f2f4ca48355f0aaa486f67ff5a8a8044dcdd646d34e8
+R2=$runs/RUN-2-GB10-20261011T030554Z
+R3=$runs/RUN-3-GB10-20261011T045450Z
+g9() { "$bin" "$1" --contract-sha256 $C9 2>/dev/null; }
+if [ -d "$R2" ]; then
+  out=$(g9 "$R2")
+  printf '%s\n' "$out" | grep -q '^verdict_id af9e744cc3187400e00599159999f357f53c1df867556f62c8f71a552662800c$' && ok "RUN-2-GB10 verdict_id unchanged" || bad "RUN-2-GB10 verdict_id unchanged"
+  printf '%s\n' "$out" | grep -q '^# (supplementary) E3m FAIL: .*D4 required name(s) missing: \["windmill"\]' && ok "RUN-2-GB10 E3m FAIL (no d4_rule: exact rule)" || bad "RUN-2-GB10 E3m exact rule"
+fi
+if [ -d "$R3" ]; then
+  out=$(g9 "$R3")
+  printf '%s\n' "$out" | grep -q '^verdict_id 9ca9b7af6f9255fc7247acae33492768252d5f2017b40c29c159e04fbca833d5$' && ok "RUN-3-GB10 verdict_id unchanged" || bad "RUN-3-GB10 verdict_id unchanged"
+  printf '%s\n' "$out" | grep -q '^# (supplementary) E3m PASS' && ok "RUN-3-GB10 E3m PASS under its d4_rule" || bad "RUN-3-GB10 E3m PASS under its d4_rule"
+  printf '%s\n' "$out" | grep -q 'status_disagreement: E3m' && bad "RUN-3-GB10 E3m disagreement gone" || ok "RUN-3-GB10 E3m disagreement gone"
+  printf '%s\n' "$out" | grep -q 'status_disagreement: CTRL-E4 receipt says PASS but the facts derive NOT_RUN' && ok "RUN-3-GB10 CTRL-E4 disagreement kept" || bad "RUN-3-GB10 CTRL-E4 disagreement kept"
+  relink() { # repair every link and manifest line of $work/m after an edit, so only the edited fact differs
+    p=0000000000000000000000000000000000000000000000000000000000000000
+    for f in $(ls "$work/m/chain"/0*.json | LC_ALL=C sort); do
+      sed -i "s/\"prev_receipt_sha256\": \"[0-9a-f]*\"/\"prev_receipt_sha256\": \"$p\"/" "$f"; p=$(sha256sum "$f" | cut -d' ' -f1)
+    done
+    : >"$work/newsums"
+    while read -r h q; do
+      if [ -f "$work/m/$q" ]; then printf '%s  %s\n' "$(sha256sum "$work/m/$q" | cut -d' ' -f1)" "$q" >>"$work/newsums"; else printf '%s  %s\n' "$h" "$q" >>"$work/newsums"; fi
+    done <"$work/m/chain/SHA256SUMS"
+    cp "$work/newsums" "$work/m/chain/SHA256SUMS"
+  }
+  mutant "$R3"; jq -c 'del(.d4_rule)' "$work/m/chain/007-E3m.json" >"$work/e" && cp "$work/e" "$work/m/chain/007-E3m.json"; relink
+  out=$(g9 "$work/m")
+  printf '%s\n' "$out" | grep -q '^chain_unbroken true$' && printf '%s\n' "$out" | grep -q '^# (supplementary) E3m FAIL: .*windmill' && ok "RUN-3 copy without d4_rule: exact rule, E3m FAIL" || bad "RUN-3 copy without d4_rule"
+  mutant "$R3"; jq -c '.d4_rule="case-insensitive substring"' "$work/m/chain/007-E3m.json" >"$work/e" && cp "$work/e" "$work/m/chain/007-E3m.json"; relink
+  g9 "$work/m" | grep -q '^# (supplementary) E3m NOT_RUN: unknown d4_rule' && ok "RUN-3 copy with an unknown d4_rule: E3m NOT_RUN" || bad "RUN-3 copy unknown d4_rule"
+fi
 after=$(tree_sum "$runs")
 [ "$before" = "$after" ] && ok "fixtures untouched" || bad "fixtures untouched"
 echo "passed $pass, failed $fail"