interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

Synapse conformance check finds its built program on the Spark

merged 78e2e660c675721d #114 · opened 2026-10-18 17:42 UTC · closed 2026-10-18 18:05 UTC · merged 2026-10-18 18:05 UTC

Imported from GitHub aien-dev/synapse#114, by drakestapleton

Labels: ready-to-merge

Base 2f06c455a5af8a5db7e0230c3692f08db21f61f2 · Head c0b4b9f18e7011dcddeb4e43ce4fd2126a969e9c

Merged on GitHub as f29337527e9aac090741db276fc9d08c328ba3d3; reachable from main f9aebaa739250f2f5bb1d29ac9a11a1ece9898b7 (observed 2026-11-18T16:39:09Z)

drakestapleton wrote on 2026-10-18 17:42 UTC

What this fixes

SYNAPSE-CONFORMANCE has never passed on the Spark pipeline. Its interop script looked for the built synapse-coord program only under ./target, but the Spark (and every agent worktree) builds into CARGO_TARGET_DIR. The program was never found, so 23 of the 29 interop cases failed without running and every open synapse PR was blocked.

scripts/crumb-coord-interop.sh and scripts/run_gate4_qualification.sh now look under CARGO_TARGET_DIR when it is set (a relative value is taken from where cargo ran), and fall back to ./target as before.

Evidence (Spark, 2026-10-18)

  • Before, on #107's head with CARGO_TARGET_DIR set: interop: 6 passed, 23 failed, overall NOT-QUALIFIED (same result as the Spark's own run).
  • After, this branch, same command (CARGO_TARGET_DIR=... bash tests/gates/run.sh conformance): interop: 28 passed, 0 failed, overall QUALIFIED, PASS portable conformance.
  • crumb verify . with the pinned tool (d0f0b95d): OK.

A second, separate cause on the Spark side (the trusted sibling map lacked synapse → aien-architecture) is fixed by running with main's map now and by aien-sovereign-core#657 for the installed pipeline.

🤖 Generated with Claude Code

Apply it

git checkout -b patch-78e2e660c675721d 2f06c455a5af8a5db7e0230c3692f08db21f61f2
curl -fsSL https://interplane.io/drakestapleton/synapse/patches/78e2e660c675721d.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/synapse
114
c0b4b9f18e7011dcddeb4e43ce4fd2126a969e9c
{"kind":"github-import","owner":"aien-dev","repo":"synapse","number":114,"url":"https://github.com/aien-dev/synapse/pull/114","export_sha256":"1c576073d3642d6130bfff61541dda3d27f03618b9224cb72ff5d1ad6d163116","imported_utc":"2026-11-18T16:39:09Z"}

Changes

diff --git a/.crumb b/.crumb
index 6a12dd2..fbe2996 100644
--- a/.crumb
+++ b/.crumb
@@ -45,14 +45,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-17T12:02:42Z",
+      "compiled_at": "2026-10-18T18:00:50Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:fb301066e5ae4d15cead28f810814b4f4772e79638563bee1c13b56c86c3a501",
+      "digest": "sha256:aeeffed618510abdbf5d4b005de2a610c62670155883acd35033de2860beb672",
       "evidence_files": 262,
       "evidence_root": "sha256:b25d2fcc4dd431ffce85a91a08342766e8f5d4b0309e16df46c008083835d98a",
       "files": 456,
-      "generated_at_commit": "77227b6b132bbd9ca2d0fbd86bffd84b3c509dbc",
-      "source_tree": "sha256:0b135d43305597f16d1212342c522b05be78f06b5fa8befc2e645c28cb31e584"
+      "generated_at_commit": "435fd3c139fe1566bb02cf10984abc0e96e3112e",
+      "source_tree": "sha256:c72e268f29d3f0714aee2861c4171dbff02ed1a63f2bf59ccf7b02c325ce8b28"
     },
     "synapse": {
       "component_paths": {
diff --git a/.github/workflows/aien-verification.yml b/.github/workflows/aien-verification.yml
index 3f670af..827e1fd 100644
--- a/.github/workflows/aien-verification.yml
+++ b/.github/workflows/aien-verification.yml
@@ -34,7 +34,7 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 30
     env:
-      REPO_SLUG: aien-spark/synapse
+      REPO_SLUG: aien-dev/synapse
       AIEN_TEST_PIN: c26f4d7ac3156088469b27462390f5b08ef4f436
       RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main
     steps:
@@ -86,7 +86,7 @@ jobs:
       - name: Checkout the pinned crumb tool source (aien-architecture @ d0f0b95d344b4c6628c3d868346932fd247ce168)
         uses: actions/checkout@v4
         with:
-          repository: aien-spark/aien-architecture
+          repository: aien-dev/aien-architecture
           ref: d0f0b95d344b4c6628c3d868346932fd247ce168
           path: .crumb-tool-src
 
@@ -110,7 +110,7 @@ jobs:
         if: steps.anchors.outputs.enrolled == 'true'
         uses: actions/checkout@v4
         with:
-          repository: aien-spark/aien-sovereign-core
+          repository: aien-dev/aien-sovereign-core
           ref: ${{ env.AIEN_TEST_PIN }}
           path: .aien-test-src
 
diff --git a/.github/workflows/portable.yml b/.github/workflows/portable.yml
index 8c534bd..5c5306b 100644
--- a/.github/workflows/portable.yml
+++ b/.github/workflows/portable.yml
@@ -29,7 +29,7 @@ jobs:
       - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
         if: matrix.gate == 'conformance'
         with:
-          repository: aien-spark/aien-architecture
+          repository: aien-dev/aien-architecture
           ref: 29780e56c9e6b9111d884e0d4b146737228c19f6
           path: .ci-architecture
           persist-credentials: false
diff --git a/README.md b/README.md
index 0edc0d8..608712d 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,7 @@ Synapse accelerates the high-frequency multi-agent inner loop (changeset creatio
 * [Gate 0 Empirical Baseline Receipt (`evidence/gate0-baseline/`)](evidence/gate0-baseline/baseline_report.json)
 * [Gate 4 Comparative Qualification Report](docs/GATE4_QUALIFICATION.md)
 * [Gate 4 Qualification Evidence (`evidence/gate4-qualification/`)](evidence/gate4-qualification/report.json), reproduced with `scripts/run_gate4_qualification.sh`
+* [Spark verification gates (`docs/PIPELINE.md`)](docs/PIPELINE.md): the interop and Gate 4 scripts honour `CARGO_TARGET_DIR`, so `SYNAPSE-CONFORMANCE` runs the same on the Spark as in a plain checkout
 
 ## License
 
diff --git a/scripts/crumb-coord-interop.sh b/scripts/crumb-coord-interop.sh
index 90d4060..9c7ac00 100755
--- a/scripts/crumb-coord-interop.sh
+++ b/scripts/crumb-coord-interop.sh
@@ -22,7 +22,10 @@ git -C "$ARCH" show "$PIN:tools/crumb/crumb.c" > "$T/crumb.c" || exit 3
 echo "crumb.c @ $PIN sha256 $(sha256sum "$T/crumb.c" | cut -c1-64)"
 cc -O2 -std=c11 -o "$T/crumb" "$T/crumb.c" || { echo "FAIL cc build"; exit 1; }
 (cd "$HERE" && cargo build -q -p synapse-coord --bin synapse-coord) || { echo "FAIL cargo build"; exit 1; }
-RS="$HERE/target/debug/synapse-coord"
+# The build may go to CARGO_TARGET_DIR (the Spark pipeline and agents set one); a relative
+# value is relative to $HERE, where cargo ran.
+TD=${CARGO_TARGET_DIR:-target}; case $TD in /*) ;; *) TD="$HERE/$TD" ;; esac
+RS="$TD/debug/synapse-coord"
 C="$T/crumb"
 
 # ---- one Git repository with a linked worktree for crumb.c; one shared store ----
diff --git a/scripts/run_gate4_qualification.sh b/scripts/run_gate4_qualification.sh
index f87c015..9229ea5 100755
--- a/scripts/run_gate4_qualification.sh
+++ b/scripts/run_gate4_qualification.sh
@@ -44,7 +44,9 @@ df -h "$WORK_PARENT"
 
 echo "== building synapse-bench (release)"
 (cd "$REPO_ROOT" && cargo build --release -p synapse-bench --offline)
-BIN="$REPO_ROOT/target/release/synapse-bench"
+# CARGO_TARGET_DIR, when set, is where cargo put the binary (relative to REPO_ROOT, where it ran).
+TD=${CARGO_TARGET_DIR:-target}; case $TD in /*) ;; *) TD="$REPO_ROOT/$TD" ;; esac
+BIN="$TD/release/synapse-bench"
 
 # Identity of the harness source that produced the evidence.
 SOURCE_REV="$(git -C "$REPO_ROOT" rev-parse HEAD)"