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
About Files History Releases Proposed changes Issues For developers
scripts: dry-run workflow guard accepts the manual trigger (fixes SC-RELEASE-DRY-RUN on main)
merged 4e991e953868dbb0 #685 · opened 2026-10-19 20:06 UTC · closed 2026-10-19 20:30 UTC · merged 2026-10-19 20:30 UTC
Imported from GitHub aien-dev/aien-sovereign-core-mv#685, by drakestapleton
Labels: ready-to-merge
Base b5f7d4d8c136cc9a99734ee4d5e90a240557cd21 · Head 1eab4ec8ff0cc430e7564d769eb93401429a43e1
Merged on GitHub as 10b4f851d6b082df6c2c477fbab700b551b854be ; reachable from main 007ac4ac5ee5edc6f79f411b1706752293604044 (observed 2026-11-18T16:35:46Z)
drakestapleton wrote on 2026-10-19 20:06 UTC
SC-RELEASE-DRY-RUN fails on main: scripts/test-dry-run-workflow.sh requires a pull_request trigger, but Phase 3 (#671) made release-dry-run.yml manual (workflow_dispatch). The gate is selected by any change under tests/gates/, so it blocked #682.
Fix: the guard accepts pull_request or workflow_dispatch and fails on any other trigger. Self-check added for push, schedule and workflow_run.
Evidence: main script on main workflow rc=1; this script rc=0; copy with push: rc=1; copy with pull_request: rc=0. Touches scripts/ only, no pipeline config.
Apply it
git checkout -b patch-4e991e953868dbb0 b5f7d4d8c136cc9a99734ee4d5e90a240557cd21
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/4e991e953868dbb0 .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
685
1eab4ec8ff0cc430e7564d769eb93401429a43e1
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":685,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/685","export_sha256":"d815604dc795b494a931d4c9d256159461266bed51d6da460421ed1d94dab90f ","imported_utc":"2026-11-18T16:35:46Z"}
Changes
diff --git a/.crumb b/.crumb
index 8cd4767a ..9acd1171 100644
--- a/.crumb
+++ b/.crumb
@@ -100,7 +100,7 @@
"purpose": ""
},
{
- "digest": "34b010337138a65931ca4d0177631d839f71af021c5092583f52afd69ddd1b72 ",
+ "digest": "6b6ef510d49930df5acdbcd6e25fd349c620b9d01039af8b379e37510f52adc6 ",
"last_commit": "fe3677c ",
"name": "scripts",
"purpose": ""
@@ -118,15 +118,15 @@
"purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health "
}
],
- "children_root": "sha256:56a733caee3618ff5b127be2a8cd1d661087f7d9e2bc2a1f6f0a06326bd5467a ",
- "compiled_at": "2026-10-19T18:48:05Z",
+ "children_root": "sha256:0e07be1b915c824e11d6224b67eccaca0339390ea29f07a3c4e6e9e9f20e379d ",
+ "compiled_at": "2026-10-19T20:06:24Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:00c210c6afe7b8cbf2e0bd22962383877edc999e03dc434c40d30a2854f3d72c ",
+ "digest": "sha256:22fdec3a96455c3aee0ed644f039c8edb0e0e95c5f01324791eca4acba8d1506 ",
"evidence_files": 1578,
"evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160 ",
"files": 5892,
- "generated_at_commit": "96d8916795a0fab0f01cdcb1d3a9a8cfb12571b1 ",
- "source_tree": "sha256:ae96b082a304d713393477686f806c61e6f7409ea8d41ca7a1f903970cc99f82 "
+ "generated_at_commit": "b5f7d4d8c136cc9a99734ee4d5e90a240557cd21 ",
+ "source_tree": "sha256:7a46643bced1160385f5d792587f5c03efb136408fb12aae1310a52626f36d5b "
}
},
"history": [],
diff --git a/scripts/.crumb b/scripts/.crumb
index 8ab3769d ..8d88afce 100644
--- a/scripts/.crumb
+++ b/scripts/.crumb
@@ -4,14 +4,14 @@
"generated": {
"children": [],
"children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ",
- "compiled_at": "2026-10-17T11:27:44Z",
+ "compiled_at": "2026-10-19T20:06:24Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:34b010337138a65931ca4d0177631d839f71af021c5092583f52afd69ddd1b72 ",
+ "digest": "sha256:6b6ef510d49930df5acdbcd6e25fd349c620b9d01039af8b379e37510f52adc6 ",
"evidence_files": 0,
"evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ",
"files": 53,
- "generated_at_commit": "fe3677c38c6cd8219db0959d954c8d83e1c8a52c ",
- "source_tree": "sha256:09dbafbfb7f2503e6def8005c3bee8fe9dbc7d4e2b1f9831ff76d40d02f02097 "
+ "generated_at_commit": "b5f7d4d8c136cc9a99734ee4d5e90a240557cd21 ",
+ "source_tree": "sha256:d6ff5d4618448769822da9dd454de228974dba8101866e00ef3b3413ca32f94c "
}
},
"parent": {
diff --git a/scripts/test-dry-run-workflow.sh b/scripts/test-dry-run-workflow.sh
index e1c21838 ..c2402746 100755
--- a/scripts/test-dry-run-workflow.sh
+++ b/scripts/test-dry-run-workflow.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Static guard: .github/workflows/release-dry-run.yml (runs on pull_request) must not be able to publish.
+# Static guard: .github/workflows/release-dry-run.yml (pull_request or manual workflow_dispatch) must not be able to publish.
# It may read the repository and run the offline release checks; nothing else.
# scripts/test-dry-run-workflow.sh [workflow-file]
# Mutation note: adding a `gh release`, `secrets.` reference, `contents: write` or an upload step to the workflow
@@ -13,10 +13,21 @@ violations() { grep -nE "$BAD" "$1" | grep -vE '^[0-9]+:[[:space:]]*#' || true;
v="$(violations "$F")"
[[ -z "$v" ]] || { echo "FAIL: dry-run workflow contains publish or secret patterns:" >&2; echo "$v" >&2; exit 1; }
grep -qE '^permissions:' "$F" && grep -qE '^[[:space:]]+contents: read$' "$F" || { echo "FAIL: workflow must declare permissions contents: read" >&2; exit 1; }
-grep -qE '^[[:space:]]*pull_request:' "$F" || { echo "FAIL: workflow must run on pull_request" >&2; exit 1; }
+# Triggers: since Phase 3 (#671) the hosted workflow is manual (workflow_dispatch); the Spark judge runs this guard.
+# The workflow may be triggered only by pull_request or workflow_dispatch, never by push, schedule or anything that
+# runs with write power; it must declare at least one of the two.
+grep -qE '^[[:space:]]*(pull_request|workflow_dispatch):' "$F" || { echo "FAIL: workflow must run on pull_request or workflow_dispatch" >&2; exit 1; }
+trig="$(awk '/^on:/{f=1;next} f&&/^[^[:space:]#]/{f=0} f&&/^ [A-Za-z_]+:/{sub(/:.*/,"");gsub(/ /,"");print}' "$F")"
+for t in $trig; do
+ case "$t" in pull_request|workflow_dispatch) ;; *) echo "FAIL: workflow trigger not allowed: $t" >&2; exit 1 ;; esac
+done
M="$(mktemp)"; trap 'rm -f "$M"' EXIT
for bad in 'run: gh release create v1' 'x: ${{ secrets.AIEN_RELEASE_SIGNING_KEY }}' 'contents: write' 'uses: actions/upload-artifact@v4'; do
{ cat "$F"; echo " $bad"; } > "$M"
[[ -n "$(violations "$M")" ]] || { echo "FAIL: guard does not catch: $bad" >&2; exit 1; }
done
+for trigger in push: schedule: workflow_run:; do
+ awk -v t="$trigger" '{print} /^on:/{print " " t}' "$F" > "$M"
+ bash "${BASH_SOURCE[0]}" "$M" >/dev/null 2>&1 && { echo "FAIL: guard does not catch trigger: $trigger" >&2; exit 1; }
+done
echo "ok: dry-run workflow has no publish, secrets, signing or upload, and only contents: read"