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/interplane-mv/blob/main/.github/workflows/aien-verification.yml # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / .github / workflows / aien-verification.yml` 212 lines ยท 9277 bytes Raw Blame History 1 # AIEN: GitHub-hosted checks and Alpha verification (ADR 0033 Decision 11, inventory contract C5). 2 # 3 # Drake 2026-10-24: nothing on GitHub gates a merge; main requires no status check. The Spark 4 # qualifies Alpha builds instead: the local pipeline pushes annotated tags alpha/YYYYMMDD.N. 5 # AIEN Checks (pull_request, push to main): advisory. For enrolled repos (.aien/verify.pub on 6 # origin/main) the portable smoke set named at origin/main. No crumb step: Crumbs are retired 7 # from the active workflow (DRA-97, 2026-11-07). 8 # AIEN Alpha (push of an alpha/* tag): the tagged commit must be on main; its signed Spark bundle 9 # from aien-receipts must verify (--require-full) against the trust anchors on origin/main. 10 # GitHub-hosted compute builds only the pinned verifier tools, never this repository's code. 11 name: AIEN 12 13 on: 14 pull_request: 15 push: 16 branches: [main] 17 tags: ['alpha/*'] 18 19 permissions: 20 contents: read 21 22 jobs: 23 checks: 24 name: AIEN Checks 25 if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' 26 runs-on: ubuntu-latest 27 timeout-minutes: 30 28 env: 29 REPO_SLUG: aien-dev/interplane 30 AIEN_TEST_PIN: `a51042b61b87355c0850ef82ba409a46e153a1ff` 31 RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main 32 steps: 33 - name: Checkout the head under test 34 uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 35 with: 36 fetch-depth: 0 37 38 - name: Resolve the base ref 39 id: ids 40 run: | 41 git fetch -q origin main 42 echo "base=$(git rev-parse origin/main)" >> "$GITHUB_OUTPUT" 43 echo "base (trust anchors): $(git rev-parse origin/main)" 44 45 - name: "Enrollment from the base ref (never from the head under test)" 46 id: anchors 47 run: | 48 if git cat-file -e "${{ steps.ids.outputs.base }}:.aien/verify.pub" 2>/dev/null; then 49 echo "enrolled=true" >> "$GITHUB_OUTPUT" 50 else 51 echo "enrolled=false" >> "$GITHUB_OUTPUT" 52 echo "not enrolled: no .aien/verify.pub on the base ref; the portable smoke set is skipped" 53 fi 54 55 - name: Install Stable Rust Toolchain (for the pinned aien-test build) 56 uses: dtolnay/rust-toolchain@`683b588c487a69d01f6c6ddf40f036ff682cc2c8` # master 57 if: steps.anchors.outputs.enrolled == 'true' 58 with: 59 toolchain: stable 60 components: rustfmt 61 62 - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }}) 63 uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 64 if: steps.anchors.outputs.enrolled == 'true' 65 with: 66 repository: aien-dev/aien-sovereign-core-mv 67 ref: ${{ env.AIEN_TEST_PIN }} 68 path: .aien-test-src 69 70 - name: Move the pinned source outside the candidate Cargo configuration 71 if: steps.anchors.outputs.enrolled == 'true' 72 run: mv .aien-test-src "$RUNNER_TEMP/aien-test-src" 73 74 # Cache dependencies only, never verifier executables or candidate-controlled target output. 75 - name: Cache the pinned aien-test dependencies 76 uses: actions/cache@`55cc8345863c7cc4c66a329aec7e433d2d1c52a9` # v6.1.0 77 if: steps.anchors.outputs.enrolled == 'true' 78 with: 79 path: | 80 ~/.cargo/registry 81 ~/.cargo/git 82 key: aien-test-isolated-v1-${{ runner.os }}-${{ env.AIEN_TEST_PIN }} 83 84 - name: Build aien-test outside the tree under test 85 if: steps.anchors.outputs.enrolled == 'true' 86 run: | 87 cd "$RUNNER_TEMP/aien-test-src" 88 cargo build --release -p aien-test --target-dir "$RUNNER_TEMP/aien-test-target" 89 mkdir -p "$RUNNER_TEMP/bin" && cp "$RUNNER_TEMP/aien-test-target/release/aien-test" "$RUNNER_TEMP/bin/aien-test" 90 echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" 91 cd "$GITHUB_WORKSPACE" 92 git status --porcelain --untracked-files=normal 93 94 - name: Portable smoke set (gates whose requires is only portable, named at the base ref) 95 if: steps.anchors.outputs.enrolled == 'true' 96 run: | 97 base="${{ steps.ids.outputs.base }}" 98 names=$(for f in $(git ls-tree -r --name-only "$base" -- tests/gates | grep '\.gate$'); do 99 git show "$base:$f" | awk ' 100 /^gate:/ {g=$2} 101 /^requires:/ {inr=1; next} 102 inr && /^ - / { if ($2 != "portable") other=1; next } 103 /^[a-z]/ {inr=0} 104 END { if (g != "" && !other) print g }' 105 done) 106 echo "portable smoke set: $(echo $names)" 107 mkdir -p "$RUNNER_TEMP/evidence" 108 fail=0 109 for g in $names; do 110 echo "::group::$g" 111 if timeout 600 aien-test run "$g" --evidence-dir "$RUNNER_TEMP/evidence"; then echo "$g: PASS"; else echo "::error::$g: not PASS"; fail=1; fi 112 echo "::endgroup::" 113 done 114 exit $fail 115 116 alpha: 117 name: AIEN Alpha 118 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/alpha/') 119 runs-on: ubuntu-latest 120 timeout-minutes: 30 121 env: 122 REPO_SLUG: aien-dev/interplane 123 AIEN_TEST_PIN: `a51042b61b87355c0850ef82ba409a46e153a1ff` 124 RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main 125 steps: 126 - name: Checkout the tagged commit 127 uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 128 with: 129 fetch-depth: 0 130 131 - name: The tagged commit must be on main 132 id: ids 133 run: | 134 sha=$(git rev-parse "${GITHUB_REF}^{commit}") 135 git fetch -q origin main 136 if ! git merge-base --is-ancestor "$sha" origin/main; then 137 echo "::error::${GITHUB_REF#refs/tags/} points at $sha, which is not on main" 138 exit 1 139 fi 140 echo "sha=$sha" >> "$GITHUB_OUTPUT" 141 echo "tag ${GITHUB_REF#refs/tags/} -> $sha (on main)" 142 143 - name: Trust anchors from origin/main 144 run: | 145 mkdir -p "$RUNNER_TEMP/anchors" 146 if ! git show "origin/main:.aien/verify.pub" > "$RUNNER_TEMP/anchors/verify.pub" 2>/dev/null; then 147 echo "::error::.aien/verify.pub is not on origin/main: no trusted key, nothing can be verified." 148 exit 1 149 fi 150 git show "origin/main:.aien/always" > "$RUNNER_TEMP/anchors/always" 2>/dev/null || : > "$RUNNER_TEMP/anchors/always" 151 echo "verify.pub (origin/main): $(cat "$RUNNER_TEMP/anchors/verify.pub")" 152 153 - name: Install Stable Rust Toolchain (for the pinned aien-test build) 154 uses: dtolnay/rust-toolchain@`683b588c487a69d01f6c6ddf40f036ff682cc2c8` # master 155 with: 156 toolchain: stable 157 components: rustfmt 158 159 - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }}) 160 uses: actions/checkout@`3d3c42e5aac5ba805825da76410c181273ba90b1` # v7.0.1 161 with: 162 repository: aien-dev/aien-sovereign-core-mv 163 ref: ${{ env.AIEN_TEST_PIN }} 164 path: .aien-test-src 165 166 - name: Move the pinned source outside the candidate Cargo configuration 167 run: mv .aien-test-src "$RUNNER_TEMP/aien-test-src" 168 169 # Cache dependencies only, never verifier executables or candidate-controlled target output. 170 - name: Cache the pinned aien-test dependencies 171 uses: actions/cache@`55cc8345863c7cc4c66a329aec7e433d2d1c52a9` # v6.1.0 172 with: 173 path: | 174 ~/.cargo/registry 175 ~/.cargo/git 176 key: aien-test-isolated-v1-${{ runner.os }}-${{ env.AIEN_TEST_PIN }} 177 178 - name: Build aien-test outside the tree under test 179 run: | 180 cd "$RUNNER_TEMP/aien-test-src" 181 cargo build --release -p aien-test --target-dir "$RUNNER_TEMP/aien-test-target" 182 mkdir -p "$RUNNER_TEMP/bin" && cp "$RUNNER_TEMP/aien-test-target/release/aien-test" "$RUNNER_TEMP/bin/aien-test" 183 echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" 184 cd "$GITHUB_WORKSPACE" 185 git status --porcelain --untracked-files=normal 186 187 - name: Fetch the signed Spark bundle for the tagged commit 188 run: | 189 url="$RECEIPTS_RAW/interplane/${{ steps.ids.outputs.sha }}/bundle.json" 190 echo "bundle url: $url" 191 if ! curl -fsSL "$url" -o "$RUNNER_TEMP/bundle.json"; then 192 echo "::error::no signed Spark bundle for ${{ steps.ids.outputs.sha }} at $url" 193 exit 1 194 fi 195 196 - name: Verify the full bundle with the origin/main public key 197 run: | 198 required=$(grep -v '^#' "$RUNNER_TEMP/anchors/always" | grep -v '^$' | paste -sd, - || true) 199 set +e 200 aien-test verify-bundle "$RUNNER_TEMP/bundle.json" \ 201 --repo "github.com/$REPO_SLUG" \ 202 --commit "${{ steps.ids.outputs.sha }}" \ 203 --pubkey "$RUNNER_TEMP/anchors/verify.pub" \ 204 --require-full \ 205 ${required:+--require "$required"} 206 rc=$? 207 set -e 208 echo "verify-bundle exit $rc (0 PASS, 1 FAIL, 2 NOT_RUN, 3 REJECTED)" 209 echo "::group::tag message" 210 git tag -l --format='%(contents)' "${GITHUB_REF#refs/tags/}" 211 echo "::endgroup::" 212 exit "$rc"