Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/patches/14b7a287d3c27d87 # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-sovereign-core-mv#582 (code only) closed derived `14b7a287d3c27d87` #582 Imported from GitHub aien-dev/aien-sovereign-core-mv#582 (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 `26303a9ec008ae380c860095f275af12b0d443b7` · Head `b62c3d3eb83b09e825b06d71233c987598ae0e7b` ### Apply it ``` git checkout -b patch-14b7a287d3c27d87 26303a9ec008ae380c860095f275af12b0d443b7 curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/14b7a287d3c27d87.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 582 b62c3d3eb83b09e825b06d71233c987598ae0e7b ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":582,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/582","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:35Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index f1d77dbe..dd9209e3 100644 --- a/.crumb +++ b/.crumb @@ -65,68 +65,68 @@ "children": [ { "digest": "4e7f370019e67f6c71565d1544530851eb1b3b1bed61c2712f4ac7d9614a89bf", - "last_commit": "6bbe2ec2", + "last_commit": "6bbe2ec", "name": "crates/aien-allen", "purpose": "ALLEN identity gate: resolve-only subject check, host pin record, deployment record (ADR 0035). " }, { "digest": "40a231c50dba92af7de2527ab33879c5d1eaaa6e7ea5d6a5ebaa9d60c7542075", - "last_commit": "b9b52f9c", + "last_commit": "b9b52f9", "name": "crates/aien-allen-memory", "purpose": "ALLEN scoped memory store: scopes enforced at recall, inspect/correct/export, key-destroying for" }, { "digest": "44dc482b8c9db8919a68ec69b019cd77967232a6ec8b1910c0dfe3cd4d71f141", - "last_commit": "b9b52f9c", + "last_commit": "b9b52f9", "name": "crates/aien-allen-profile", "purpose": "ALLEN persona profile v1: versioned, user-editable profile bound to the engaged ALLEN identity; " }, { "digest": "f5571bcc0bb95b44dd8bf8f0b47ded3bcb1e1ee76c81b4ff5edb87ac237d66d8", - "last_commit": "f8eea420", + "last_commit": "f8eea42", "name": "crates/aien-cli", "purpose": "" }, { "digest": "25fd9f8afbea19702750f8ddba2ef4aeafc5bc4515aa695340a5af6931989c03", - "last_commit": "8cca8020", + "last_commit": "8cca802", "name": "crates/aien-scheduler/src/bin", "purpose": "" }, { "digest": "a0a981f6168d15e43a6b036c3aa82d44547aadfc3b6c62139a5a3afab0644514", - "last_commit": "8cca8020", + "last_commit": "8cca802", "name": "crates/spark-cockpit-rs", "purpose": "" }, { "digest": "f38ccede5d794040581cf48d409424c923d705a2fc206140b52691ef7fb186ef", - "last_commit": "deff6f7a", + "last_commit": "deff6f7", "name": "scripts", "purpose": "" }, { "digest": "75e439cb2ae120e1807af894b70b6454971028f5527f56451f9d6558f503c88b", - "last_commit": "fa73e778", + "last_commit": "fa73e77", "name": "skills", "purpose": "" }, { - "digest": "b95ea9baa15ce7ddc69a3ef4dc25cdcccba52ec1f5fd99e19f0f24af9181a306", - "last_commit": "247e0927", + "digest": "8b2b6cc61d7bc24cc4f983ace54fecf5de2471712f484b8b69cf8b576a3cb834", + "last_commit": "62f9279", "name": "tools/aien-local-ci", "purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health " } ], - "children_root": "sha256:7d8cf5937a13dd896fe511aee80a0873f4917a0a5eb07cbe0fe3690c0c878cbb", - "compiled_at": "2026-10-16T15:26:31Z", + "children_root": "sha256:4aaa3826082a18fb91d5d82019dc60dd29ba79193deba26b87f492d1c4db586c", + "compiled_at": "2026-10-16T18:31:07Z", "compiler": "crumb-compile/1", - "digest": "sha256:5c3262fb97f4051b7780f820f039da497a16ac9d1cf8d077e593d3b2e786ba89", + "digest": "sha256:867fe30c42af1bd61bff8c33bfcdd5a70e301ff0063c9de83ed8d1d6c703b1d2", "evidence_files": 1578, "evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160", "files": 5889, - "generated_at_commit": "228809d2f65ded6e8bbc011bc817209d82255bb5", - "source_tree": "sha256:7bdcd0cf99ffd24054c17de9287bf4506d8059c855d566eab42a2280024ec2a2" + "generated_at_commit": "923c20018fbd9360d7cf058deadf7917c977a80c", + "source_tree": "sha256:9af2a5ec136f7bb5525ea798701c52e8e1a6cf8d381131a9502d2aa6f3badb1d" } }, "history": [], diff --git a/tools/aien-local-ci/.crumb b/tools/aien-local-ci/.crumb index 602ce99d..8ca12554 100644 --- a/tools/aien-local-ci/.crumb +++ b/tools/aien-local-ci/.crumb @@ -3,14 +3,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-16T05:31:46Z", + "compiled_at": "2026-10-16T09:27:01Z", "compiler": "crumb-compile/1", - "digest": "sha256:b95ea9baa15ce7ddc69a3ef4dc25cdcccba52ec1f5fd99e19f0f24af9181a306", + "digest": "sha256:8b2b6cc61d7bc24cc4f983ace54fecf5de2471712f484b8b69cf8b576a3cb834", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 12, - "generated_at_commit": "db857500b1867559a663d4aa1c78b8200655d6b5", - "source_tree": "sha256:f5eb6931b7a33500be48cede1b99e7448b5369a48a401e3dc2ef56aba3915525" + "generated_at_commit": "b5763835ee00a58e0be06a6924b290cfe4e5c154", + "source_tree": "sha256:1e5b04c1e2b1884eb3aa703456a3b0afc52fe5d9cf8fb25e49af55356ca7c5a2" } }, "layer": "infra", diff --git a/tools/aien-local-ci/pipeline.sh b/tools/aien-local-ci/pipeline.sh index 5437b65f..4997cce8 100755 --- a/tools/aien-local-ci/pipeline.sh +++ b/tools/aien-local-ci/pipeline.sh @@ -21,6 +21,7 @@ RECEIPTS=${AIEN_RECEIPTS:-$HOME/workspace/pipeline/aien-receipts} RECEIPTS_BRANCH=${AIEN_RECEIPTS_BRANCH:-main} BIN=${AIEN_TEST_BIN:-$HOME/workspace/pipeline/target-sc/release/aien-test} OWNER=${AIEN_GH_OWNER:-aien-dev} +SLUG_OWNERS=${AIEN_SLUG_OWNERS:-aien-spark $OWNER} REPOS=${AIEN_REPOS:-aien-sovereign-core,omega,aienos,physics,aien-protocols,aegis-runtime,spark-rsi,aien-architecture,benchmarks} GH=${GH:-gh} GIT=${GIT:-git} @@ -73,6 +74,27 @@ journal() { digest() { sha256sum "$1" | cut -d' ' -f1; } +# repo_identity REPO: the repository name the worker signs into bundles, from the clone's origin URL +# (same rules as aien-test plan::normalise_remote), else github.com/$OWNER/REPO (plan::repository_name's fallback). +# synapse's clone points at aien-spark, so its bundles say github.com/aien-spark/synapse. +repo_identity() { + local url rest + url=$("$GIT" -C "$CLONES/$1" remote get-url origin 2>/dev/null || true) + url=${url%/}; url=${url%.git} + case $url in + git@*) rest=${url#git@}; rest=${rest/:/\/} ;; + ssh://git@*) rest=${url#ssh://git@} ;; + https://*) rest=${url#https://} ;; + http://*) rest=${url#http://} ;; + *) rest="" ;; + esac + if [[ $rest =~ ^([^/]+)/(.+/)?([^/]+)/([^/]+)$ ]]; then + echo "${BASH_REMATCH[1]}/${BASH_REMATCH[3]}/${BASH_REMATCH[4]}" + else + echo "github.com/$OWNER/$1" + fi +} + # keys CLONE REF: the trusted public keys at REF, one per line (same rule as aien-test: '#' comments, 64 hex). keys() { "$GIT" -C "$1" show "$2:.aien/verify.pub" 2>/dev/null | sed 's/#.*//' | tr -d ' \t\r' | tr 'A-F' 'a-f' \ @@ -88,7 +110,7 @@ verify() { while IFS= read -r key; do [[ -n $key ]] || continue rc=0 - "$BIN" verify-bundle "$file" --repo "github.com/$OWNER/$repo" --commit "$sha" --pubkey "$key" "${extra[@]}" \ + "$BIN" verify-bundle "$file" --repo "$(repo_identity "$repo")" --commit "$sha" --pubkey "$key" "${extra[@]}" \ >/dev/null 2>&1 || rc=$? codes+="${codes:+,}$rc" done <<< "$keylist" @@ -114,11 +136,16 @@ publish_time() { } declare -A SLUGS=() -# slug REPO: canonical owner/name on GitHub (aien-dev/ may redirect), resolved once per run. +# slug REPO: canonical owner/name on GitHub, resolved once per run. aien-spark is the canonical owner now; +# aien-dev/ (a redirect for most repos) is the fallback. Some repos (synapse) exist only under aien-spark. slug() { - local s + local s="" o if [[ -z ${SLUGS[$1]:-} ]]; then - s=$("$GH" api "repos/$OWNER/$1" --jq .full_name 2>/dev/null) || return 1 + for o in $SLUG_OWNERS; do + s=$("$GH" api "repos/$o/$1" --jq .full_name 2>/dev/null) && break + s="" + done + [[ -n $s ]] || return 1 [[ $s =~ ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$ ]] || return 1 SLUGS[$1]=$s fi diff --git a/tools/aien-local-ci/tests/pipeline_test.sh b/tools/aien-local-ci/tests/pipeline_test.sh index 9a760aa4..682380f5 100755 --- a/tools/aien-local-ci/tests/pipeline_test.sh +++ b/tools/aien-local-ci/tests/pipeline_test.sh @@ -125,6 +125,17 @@ check "verify-bundle got --repo from the path" grep -q -- "--repo github.com/aie check "publish never passes --require" bash -c "! grep -q 'aien-test.*--require' '$FAKE_LOG'" check "publish made no GitHub call" bash -c "! grep -q '^gh ' '$FAKE_LOG'" +# A clone whose origin is github.com/aien-spark/ (synapse): the expected repository follows the origin URL, +# the way the worker names it in the bundle. A wrapper git reports that URL; everything else is real git. +cat > "$T/bin/sparkgit" < "$T/out1b" 2>&1 +check "origin under aien-spark: verify-bundle expects github.com/aien-spark/demo" grep -q -- "--repo github.com/aien-spark/demo --commit" "$FAKE_LOG" + before=$(remote_commits) bash "$PIPE" publish > "$T/out2" 2>&1 check "identical bundles are not re-committed" [ "$(remote_commits)" = "$before" ] @@ -153,7 +164,7 @@ check "commit message names the replaced digest" bash -c "git --git-dir='$T/rece echo "== rerun" ghset "repos/aien-dev/demo" '{"full_name":"aien-spark/demo"}' -ghset "repos/aien-dev/plain" '{"full_name":"aien-spark/plain"}' +ghset "repos/aien-spark/plain" '{"full_name":"aien-spark/plain"}' # only under aien-spark, no aien-dev redirect (like synapse) ghset "repos/aien-spark/plain/pulls?state=open&per_page=100" '[]' pulls() { # NUM:SHA:DRAFT:LABEL ... local out="[" sep="" n s d l @@ -177,6 +188,7 @@ check "older run and other workflows untouched" [ "$(posts 10)$(posts 12)" = 00 check "in-progress run is not rerun" [ "$(posts 20)" = 0 ] check "run started after publication is not rerun" [ "$(posts 30)" = 0 ] check "head without a published bundle is not looked up" bash -c "! grep -q 'head_sha=$C' '$FAKE_LOG'" +check "repo only under aien-spark resolves (no aien-dev redirect)" [ "$(jl ".repo==\"plain\" and (.reason|test(\"cannot resolve\"))")" = 0 ] check "journal: in-progress wait" [ "$(jl ".action==\"rerun\" and .sha==\"$B\" and .result==\"wait\"")" = 1 ] bash "$PIPE" rerun > "$T/out5" 2>&1 check "second round: no second rerun for the same digest" [ "$(posts 11)" = 1 ] ```