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

branch main Branches Tags History

aien-sovereign-core-mv / .forgejo / workflows / ci.yml

77 lines · 3401 bytes Raw Blame History
1name: Sovereign CI
2
3# DRA-45: this job runs on the self-hosted `spark` runner (the DGX Spark host,
4# no container). A self-hosted runner must never run code from a pull request:
5# a PR head, including a fork's, would execute on the host with the runner's
6# access. Triggers are limited to push to the protected main branch and manual
7# dispatch. Every runner label on this Forgejo maps to the Spark host, so a
8# hosted event-guard job is not possible here; pre-merge CI for PRs runs
9# through aien-local-ci (tools/aien-local-ci), not this workflow.
10on:
11 push:
12 branches: [main]
13 workflow_dispatch:
14
15jobs:
16 verify:
17 name: Workspace Verification & Invariant Audit
18 runs-on: spark
19 steps:
20 - name: Checkout Source Code
21 uses: actions/checkout@v4
22 with:
23 # Full history so AIEN_COMMIT_LINT_BASE can be resolved. A base that
24 # is set but missing fails the commit lint.
25 fetch-depth: 0
26
27 - name: Verify Code Formatting
28 run: cargo fmt --all -- --check
29
30 - name: Cargo Workspace Check
31 run: cargo check --workspace --all-targets
32
33 - name: Run Workspace Unit and Integration Tests
34 env:
35 # Pushes lint commits since github.event.before, except the all-zero
36 # SHA that marks a newly created ref (then the variable is empty and
37 # the lint skips; workflow_dispatch also leaves it empty). A fetch
38 # that fails is a step failure.
39 AIEN_COMMIT_LINT_BASE: ${{ (github.event.before != '0000000000000000000000000000000000000000' && github.event.before) || '' }}
40 run: |
41 if [ -n "$AIEN_COMMIT_LINT_BASE" ]; then
42 if ! git cat-file -e "$AIEN_COMMIT_LINT_BASE^{commit}" 2>/dev/null; then
43 git fetch --no-tags origin "$AIEN_COMMIT_LINT_BASE"
44 fi
45 fi
46 cargo test --workspace --verbose
47
48 - name: Enforce Zero Disk Secrets Invariant
49 run: |
50 echo "Auditing repository for prohibited plaintext secret files..."
51 if find . -maxdepth 4 -name ".env*" -not -path "*/.git/*" -not -path "*/target/*" | grep -q .; then
52 echo "Prohibited plaintext .env file found. Use an approved AIEN SecretProvider."
53 exit 1
54 fi
55 echo "Zero plaintext .env files verified."
56
57 - name: Enforce Sovereign Voice and Anti-Slop Invariant
58 run: |
59 echo "Auditing repository for em dashes, en dashes, and formulaic tropes..."
60 BAD_CHARS=$(grep -rnE --exclude-dir=target --exclude-dir=.git --exclude='*.rs' '—|–' crates/ docs/ README.md || true)
61 if [ -n "$BAD_CHARS" ]; then
62 echo "Em dashes or en dashes detected:"
63 echo "$BAD_CHARS"
64 exit 1
65 fi
66 echo "Sovereign voice compliance verified."
67
68 - name: Enforce Architectural Terminology Invariants
69 run: |
70 echo "Auditing documentation for deprecated absolute claims..."
71 BAD_TERMS=$(grep -rnE --exclude-dir=target --exclude-dir=.git --exclude='0001-trust-evidence-foundation.md' 'all secrets reside in TPM|zero external network calls|universal portability' README.md docs/ || true)
72 if [ -n "$BAD_TERMS" ]; then
73 echo "Deprecated non-normative claims detected:"
74 echo "$BAD_TERMS"
75 exit 1
76 fi
77 echo "Architectural terminology verified."