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/blob/main/docs/FORGEJO_CI.md # 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 branch `main` Branches Tags History `aien-sovereign-core-mv / docs / FORGEJO_CI.md` 69 lines · 4000 bytes Raw Blame History Rendered 1 # Forgejo Actions CI Standard Operating Practice 2 3 This document defines the standard practice for automated continuous integration across the AIEN ecosystem. 4 5 ## Core Policy 6 7 All continuous integration pipelines, automated invariant verifications, test suites, and lint checks execute natively on the NVIDIA DGX Spark workstation via Forgejo Actions. 8 9 Public GitHub repositories maintain GitHub Actions workflow definitions configured strictly for manual execution (`workflow_dispatch`). Automated execution on GitHub is disabled to eliminate billable cloud runner minutes and avoid recurring compute fees. 10 11 ## Architectural Advantages 12 13 1. **Zero Cloud Compute Fees**: CI tasks run on owned, dedicated local hardware with zero marginal cost. 14 2. **Native Grace Blackwell GB10 Access**: Tests and benchmarks execute directly on Grace Neoverse V2 ARM64 cores and Blackwell silicon, providing realistic production runtime telemetry rather than generic x86 virtual machines. 15 3. **High-Speed Execution**: Local NVMe storage, shared compiler artifact caches, and 121 GB unified memory reduce workspace build and test times from minutes down to seconds. 16 4. **Hardware TPM Integration**: Verification suites test against the physical TPM 2.0 interface (`/dev/tpmrm0`) and hardware vaulting mechanisms directly. 17 18 ## Runner Infrastructure 19 20 The execution environment runs as a dedicated systemd user service on the DGX Spark workstation: 21 22 - **Runner Binary**: `~/.local/bin/forgejo-runner` 23 - **Service Name**: `forgejo-runner.service` (`systemctl --user status forgejo-runner`) 24 - **Configuration**: `~/atlas-forgejo/runner/config.yaml` 25 - **Working Directory**: `~/atlas-forgejo/runner/workspace` 26 27 ### Configured Runner Labels 28 29 The runner maps standard workflow labels directly to host execution: 30 31 | Label | Execution Backend | Platform | 32 | :--- | :--- | :--- | 33 | `spark` | Host process (`:host`) | Linux aarch64 (Grace Blackwell) | 34 | `spark:host` | Host process (`:host`) | Linux aarch64 (Grace Blackwell) | 35 | `ubuntu-latest` | Host process (`:host`) | Linux aarch64 (Grace Blackwell) | 36 | `linux-arm64` | Host process (`:host`) | Linux aarch64 (Grace Blackwell) | 37 | `self-hosted` | Host process (`:host`) | Linux aarch64 (Grace Blackwell) | 38 39 ## Repository Workflow Conventions 40 41 Every repository in the AIEN ecosystem adheres to the following dual-workflow layout: 42 43 1. **Forgejo Workflows (`.forgejo/workflows/`)**: 44 - Filename: `.forgejo/workflows/ci.yml` 45 - Trigger: `push` on `main` and `workflow_dispatch`, never `pull_request` (DRA-45: a self-hosted runner never runs PR code; every runner label here maps to the Spark host, so there is no hosted event-guard job) 46 - Runner Target: `runs-on: spark` 47 - Purpose: Automatic test execution, code style verification, zero-plaintext-secret auditing, and terminology enforcement. 48 49 2. **GitHub Workflows (`.github/workflows/`)**: 50 - Filename: `.github/workflows/ci.yml` 51 - Trigger: `workflow_dispatch` (manual only) 52 - Runner Target: `runs-on: ubuntu-latest` 53 - Purpose: Optional manual validation for outside contributors without consuming automated runner minutes. 54 55 ## Invariant Verification Gates 56 57 The Forgejo CI pipeline enforces four non-negotiable invariant gates before any code merges to `main`: 58 59 1. **Zero Plaintext Secrets**: 60 Scans the workspace for `.env` or credential files. All secret material must resolve dynamically through an approved `SecretProvider` (`MemorySecretProvider` or hardware TPM `Tpm2SecretProvider`). 61 62 2. **Sovereign Voice & Anti-Slop**: 63 Audits repository documentation and code for em dashes (`—`), en dashes (`–`), and formulaic marketing tropes. 64 65 3. **Normative Terminology**: 66 Audits documentation to ensure compliance with the normative specifications in `docs/SECURITY_MODEL.md`, `docs/NETWORK_POLICY.md`, and `docs/PLATFORM_MATRIX.md`. 67 68 4. **Code Quality and Test Coverage**: 69 Executes `cargo fmt --all -- --check`, `cargo check --workspace --all-targets`, and `cargo test --workspace --verbose`.