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 / docs / FORGEJO_CI.md

69 lines · 4000 bytes Raw Blame History Rendered
1# Forgejo Actions CI Standard Operating Practice
2
3This document defines the standard practice for automated continuous integration across the AIEN ecosystem.
4
5## Core Policy
6
7All continuous integration pipelines, automated invariant verifications, test suites, and lint checks execute natively on the NVIDIA DGX Spark workstation via Forgejo Actions.
8
9Public 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
131. **Zero Cloud Compute Fees**: CI tasks run on owned, dedicated local hardware with zero marginal cost.
142. **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.
153. **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.
164. **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
20The 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
29The 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
41Every repository in the AIEN ecosystem adheres to the following dual-workflow layout:
42
431. **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
492. **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
57The Forgejo CI pipeline enforces four non-negotiable invariant gates before any code merges to `main`:
58
591. **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
622. **Sovereign Voice & Anti-Slop**:
63 Audits repository documentation and code for em dashes (`—`), en dashes (`–`), and formulaic marketing tropes.
64
653. **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
684. **Code Quality and Test Coverage**:
69 Executes `cargo fmt --all -- --check`, `cargo check --workspace --all-targets`, and `cargo test --workspace --verbose`.