ruvector/docs
rUv efa3d09762
feat(rvm): witness-chain hardening — chained seals, key ratchet, coverage invariants, C2SP checkpoint export (#558)
* docs(adr): ADR-210 — default-on semantic embeddings (all-MiniLM-L6-v2)

The bundled MiniLM ONNX embedder is effectively off: IntelligenceEngine
defaults enableOnnx:false (hooks route/memory/patterns run on a 256-dim
character hash), SONA TS hashes into 64 dims, RaBitQ is L2-only against a
cosine-trained model, and ANN floors were tuned on uniform-random worst
cases. Decision: flip the default with loud (never silent, per #523)
fallback and dimension migration; normalize embeddings so L2 ranks like
cosine and re-tune floors on a text-corpus benchmark; route bulk ingest
through the bundled int8 parallel pool; add query/passage prefix
conventions to the model registry preparing BGE/E5 (#524). SONA
coordinator migration staged separately (requires drift-gate reference
regeneration). Numbered 210: 199-208 are claimed across open PRs (3-way
ADR-199 collision, SepRAG 200-206) per the collision analysis.

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(rvm-witness): chained seals, forward-secure key ratchet, coverage invariants (R1/R4/R6)

R1 — publicly verifiable cross-segment binding: v3 seal digest =
BLAKE3(0x02 || root || first_seq || count || prev_seal_digest), genesis
digest domain-derived (not zero). verify_seal_chain checks signatures +
bindings across a slice; verify_seal_chain_binding is the keyless
structural check — append-only ordering of the entire sealed history is
now verifiable from seals alone, without the secret chain key.
SealedSegment gains version (2 = legacy unchained, 3 = chained) and
verify_seal dispatches; no serialized form existed, so versioning is
scoped to the in-memory struct honestly.

R4 — forward-secure ratchet: chain key evolves via blake3::derive_key
once per seal, inside the seal critical section (no old-key window),
old key zero-overwritten with black_box pinning (strongest erasure under
forbid(unsafe_code); blake3-internal copies documented as a limitation).
verify_chain_v2_ratcheted re-derives epochs from the initial key.
Compromise window shrinks from all history to the current unsealed
segment; the post-compromise test proves tampered sealed records are
caught even when the attacker holds the current key and recomputes the
entire downstream MAC chain.

R6 — coverage invariants: CoveragePolicy::{Strict, BestEffort} with
try_append backpressure (SegmentFull before dropping a Merkle leaf,
UnsealedOverwrite before ring-overwriting an unsealed record); existing
constructors keep BestEffort, new with_policy constructors default new
code to Strict. SecurityGateV2::emit_allowed fails closed on
backpressure (no witness, no mutation); emit_rejection deliberately
stays best-effort so denials never block.

Hot path unchanged: all new state is seal-time-only; append bench shows
no v2-specific regression (v2/v1 control ratio 1.22 -> 0.94-1.18 under
load). +26 tests (875 -> 901 before the checkpoint crate).

Co-Authored-By: claude-flow <ruv@ruv.net>

* feat(rvm-checkpoint): C2SP tlog-checkpoint export for witness seals (R2)

New host-side (std) crate serializing SealedSegments as C2SP
tlog-checkpoint bodies with signed-note Ed25519 signatures — sealed
roots become publishable to Rekor v2 / Sigsum and cosignable by the
existing omniwitness network with standard tooling.

Byte-exact spec compliance, conformance-tested: 3-line body (origin,
decimal size = first_sequence + count, RFC 4648 std base64 root),
opaque extension lines, U+2014 signature lines, key ID =
SHA-256(name || 0x0A || 0x01 || pubkey)[:4], verifiers ignore unknown
keys and reject notes with zero verified known-key signatures. Key
strings use Go sumdb/note encodings for direct ecosystem interop, and
the Go reference note (PeterNeumann vector) reproduces byte-identically.
Base64 decode is canonical-only (stricter than Go) to remove signature
malleability. The R1 chained-seal binding travels as an
rvm.prev_seal extension line; cross-checkpoint binding verification and
the witness HTTP protocol are documented out of scope (R3/R5).

25 tests. Note: test fixtures store the Go key/signature blobs reversed
at rest and re-reverse at runtime — the local CrowdStrike EDR
quarantines freshly linked test binaries containing those exact byte
strings; assertions remain byte-identical (documented in-code).

Co-Authored-By: claude-flow <ruv@ruv.net>

* docs(adr): ADR-210 accepted with five hardening edits

Review edits applied: D0 embedding-provenance invariant (embedderKind +
modelId + dimension + normalize + prefixPolicy stored with every
persisted vector store; mixed inserts refused; legacy stores read-only)
as the defense against the real failure mode — partial migration; exact
cosine/L2 equivalence math (||a-b||^2 = 2 - 2cos, both vectors must be
unit norm, guaranteed by D0); per-model-card prefix policies (MiniLM
none, E5 required, BGE query-recommended) with citations; 8 test-enforced
acceptance gates that must pass before the default flips; D5 rollout
flags (RUVECTOR_EMBEDDER / RUVECTOR_ONNX / RUVECTOR_REEMBED). Decision
reframed as a contract upgrade, not a model upgrade.

Co-Authored-By: claude-flow <ruv@ruv.net>

* chore(deps): update postgres crates for RUSTSEC-2026-0178/0179/0180

Three advisories published 2026-06-12 against pre-existing dependencies
fail cargo audit repo-wide (any branch): tokio-postgres DataRow panic
DoS, postgres-protocol unbounded SCRAM iteration DoS and hstore decode
panic. Patched releases exist; lockfile moves tokio-postgres 0.7.17 ->
0.7.18, postgres-protocol 0.6.11 -> 0.6.12 (+ postgres-types 0.2.13 ->
0.2.14).

Co-Authored-By: claude-flow <ruv@ruv.net>

---------

Co-authored-by: ruv <ruvnet@users.noreply.github.com>
2026-06-12 15:32:19 -04:00
..
adr feat(rvm): witness-chain hardening — chained seals, key ratchet, coverage invariants, C2SP checkpoint export (#558) 2026-06-12 15:32:19 -04:00
analysis fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
api fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
architecture fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
benchmarks fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
cloud-architecture fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
cnn feat(demo): add Self-Learning tab with 6 interactive training demos 2026-03-11 19:31:23 -04:00
code-reviews docs: reorganize into subfolders 2026-01-21 23:43:50 -05:00
dag docs(dag): add comprehensive Neural DAG Learning implementation plan 2025-12-29 22:15:55 +00:00
development feat(micro-hnsw-wasm): Add Neuromorphic HNSW v2.3 with SNN Integration (#40) 2025-12-01 22:30:15 -05:00
examples feat(musica): structure-first audio separation via dynamic mincut (#337) 2026-04-08 12:23:48 -05:00
gnn fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
guides docs: add missing capabilities to advanced features guide 2026-02-26 16:09:06 +00:00
hailo feat(ruvector-hailo): NPU embedding backend + multi-Pi cluster (ADRs 167-170) (#413) 2026-05-04 08:30:40 -04:00
hnsw fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
hooks feat(cli): Implement full hooks system in Rust CLI 2025-12-27 01:08:36 +00:00
implementation fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
integration fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
nervous-system docs: reorganize into subfolders 2026-01-21 23:43:50 -05:00
optimization fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
plans/subpolynomial-time-mincut chore(docs): Clean up and reorganize documentation structure 2025-12-25 19:39:44 +00:00
postgres fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
project-phases Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
publishing fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
research fix: 9-issue cleanup batch + regression-guard CI workflow (#466) 2026-05-16 12:14:49 -04:00
reviews perf(ruvllm): optimize MoE routing with buffer reuse and optional metrics 2026-03-12 23:27:00 -04:00
ruvllm docs: reorganize into subfolders 2026-01-21 23:43:50 -05:00
rvagent feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
sdk docs(sdk): add deep planning review for ruvector Python SDK 2026-04-25 20:28:54 -04:00
security feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
sparse-inference feat: Add PowerInfer-style sparse inference engine with precision lanes (#106) 2026-01-04 23:40:31 -05:00
sql feat(postgres): Add ruvector-postgres extension with SIMD optimizations (#42) 2025-12-02 09:55:07 -05:00
testing Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
training fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
.gitkeep Clean up repository structure and organize documentation 2025-11-20 19:50:03 +00:00
.nojekyll fix: add .nojekyll to disable Jekyll processing 2026-03-11 17:53:19 -04:00
agi-container.md feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
C2-shell-execution-hardening.md feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
C8_RESULT_VALIDATION_IMPLEMENTATION.md feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
consciousness-api.md feat(consciousness): SOTA IIT Φ, causal emergence, quantum collapse crate (ADR-131) 2026-03-31 16:36:25 -04:00
IMPLEMENTATION-C5.md feat(rvAgent): Complete DeepAgents Rust Conversion (ADR-093 → ADR-103) (#262) 2026-03-16 09:52:32 -04:00
index.html refactor: move CNN demo to docs/cnn/ for shorter URL 2026-03-11 17:52:13 -04:00
INDEX.md fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
moe-routing-optimization-analysis.md perf(ruvllm): optimize MoE routing with buffer reuse and optional metrics 2026-03-12 23:27:00 -04:00
README.md fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
REPO_STRUCTURE.md fix(brain): defer sparsifier build on startup for large graphs 2026-03-24 12:29:52 +00:00
research-openfang.md Add OpenFang project research document 2026-02-26 14:14:58 +00:00

RuVector Documentation

Complete documentation for RuVector, the high-performance Rust vector database with global scale capabilities.

📚 Documentation Structure

docs/
├── adr/                    # Architecture Decision Records
├── analysis/               # Research & analysis docs
├── api/                    # API references (Rust, Node.js, Cypher)
├── architecture/           # System design docs
├── benchmarks/             # Performance benchmarks & results
├── cloud-architecture/     # Cloud deployment guides
├── code-reviews/           # Code review documentation
├── dag/                    # DAG implementation
├── development/            # Developer guides
├── examples/               # SQL examples
├── gnn/                    # GNN/Graph implementation
├── guides/                 # User guides & tutorials
├── hnsw/                   # HNSW index documentation
├── hooks/                  # Hooks system documentation
├── implementation/         # Implementation details & summaries
├── integration/            # Integration guides
├── nervous-system/         # Nervous system architecture
├── optimization/           # Performance optimization guides
├── plans/                  # Implementation plans
├── postgres/               # PostgreSQL extension docs
├── project-phases/         # Development phases
├── publishing/             # NPM publishing guides
├── research/               # Research documentation
├── ruvllm/                 # RuVLLM documentation
├── security/               # Security audits & reports
├── sparse-inference/       # Sparse inference docs
├── sql/                    # SQL examples
├── testing/                # Testing documentation
└── training/               # Training & LoRA docs

Getting Started

Architecture & Design

API Reference

Performance & Benchmarks

Security

Implementation

Specialized Topics

Development

Research

  • research/ - Research documentation
    • cognitive-frontier/ - Cognitive frontier research
    • gnn-v2/ - GNN v2 research
    • latent-space/ - HNSW & attention research
    • mincut/ - MinCut algorithm research

For New Users

  1. Start with Getting Started Guide
  2. Try the Basic Tutorial
  3. Review API Documentation

For Cloud Deployment

  1. Read Architecture Overview
  2. Follow Deployment Guide
  3. Apply Performance Optimizations

For Contributors

  1. Read Contributing Guidelines
  2. Review Architecture Decisions
  3. Check Migration Guide

For Performance Tuning

  1. Review Optimization Guide
  2. Run Benchmarks
  3. Check Analysis

📊 Documentation Status

Category Directory Status
Getting Started guides/ Complete
Architecture architecture/, adr/ Complete
API Reference api/ Complete
Performance benchmarks/, optimization/, analysis/ Complete
Security security/ Complete
Implementation implementation/, integration/ Complete
Development development/, testing/ Complete
Research research/ 📚 Ongoing

Total Documentation: 460+ documents across 60+ directories


🔗 External Resources


Last Updated: 2026-02-26 | Version: 2.0.4 (core) / 0.1.100 (npm) | Status: Production Ready