research(nightly): streaming WAL-ANN with coherence-gated merge (ADR-272)#688
Draft
ruvnet wants to merge 1 commit into
Draft
research(nightly): streaming WAL-ANN with coherence-gated merge (ADR-272)#688ruvnet wants to merge 1 commit into
ruvnet wants to merge 1 commit into
Conversation
…ed merge Implements ADR-272 (SWAL-ANN): a three-tier streaming vector index combining a searchable write-ahead log with quality-adaptive merge timing. - VectorWal: bounded in-memory buffer with brute-force linear-scan search - MergeGate trait + EagerGate, LazyGate, CoherenceGate implementations - NavGraph: incremental NSW with beam search, back-edge pruning, long-jump edges - WalAnnIndex<G>: generic streaming index tying all three tiers together - Sampled coherence scoring: O(1024·D) approximation via 16×64 sampling - Benchmark binary: 3 variants on 3K×64-dim, all passing recall@10≥0.70 - 15 unit tests, all passing; zero warnings Co-Authored-By: claude-flow <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_019c8AvD6CVnA7GZyqzxg3X9
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
crates/ruvector-wal-ann: a streaming vector index crate implementing a three-tier WAL → coherence gate → navigable graph architecture (ADR-272 / SWAL-ANN).Changes
New crate:
crates/ruvector-wal-annsrc/wal.rsVectorWalbounded in-memory buffer with brute-force linear-scan searchsrc/gate.rsMergeGatetrait +EagerGate,LazyGate,CoherenceGatesrc/graph.rsNavGraphincremental NSW with beam search, back-edge pruning, long-jump edgessrc/lib.rsWalAnnIndex<G>generic streaming index; sampled coherence scoring (O(1024·D))src/bin/benchmark.rs15 unit tests, 0 warnings, 0 unsafe.
New documents
docs/adr/ADR-272-streaming-wal-ann.md— Architecture Decision Recorddocs/research/nightly/2026-07-14-streaming-wal-ann/README.md— Full research documentdocs/research/nightly/2026-07-14-streaming-wal-ann/gist.md— SEO-optimized public articleWorkspace
Cargo.toml— addedcrates/ruvector-wal-annto workspace membersBenchmark Results
Dataset: 3 000 × 64-dim f32 Normal(0,1) · Queries: 100 × k=10
All variants PASS (recall@10 ≥ 0.70, mean latency < 5 ms). Memory: 1 156 KB per index at 3 K × 64-dim.
Architecture
CoherenceGatefires a merge whencoherence < 0.08 OR wal_size >= 256. Coherence is approximated in O(1024·D) via 16 WAL samples × 64 graph samples.Test Plan
cargo test -p ruvector-wal-ann— 15 unit tests passcargo run --release -p ruvector-wal-ann --bin benchmark— all 3 variants PASS acceptance criteriacargo fmt --package ruvector-wal-ann— zero formatting diffsRelated
docs/research/nightly/2026-07-14-streaming-wal-ann/🤖 Generated with claude-flow
https://claude.ai/code/session_019c8AvD6CVnA7GZyqzxg3X9
Generated by Claude Code