The Spark pipeline: how a pull request gets tested and merged
Since 2026-10-16 the DGX Spark is the only test judge for this repository (ADR 0033 Decision 11,
phase 3, agreed by Drake on 2026-10-15). On 2026-10-18 the hosted test workflows were removed; the
only test-related workflow left is AIEN Verification (.github/workflows/aien-verification.yml),
which builds nothing from this repository and only checks the bundle the Spark signs. Each former
hosted job is a Spark gate in tests/gates/.
What happens to every pull request
- The Spark worker (
aien-test worker --github, aien-sovereign-coretools/aien-test) sees the new head, runs the gates intests/gates/that the change touches plus.aien/always, inside the Spark sandbox, and signs a bundle with the Spark key. It posts the commit statusAIEN Verification (Spark). - The pipeline (
tools/aien-local-ci/pipeline.shin aien-sovereign-core, every 2 minutes) checks the bundle against.aien/verify.pubonmainand publishes it toaien-dev/aien-receiptsataegis-runtime/<sha>/bundle.json. - It then reruns the
AIEN Verificationworkflow on that head. That workflow downloads the bundle and verifies it on GitHub. Until the bundle is published the check is red withNOT_RUN; that is expected and clears on the rerun.
How to get a pull request merged
Add the label ready-to-merge when the pull request is finished. The pipeline merges it
(merge commit) only when all of these hold for the current head:
- the label is exactly
ready-to-mergeand the pull request is not a draft; - the Spark bundle for that head verifies as PASS, including every gate in
.aien/always; - the published copy in aien-receipts is byte-identical to the Spark's copy;
- every required check on
mainis green on that head, and noAIEN Verificationrun is pending.
Pushing a new commit moves the head; the pipeline tests the new head before it merges anything. Without the label nothing is merged. Remove the label to stop a merge.
To add the label from a terminal use the REST call (gh pr edit --add-label can fail on
repositories with a Projects (classic) error):
gh api -X POST repos/aien-dev/aegis-runtime-mv/issues/<number>/labels -f 'labels[]=ready-to-merge'.
Changes to the pipeline itself
A head that changes .aien/, tests/gates/, .github/workflows/, .forgejo/ or
tools/aien-test/ is BLOCKED_OPERATOR: the worker does not run it on its own. The operator runs
it by hand on the Spark (aien-local-ci once aegis-runtime <sha> --operator); the signed bundle then
records the operator run and the checks pass.
Where to look
- Spark state:
aien-local-ci status, journal~/.local/state/aien-local-ci/journal.jsonl, pipeline journal~/.local/state/aien-local-ci/pipeline.jsonl. - Published bundles: https://github.com/aien-dev/aien-receipts/tree/main/aegis-runtime.
Required checks on main
Since 2026-10-18 branch protection on main requires AIEN Verification only. No hosted job builds or tests this repository.