Repository navigation
fix(core,delta-core): upsert without HNSW ghosts, reject NaN/Inf, real no_std delta-core - #1443
Merged
Merged
Conversation
…ectors, real no_std delta-core ruvector-core 2.5.1 (#1310, #1313), qualified on main 1b3e11d: - Filtered top-k already full at 1%/10% selectivity on 10k vectors (#1368); locked in by tests/retrieval_correctness.rs. - Re-inserting an existing id left the old HNSW node mapped to the id, so the old vector answered queries (ghost). add/add_batch now retire the old node, and unfiltered search only accepts an id's live node. - NaN/±Inf vectors were accepted. VectorDB::insert, insert_batch (whole batch, before storage) and search now reject them with InvalidInput. - npm/packages/core/test-retrieval.js runs the same contract through the native binding (fails on published @ruvector/core 0.1.37, passes on a binding built from this tree). ruvector-delta-core 0.1.1 (#1239): - Drop unused parking_lot, bincode, thiserror, arrayvec, serde_json. - serde is no_std+alloc; compression and simd imply std. - vec!/sqrt work without std (alloc macro_use, libm). - regression-guard builds it for thumbv7em-none-eabihf. Co-Authored-By: claude-flow <ruv@ruv.net>
This was referenced Nov 9, 2026
Closed
ruvnet
added a commit
to rudycelekli/RuVector
that referenced
this pull request
Nov 10, 2026
…ected release) - @ruvector/core 0.1.38 pins ruvector-core-* 0.1.35. The committed core binaries (bot commit debd3ca) are built from b59a81a: ruvnet#1299 (HNSW small graphs), ruvnet#1384 (baseline aarch64) and ruvnet#1443 (upsert without ghosts, NaN/Inf rejection). Gate: every binary built from >= b59a81a; linux x64/arm64 GLIBC_2.34; arm64 LDAPR 0 (0.1.34: 2,524); test.js and test-retrieval.js pass on x64 and on arm64 under qemu -cpu cortex-a72 (0.1.34 arm64 dies with SIGILL there). - regression-guard optional-deps-resolvable-on-npm: a core pin that equals the exact version in npm/core/platforms/* is co-released by protected-release.yml (platforms first) and cannot be on npm before the merge it is cut from; it is noted instead of failing. Any other unpublished pin still fails (checked locally with a 0.1.99 pin). Platforms and core now ship in one attested release instead of a hand-published platform step (ruvnet#1250). - protected-release runtime grader also runs test-retrieval.js against the sealed install. Co-Authored-By: claude-flow <ruv@ruv.net>
This was referenced Nov 10, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1310
Fixes #1313
Fixes #1239
ruvector-core 2.5.1: retrieval correctness (#1310, #1313)
Qualified on current
main(1b3e11d) before changing anything, withcrates/ruvector-core/tests/retrieval_correctness.rs:ghost of v0 at old position, score 0insert accepted NaNHnswIndex::add/add_batchnow drop the superseded node's reverse mapping. Unfiltered search also accepts only an ID's live node, which covers snapshots written by older versions. This replaces the reject semantics proposed in draft fix(core): reject nonfinite vectors and duplicate IDs before index mutation #1316, which is superseded.VectorDBboundary withInvalidInput.insert_batchvalidates the whole batch before storage, so a bad row leaves storage untouched.tests/filtered_search.rs. Both now run on every PR inregression-guard(ruvector-core-retrieval-correctness).npm level:
npm/packages/core/test-retrieval.jsruns the same contract through the native binding.@ruvector/core@0.1.37, installed in a fresh temp dir: filtered top-10 passes;FAIL upsertWithoutGhosts: hnsw=true: ghost of v0 at its old position;FAIL rejectsNonFinite: ... insert accepted NaN.ruvector-nodebinding built from this branch, dropped into the same install:retrieval correctness: all passed.The npm release of this fix goes through the attested
protected-release.yml(round 4).@ruvector/core0.1.38 built from before this merge will not contain it.ruvector-delta-core 0.1.1: real
no_std(#1239)parking_lot,bincode,thiserror,arrayvec,serde_json.serdeis nowno_std+alloc;compressionandsimdimplystd.vec!andsqrtwork withoutstd(allocmacro_use,libm).cargo build -p ruvector-delta-core --no-default-features [--features serde] --target thumbv7em-none-eabihfnow succeeds. The no_std dependency tree islibmandsmallveconly. On main it failed withcan't find crate for std.regression-guardjob (ruvector-delta-core-no-std) for this build.Test plan
cargo test --release -p ruvector-core: all suites pass (lib 289 passed)cargo test -p ruvector-delta-core --all-features: 31 passedserde)cargo checkon the delta-core dependents (delta-index/consensus/graph/wasm, mcp-brain-server)cargo test -p ruvector-node --libcargo clippyclean for both cratescargo publish --dry-runfor both cratesNote for reviewers
Open PR #1435 also edits
crates/ruvector-core/src/index/hnsw.rs(#1161 live identities). Whichever PR merges second needs a rebase.🤖 Generated with claude-flow