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/interplane-mv/blob/main/docs/PIPELINE.md # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. 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 `interplane-mv / docs / PIPELINE.md` 63 lines ยท 3854 bytes Raw Blame History Rendered 1 # The Spark pipeline: how a pull request gets tested and merged 2 3 Since 2026-10-16 the DGX Spark is the only test judge for this repository (ADR 0033 Decision 11, 4 phase 3, agreed by Drake on 2026-10-15). On 2026-10-18 the hosted test workflows were removed; the 5 only test-related workflow left is AIEN Verification (`.github/workflows/aien-verification.yml`), 6 which builds nothing from this repository and only checks the bundle the Spark signs. The manual 7 `qualification` workflow stays: it probes a live model endpoint on a self-hosted runner and tests no 8 code on GitHub. Each former hosted job is a Spark gate in `tests/gates/`. 9 10 ## What happens to every pull request 11 12 1. The Spark worker (`aien-test worker --github`, aien-sovereign-core `tools/aien-test`) sees the 13 new head, runs the gates in `tests/gates/` that the change touches plus `.aien/always`, inside 14 the Spark sandbox, and signs a bundle with the Spark key. It posts the commit status 15 `AIEN Verification (Spark)`. 16 2. The pipeline (`tools/aien-local-ci/pipeline.sh` in aien-sovereign-core, every 2 minutes) 17 checks the bundle against `.aien/verify.pub` on `main` and publishes it to 18 `aien-dev/aien-receipts` at `interplane//bundle.json`. 19 3. It then reruns the `AIEN Verification` workflow on that head. That workflow downloads the 20 bundle and verifies it on GitHub. Until the bundle is published the check is red with 21 `NOT_RUN`; that is expected and clears on the rerun. 22 23 ## How to get a pull request merged 24 25 Add the label **`ready-to-merge`** when the pull request is finished. The pipeline merges it 26 (merge commit) only when all of these hold for the current head: 27 28 - the label is exactly `ready-to-merge` and the pull request is not a draft; 29 - the Spark bundle for that head verifies as PASS, including every gate in `.aien/always`; 30 - the published copy in aien-receipts is byte-identical to the Spark's copy; 31 - every required check on `main` is green on that head, and no `AIEN Verification` run is pending. 32 33 Pushing a new commit moves the head; the pipeline tests the new head before it merges anything. 34 Without the label nothing is merged. Remove the label to stop a merge. 35 36 To add the label from a terminal use the REST call (`gh pr edit --add-label` can fail on 37 repositories with a Projects (classic) error): 38 `gh api -X POST repos/aien-dev/interplane-mv/issues//labels -f 'labels[]=ready-to-merge'`. 39 40 ## Changes to the pipeline itself 41 42 A head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or 43 `tools/aien-test/` is `BLOCKED_OPERATOR`: the worker does not run it on its own. The operator runs 44 it by hand on the Spark (`aien-local-ci once interplane --operator`); the signed bundle then 45 records the operator run and the checks pass. 46 47 ## Where to look 48 49 - Spark state: `aien-local-ci status`, journal `~/.local/state/aien-local-ci/journal.jsonl`, 50 pipeline journal `~/.local/state/aien-local-ci/pipeline.jsonl`. 51 - Published bundles: . 52 53 ## The AIEN adapter gate and its sibling checkouts 54 55 `INTERPLANE-ADAPTER-AIEN` (hosted job `adapter-aien`) builds `adapters/aien`, which links 56 aegis-runtime by path at `../../../interplane-audit/aegis-runtime` (and aegis-runtime reaches 57 `../aien-protocols`), both at the commits in `adapters/aien/PINS`. The Spark worker provides 58 `../aegis-runtime` and `../aien-protocols` (main, read-only; aien-sovereign-core 59 `tools/aien-local-ci/siblings`). `tests/gates/run.sh adapter-aien` builds the hosted layout in a 60 private temp directory (a copy of the commit beside local clones of the two siblings) and runs 61 the real `adapters/aien/setup-siblings.sh` there, which checks out the PINS commits without the 62 network. `adapters/aien/Cargo.toml` is unchanged, so a local developer build set up with 63 `setup-siblings.sh` keeps working.