From 62d9fe14803a95d5b4297ca1d0dccc7c4e2083e1 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 12:42:05 -0500 Subject: [PATCH 1/4] scripts: find built binaries under CARGO_TARGET_DIR crumb-coord-interop.sh and run_gate4_qualification.sh looked only in ./target, so any run with CARGO_TARGET_DIR set (the Spark pipeline, agent worktrees) could not find synapse-coord: interop 6 passed, 23 failed and SYNAPSE-CONFORMANCE never passed on the Spark. With the fix the gate is QUALIFIED, interop 28 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 Co-authored-by: Drake Stapleton --- scripts/crumb-coord-interop.sh | 5 ++++- scripts/run_gate4_qualification.sh | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) 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)" From fa0a52005376092ee6206839e317e5676cf39eb5 Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 12:42:25 -0500 Subject: [PATCH 2/4] readme + crumb: link the Spark gates; recompile with pinned tool d0f0b95d Co-Authored-By: Claude Opus 5.5 --- .crumb | 8 ++++---- README.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.crumb b/.crumb index 6a12dd2..8814f2a 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-18T17:42:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:fb301066e5ae4d15cead28f810814b4f4772e79638563bee1c13b56c86c3a501", + "digest": "sha256:5bb7b025c5d1ac248a25841fb87468e63bee4e3cc40da8885a6ca3c3fb154511", "evidence_files": 262, "evidence_root": "sha256:b25d2fcc4dd431ffce85a91a08342766e8f5d4b0309e16df46c008083835d98a", "files": 456, - "generated_at_commit": "77227b6b132bbd9ca2d0fbd86bffd84b3c509dbc", - "source_tree": "sha256:0b135d43305597f16d1212342c522b05be78f06b5fa8befc2e645c28cb31e584" + "generated_at_commit": "4e503de01e2f57488b38aa8f638a2f8732d2c9b0", + "source_tree": "sha256:5921cb3fa79e87068a5c907114ed3490f24ca271de1d0b27cf071dca613e33dd" }, "synapse": { "component_paths": { 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 From 435fd3c139fe1566bb02cf10984abc0e96e3112e Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 13:00:50 -0500 Subject: [PATCH 3/4] ci: name the repositories by their aien-dev slugs The bridge rejected every Spark bundle with REPOSITORY_MISMATCH (bundle for github.com/aien-dev/synapse, gating github.com/aien-spark/synapse). The other repos already moved to aien-dev. Co-Authored-By: Claude Opus 5.5 Co-authored-by: Drake Stapleton --- .github/workflows/aien-verification.yml | 6 +++--- .github/workflows/portable.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 From c0b4b9f18e7011dcddeb4e43ce4fd2126a969e9c Mon Sep 17 00:00:00 2001 From: Drake Stapleton Date: Sun, 18 Oct 2026 13:00:50 -0500 Subject: [PATCH 4/4] crumb: recompile with pinned tool d0f0b95d Co-Authored-By: Claude Opus 5.5 --- .crumb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.crumb b/.crumb index 8814f2a..fbe2996 100644 --- a/.crumb +++ b/.crumb @@ -45,14 +45,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-18T17:42:32Z", + "compiled_at": "2026-10-18T18:00:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:5bb7b025c5d1ac248a25841fb87468e63bee4e3cc40da8885a6ca3c3fb154511", + "digest": "sha256:aeeffed618510abdbf5d4b005de2a610c62670155883acd35033de2860beb672", "evidence_files": 262, "evidence_root": "sha256:b25d2fcc4dd431ffce85a91a08342766e8f5d4b0309e16df46c008083835d98a", "files": 456, - "generated_at_commit": "4e503de01e2f57488b38aa8f638a2f8732d2c9b0", - "source_tree": "sha256:5921cb3fa79e87068a5c907114ed3490f24ca271de1d0b27cf071dca613e33dd" + "generated_at_commit": "435fd3c139fe1566bb02cf10984abc0e96e3112e", + "source_tree": "sha256:c72e268f29d3f0714aee2861c4171dbff02ed1a63f2bf59ccf7b02c325ce8b28" }, "synapse": { "component_paths": {