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

closed derived 1c047e98202ed827 #271

Imported from GitHub aien-dev/aien-sovereign-core-mv#271 (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 8bcd79b406077a5901197bff01a634aa3085cd4e · Head 145ec8b0548420b760f4753e705a1f18d086559e

Fetch it

A git bundle of the pull request's head, 8855 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/1c047e98202ed827.bundle -o 1c047e98202ed827.bundle
git fetch 1c047e98202ed827.bundle refs/pull/271/head

Raw bundle · 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
271
145ec8b0548420b760f4753e705a1f18d086559e
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":271,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/271","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:37Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 62432597..c7ac7247 100644
--- a/.crumb
+++ b/.crumb
@@ -64,8 +64,8 @@
     "generated": {
       "children": [
         {
-          "digest": "f95432625ccdd27c1732e380e4ddb227483bdce00f37fb0effd5a5fddfea149b",
-          "last_commit": "a86b662",
+          "digest": "5113f380d92d17b79f3676f303677c86b6980132671208b070eb84ec6ceee3ba",
+          "last_commit": "997158b",
           "name": "scripts",
           "purpose": ""
         },
@@ -76,15 +76,15 @@
           "purpose": ""
         }
       ],
-      "children_root": "sha256:4ff1a56b7c8ac606ad5709f2ba1141f16055c34f5f242ac491233dca20d5153e",
-      "compiled_at": "2026-10-07T04:04:12Z",
+      "children_root": "sha256:c5269f93385287c09996ff41f0247f72de9237a2317f47c94c51273d6a0acef1",
+      "compiled_at": "2026-10-07T04:16:27Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:1d809adb36da3ebedb06024df206f84cd51a8729712d2aa4f8bc2cd4e3712af3",
+      "digest": "sha256:ddf24198373aa6d52af8f7f53f36005ea149030a65157298029afa4b37314f81",
       "evidence_files": 155,
       "evidence_root": "sha256:ff6dddfecfcc02cea55f46acaccc7eaecd27557209e98c3d5616ec02bdde31db",
-      "files": 1127,
-      "generated_at_commit": "0665895bfda2f5f17c7eec88ae4e4493e1b1d030",
-      "source_tree": "sha256:07d3ebde58e51ffd9111c4c875366fd0ffb0f87439a47fa8880201e7bdbc5f0b"
+      "files": 1128,
+      "generated_at_commit": "372eb4c76283a84ac179e8c1e1907d790174fa74",
+      "source_tree": "sha256:24d5ece2561d3aa4f4f237f6bd506ac8d0709a99b81be6ba194688493d9f7e4f"
     }
   },
   "history": [],
diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml
index 15982390..2cd62ba5 100644
--- a/.github/workflows/release-dry-run.yml
+++ b/.github/workflows/release-dry-run.yml
@@ -21,8 +21,20 @@ jobs:
       - name: Workflow cannot publish (static guard)
         run: bash scripts/test-dry-run-workflow.sh
 
-      - name: Tree gate on this revision (candidate named, omega.lock and Cargo.lock pins equal the candidate's)
-        run: scripts/check-release-candidate.sh
+      - name: Tag release gate stays fail-closed (static guard)
+        run: bash scripts/test-release-gate-wiring.sh
+
+      # Report only: main may move ahead of the candidate's omega-commit. A release is cut from a commit whose tree
+      # passes this gate; release.yml enforces it on tag push (guarded by scripts/test-release-gate-wiring.sh).
+      - name: Tree gate on this revision (report, does not block)
+        continue-on-error: true
+        run: |
+          if out="$(scripts/check-release-candidate.sh 2>&1)"; then
+            echo "Release gate: this tree IS releasable as ${out#candidate=}" | tee -a "$GITHUB_STEP_SUMMARY"
+          else
+            echo "Release gate: this tree is NOT releasable as the candidate: $out" | tee -a "$GITHUB_STEP_SUMMARY"
+            exit 1
+          fi
 
       - name: Gate refuses non-candidate trees and packages (real CAND manifest, throwaway binaries)
         run: bash scripts/test-release-real-tree.sh
diff --git a/docs/release/BUILD_RECIPE.md b/docs/release/BUILD_RECIPE.md
index d9eb4307..8ef13080 100644
--- a/docs/release/BUILD_RECIPE.md
+++ b/docs/release/BUILD_RECIPE.md
@@ -44,3 +44,9 @@ package aien-proof or aien-test.
   generated in the job (labelled in `DRY-RUN-NOT-A-RELEASE.txt`), verifies, uploads workflow artifacts only. Gate or
   package-check failures are recorded in `DRY-RUN-STATUS-<target>.txt` instead of stopping the run. It never creates a
   release. With `dry_run` set to false a manual run publishes like a tag push.
+- Pull requests (`release-dry-run.yml`): the publish guard, `scripts/test-release-gate-wiring.sh` and the refusal suite
+  (`scripts/test-release-real-tree.sh`, run on a fixture tree pinned to the candidate) block. The tree gate on the PR's
+  own revision only reports "IS / is NOT releasable as <candidate>" in the step summary: main may move ahead of the
+  candidate's omega-commit. A release must be cut from a commit whose tree passes the gate; the tag-push path enforces
+  it, and `test-release-gate-wiring.sh` fails if that step ever becomes non-blocking (only the manual dry run may
+  continue past it).
diff --git a/release/candidate.toml b/release/candidate.toml
index 276041b2..3b40bd52 100644
--- a/release/candidate.toml
+++ b/release/candidate.toml
@@ -2,6 +2,8 @@
 # (called from .github/workflows/release.yml and scripts/package-release.sh). A release fails
 # unless omega.lock equals omega-commit below. Copied from aien-architecture
 # qualification/candidates/CAND-4.toml ([commits] omega and [model]); change both together.
+# main may move ahead of omega-commit (pull requests only report it); a release must be cut from a commit whose
+# tree passes scripts/check-release-candidate.sh, which release.yml enforces on tag push.
 candidate = "CAND-4"
 omega-commit = "c0369e6705a4b0cb800978846e78915126a1b7f7"
 source-manifest = "aien-architecture qualification/candidates/CAND-4.toml"
diff --git a/scripts/.crumb b/scripts/.crumb
index 0a5a2576..e27f28b5 100644
--- a/scripts/.crumb
+++ b/scripts/.crumb
@@ -4,14 +4,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-07T01:19:42Z",
+      "compiled_at": "2026-10-07T04:01:59Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:f95432625ccdd27c1732e380e4ddb227483bdce00f37fb0effd5a5fddfea149b",
+      "digest": "sha256:5113f380d92d17b79f3676f303677c86b6980132671208b070eb84ec6ceee3ba",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "files": 22,
-      "generated_at_commit": "eed8b7570cef04c816f4e2a2ceb4391c8c60c61c",
-      "source_tree": "sha256:2970306b1dd7053625dcb4e85381f930467d75fa5ca62bad935bbf6be6ac3779"
+      "files": 23,
+      "generated_at_commit": "997158b861e3772973a46c960660f97b6923b43a",
+      "source_tree": "sha256:bebc9e8e1efcc1da4afb935f11cd06121ddb229196f05259e5a46e1cd46a6eb2"
     }
   },
   "parent": {
diff --git a/scripts/test-release-gate-wiring.sh b/scripts/test-release-gate-wiring.sh
new file mode 100755
index 00000000..2a54ed54
--- /dev/null
+++ b/scripts/test-release-gate-wiring.sh
@@ -0,0 +1,107 @@
+#!/usr/bin/env bash
+# Static guard for where the release gate blocks (merge-owner decision on sovereign-core#268, 2026-10-07):
+#   release.yml (tag push): every step that runs scripts/check-release-candidate.sh is fail-closed. The only
+#     continue-on-error allowed anywhere in the file is the manual dry run:
+#       continue-on-error: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
+#   release-dry-run.yml (every pull request): only the step that runs check-release-candidate.sh on this revision
+#     may be non-blocking (main may move ahead of the candidate); the publish guard and the refusal suite
+#     (test-release-real-tree.sh) block.
+#   scripts/test-release-gate-wiring.sh [release.yml] [release-dry-run.yml]
+# Mutation note: the self-checks below inject `continue-on-error: true` into the tag gate step (plain, and hidden
+# behind a comment holding the allowed text), weaken the allowed expression, drop the tag gate, put an `if:` on the gate
+# step and on its job, and make the refusal suite non-blocking or conditional; each must turn this guard red.
+set -euo pipefail
+ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+REL="${1:-$ROOT/.github/workflows/release.yml}"
+DRY="${2:-$ROOT/.github/workflows/release-dry-run.yml}"
+ALLOWED="continue-on-error: \${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}"
+
+# One line per step: "<continue-on-error value or NONE>\t<IF or NOIF>\t<step text, joined>". A step starts at any
+# "- key:" list item and ends at the next step, a job key (two-space indent) or a top-level key. IF means the step
+# carries its own `if:` condition.
+steps() {
+    awk '
+        function flush() { if (inside) printf "%s\t%s\t%s\n", (coe == "" ? "NONE" : coe), (cond ? "IF" : "NOIF"), run
+            inside = 0; coe = ""; run = ""; cond = 0 }
+        /^[[:space:]]*- [a-zA-Z_-]+:/ { flush(); inside = 1 }
+        /^([a-z]|  [a-z])[a-zA-Z_-]*:/ { flush() }
+        inside && /^[[:space:]]*(- )?if:/ { cond = 1 }
+        inside && /^[[:space:]]*continue-on-error:/ { sub(/^[[:space:]]*/, ""); coe = $0; next }
+        inside { run = run " " $0 }
+        END { flush() }
+    ' "$1"
+}
+
+# Jobs (two-space key under jobs:) that carry a job-level `if:` (four-space indent) and run the release gate.
+conditional_gate_jobs() {
+    awk '
+        function flush() { if (job != "" && cond && gate) print job; job = ""; cond = 0; gate = 0 }
+        /^[a-z]/ { flush(); injobs = ($0 ~ /^jobs:/); next }
+        injobs && /^  [a-zA-Z_-]+:/ { flush(); job = $1; next }
+        injobs && /^    if:/ { cond = 1 }
+        injobs && /check-release-candidate\.sh/ { gate = 1 }
+        END { flush() }
+    ' "$1"
+}
+
+check_release() {
+    local f="$1" gates bad line
+    gates="$(steps "$f" | grep -c 'check-release-candidate\.sh' || true)"
+    [[ "$gates" -ge 2 ]] || { echo "FAIL: $f runs check-release-candidate.sh in $gates step(s), expected the tree and package gates" >&2; return 1; }
+    # every continue-on-error must be exactly the manual dry-run expression: no other value, no trailing comment
+    while IFS= read -r line; do
+        line="${line#"${line%%[![:space:]]*}"}"; line="${line%"${line##*[![:space:]]}"}"
+        [[ "$line" == "$ALLOWED" ]] || { echo "FAIL: $f has a continue-on-error other than the manual dry run: $line" >&2; return 1; }
+    done < <(grep -E '^[[:space:]]*continue-on-error:' "$f" || true)
+    # a gate step, or the job around it, must not carry a condition that can skip it
+    bad="$(steps "$f" | awk -F'\t' '$2 == "IF" && $3 ~ /check-release-candidate\.sh/' || true)"
+    [[ -z "$bad" ]] || { echo "FAIL: $f has an if: on a release gate step: $bad" >&2; return 1; }
+    bad="$(conditional_gate_jobs "$f")"
+    [[ -z "$bad" ]] || { echo "FAIL: $f has a job-level if: on a job that runs the release gate: $bad" >&2; return 1; }
+    grep -qE '^[[:space:]]+tags:' "$f" || { echo "FAIL: $f no longer runs on tag push" >&2; return 1; }
+}
+
+check_dry() {
+    local f="$1" coe cond run
+    local saw_tree=0 saw_suite=0 saw_guard=0
+    while IFS=$'\t' read -r coe cond run; do
+        if [[ "$run" == *test-release-real-tree.sh* ]]; then
+            saw_suite=1; [[ "$coe" == NONE && "$cond" == NOIF ]] || { echo "FAIL: $f refusal suite is not blocking ($coe, $cond)" >&2; return 1; }
+        elif [[ "$run" == *test-dry-run-workflow.sh* || "$run" == *test-release-gate-wiring.sh* ]]; then
+            saw_guard=1; [[ "$coe" == NONE && "$cond" == NOIF ]] || { echo "FAIL: $f static guard is not blocking ($coe, $cond)" >&2; return 1; }
+        elif [[ "$run" == *check-release-candidate.sh* ]]; then
+            saw_tree=1
+        elif [[ "$coe" != NONE ]]; then
+            echo "FAIL: $f has a non-blocking step other than the tree report: $run" >&2; return 1
+        fi
+    done < <(steps "$f")
+    [[ $saw_tree == 1 && $saw_suite == 1 && $saw_guard == 1 ]] || { echo "FAIL: $f lacks the tree report, refusal suite or static guard" >&2; return 1; }
+}
+
+check_release "$REL"
+check_dry "$DRY"
+
+# self-checks: each mutation of a copy must apply (differ from the original) and be refused
+M="$(mktemp -d)"; trap 'rm -rf "$M"' EXIT
+n=0
+must_refuse() { local what="$1" kind="$2" src="$3" mut="$4"
+    cmp -s "$src" "$mut" && { echo "FAIL: mutation did not apply ($what); update this guard" >&2; exit 1; }
+    if "$kind" "$mut" 2>/dev/null; then echo "FAIL: guard does not catch: $what" >&2; exit 1; fi
+    n=$((n + 1)); }
+sed '/^[[:space:]]*id: gate$/a\        continue-on-error: true' "$REL" > "$M/r1"
+must_refuse "continue-on-error: true on the tag gate" check_release "$REL" "$M/r1"
+sed "s/github.event_name == 'workflow_dispatch' \&\& inputs.dry_run/inputs.dry_run || true/" "$REL" > "$M/r2"
+must_refuse "weakened dry-run expression" check_release "$REL" "$M/r2"
+grep -v 'run: scripts/check-release-candidate.sh$' "$REL" > "$M/r3"
+must_refuse "tree gate removed" check_release "$REL" "$M/r3"
+sed "/^[[:space:]]*id: gate\$/a\\        if: github.event_name != 'push'" "$REL" > "$M/r4"
+must_refuse "if: on the tag gate step" check_release "$REL" "$M/r4"
+awk -v allowed="$ALLOWED" 'f == 0 && (i = index($0, allowed)) { $0 = substr($0, 1, i - 1) "continue-on-error: true  # " allowed; f = 1 } 1' "$REL" > "$M/r5"
+must_refuse "continue-on-error: true hidden behind a comment holding the allowed text" check_release "$REL" "$M/r5"
+sed "/^  build-release:\$/a\\    if: github.event_name != 'push'" "$REL" > "$M/r6"
+must_refuse "job-level if: on the job that runs the gate" check_release "$REL" "$M/r6"
+sed '/run: bash scripts\/test-release-real-tree.sh/i\        continue-on-error: true' "$DRY" > "$M/d1"
+must_refuse "refusal suite made non-blocking" check_dry "$DRY" "$M/d1"
+sed '/run: bash scripts\/test-release-real-tree.sh/i\        if: false' "$DRY" > "$M/d2"
+must_refuse "refusal suite skipped by if:" check_dry "$DRY" "$M/d2"
+echo "ok: tag release gate is fail-closed (only the manual dry run may continue, no condition on a gate step or its job); dry run blocks on the publish guard and the refusal suite; $n mutants refused"
diff --git a/scripts/test-release-real-tree.sh b/scripts/test-release-real-tree.sh
index 986d0e1c..dfb3fd4b 100755
--- a/scripts/test-release-real-tree.sh
+++ b/scripts/test-release-real-tree.sh
@@ -27,7 +27,12 @@ sha() { sha256sum "$1" | cut -d' ' -f1; }
 # fixture: the real manifest and locks, the real gate and packager, throwaway binaries
 T="$W/tree"; mkdir -p "$T/scripts" "$T/release" "$W/bins"
 cp "$ROOT/scripts/check-release-candidate.sh" "$ROOT/scripts/package-release.sh" "$T/scripts/"
-cp "$ROOT/release/candidate.toml" "$T/release/"; cp "$ROOT/omega.lock" "$ROOT/Cargo.lock" "$T/"
+cp "$ROOT/release/candidate.toml" "$T/release/"; cp "$ROOT/Cargo.lock" "$T/"
+# The fixture tree is the candidate's tree: omega.lock is the candidate's omega-commit, not this revision's. Main may
+# move ahead of the candidate; whether THIS revision is releasable is reported (not enforced) by release-dry-run.yml,
+# and enforced at tag time by release.yml.
+sed -n 's/^omega-commit = "\([0-9a-f]\{40\}\)"$/\1/p' "$T/release/candidate.toml" > "$T/omega.lock"
+[[ -s "$T/omega.lock" ]] || fail "release/candidate.toml has no full omega-commit"
 echo constitution > "$T/CONSTITUTION.md"; echo readme > "$T/README.md"; echo '#!/bin/sh' > "$T/install.sh"
 for b in aien-cli spark-cockpit-rs spark-inquisitor cortex-encoder-rs cortex-rs spark-supervisor spark-debugger; do
     printf '#!/bin/sh\necho throwaway %s\n' "$b" > "$W/bins/$b"; chmod 755 "$W/bins/$b"
@@ -42,9 +47,8 @@ NATIVE_DIGEST="$(sed -n 's/^aien-cli-native-release = "\([0-9a-f]\{64\}\)".*/\1/
 [[ "$CAND" == CAND-4 && -n "$NATIVE_DIGEST" ]] || fail "release/candidate.toml is not CAND-4 with a native digest"
 grep -Eq '^sovereign-core-commit = "[0-9a-f]{40}"' "$T/release/candidate.toml" || fail "sovereign-core-commit is not a full hash"
 
-# positive control, tree: the committed tree is the candidate tree
-(cd "$ROOT" && bash scripts/check-release-candidate.sh >"$W/log" 2>&1) || { cat "$W/log" >&2; fail "real tree refused by the gate"; }
-grep -q "candidate=CAND-4" "$W/log"; pass "real tree passes the tree gate as CAND-4"
+# positive control, tree: a tree on the candidate's pins passes
+must_pass; grep -q "candidate=CAND-4" "$W/log"; pass "candidate tree passes the tree gate as CAND-4"
 
 # negative, tree: a tree on other pins than the candidate's (what a later main would look like) is refused
 cp "$T/omega.lock" "$W/omega.ok"; cp "$T/Cargo.lock" "$W/cargo.ok"