Repository navigation
fix(core,graph): batch validation, live HNSW identities, generated IDs, replacement indexes - #1435
Conversation
af54324 to
7c2d289
Compare
|
Thanks @rudycelekli. This conflicted with #1443 (merged today, b59a81a), which landed the same upsert fix in You allow maintainer edits and the conflict was mechanical, so I rebased your four commits onto current main and force-pushed (with lease) to
Locally on the rebased head (7c2d289): |
|
Merged as 17489ed after a green CI run on the rebased head. Thanks @rudycelekli! |
…edge deletes Port of ruvnet#375 onto main after ruvnet#1435. ruvector-sona: `MicroLoRA::set_weights` now rejects NaN/Inf in either projection before mutating state, so loading corrupt weights from disk or another system cannot poison the adapter. Adds tests for NaN/Inf in each projection and for state preservation on a failed load; the new doc example imports `ruvector_sona::MicroLoRA` so it compiles as a doctest. ruvector-graph: `delete_edge` and `delete_edges_batch` persisted the deletion after removing the edge from memory and indexes, so a storage error left memory and disk disagreeing. Both now persist first and only then mutate memory and indexes. `delete_edge` holds the DashMap entry across the storage call, matching how ruvnet#1435 made `create_edge` disk-first; the batch path drops exactly the removed values from the indexes. ruvnet#375's `create_edge` hunk is dropped because ruvnet#1435 already landed the same ordering. Adds a test that single and batch deletes (with missing and repeated IDs) leave no type or adjacency membership behind. Co-Authored-By: kiki-kanri <a470666@gmail.com> Co-Authored-By: claude-flow <ruv@ruv.net>
Summary
One PR for the core and graph fixes, rebased on current main (including the HNSW changes from #1368 and #1299).
neighbor.d_idsearch loop does not match the currenthnsw_rsAPI.Closes #1160, #1161, #1167, #1174.
Test plan
cargo test -p ruvector-core --test memory_batch_validation --test hnsw_live_replacements --test memory_generated_idscargo test -p ruvector-graph --test node_replacement_indexesMade with Cursor