Skip to content

attention 2.3.1: real per-platform binaries, arm64 LDAPR gate (Pi 4 SIGILL) - #1456

Merged
ruvnet merged 1 commit into
mainfrom
sail/attention-2.3.1
Nov 10, 2026
Merged

ruvnet merged 1 commit into
mainfrom
sail/attention-2.3.1

Conversation

@ruvnet

@ruvnet ruvnet commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Bug. @ruvector/attention-linux-arm64-gnu@2.3.0 has 312 LDAPR instructions (2.2.3 had 305). Both were built before #1384 removed the workspace +rcpc / cortex-a76 flags, so they SIGILL on Cortex-A72 (Pi 4) and Carmel (Jetson Xavier).

Measured under qemu-aarch64-static -cpu cortex-a72 with an arm64 Node 20.18.1:

binary LDAPR cortex-a72 -cpu max
published 2.3.0 312 SIGILL runs
rebuilt from this branch (no RUSTFLAGS, same as CI) 0 loads; Dot/Flash/MultiHead compute finite outputs, Flash vs Dot max diff 3e-7 —

The 2.3.0 binary gives identical numbers under -cpu max, so the crash is purely the missing LRCPC feature.

Second bug found while fixing it. The build job packaged the wrong binaries. npm install pulls the host's previously published @ruvector/attention-<host> into node_modules, and the copy step's find ... ! -path */npm/* | head -1 picked that file up instead of the fresh attention.<platform>.node. On main today, the committed npm/linux-arm64-gnu binary is x86-64 (byte-identical to linux-x64) and npm/darwin-x64 is arm64. The copy step now takes the exact napi output path, and a new step asserts the file architecture per platform (file -b).

Gate. The linux-arm64-gnu job runs scripts/ci/check-arm64-node-binary.sh (from #1453): LDAPR must be 0 and GLIBC must be <=2.34. The script now also:

  • refuses non-aarch64 ELFs (the x86 file above passed the LDAPR count vacuously)
  • counts ldapr only in the mnemonic column (objdump prints the file path in its header)
  • no longer aborts under pipefail when a binary has no GLIBC_ symbols

Release. Platform packages and optionalDependencies go to 2.3.1 (the main package was already 2.3.1 on main, unpublished). After merge, all five platform packages and the main package will be published from the main-push run's CI artifacts, each passing the arch/LDAPR/GLIBC checks, and read back with a fresh install.

Other native packages with the same problem (current arm64 npm tarballs, same gate):

  • graph-node 2.1.3: 2464 LDAPR
  • ruvllm 2.1.0: 814 LDAPR, and GLIBC_2.39
  • diskann 0.1.3: 198 LDAPR
  • graph-transformer 2.0.4 and tiny-dancer 0.1.26: 0

Those need their own rebuilds and are not part of this PR.

🤖 Generated with claude-flow

@ruvector/attention-linux-arm64-gnu 2.3.0 contains 312 LDAPR instructions
(built before #1384 dropped the workspace +rcpc/cortex-a76 flags) and
SIGILLs on Cortex-A72 (Pi 4). Verified under qemu-aarch64 -cpu cortex-a72;
a rebuild from current main has 0 LDAPR and loads/computes there.

The build job also packaged the wrong files: npm install pulls the host's
published @ruvector/attention-<host> binary into node_modules, and the copy
step's find | head -1 picked that up instead of the fresh napi output. The
committed npm/linux-arm64-gnu binary is x86-64 and npm/darwin-x64 is arm64.
Copy exactly attention.<platform>.node, assert the file's architecture per
platform, and run the arm64 LDAPR/GLIBC gate.

check-arm64-node-binary.sh: refuse non-aarch64 ELFs (an x86 file passed the
LDAPR count vacuously), match ldapr only in the mnemonic column, and keep
running when a binary has no GLIBC_ symbols.

Bump the platform packages and optionalDependencies to 2.3.1.

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet
ruvnet merged commit 81cc550 into main Nov 10, 2026
72 of 74 checks passed
vitaly-z pushed a commit to vitaly-z/ruvector that referenced this pull request Nov 11, 2026
…2 qemu test

@ruvector/graph-node-linux-arm64-gnu 2.1.2/2.1.3 (the binary the 2.1.3
wrapper installs) has 2464 LDAPR instructions: it was built before ruvnet#1384
dropped Cortex-A76/+rcpc from the workspace .cargo/config.toml, so it
SIGILLs on Pi 4 / Jetson (Cortex-A72/A57). A rebuild from main is
LDAPR-free; this makes CI prove it on every build.

build-graph-node.yml:
- Prepare artifact takes the exact napi output index.<platform>.node
  instead of `find -name "index.*.node" | head -1` (same class as ruvnet#1456).
- Assert each binary's architecture matches its platform (file).
- Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh
  (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34).
- Run test.js with the fresh arm64 binary under qemu-aarch64 -cpu
  cortex-a72; the published 2.1.3 binary exits 132 (SIGILL) on the same
  command, the main build passes.

package.json: 2.1.3 -> 2.1.4; drop the untrue "wasm" keyword, add
"cypher" and "hypergraph". optionalDependencies stay at published
versions (optional-deps-resolvable-on-npm); the publish job locks them.

Co-Authored-By: claude-flow <ruv@ruv.net>
vitaly-z pushed a commit to vitaly-z/ruvector that referenced this pull request Nov 11, 2026
…emu test

@ruvector/diskann-linux-arm64-gnu 0.1.3 has 198 LDAPR instructions: it
was built before ruvnet#1384 dropped Cortex-A76/+rcpc from the workspace
.cargo/config.toml, so it SIGILLs on Pi 4 / Jetson (Cortex-A72/A57).
A rebuild from main is LDAPR-free; this makes CI prove it.

build-diskann.yml:
- Prepare artifact takes the exact napi output index.<platform>.node
  instead of `find npm/packages/diskann -name "*.node" | head -1`, which
  also matches node_modules (same class as ruvnet#1456).
- Assert each binary's architecture matches its platform (file).
- Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh
  (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34).
- Run test.js with the fresh arm64 binary under qemu-aarch64 -cpu
  cortex-a72 (build, search, delete, save/load, corrupt-file error).
- Platform package template: ADR-356 metadata (keywords, a description
  that names the parent, canonical ruvnet/ruvector URLs).

package.json stays 0.1.4 (bumped, never published). Keywords no longer
claim HNSW/GNN/knowledge-graph/link-prediction, which this package does
not do; they now name Vamana, ANN, PQ and SSD. optionalDependencies stay
at the published 0.1.3 (optional-deps-resolvable-on-npm); the publish
job locks them.

Co-Authored-By: claude-flow <ruv@ruv.net>
vitaly-z pushed a commit to vitaly-z/ruvector that referenced this pull request Nov 11, 2026
…, ADR-356 platform metadata

On top of the 22.04-container build (glibc floor 2.39 -> 2.34):

- Copy steps take the exact cargo output for the target
  (libruvllm.so / libruvllm.dylib / ruvllm.dll). The old chain first
  copied `examples/ruvLLM/*.node` if any existed, so a stray .node file
  would have shipped in place of the fresh build (same class as ruvnet#1456).
  The no-op `napi artifacts ... || true` is gone.
- Assert each binary's architecture matches its target (file).
- Gate linux-arm64 with scripts/ci/check-arm64-node-binary.sh
  (aarch64 ELF, 0 LDAPR, GLIBC <= 2.34).
- Smoke-test the arm64 binary under qemu-aarch64 -cpu cortex-a72:
  SimdOperations dot/cosine/softmax values and RuvLlmEngine.route().
  The published 2.1.0 binary dies with SIGILL on the same script.
- pull_request trigger (workflow, examples/ruvLLM sources, .cargo
  config) so the gate runs before merge; publish stays tag/dispatch-only.
- Platform packages: ADR-356 metadata (11-12 keywords, a description
  that names @ruvector/ruvllm, canonical ruvnet/ruvector URLs).

Co-Authored-By: claude-flow <ruv@ruv.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant