interplane.Get Omega
Read in your language

aegis-runtime-mv

Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.

Brought by drakestapleton

branch main Branches Tags History

aegis-runtime-mv / docs / PIPELINE.md

54 lines · 3071 bytes Raw Blame History Rendered
1# The Spark pipeline: how a pull request gets tested and merged
2
3Since 2026-10-16 the DGX Spark is the only test judge for this repository (ADR 0033 Decision 11,
4phase 3, agreed by Drake on 2026-10-15). On 2026-10-18 the hosted test workflows were removed; the
5only test-related workflow left is AIEN Verification (`.github/workflows/aien-verification.yml`),
6which builds nothing from this repository and only checks the bundle the Spark signs. Each former
7hosted job is a Spark gate in `tests/gates/`.
8
9## What happens to every pull request
10
111. The Spark worker (`aien-test worker --github`, aien-sovereign-core `tools/aien-test`) sees the
12 new head, runs the gates in `tests/gates/` that the change touches plus `.aien/always`, inside
13 the Spark sandbox, and signs a bundle with the Spark key. It posts the commit status
14 `AIEN Verification (Spark)`.
152. The pipeline (`tools/aien-local-ci/pipeline.sh` in aien-sovereign-core, every 2 minutes)
16 checks the bundle against `.aien/verify.pub` on `main` and publishes it to
17 `aien-dev/aien-receipts` at `aegis-runtime/<sha>/bundle.json`.
183. It then reruns the `AIEN Verification` workflow on that head. That workflow downloads the
19 bundle and verifies it on GitHub. Until the bundle is published the check is red with
20 `NOT_RUN`; that is expected and clears on the rerun.
21
22## How to get a pull request merged
23
24Add the label **`ready-to-merge`** when the pull request is finished. The pipeline merges it
25(merge commit) only when all of these hold for the current head:
26
27- the label is exactly `ready-to-merge` and the pull request is not a draft;
28- the Spark bundle for that head verifies as PASS, including every gate in `.aien/always`;
29- the published copy in aien-receipts is byte-identical to the Spark's copy;
30- every required check on `main` is green on that head, and no `AIEN Verification` run is pending.
31
32Pushing a new commit moves the head; the pipeline tests the new head before it merges anything.
33Without the label nothing is merged. Remove the label to stop a merge.
34
35To add the label from a terminal use the REST call (`gh pr edit --add-label` can fail on
36repositories with a Projects (classic) error):
37`gh api -X POST repos/aien-dev/aegis-runtime-mv/issues/<number>/labels -f 'labels[]=ready-to-merge'`.
38
39## Changes to the pipeline itself
40
41A head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or
42`tools/aien-test/` is `BLOCKED_OPERATOR`: the worker does not run it on its own. The operator runs
43it by hand on the Spark (`aien-local-ci once aegis-runtime <sha> --operator`); the signed bundle then
44records the operator run and the checks pass.
45
46## Where to look
47
48- Spark state: `aien-local-ci status`, journal `~/.local/state/aien-local-ci/journal.jsonl`,
49 pipeline journal `~/.local/state/aien-local-ci/pipeline.jsonl`.
50- Published bundles: <https://github.com/aien-dev/aien-receipts/tree/main/aegis-runtime>.
51
52## Required checks on main
53
54Since 2026-10-18 branch protection on `main` requires `AIEN Verification` only. No hosted job builds or tests this repository.