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
Phase 3: the Spark is the only test judge; remove hosted test workflows
merged 69a39b6769be6c9c #671 · opened 2026-10-18 21:10 UTC · closed 2026-10-18 22:23 UTC · merged 2026-10-18 22:23 UTC
Imported from GitHub aien-dev/aien-sovereign-core-mv#671, by drakestapleton
Labels: ready-to-merge
Base 1db20d4424893632e3fe81882b3b9e1289e6956a · Head b9b75177e16321f85d46cf931e6f5f64a80cff26
Merged on GitHub as a75b7c25e5fd3454af99d97bb6993a2e3481d733 ; reachable from main 007ac4ac5ee5edc6f79f411b1706752293604044 (observed 2026-11-18T16:35:48Z)
drakestapleton wrote on 2026-10-18 21:10 UTC
Why
Drake, 2026-10-18: all testing runs on the local network; nothing is tested on GitHub. The only required check on main is now AIEN Verification , the thin gate that verifies the signed bundle the Spark publishes to aien-dev/aien-receipts (ADR 0033 Decision 11, Phase 3). Branch protection was switched to that single context today.
What changes
Hosted workflows that built or tested this repository's own code are deleted. The Spark runs those gates (tests/gates/).
aien-verification.yml (sc and aienos only): the Phase 2 draft is replaced by the same Phase 3 text the other nine enrolled repos already run: a missing bundle is NOT_RUN (the Spark pipeline reruns the check after it publishes), not-enrolled is a failure, and a trust-surface change passes only on a signed PASS bundle from an operator run.
Release, pages and policy guards that do not test code stay. Manual triggers stay.
How this was judged
Pipeline configuration change (rule A4): operator run on the Spark, aien-local-ci once <repo> <sha> --operator, which publishes the PASS bundle this check verifies. No hosted test ran, by design.
Desk: Hermes (Drake's MacBook, driving the Spark). Also fixed today on the Spark: pipeline.sh crashed under set -o pipefail in the rerun backoff code, so no stuck check had been rerun automatically since about 11:45Z; reruns flow again.
Apply it
git checkout -b patch-69a39b6769be6c9c 1db20d4424893632e3fe81882b3b9e1289e6956a
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/69a39b6769be6c9c .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
671
b9b75177e16321f85d46cf931e6f5f64a80cff26
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":671,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/671","export_sha256":"d815604dc795b494a931d4c9d256159461266bed51d6da460421ed1d94dab90f ","imported_utc":"2026-11-18T16:35:48Z"}
Changes
diff --git a/.crumb b/.crumb
index 481f82fd ..64aec8e2 100644
--- a/.crumb
+++ b/.crumb
@@ -113,20 +113,20 @@
},
{
"digest": "f44f81600d98021f83fd88d23ed440f13acaa945ce54b2ef276bdd27487f19b6 ",
- "last_commit": "28e3da97 ",
+ "last_commit": "1db20d44 ",
"name": "tools/aien-local-ci",
"purpose": "Local CI sandbox exec contract (C8), aien-run user/caches install, Forgejo trigger hook, health "
}
],
"children_root": "sha256:5f336a15f17c63933efa0604715564620ad61d5e6f37fa82f14d9114f3b1e99a ",
- "compiled_at": "2026-10-18T17:36:55Z",
+ "compiled_at": "2026-10-18T21:10:27Z",
"compiler": "crumb-compile/1",
- "digest": "sha256:1100a0609391c3c0d09d9d25ca44eefef6043727c1f9c71d2cb96cbbddb5e06d ",
+ "digest": "sha256:d1061244d011eecf12dc11d7a5bea43cd45cbd57b551ed7f7e6392282c69a534 ",
"evidence_files": 1578,
"evidence_root": "sha256:135e27a1a0704c4a8371cd2c1eb555f2b5beec61c212949b029a5457418a7160 ",
- "files": 5891,
- "generated_at_commit": "28e3da9787b480b6b71ed92079261098b9d5f996 ",
- "source_tree": "sha256:d6893f876ac8deff9c84931096b77dda5de8bff1794f37b06eaa888c8fd1bd7d "
+ "files": 5886,
+ "generated_at_commit": "1db20d4424893632e3fe81882b3b9e1289e6956a ",
+ "source_tree": "sha256:9227f9cb0fd0297c910632c526cc1574a3c0c58be7bc2ba3e43dd68b248bc712 "
}
},
"history": [],
diff --git a/.github/workflows/aien-verification.yml b/.github/workflows/aien-verification.yml
index 95e19a7f ..cc3dc0bc 100644
--- a/.github/workflows/aien-verification.yml
+++ b/.github/workflows/aien-verification.yml
@@ -1,9 +1,10 @@
# AIEN Verification: the GitHub thin gate (ADR 0033 Decision 11, inventory contract C5).
#
-# PHASE 2 DRAFT (2026-10-11, lane REPOS). This workflow is NOT a required check yet. It runs
-# beside the existing hosted workflows so that, for N >= 3 commits, the hosted verdict and the
-# locally signed bundle verdict can be compared (advisor amendment A7). Nothing here changes
-# the repository's required contexts; that switch is phase 3 and needs Drake's agreement.
+# PHASE 3 (2026-10-18, Drake: "all testing on the local network; the Spark is the only test
+# judge"). This is the only required check on main. The Spark worker (aien-test worker) runs
+# the tests and signs a bundle; ~/.local/lib/aien-local-ci/pipeline.sh on the Spark publishes
+# it to aien-receipts and reruns this workflow once it is there. A missing bundle fails this
+# check (NOT_RUN) until the rerun. Pull requests labeled ready-to-merge are merged by the desk.
#
# What it does: checkout; read the trust anchors from the BASE ref (origin/main), never from
# the head under test (amendment A1); crumb verify; fetch <repo>/<sha>/bundle.json from
@@ -14,9 +15,9 @@
# checker, and aien-test once the repository is enrolled). It never builds or tests this
# repository's own code; the portable smoke set is text scans and format checks only.
#
-# PHASE 3 FLIPS (marked "PHASE3" below): a missing bundle becomes NOT_RUN (status pending with
-# a retry window) instead of a neutral note, and a trust-surface change becomes a failure
-# unless the operator ran it by hand (BLOCKED_OPERATOR).
+# PHASE 3 rules (marked "PHASE3" below): a missing bundle is NOT_RUN (this check fails; the
+# pipeline reruns it after publication), and a trust-surface change fails unless the verified
+# bundle's signed plan shows the operator ran it by hand (plan.blocked == null).
name: AIEN Verification
on:
@@ -68,14 +69,16 @@ jobs:
echo "verify.pub (base): $(cat "$RUNNER_TEMP/anchors/verify.pub")"
else
echo "enrolled=false" >> "$GITHUB_OUTPUT"
- echo "::notice::.aien/verify.pub is not on the base ref yet: this repository is not enrolled. Phase 2: neutral."
+ # PHASE3: an enrolled repository whose base ref lost its key cannot verify anything.
+ echo "::error::.aien/verify.pub is not on the base ref: no trusted key, nothing can be verified."
+ exit 1
fi
# Trust-surface changes are run by the operator by hand (A1): BLOCKED_OPERATOR.
changed=$(git diff --name-only "$base...${{ steps.ids.outputs.sha }}" -- .aien tests/gates .github/workflows .forgejo tools/aien-test || true)
if [ -n "$changed" ]; then
echo "blocked=true" >> "$GITHUB_OUTPUT"
- echo "::notice::BLOCKED_OPERATOR: this head changes the trust surface:"; echo "$changed"
- # PHASE3: fail here unless an operator attestation for this sha is present.
+ echo "::notice::BLOCKED_OPERATOR: this head changes the trust surface (the bundle must show an operator run):"; echo "$changed"
+ # PHASE3: enforced in the verify step: the verified bundle's signed plan must say blocked == null.
else
echo "blocked=false" >> "$GITHUB_OUTPUT"
fi
@@ -139,8 +142,9 @@ jobs:
echo "present=true" >> "$GITHUB_OUTPUT"
else
echo "present=false" >> "$GITHUB_OUTPUT"
- echo "::notice::bundle not published yet for ${{ steps.ids.outputs.sha }} (phase 2: neutral)."
- # PHASE3: exit 2 here (NOT_RUN, status pending with a retry window) instead of a neutral note.
+ # PHASE3: NOT_RUN. The Spark pipeline reruns this workflow after it publishes the bundle.
+ echo "::error::NOT_RUN: no signed Spark bundle for ${{ steps.ids.outputs.sha }} yet. The Spark pipeline reruns this check once the bundle is published."
+ exit 2
fi
- name: Verify the bundle with the base-ref public key
@@ -157,6 +161,15 @@ jobs:
set -e
echo "verify-bundle exit $rc (0 PASS, 1 FAIL, 2 NOT_RUN, 3 REJECTED)"
[ "$rc" = 0 ] || exit "$rc"
+ # PHASE3: a trust-surface head passes only on an operator run: the plan member is inside
+ # the signed bytes just verified, and only an operator run of such a head has blocked == null.
+ if [ "${{ steps.anchors.outputs.blocked }}" = true ]; then
+ if jq -e '.plan.blocked == null' "$RUNNER_TEMP/bundle.json" >/dev/null; then
+ echo "trust-surface change: the signed bundle shows an operator run (plan.blocked == null)"
+ else
+ echo "::error::BLOCKED_OPERATOR: this head changes the trust surface and the bundle is not from an operator run"; exit 1
+ fi
+ fi
- name: Portable smoke set (gates whose requires is only portable, named at the base ref)
if: steps.anchors.outputs.enrolled == 'true' && steps.anchors.outputs.blocked == 'false'
@@ -180,7 +193,7 @@ jobs:
done
exit $fail
- - name: "Not enrolled or blocked: nothing to verify in this phase"
- if: steps.anchors.outputs.enrolled != 'true' || steps.anchors.outputs.blocked == 'true'
+ - name: "Trust-surface change: the portable smoke set is skipped (the operator ran this head on the Spark)"
+ if: steps.anchors.outputs.blocked == 'true'
run: |
- echo "AIEN Verification: neutral (enrolled=${{ steps.anchors.outputs.enrolled }}, blocked=${{ steps.anchors.outputs.blocked }}). PHASE3 turns this into a failure."
+ echo "AIEN Verification: trust-surface head, accepted on the verified operator-run bundle above."
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
deleted file mode 100644
index 5327d73f ..00000000
--- a/.github/workflows/ci.yml
+++ /dev/null
@@ -1,241 +0,0 @@
-name: Sovereign CI
-
-"on":
- push:
- branches: [main]
- pull_request:
- branches: [main]
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- verify:
- name: Workspace Verification & Invariant Audit
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: No Python guard (fails if any Python file is tracked)
- run: sh scripts/check-no-python.sh
-
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
- with:
- components: rustfmt, clippy
-
- - name: Verify Code Formatting
- run: cargo fmt --all -- --check
-
- - name: Verify Signed Release Install
- run: bash scripts/test-install-release.sh
-
- - name: Offline-signing handoff (ceremony rehearsal, offline sign, publish gate; throwaway keys only)
- run: bash scripts/test-offline-signing.sh
-
- - name: Public-key integration (ceremony public record to trust config; throwaway keys only)
- run: bash scripts/test-public-key-integration.sh
-
- - name: Release trust config is consistent (placeholder or pinned with matching ceremony record)
- run: bash scripts/check-release-trust-config.sh
-
- - name: Release gate negative tests (pins, digests, model inputs, signatures)
- run: bash scripts/test-release-checks.sh
-
- - name: Whole-system verifier tests (tools/aien-verify/tests/run.sh)
- run: sh tools/aien-verify/tests/run.sh
-
- - name: Pin materializer self-test (scripts/pins.sh, offline)
- run: bash scripts/test-pins.sh
-
- - name: Native library identity refusals (scripts/test-native-identity.sh, no omega needed)
- run: bash scripts/test-native-identity.sh
-
- - name: Verify Piped Installer Bootstrap
- run: bash scripts/test-install.sh
-
- - name: Verify Scoring Contract v5 (negative tests)
- run: bash docs/campaigns/scoring/test-scoring-v5.sh
-
- - name: Cargo Workspace Check
- run: cargo check --workspace --all-targets
-
- - name: Cargo Clippy Invariant
- run: cargo clippy --workspace --all-targets -- -D warnings
-
- - name: Run Workspace Unit and Integration Tests
- env:
- # CPU-only runner: let the GPU-backend tests take the software fallback.
- # Recorded in every receipt; the strict real-model gate rejects it.
- AIEN_DEV_FALLBACK: "1"
- run: cargo test --workspace --verbose -- --test-threads=1
-
- - name: Strict-Mode Controls (no AIEN_DEV_FALLBACK)
- # The workspace test step above opts in to the dev fallback, which skips every
- # strict branch of the GPU-backend tests. These targets must also pass in a strict
- # process: a stub build must refuse the GPU backend instead of computing on the CPU.
- run: |
- cargo test -p aien-inference-abi --lib --test attention_wiring --test transformer_parity -- --test-threads=1
- cargo test -p aien-inference-runtime --test strict_real_model -- --test-threads=1
-
- - name: Zero-CUDA Gate (aien-cli links no NVIDIA CUDA library or symbol)
- run: |
- bash scripts/zero-cuda-gate.sh --self-test
- cargo build -p aien-cli
- bash scripts/zero-cuda-gate.sh target/debug/aien-cli
-
- - name: Verify Preflight Branch Guard (both contexts)
- run: bash scripts/test-preflight-branch-guard.sh
-
- - name: Run Required Agent Preflight
- env:
- AIEN_PROOF_OFF: '1'
- # CI runners have no GB10; the dev fallback is a recorded opt-in here only (see aien-inference-abi::strict)
- AIEN_DEV_FALLBACK: '1'
- # push to main validates an already-merged tree; PRs keep the developer branch policy
- AIEN_PREFLIGHT_CONTEXT: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && 'merged-tree' || 'developer' }}
- run: bash scripts/agent-preflight.sh
-
- - name: Enforce Zero Disk Secrets Invariant
- run: |
- echo "Auditing repository for prohibited plaintext secret files..."
- if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/target/*" | grep -q .; then
- echo "::error::Prohibited plaintext .env file found. Use an approved AIEN SecretProvider."
- exit 1
- fi
- echo "Zero plaintext .env files verified."
-
- - name: Enforce Sovereign Voice and Anti-Slop Invariant
- run: |
- echo "Auditing repository for em dashes, en dashes, and formulaic tropes..."
- BAD_CHARS=$(grep -rnE --exclude-dir=target --exclude-dir=.git --exclude-dir=aien-protocols --exclude="*.rs" --exclude="*.json" --exclude="*.safetensors" --exclude="FORGEJO_CI.md" "—|–" crates/ docs/ README.md || true)
- # Saved model replies under docs/campaigns/*/replies/ are evidence named by the
- # sha256 of their exact bytes, so they cannot be reworded. Everything else stays audited.
- BAD_CHARS=$(printf "%s\n" "$BAD_CHARS" | grep -vE "^docs/campaigns/[^:]*/replies/[0-9a-f]{64}\.txt:" || true)
- if [ -n "$BAD_CHARS" ]; then
- echo "::error::Em dashes or en dashes detected:"
- echo "$BAD_CHARS"
- exit 1
- fi
- echo "Sovereign voice compliance verified."
-
- linked-compose:
- # The verify job builds the stub, where the compose-linked tests are #[ignore] and never run
- # (sovereign-core #306). This job builds the real omega composition library (CPU only, no GPU
- # engine) at the omega.lock pin and runs those tests. Mandatory: a failure blocks.
- name: Linked composition tests (real librx_compose, CPU)
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Install pinned Rust toolchain (rust-toolchain.toml)
- run: |
- rustup toolchain install "$(sed -n 's/^channel *= *"\(.*\)"/\1/p' rust-toolchain.toml)" --profile minimal
- rustc --version
-
- - name: Read pin (omega.lock)
- id: pins
- run: echo "omega=$(tr -d '[:space:]' < omega.lock)" >> "$GITHUB_OUTPUT"
-
- - name: Checkout omega at omega.lock
- uses: actions/checkout@v4
- with:
- repository: aien-spark/omega
- ref: ${{ steps.pins.outputs.omega }}
- path: omega
-
- - name: Read omega's physics.lock and aienos.lock
- id: sub
- run: |
- echo "physics=$(tr -d '[:space:]' < omega/physics.lock)" >> "$GITHUB_OUTPUT"
- echo "aienos=$(tr -d '[:space:]' < omega/aienos.lock)" >> "$GITHUB_OUTPUT"
-
- - name: Checkout physics at omega's physics.lock
- uses: actions/checkout@v4
- with:
- repository: aien-spark/physics
- ref: ${{ steps.sub.outputs.physics }}
- path: physics
-
- - name: Checkout aienos at omega's aienos.lock
- uses: actions/checkout@v4
- with:
- repository: aien-spark/aienos
- ref: ${{ steps.sub.outputs.aienos }}
- path: aienos
-
- - name: Run the linked composition tests (scripts/test-linked-compose.sh)
- run: bash scripts/test-linked-compose.sh "$GITHUB_WORKSPACE/omega" "$GITHUB_WORKSPACE/physics" "$GITHUB_WORKSPACE/aienos"
-
- headstart-feature-on:
- # Headstart M6 (sovereign-core #538). The verify job builds aien-runtime with its default
- # features, so the provisional-prep tests (Headstart M3, #537) never compile there. This job
- # runs them with the feature on, runs the M1/M2 harness tests, and checks that the default
- # build pulls in neither spark-harness nor aien-proof. Not a required check: making it
- # required is a branch-protection decision for the repository owner.
- name: Headstart feature-on tests (provisional-prep)
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Feature-off invariant (default aien-runtime links no spark-harness or aien-proof)
- run: |
- tree="$(cargo tree -e normal -p aien-runtime --prefix none)"
- if printf '%s\n' "$tree" | grep -E '^(spark-harness|aien-proof) '; then
- echo "default aien-runtime build depends on the Headstart crates above"
- exit 1
- fi
- echo "default aien-runtime build: no spark-harness, no aien-proof"
-
- - name: Headstart M3 adapter tests (aien-runtime, provisional-prep on)
- run: cargo test -p aien-runtime --features provisional-prep --test provisional_prep_test -- --test-threads=1
-
- - name: Headstart M1/M2 harness and scheduler tests (spark-harness)
- run: cargo test -p spark-harness
-
- - name: Headstart M6 A/B driver self-check (STUB build, overhead and correctness only)
- run: cargo test -p aien-runtime --features provisional-prep --test headstart_ab -- --ignored headstart_ab_smoke --test-threads=1
-
- omegese-constraint:
- # The Omegese guardrail (crates/aien-omegese-constraint) against the real oracle. Its real-oracle
- # tests are #[ignore] in the verify job (no omegese binary there). This job builds `omegese`
- # (one C file, CPU only) from omega at crates/aien-omegese-constraint/omegese.lock and runs them.
- # A pin of its own, separate from the root omega.lock (the release candidate's omega commit,
- # checked by scripts/check-release-candidate.sh): this one follows the Omegese grammar only.
- name: Omegese guardrail against the real oracle
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Install pinned Rust toolchain (rust-toolchain.toml)
- run: |
- rustup toolchain install "$(sed -n 's/^channel *= *"\(.*\)"/\1/p' rust-toolchain.toml)" --profile minimal
- rustc --version
-
- - name: Read pin (crates/aien-omegese-constraint/omegese.lock)
- id: pin
- run: echo "omega=$(tr -d '[:space:]' < crates/aien-omegese-constraint/omegese.lock)" >> "$GITHUB_OUTPUT"
-
- - name: Checkout omega at the pin
- uses: actions/checkout@v4
- with:
- repository: aien-spark/omega
- ref: ${{ steps.pin.outputs.omega }}
- path: omega
-
- - name: Build omegese (the flags of omega's mk/omegese.mk)
- run: cc -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -o "$RUNNER_TEMP/omegese" omega/tools/omegese/omegese.c
-
- - name: Real-oracle walks on the host fake
- env:
- OMEGESE_BIN: ${{ runner.temp }}/omegese
- run: cargo test -p aien-omegese-constraint --test echo_walks -- --ignored --test-threads=1 --nocapture
diff --git a/.github/workflows/crumb-visible-conformance.yml b/.github/workflows/crumb-visible-conformance.yml
deleted file mode 100644
index 5d77b062 ..00000000
--- a/.github/workflows/crumb-visible-conformance.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-name: CRB1 conformance
-
-# Migration seam 1: the Rust reference reader (crates/crumbs) must pass the
-# shared CRB1 corpus in aien-protocols specs/crumb-visible with zero
-# differences. The corpus is pinned by commit; bump the pin when the
-# contract corpus changes.
-
-"on":
- push:
- branches: [main]
- paths:
- - "crates/crumbs/**"
- - ".github/workflows/crumb-visible-conformance.yml"
- pull_request:
- branches: [main]
- paths:
- - "crates/crumbs/**"
- - ".github/workflows/crumb-visible-conformance.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- crb1-rust:
- name: CRB1 conformance (impl=rust)
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Checkout pinned CRB1 contract corpus
- uses: actions/checkout@v4
- with:
- repository: aien-spark/aien-protocols
- ref: b50c00d737fa5c57ea7280e2aa4b0354ff166cf5
- path: crb1-protocols
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Run shared corpus through the Rust reader
- env:
- CRB1_VECTORS: ${{ github.workspace }}/crb1-protocols/specs/crumb-visible/vectors
- CRB1_REQUIRE: "1"
- run: cargo test -p crumbs --test visible_conformance -- --nocapture
diff --git a/.github/workflows/hardening.yml b/.github/workflows/hardening.yml
deleted file mode 100644
index 900b9d0e ..00000000
--- a/.github/workflows/hardening.yml
+++ /dev/null
@@ -1,118 +0,0 @@
-name: Hardening
-
-# Lane L-E checks. Each check here comes with mutations that prove it catches
-# a realistic fault (crates/aien-replay/mutations/). ci.yml is left alone.
-#
-# - kv-props: property tests on KV fork / append / free / rollback ownership,
-# then every kv.mutants mutation must make them fail.
-# - trn1-rust: the Rust TRN1 reader must reproduce every line of the shared
-# corpus manifests, and switching off any one check must break that.
-# - miri: aien-capability and aien-kv-cache unit + integration tests under
-# Miri (undefined-behaviour checker, nightly only), plus the KV property
-# tests at a low case count, then the Miri-only mutation must be caught.
-#
-# aien-replay is its own workspace root until the member-line PR lands, so it
-# is built with --manifest-path.
-
-"on":
- push:
- branches: [main]
- paths:
- - "crates/aien-replay/**"
- - "crates/aien-kv-cache/**"
- - "crates/aien-capability/**"
- - "crates/aien-platform/**"
- - "crates/aien-platform-linux/**"
- - ".github/workflows/hardening.yml"
- pull_request:
- branches: [main]
- paths:
- - "crates/aien-replay/**"
- - "crates/aien-kv-cache/**"
- - "crates/aien-capability/**"
- - "crates/aien-platform/**"
- - "crates/aien-platform-linux/**"
- - ".github/workflows/hardening.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- kv-props:
- name: KV ownership properties + mutants
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Fetch dependencies
- run: cargo fetch --manifest-path crates/aien-replay/Cargo.toml
-
- - name: KV ownership property tests
- run: cargo test --manifest-path crates/aien-replay/Cargo.toml --test kv_ownership_props
-
- - name: Every KV mutation must be caught
- run: sh crates/aien-replay/mutations/run_mutants.sh native
-
- miri:
- name: Miri (aien-capability, aien-kv-cache)
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- - name: Install Nightly Rust Toolchain with Miri
- uses: dtolnay/rust-toolchain@nightly
- with:
- components: miri, rust-src
-
- - name: Miri setup
- run: cargo +nightly miri setup
-
- - name: Miri on aien-capability
- run: cargo +nightly miri test -p aien-capability
-
- - name: Miri on aien-kv-cache
- run: cargo +nightly miri test -p aien-kv-cache
-
- - name: Miri on KV ownership property tests (8 cases)
- run: |
- cargo fetch --manifest-path crates/aien-replay/Cargo.toml
- cargo +nightly miri test --manifest-path crates/aien-replay/Cargo.toml --test kv_ownership_props
-
- - name: Miri-only mutation must be caught
- run: sh crates/aien-replay/mutations/run_mutants.sh miri
-
- trn1-rust:
- name: TRN1 conformance (impl=rust) + check mutants
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
- # Pinned TRN1 corpus (aien-protocols, lane L-B). Bump the pin when the
- # contract corpus changes.
- - name: Checkout pinned TRN1 contract corpus
- uses: actions/checkout@v4
- with:
- repository: aien-spark/aien-protocols
- ref: 353b7d4be3f00169545caec1615cffa61f7d311a
- path: trn1-protocols
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Run shared corpus through the Rust reader
- env:
- TRN1_VECTORS: ${{ github.workspace }}/trn1-protocols/specs/execution-transcript/vectors
- TRN1_REQUIRE: "1"
- run: cargo test --manifest-path crates/aien-replay/Cargo.toml --test trn1_conformance -- --nocapture
-
- - name: Every TRN1 check must be needed by the corpus
- env:
- TRN1_VECTORS: ${{ github.workspace }}/trn1-protocols/specs/execution-transcript/vectors
- run: sh crates/aien-replay/mutations/run_mutants.sh trn1
diff --git a/.github/workflows/release-dry-run.yml b/.github/workflows/release-dry-run.yml
index 76dec126 ..5fcbfb38 100644
--- a/.github/workflows/release-dry-run.yml
+++ b/.github/workflows/release-dry-run.yml
@@ -4,7 +4,6 @@ name: Release Dry Run (no publish, no secrets)
# no signing, no upload. Guarded by scripts/test-dry-run-workflow.sh. Decision D1 (aien-architecture#156): no signing
# key is generated or stored now and nothing is published.
on:
- pull_request:
workflow_dispatch:
permissions:
diff --git a/.github/workflows/sovereign-inquisitor.yml b/.github/workflows/sovereign-inquisitor.yml
deleted file mode 100644
index 80ff1151 ..00000000
--- a/.github/workflows/sovereign-inquisitor.yml
+++ /dev/null
@@ -1,173 +0,0 @@
-name: Sovereign Gatekeeper & Automated Reviewer
-
-on:
- workflow_dispatch:
-
-permissions:
- pull-requests: write
- issues: write
- contents: read
-
-jobs:
- pr-reviewer:
- if: github.event_name == 'pull_request_target'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Sovereign Core
- uses: actions/checkout@v4
-
- - name: Build Sovereign Inquisitor
- run: cargo build --release -p spark-inquisitor
-
- - name: Fetch PR Diff
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- run: |
- gh pr diff "$PR_NUMBER" > pr.diff
-
- - name: Execute Sovereign Code Review
- id: review
- continue-on-error: true
- env:
- PR_AUTHOR: ${{ github.event.pull_request.user.login }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- PR_TITLE: ${{ github.event.pull_request.title }}
- run: |
- ./target/release/spark-inquisitor review \
- --author "$PR_AUTHOR" \
- --pr "$PR_NUMBER" \
- --title "$PR_TITLE" \
- --diff pr.diff \
- --output comment.md \
- --output-labels labels.txt
-
- - name: Post PR Review Comment
- if: always() && steps.review.conclusion != 'skipped'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- run: |
- if [ -f comment.md ]; then
- gh pr comment "$PR_NUMBER" --body-file comment.md
- fi
-
- - name: Apply Review Labels
- if: always() && steps.review.conclusion != 'skipped'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- run: |
- if [ -f labels.txt ]; then
- LABELS=$(cat labels.txt)
- if [ -n "$LABELS" ]; then
- gh pr edit "$PR_NUMBER" --add-label "$LABELS" || true
- fi
- fi
-
- - name: Verify Audit Invariants
- env:
- REVIEW_OUTCOME: ${{ steps.review.outcome }}
- run: |
- if [ "$REVIEW_OUTCOME" != "success" ]; then
- echo "Constitutional diff audit detected violations. See PR comment for details."
- exit 1
- fi
-
- issue-triage:
- if: github.event_name == 'issues' && github.event.action == 'opened'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Sovereign Core
- uses: actions/checkout@v4
-
- - name: Build Sovereign Inquisitor
- run: cargo build --release -p spark-inquisitor
-
- - name: Extract Issue Payload Safely
- run: |
- jq -r '.issue.body // ""' "$GITHUB_EVENT_PATH" > issue_body.txt
-
- - name: Execute Sovereign Issue Triage
- env:
- ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- ISSUE_TITLE: ${{ github.event.issue.title }}
- run: |
- ./target/release/spark-inquisitor triage-issue \
- --author "$ISSUE_AUTHOR" \
- --issue "$ISSUE_NUMBER" \
- --title "$ISSUE_TITLE" \
- --body issue_body.txt \
- --output-comment issue_reply.md \
- --output-labels issue_labels.txt
-
- - name: Post Issue Triage Comment
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- run: |
- if [ -f issue_reply.md ]; then
- gh issue comment "$ISSUE_NUMBER" --body-file issue_reply.md
- fi
-
- - name: Apply Issue Labels
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- run: |
- if [ -f issue_labels.txt ]; then
- LABELS=$(cat issue_labels.txt)
- if [ -n "$LABELS" ]; then
- gh issue edit "$ISSUE_NUMBER" --add-label "$LABELS" || true
- fi
- fi
-
- comment-evaluator:
- if: github.event_name == 'issue_comment' && github.event.action == 'created' && github.event.issue.pull_request != null && github.event.comment.user.login != 'github-actions[bot]' && github.event.comment.user.login != 'aien-dev'
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Sovereign Core
- uses: actions/checkout@v4
-
- - name: Build Sovereign Inquisitor
- run: cargo build --release -p spark-inquisitor
-
- - name: Extract Comment Payload Safely
- run: |
- jq -r '.comment.body // ""' "$GITHUB_EVENT_PATH" > comment_body.txt
-
- - name: Evaluate Contributor Testimony
- id: eval
- continue-on-error: true
- env:
- COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
- run: |
- ./target/release/spark-inquisitor evaluate \
- --testimony comment_body.txt \
- --author "$COMMENT_AUTHOR" \
- --output-comment verdict.md \
- --output-labels verdict_labels.txt
-
- - name: Post Verdict Comment
- if: always() && steps.eval.conclusion != 'skipped'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- run: |
- if [ -f verdict.md ]; then
- gh pr comment "$ISSUE_NUMBER" --body-file verdict.md
- fi
-
- - name: Update PR Labels
- if: always() && steps.eval.conclusion != 'skipped'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE_NUMBER: ${{ github.event.issue.number }}
- run: |
- if [ -f verdict_labels.txt ]; then
- LABELS=$(cat verdict_labels.txt)
- if [ -n "$LABELS" ]; then
- gh pr edit "$ISSUE_NUMBER" --add-label "$LABELS" || true
- fi
- fi
diff --git a/.github/workflows/verify-closure.yml b/.github/workflows/verify-closure.yml
deleted file mode 100644
index 7db2b08b ..00000000
--- a/.github/workflows/verify-closure.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: Verify Closure
-
-"on":
- push:
- branches: [main]
- paths:
- - "crates/aien-closure/**"
- - "crates/aien-proof/**"
- - ".github/workflows/verify-closure.yml"
- pull_request:
- branches: [main]
- paths:
- - "crates/aien-closure/**"
- - "crates/aien-proof/**"
- - ".github/workflows/verify-closure.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- verify-closure:
- name: verify-closure build, tests, seeded fixture run
- runs-on: ubuntu-latest
- steps:
- - name: Checkout Source
- uses: actions/checkout@v4
-
-
- - name: Install Stable Rust Toolchain
- uses: dtolnay/rust-toolchain@stable
-
- - name: Build verify-closure
- run: cargo build --locked -p aien-closure --bin verify-closure
-
- - name: Test aien-closure
- run: cargo test --locked -p aien-closure
-
- # The real repo has no closure.toml manifests yet (stage 6 adds them), so
- # this runs only against the seeded in-repo fixture and its receipt store.
- - name: Run verify-closure on the seeded fixture
- working-directory: crates/aien-closure/tests/fixtures/seeded
- run: |
- "$GITHUB_WORKSPACE/target/debug/verify-closure" --root . --store store