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/synapse/blob/main/docs/PIPELINE.md # synapse A component of the AienOS ecosystem. 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 `synapse / docs / PIPELINE.md` 59 lines ยท 3558 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. Each former 7 hosted job is a Spark gate in `tests/gates/`: 8 9 | Spark gate | Mirrors | Pool | 10 | --- | --- | --- | 11 | `SYNAPSE-WORKSPACE` | `portable-workspace`: `bash scripts/ci/portable.sh workspace` (fmt, clippy `-D warnings`, tests) | host | 12 | `SYNAPSE-CONFORMANCE` | `portable-conformance`: `bash scripts/ci/portable.sh conformance` with aien-architecture at ``29780e5`` | host (sibling `../aien-architecture`) | 13 | `SYNAPSE-ZERO-DISK-SECRETS` | no hosted step; no plaintext `.env*` files in the tree | portable, always-run | 14 15 `CRUMB-VERIFY` (the thin gate's `crumb verify .`) is retired: Crumbs left the active workflow under 16 DRA-97 (2026-11-07). The `.crumb` file and `crumb.lock` stay as history. 17 18 ## What happens to every pull request 19 20 1. The Spark worker (`aien-test worker`, aien-sovereign-core `tools/aien-test`) runs the gates in 21 `tests/gates/` that the change touches plus `.aien/always`, inside the Spark sandbox, and signs 22 a bundle with the Spark key. Until the continuous worker is live for this repository, the 23 operator starts each head by hand: `aien-local-ci once synapse `. 24 2. The pipeline (`tools/aien-local-ci/pipeline.sh` in aien-sovereign-core) checks the bundle 25 against `.aien/verify.pub` on `main` and publishes it to `aien-dev/aien-receipts` at 26 `synapse//bundle.json`. 27 3. It then reruns the `AIEN Verification` workflow on that head. That workflow downloads the 28 bundle and verifies it on GitHub. Until the bundle is published the check is red with 29 `NOT_RUN`; that is expected and clears on the rerun. 30 31 ## How to get a pull request merged 32 33 Add the label **`ready-to-merge`** when the pull request is finished. The pipeline merges it 34 (merge commit) only when all of these hold for the current head: 35 36 - the label is exactly `ready-to-merge` and the pull request is not a draft; 37 - the Spark bundle for that head verifies as PASS, including every gate in `.aien/always`; 38 - the published copy in aien-receipts is byte-identical to the Spark's copy; 39 - every required check on `main` is green on that head, and no `AIEN Verification` run is pending. 40 41 Pushing a new commit moves the head; the pipeline tests the new head before it merges anything. 42 Without the label nothing is merged. Remove the label to stop a merge. 43 44 To add the label from a terminal use the REST call (`gh pr edit --add-label` can fail on 45 repositories with a Projects (classic) error): 46 `gh api -X POST repos/aien-dev/synapse/issues//labels -f 'labels[]=ready-to-merge'`. 47 48 ## Changes to the pipeline itself 49 50 A head that changes `.aien/`, `tests/gates/`, `.github/workflows/`, `.forgejo/` or 51 `tools/aien-test/` is `BLOCKED_OPERATOR`: the worker does not run it on its own. The operator runs 52 it by hand on the Spark (`aien-local-ci once synapse --operator`); the signed bundle then 53 records the operator run and the checks pass. 54 55 ## Where to look 56 57 - Spark state: `aien-local-ci status`, journal `~/.local/state/aien-local-ci/journal.jsonl`, 58 pipeline journal `~/.local/state/aien-local-ci/pipeline.jsonl`. 59 - Published bundles: .