Commit graph

889 commits

Author SHA1 Message Date
rUv
99dd9ec900 fix: bump Docker Rust version to 1.85 for edition2024 support
wit-bindgen 0.51.0 requires edition2024 which was stabilized in Rust 1.85.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:35:05 +00:00
rUv
0e09266365 fix: resolve fpga-transformer BackendSpec.as_ref, hnsw array indexing, rvf-cli version mismatches
- Fix BackendSpec.as_ref() error: backend is a struct, not Option; access options.early_exit directly
- Fix ii_IndexAttrNumbers array indexing: use [0] instead of .offset(0) for fixed-size [i16; 32]
- Bump rvf-cli deps to match rvf-launch 0.2.0 and rvf-server 0.2.0
- Update Docker image version label to 2.0.2

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:34:08 +00:00
github-actions[bot]
a53c3c77b9 chore: Update NAPI-RS binaries for all platforms
Built from commit e9a697a0f4

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-15 06:29:33 +00:00
github-actions[bot]
a7d09b535c chore: Update NAPI-RS binaries for all platforms
Built from commit 307abc802f

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-15 06:27:10 +00:00
github-actions[bot]
aa570e92aa chore: Update NAPI-RS binaries for all platforms
Built from commit 91c86a58c9

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-15 06:25:46 +00:00
rUv
7ca822b183 chore: bump @ruvector/postgres-cli to 0.2.7
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:25:23 +00:00
github-actions[bot]
439dbc4fe8 chore: Update NAPI-RS binaries for all platforms
Built from commit 18103b415e

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-15 06:23:50 +00:00
rUv
46bef67840 chore: bump and publish npm packages (ruvector 0.1.99, rvlite 0.2.4, rvf 0.1.3)
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:19:48 +00:00
rUv
86ff64bdd0 chore: bump npm package versions for publish
- ruvector: 0.1.97 -> 0.1.98
- rvlite: 0.2.2 -> 0.2.3
- @ruvector/rvf: 0.1.1 -> 0.1.2

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:18:38 +00:00
rUv
447faf48ec Merge pull request #172 from ruvnet/fix/hnsw-agent-sparql-lru-issues
fix: HNSW index bugs, agent/SPARQL crashes, lru security
2026-02-15 01:16:10 -05:00
rUv
c80370ba95 Merge remote-tracking branch 'origin/main' into fix/hnsw-agent-sparql-lru-issues
# Conflicts:
#	crates/rvf/README.md
#	crates/rvf/rvf-kernel/src/lib.rs
#	npm/packages/ruvector/package.json
#	npm/packages/rvf/package.json
#	npm/packages/rvlite/package.json
2026-02-15 06:15:42 +00:00
rUv
a1167f0be8 fix: HNSW index bugs, agent/SPARQL crashes, lru security (#152, #164, #167, #171, #148)
HNSW fixes:
- Extract vector dimensions from column atttypmod instead of hardcoding 128,
  which caused corrupted indexes for non-128-dim embeddings (#171, #164)
- Add page boundary checks in read_vector/read_neighbors to prevent
  segfaults on large tables with >100K rows (#164)
- Use BinaryHeap::into_sorted_vec() for deterministic result ordering
  instead of into_iter() which yields arbitrary order (#171)
- Handle non-kNN scans (COUNT, WHERE IS NOT NULL) gracefully by returning
  false from hnsw_gettuple when no ORDER BY operator is present (#152)

Agent/SPARQL fixes:
- Fix SQL type mismatch: ruvector_list_agents() and
  ruvector_find_agents_by_capability() now use RETURNS TABLE(...)
  matching the Rust TableIterator signatures instead of RETURNS SETOF jsonb (#167)
- Add empty query validation to ruvector_sparql() and
  ruvector_sparql_json() to prevent panics on invalid input (#167)
- Change workspace panic profile from "abort" to "unwind" so pgrx can
  convert Rust panics to PostgreSQL errors instead of killing the backend (#167)

Security:
- Bump lru dependency from 0.12 to 0.16 in ruvector-graph, ruvector-cli,
  and ruvLLM to resolve GHSA-xpfx-fvgv-hgqp Stacked Borrows violation (#148)

Version bumps: workspace 2.0.3, ruvector-postgres 2.0.2

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 06:15:00 +00:00
rUv
ead83f6403 chore: bump and publish npm packages
Published to npm:
- @ruvector/ruvf 0.1.2
- @ruvector/rvf-wasm 0.1.1
- @ruvector/rvf-node 0.1.1
- @ruvector/rvf-mcp-server 0.1.1
- ruvector 0.1.98
- rvlite 0.2.3

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 00:10:46 +00:00
rUv
962655318b feat(rvf): embed real Linux 6.8.12 kernel, fix Docker extract, update benchmarks
- Examples (self_booting, linux_microkernel, claude_code_appliance,
  live_boot_proof) now use KernelBuilder::build() which tries Docker
  first and falls back to builtin stub — real 5.2 MB bzImage embedded
- Fix Docker kernel extraction: clean up stale containers, pass dummy
  entrypoint for scratch-based images
- README: add real measured boot benchmarks (257ms boot→service,
  381ms boot→verify), kernel size comparison (5.1 MB general vs
  3.8 MB ultrafast = 26% smaller)
- Fix claude_code_appliance idempotency (remove old file before create)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-15 00:07:24 +00:00
rUv
de966df679 feat(rvf): add live boot proof, ultra-fast kernel config, and fast initramfs
- Add live_boot_proof.rs: end-to-end Docker boot + SSH + RVF verification
- Add ULTRAFAST_BOOT_CONFIG: sub-100ms kernel config (no NUMA/cgroups/ext4/netfilter)
- Add build_fast_initramfs(): minimal init path (3 mounts + direct service start)
- Add KernelBuilder::ultrafast() with optimized cmdline for fast boot
- Update README with live boot proof instructions and ultra-fast boot docs
- 5 new tests (44 total in rvf-kernel), all passing

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 23:55:25 +00:00
github-actions[bot]
b1c2653676 chore: Update NAPI-RS binaries for all platforms
Built from commit 745dd1ef1b

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-14 23:08:05 +00:00
rUv
39a4544c8b feat(rvf): RVF WASM integration, witness auto-append, real verification, prebuilt fallbacks, README examples
* feat(adr): add ADR-032 for RVF WASM integration into npx ruvector and rvlite

Documents phased integration plan: Phase 1 adds RVF as optional dep + CLI
command group to npx ruvector, Phase 2 adds RVF as storage backend for rvlite,
Phase 3 unifies shared WASM backend and MCP bridge.

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

* feat(adr): update ADR-032 with invariants, contracts, failure modes, and decision matrix

Adds: single writer rule, crash ordering with epoch reconciliation,
explicit backend selection (no silent fallback), cross-platform compat
rule, phase contracts with success metrics, failure mode test matrix,
hybrid persistence decision matrix, implementation checklist.

Closes #169

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

* feat(rvf): integrate RVF WASM into npx ruvector and rvlite (ADR-032)

Phase 1 implementation:
- Add @ruvector/rvf as optional dependency to ruvector package
- Create rvf-wrapper.ts with 10 exported functions matching core pattern
- Add 3-tier platform detection (core -> rvf -> stub) with explicit
  --backend rvf override that fails loud if package is missing
- Add 8 rvf CLI subcommands (create, ingest, query, status, segments,
  derive, compact, export) routed through the wrapper
- 5 Rust smoke tests validating persistence across restart, deletion
  persistence, compaction stability, and adapter compatibility

Phase 2 foundations:
- Add rvf-backend feature flag to rvlite Cargo.toml (default off)
- Create epoch reconciliation module for hybrid RVF + IndexedDB sync
- Add @ruvector/rvf-wasm as optional dep to rvlite npm package
- Add rvf-adapter-rvlite to workspace members

All tests green: 237 RVF core, 23 adapter, 4 epoch, 5 smoke.

Refs: #169

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

* feat(rvf): complete ADR-032 phases 1-3 — epoch, lease, ID map, MCP tools, compat tests

Phase 2 Rust: full epoch reconciliation (EpochTracker with AtomicU64, 23 tests),
writer lease with file lock and PID-based stale detection (12 tests),
direct ID mapping trait with DirectIdMap and OffsetIdMap (20 tests).

Phase 2 JS: createWithRvf/saveToRvf/loadFromRvf factories, BrowserWriterLease
with IndexedDB heartbeat, rvf-migrate and rvf-rebuild CLI commands, epoch sync
helpers. +541 lines to index.ts, new cli-rvf.ts (363 lines).

Phase 3: 3 MCP rvlite tools (rvlite_sql, rvlite_cypher, rvlite_sparql),
CI wasm-dedup-check workflow, 6 cross-platform compat tests, shared peer dep.

Phase 1: 4 RVF smoke integration tests (full lifecycle, cosine, multi-restart,
metadata). Node.js CLI smoke test script.

81 new Rust tests passing. ADR-032 checklist fully complete.

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

* chore: bump versions and fix TS/README for npm publish

- ruvector 0.1.88 → 0.1.97 (match npm registry)
- rvlite 0.2.1 → 0.2.2
- @ruvector/rvf 0.1.0 → 0.1.1
- Fix MCP command in ruvector README (mcp-server → mcp start)
- Fix WASM type conflicts in rvlite index.ts (cast dynamic imports to any)

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

* feat(rvf): add witness auto-append, real CLI verification, prebuilt fallbacks, and README examples

Five "What's NOT Automatic" gaps fixed:
1. Witness auto-append: WitnessConfig in RvfOptions auto-records ingest/delete/compact
   operations as WITNESS_SEG entries with SHAKE-256 hash chains
2. verify-witness CLI: Real hash chain verification — extracts WITNESS_SEG payloads,
   runs verify_witness_chain() with full SHAKE-256 validation
3. verify-attestation CLI: Real kernel image hash verification and attestation
   witness chain validation
4. Prebuilt kernel fallback: KernelBuilder::from_builtin_minimal() produces valid
   bzImage without Docker
5. Prebuilt eBPF fallback: EbpfCompiler::from_precompiled() produces valid BPF ELF
   without clang; Launcher::check_requirements()/dry_run() for QEMU detection

README examples added to all 3 packages:
- crates/rvf/README.md: Proof of Operations section
- npm/packages/rvf/README.md: 7 real-world examples
- npm/packages/ruvector/README.md: Working cognitive container examples

830 tests passing, workspace compiles cleanly.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 18:03:26 -05:00
rUv
d924edf86d feat(rvf): add witness auto-append, real CLI verification, prebuilt fallbacks, and README examples
Five "What's NOT Automatic" gaps fixed:
1. Witness auto-append: WitnessConfig in RvfOptions auto-records ingest/delete/compact
   operations as WITNESS_SEG entries with SHAKE-256 hash chains
2. verify-witness CLI: Real hash chain verification — extracts WITNESS_SEG payloads,
   runs verify_witness_chain() with full SHAKE-256 validation
3. verify-attestation CLI: Real kernel image hash verification and attestation
   witness chain validation
4. Prebuilt kernel fallback: KernelBuilder::from_builtin_minimal() produces valid
   bzImage without Docker
5. Prebuilt eBPF fallback: EbpfCompiler::from_precompiled() produces valid BPF ELF
   without clang; Launcher::check_requirements()/dry_run() for QEMU detection

README examples added to all 3 packages:
- crates/rvf/README.md: Proof of Operations section
- npm/packages/rvf/README.md: 7 real-world examples
- npm/packages/ruvector/README.md: Working cognitive container examples

830 tests passing, workspace compiles cleanly.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 23:02:48 +00:00
rUv
4868043461 chore: bump versions and fix TS/README for npm publish
- ruvector 0.1.88 → 0.1.97 (match npm registry)
- rvlite 0.2.1 → 0.2.2
- @ruvector/rvf 0.1.0 → 0.1.1
- Fix MCP command in ruvector README (mcp-server → mcp start)
- Fix WASM type conflicts in rvlite index.ts (cast dynamic imports to any)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 22:13:03 +00:00
rUv
de04713621 feat(rvf): complete ADR-032 phases 1-3 — epoch, lease, ID map, MCP tools, compat tests
Phase 2 Rust: full epoch reconciliation (EpochTracker with AtomicU64, 23 tests),
writer lease with file lock and PID-based stale detection (12 tests),
direct ID mapping trait with DirectIdMap and OffsetIdMap (20 tests).

Phase 2 JS: createWithRvf/saveToRvf/loadFromRvf factories, BrowserWriterLease
with IndexedDB heartbeat, rvf-migrate and rvf-rebuild CLI commands, epoch sync
helpers. +541 lines to index.ts, new cli-rvf.ts (363 lines).

Phase 3: 3 MCP rvlite tools (rvlite_sql, rvlite_cypher, rvlite_sparql),
CI wasm-dedup-check workflow, 6 cross-platform compat tests, shared peer dep.

Phase 1: 4 RVF smoke integration tests (full lifecycle, cosine, multi-restart,
metadata). Node.js CLI smoke test script.

81 new Rust tests passing. ADR-032 checklist fully complete.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 22:08:05 +00:00
rUv
7dca3a4406 feat(rvf): integrate RVF WASM into npx ruvector and rvlite (ADR-032)
Phase 1 implementation:
- Add @ruvector/rvf as optional dependency to ruvector package
- Create rvf-wrapper.ts with 10 exported functions matching core pattern
- Add 3-tier platform detection (core -> rvf -> stub) with explicit
  --backend rvf override that fails loud if package is missing
- Add 8 rvf CLI subcommands (create, ingest, query, status, segments,
  derive, compact, export) routed through the wrapper
- 5 Rust smoke tests validating persistence across restart, deletion
  persistence, compaction stability, and adapter compatibility

Phase 2 foundations:
- Add rvf-backend feature flag to rvlite Cargo.toml (default off)
- Create epoch reconciliation module for hybrid RVF + IndexedDB sync
- Add @ruvector/rvf-wasm as optional dep to rvlite npm package
- Add rvf-adapter-rvlite to workspace members

All tests green: 237 RVF core, 23 adapter, 4 epoch, 5 smoke.

Refs: #169

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 20:15:57 +00:00
rUv
948d659d98 feat(adr): update ADR-032 with invariants, contracts, failure modes, and decision matrix
Adds: single writer rule, crash ordering with epoch reconciliation,
explicit backend selection (no silent fallback), cross-platform compat
rule, phase contracts with success metrics, failure mode test matrix,
hybrid persistence decision matrix, implementation checklist.

Closes #169

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 20:08:37 +00:00
rUv
33f4fcba05 feat(adr): add ADR-032 for RVF WASM integration into npx ruvector and rvlite
Documents phased integration plan: Phase 1 adds RVF as optional dep + CLI
command group to npx ruvector, Phase 2 adds RVF as storage backend for rvlite,
Phase 3 unifies shared WASM backend and MCP bridge.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-14 19:38:11 +00:00
github-actions[bot]
06304d2b2b chore: Update NAPI-RS binaries for all platforms
Built from commit 6e3b09dd0e

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-14 18:19:36 +00:00
rUv
c7a5f228c9 feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166)
* feat(rvf): add RuVector Format universal substrate specification

Research and design for RVF — a streaming, progressive, adaptive, quantum-secure
binary format for vector intelligence. Covers append-only segment model, two-level
tail manifests, temperature tiering, progressive HNSW indexing, epoch-based overlay
system, SIMD-optimized query paths, WASM microkernel for Cognitum tiles, domain
profiles (RVDNA, RVText, RVGraph, RVVision), and post-quantum cryptography.

https://claude.ai/code/session_01DDqjGE51JpsRE3DgUjFyjW

* feat(rvf): add deletion, filtered search, concurrency, and operations specs

Fill four specification gaps in the RVF format design:
- spec/07: Vector deletion lifecycle, JOURNAL_SEG wire format, deletion bitmaps
- spec/08: Filtered search with META_SEG, METAIDX_SEG, filter expression language
- spec/09: Writer locking, reader-writer coordination, versioning, space reclamation
- spec/10: Batch operations API, error codes, network streaming protocol

Also fixes the segment header field conflict between spec/01 and wire/binary-layout.md
(checksum_algo/compression now u8, adds uncompressed_len at 0x38).

https://claude.ai/code/session_01DDqjGE51JpsRE3DgUjFyjW

* feat(rvf): add RuVector Format SDK, 40 examples, MCP server, and documentation

Complete RVF implementation including:
- 12 Rust crates (rvf-types, rvf-wire, rvf-manifest, rvf-index, rvf-quant,
  rvf-crypto, rvf-runtime, rvf-import, rvf-wasm, rvf-node, rvf-server,
  plus integration tests)
- 40 runnable examples covering core storage, agentic AI, production
  patterns, vertical domains, exotic capabilities, runtime targets,
  network/security, POSIX/systems, and network operations
- TypeScript SDK (npm/packages/rvf) with RvfDatabase class
- MCP server (npm/packages/rvf-mcp-server) with stdio and SSE transports
- Node.js N-API bindings (npm/packages/rvf-node)
- WASM package (npm/packages/rvf-wasm)
- ADR-029 (canonical format), ADR-030 (computational container),
  ADR-031 (example repository)
- DNA-style lineage provenance, computational containers (KERNEL_SEG,
  EBPF_SEG), witness chains, TEE attestation, domain profiles
- Superseded ADR annotations for ADR-001, ADR-005, ADR-006, ADR-018-021

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

* feat(rvf): add CLI, WASM store, generate_all, and 46 output .rvf files

- Add rvf-cli crate (665 lines, 9 subcommands: create/ingest/query/delete/status/inspect/compact/derive/serve)
- Add WASM control plane store (alloc_setup, segment, store modules) for ~46 KB binary
- Add generate_all.rs example producing 46 persistent .rvf files in output/
- Add Node.js N-API bindings for lineage, kernel/eBPF, and inspection
- Add npm TypeScript backend/database/types for RVF integration
- Update READMEs with CLI sections, MCP server docs, and crate map (13 crates)
- All 40 examples verified passing

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

* feat(rvf): add Claude Code appliance, improve Quick Start, fix API docs

- Add claude_code_appliance.rs: self-booting RVF with SSH + Claude Code
  install (curl -fsSL https://claude.ai/install.sh | bash), 3 SSH users,
  eBPF filter, 20-package manifest, witness chain, lineage snapshot
- Improve Quick Start: Install section (crate/CLI/npm/WASM/MCP), WASM
  browser example, generate_all reference, expanded Rust crate deps
- Fix embed_kernel/embed_ebpf API docs to match actual signatures
  (u8 params with `as u8` cast, 6-param kernel, Option<&[u8]> btf)
- Update generate_all.rs: add claude_code_appliance generator (47 files)
- Regenerate all 47 output .rvf files

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

* feat(rvf): add RVCOW branching, real kernel/eBPF/launcher, 795 tests

Vector-native copy-on-write branching (ADR-031) with four new segment
types (COW_MAP 0x20, REFCOUNT 0x21, MEMBERSHIP 0x22, DELTA 0x23),
real Linux microkernel builder, QEMU microVM launcher, real eBPF
programs, and 128-byte KernelBinding for tamper-evident kernel-manifest
linkage.

New crates:
- rvf-kernel: Docker-based kernel build, real cpio/newc initramfs builder,
  SHA3-256 verification, prebuilt kernel support (37 tests)
- rvf-launch: QEMU microVM launcher with QMP shutdown, KVM/TCG detection,
  virtio-blk/net port forwarding, kernel extraction (8 tests)
- rvf-ebpf: 3 real BPF C programs (xdp_distance, socket_filter,
  tc_query_route) with clang compilation support (17 tests)

RVCOW runtime:
- CowEngine with read/write paths, write coalescing, snapshot-freeze
- CowMap (flat-array), MembershipFilter (bitmap), CowCompactor
- 3x read performance via pread optimization (1.3us/vector)
- Branch creation: 2.6ms for 10K vectors, child = 162 bytes

Security: 20-finding audit, 7 fixes applied including division-by-zero
guards, integer overflow checks, and KernelBinding::from_bytes_validated().

CLI: 8 new commands (launch, embed-kernel, embed-ebpf, filter, freeze,
verify-witness, verify-attestation, rebuild-refcounts), serve wired to
real rvf-server.

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

* feat(rvf): update README, add crate/npm READMEs, publish to crates.io and npm

- Rewrite README with cognitive container terminology, grouped features,
  4 comparison tables (vs Docker, Vector DBs, Git LFS, SQLite), updated
  benchmarks, architecture diagram, and 45 examples
- Add READMEs for rvf-kernel, rvf-launch, rvf-ebpf, rvf-import crates
- Add READMEs for @ruvector/rvf, rvf-node, rvf-wasm, rvf-mcp-server npm packages
- Fix Cargo.toml metadata (homepage, readme, categories, keywords) and
  add version specs to all path dependencies for crates.io publishing
- Fix clippy warnings in rvf-kernel/initramfs.rs and rvf-launch/lib.rs
- Published to crates.io: rvf-types, rvf-wire, rvf-manifest, rvf-quant,
  rvf-index, rvf-crypto (remaining crates pending rate limit)
- Published to npm: @ruvector/rvf, @ruvector/rvf-node, @ruvector/rvf-wasm,
  @ruvector/rvf-mcp-server

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

* chore: add rvf-kernel, rvf-ebpf, rvf-launch, rvf-server, rvf-import, rvf-cli to workspace

Include all 15 RVF crates plus integration tests and benchmarks in the
root workspace members list so cargo publish can resolve them by name.

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

* feat(rvf): add published packages, cognitive container branding, grouped capabilities

- Add Published Packages section with 13 crates.io + 4 npm tables
- Add Platform Support table (Linux, macOS, Windows, WASM, no_std)
- Expand capability table from 9 to 15 rows in 4 groups
- Rewrite all "How" descriptions in plain language
- Update .rvf diagram to show all 20 segment types
- Rename ADRs: computational container -> cognitive container
- Add emojis to all section headers

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

* feat: update root README with RVF cognitive containers, expanded capabilities

- Update intro: "gets smarter + ships as cognitive container"
- Add self-booting microservice row to Pinecone comparison table
- Expand capabilities from 34 to 42 features with dedicated RVF section
- Update "Think of it as" to include Docker comparison and RVF explanation
- Add RVF collapsed group to Ecosystem (13 crates, 4 npm, install commands)
- Add RVF to Platform & Edge section with install commands
- Add RVF npm packages (4) and Rust crates (13) to package reference
- Add RVF rows to feature comparison table (6 new rows)
- Add ADR-030/031 to ADR list
- Add RVF to Installation table, Project Structure
- Update attention mechanisms count from 39 to 40+
- Update npm count to 49+, Rust crates to 83
- Update footer with crates.io and RVF links

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

* feat: expand comparison table with emojis, cost, audit, branching, single-file

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

* docs: rewrite comparison table in plain language

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

* chore: clean up empty code change sections in the changes log

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-14 13:14:49 -05:00
github-actions[bot]
72615bffae chore: Update NAPI-RS binaries for all platforms
Built from commit 5b2edc47ed

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-13 03:51:40 +00:00
rUv
7602841bf3 feat(ospipe): RuVector-enhanced personal AI memory for Screenpipe (#163)
* feat(ospipe): implement OSpipe screenpipe integration with WASM + TypeScript SDK

Adds the OSpipe crate providing a quantum-enhanced screenpipe integration layer:
- Rust core library (7 modules): capture, storage, search, pipeline, safety, config, wasm
- WASM bindings via wasm-bindgen for browser deployment
- TypeScript SDK (@ruvector/ospipe) with SSE streaming and hybrid search
- Frame deduplication, PII safety gate, query routing, cosine similarity search
- 56 tests passing (24 unit + 32 integration), builds for native + wasm32
- Comprehensive ADR with Windows/macOS/Linux/WASM integration plans
- CI stub for cross-platform matrix builds (Linux, Windows, macOS, WASM)

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

* chore(ospipe): add README, fix clippy warnings, optimize dedup and pipeline

- Add comprehensive README.md with features, comparison tables, quick
  start guides, collapsed configuration reference, and API docs
- Fix all default clippy warnings (auto-fix + manual)
- Replace Vec with VecDeque in FrameDeduplicator for O(1) eviction
- Remove redundant frame.clone() in ingestion pipeline (move instead)
- Add is_empty() to WASM OsPipeWasm type
- Fix broken intra-doc link for cfg-gated bindings module
- Remove unused imports in integration tests (FrameContent, SearchConfig)

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

* feat(ospipe): integrate graph, attention, GNN, and quantum crates (Phase 2-4)

Add four new OSpipe modules integrating RuVector crates:

- graph: KnowledgeGraph wrapping ruvector-graph with heuristic entity
  extraction (URLs, emails, @mentions, capitalized phrases), entity/
  relationship CRUD, and frame entity ingestion
- search/reranker: AttentionReranker using ruvector-attention scaled
  dot-product attention for result re-ranking (0.6*attention + 0.4*cosine)
- learning: SearchLearner with EWC (ruvector-gnn) for continual learning
  without catastrophic forgetting, ReplayBuffer for feedback, and
  EmbeddingQuantizer for age-based vector compression
- quantum: QuantumSearch using ruqu-algorithms QAOA for diversity selection,
  Grover-inspired amplitude boosting, and optimal iteration estimation

All modules use cfg-gated dual implementations (native + WASM stub).
60 tests passing (59 integration + 1 doc-test), native + WASM builds clean.

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

* feat(ospipe): complete all 15 gap items — HNSW, persistence, REST API, MMR, safety fixes

Implements all remaining OSpipe features from the gap analysis:

High — Core functionality:
- HNSW indexing via ruvector-core with O(log n) ANN search (HnswVectorStore)
- EmbeddingModel trait + RuvectorEmbeddingModel for pluggable embedding backends
- JSON-file persistence layer (PersistenceLayer) for frames and config
- Axum REST API server matching TypeScript SDK endpoints (/search, /graph, /health, /stats, /route)
- Enhanced search pipeline wired into ingestion (router -> rerank -> quantum diversity)

Medium — Correctness:
- WASM/native routing consistency (aligned keyword sets and priority order)
- WASM/native safety consistency (email detection, deny keywords, CC/SSN patterns)
- MMR (Maximal Marginal Relevance) reranker for diversity vs relevance tradeoff
- Delete and update_metadata APIs on VectorStore and HnswVectorStore
- Email redaction preserves surrounding whitespace (tabs, newlines, multi-space)

Lower — Polish:
- TypeScript SDK: fetchWithRetry with exponential backoff, timeout, AbortSignal
- console_error_panic_hook init in WASM module
- WASM test scaffold (tests/wasm.rs)
- Quantization tiers in config (None -> Scalar -> Product -> Binary by age)
- All clippy warnings resolved (0 warnings)

82 tests passing, 1 doc-test passing, 0 clippy warnings.

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

* chore: update Cargo.lock after OSpipe dependency changes

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

* feat(ospipe): add server binary, WASM build, version-pin deps for publishing

- Add ospipe-server binary with CLI args (--port, --data-dir, --help, --version)
- Add tracing-subscriber for structured logging
- Version-pin all 9 path dependencies for crates.io readiness
- Fix ref -> ref mut for KnowledgeGraph mutable borrow in pipeline
- Fix redundant rustdoc link in embedding.rs
- Update ospipe-wasm package.json to match wasm-pack output filenames
- WASM build produces 145KB binary with full browser API

Build artifacts (not committed, in dist/):
- ospipe-server-linux-x86_64 (1.8MB)
- ospipe-server-linux-arm64 (1.6MB)
- ospipe-server-windows-x86_64.exe (3.9MB)
- ospipe_bg.wasm (145KB)
- @ruvector/ospipe npm tarball (13.9KB)

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

* docs: add OSpipe to root README, publish ospipe + deps to crates.io

Add OSpipe personal AI memory section to root README with features,
comparison table, install commands, and Rust quickstart.

Published to registries:
- ospipe v0.1.0 (crates.io)
- ruvector-delta-core v0.1.0 (crates.io)
- ruvector-cluster v2.0.2 (crates.io)
- ruvector-router-core v2.0.2 (crates.io)
- @ruvector/ospipe v0.1.0 (npm)
- @ruvector/ospipe-wasm v0.1.0 (npm)

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

* fix: add uuid dev-dep for tests, bump rvlite to 0.2.1

- Add uuid to OSpipe dev-dependencies to fix version mismatch in
  integration tests
- Bump rvlite npm package to 0.2.1 (0.2.0 blocked by npm)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 22:45:25 -05:00
github-actions[bot]
dadbe7f0f7 chore: Update NAPI-RS binaries for all platforms
Built from commit bc9ba4d2a3

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 18:51:15 +00:00
rUv
5a05099cd9 chore(ruqu): bump to v2.0.5 with updated READMEs
- Updated ruqu-core README with 5 simulation backends, cost-model planner,
  QEC control plane, OpenQASM 3.0, cryptographic witnesses, transpiler
- Fixed ruqu-wasm npm badge and imports to use @ruvector/ruqu-wasm scope
- Published to crates.io: ruqu-core, ruqu-algorithms, ruqu-exotic, ruqu-wasm
- Published to npm: @ruvector/ruqu-wasm@2.0.5

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 18:44:22 +00:00
github-actions[bot]
63ebe93c02 chore: Update NAPI-RS binaries for all platforms
Built from commit 384e67e257

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 18:10:19 +00:00
rUv
813448da86 chore(ruqu): bump all quantum crates to v2.0.4
Published to crates.io: ruqu-core, ruqu-algorithms, ruqu-exotic, ruqu-wasm
Published to npm: @ruvector/ruqu-wasm@2.0.4

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 18:03:46 +00:00
github-actions[bot]
d0ddd53a6b chore: Update NAPI-RS binaries for all platforms
Built from commit 1fc6a1a1a4

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 18:01:45 +00:00
rUv
2dd90bb152 feat(ruqu): add quantum execution intelligence engine with 5 backends
Transforms ruqu from classical coherence monitor into full-stack quantum execution intelligence engine (~2K to ~24K lines).

New: StateVector, Stabilizer, TensorNetwork, Clifford+T, and Hardware simulation backends. Cost-model planner, surface code decoder (union-find O(n*alpha(n))), QEC scheduler, noise models, OpenQASM 3.0 export, deterministic replay, and cross-backend verification.

PR #161
2026-02-12 12:55:21 -05:00
github-actions[bot]
8c51d4eb2d chore: Update NAPI-RS binaries for all platforms
Built from commit 1fc3beba37

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 16:21:06 +00:00
rUv
566a3692ba docs: add missing crates and examples to root README
Crates added:
- ruvector-delta-core, delta-graph, delta-index, delta-consensus,
  delta-wasm (behavioral change tracking subsystem)
- profiling (real-time coherence diagnostics)

Examples added:
- dna (rvDNA genomic analysis)
- delta-behavior (change tracking math)
- data (dataset discovery framework)
- prime-radiant (coherence engine demos)
- benchmarks (temporal reasoning benchmarks)
- vwm-viewer (visual vector world model viewer)

Updated counts: 70 crates, 34 examples, 34 capabilities.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 16:17:02 +00:00
github-actions[bot]
c5083c93f7 chore: Update NAPI-RS binaries for all platforms
Built from commit 2239d7cb91

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 16:03:29 +00:00
github-actions[bot]
d45e0fcd37 chore: Update NAPI-RS binaries for all platforms
Built from commit 4a020a0c14

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 15:59:36 +00:00
rUv
c708b285b6 docs: add rvDNA to all root README sections
- Capabilities: new "Genomics & Health" section (items 22-25)
- Installation table: cargo add rvdna, npm install @ruvector/rvdna
- npm Packages: @ruvector/rvdna under "Genomics & Health"
- Rust Crates: rvdna with crates.io badge and feature summary
- Updated capability count from 30+ to 34

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 15:59:02 +00:00
github-actions[bot]
d769feaf9f chore: Update NAPI-RS binaries for all platforms
Built from commit 2c68b1424f

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 15:55:43 +00:00
rUv
541cd82100 docs(rvdna): add health mission, npm/crate details, mermaid diagrams
- Add "Why This Exists" section: AI for instant, private, free
  genomic diagnostics available to everyone
- Add install table with crates.io and npm links
- Add full npm API table with JS examples and NAPI-RS platform matrix
- Replace ASCII architecture with 4 mermaid diagrams in collapsed
  sections: pipeline, .rvdna format layout, data flow, WASM deployment
- Add collapsed rvDNA section to root README.md

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 15:55:02 +00:00
rUv
25516b3d8b docs(rvdna): rewrite npm README for JavaScript users
Tailored README with JS/TS code examples, API reference tables,
WASM tutorial (browser + bundler setup), platform support table,
format comparison, and speed benchmarks. Bump to v0.1.1.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 15:50:34 +00:00
rUv
e6bb167d79 feat(rvdna): rename package to rvdna, publish to crates.io and npm
Rename dna-analyzer-example to rvdna across all source files, tests,
and benchmarks. Add crates.io metadata (repository, docs, keywords).
Publish rvdna v0.1.0 to crates.io and @ruvector/rvdna v0.1.0 to npm
with NAPI-RS platform loader, JS fallbacks, and TypeScript definitions.

Also publishes workspace deps at v2.0.2: ruvector-math, ruvector-core,
ruvector-filter, ruvector-collections, ruvector-graph, ruvector-gnn.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-12 15:47:00 +00:00
github-actions[bot]
d6301f4a4e chore: Update NAPI-RS binaries for all platforms
Built from commit 75491580a1

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 15:38:32 +00:00
rUv
a54baf4ec0 feat: add package.json for rvdna example with WASM bindings and build scripts 2026-02-12 15:32:55 +00:00
github-actions[bot]
98ba6fe263 chore: Update NAPI-RS binaries for all platforms
Built from commit b427e9ca1c

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2026-02-12 01:19:28 +00:00
rUv
c8294b3196 Merge pull request #159 from ruvnet/claude/dna-analyzer-example-ZgAiv 2026-02-11 20:14:30 -05:00
Claude
5266c3a7ff perf(dna): 1.8x kmer speedup, 10x SW memory reduction
Smith-Waterman: rolling 2-row DP replaces 3 full (Q+1)*(R+1) matrices.
Only prev+curr rows for H/E, single scalar for F. Memory drops from
~600KB to ~12KB for 100x500bp alignment, fitting L1 cache. Traceback
matrix retained (tb==0 encodes stop condition, no full H needed).

K-mer encoding: zero-allocation canonical hashing eliminates Vec alloc
per k-mer in MinHash::sketch() via dual MurmurHash3 (fwd + rc strands).

types.rs to_kmer_vector: rolling polynomial hash computes O(1) per
k-mer instead of O(k). Removes leading nucleotide, shifts, adds
trailing in constant time using precomputed 5^(k-1).

Benchmarks (100bp query x 500bp ref / k=11):
  kmer/encode_1kb:    4.1µs → 2.3µs  (1.78x)
  kmer/encode_100kb:  364µs → 199µs  (1.83x)
  smith_waterman:     416µs → 386µs  (1.08x, 10x less memory)
  full pipeline:      1.98ms → 1.52ms (1.30x end-to-end)

95 tests pass, zero failures.

https://claude.ai/code/session_013B6stXbYwAkWHbE16sjUrq
2026-02-11 13:59:26 +00:00
Claude
b1e2da474b feat(dna): implement missing capabilities + optimize hot paths
- Affine gap scoring: 3-matrix Smith-Waterman (H/E/F) with flat 1D
  arrays for cache-friendly access, direct slice indexing
- Indel detection: call_indel() for insertion/deletion from pileup data
- VCF output: VCFv4.3 format with proper CHROM/POS/REF/ALT/QUAL columns
- CYP2C19 pharmacogenomics: star allele calling (*1/*2/*3/*17),
  phenotype prediction, drug recommendations (clopidogrel, voriconazole)
- Cancer signal detection: methylation entropy + extreme ratio scoring,
  CancerSignalDetector with configurable risk threshold
- Molecular weight: monoisotopic Da for all 20 amino acids
- Isoelectric point: Henderson-Hasselbalch bisection with sidechain pKa
- K-mer encoding: zero-allocation canonical hashing (hash both strands,
  take min) eliminates O(n) Vec allocs per sliding window
- CRC32: lookup table replaces bit-by-bit (~8x faster header checksums)
- Benchmarks: added RVDNA, epigenomics, protein analysis groups

95 tests pass (54 lib + 12 kmer + 17 pipeline + 12 security)

https://claude.ai/code/session_013B6stXbYwAkWHbE16sjUrq
2026-02-11 05:31:16 +00:00
Claude
1aee7f1ef0 docs(dna): rewrite README with RVDNA format, real gene data, benchmarks
Complete README rewrite reflecting the final state of the project:
- Added "What It Does" section showing actual 8-stage demo output
- Added RVDNA AI-native format section with format comparison table
- Added real gene data section (HBB, TP53, BRCA1, CYP2D6, INS)
- Added actual Criterion benchmark numbers (155ns SNP, 12ms full pipeline)
- Fixed Quick Start to match working binary commands
- Added collapsible module guides with accurate line counts
- Added test suite summary (87 tests, zero mocks)
- Added project structure tree with all 13 source files
- Added 13 ADR index table
- Updated architecture diagram to include RVDNA output stage

https://claude.ai/code/session_013B6stXbYwAkWHbE16sjUrq
2026-02-11 05:03:43 +00:00
Claude
740595af07 feat(dna): add RVDNA AI-native format, real gene data, 8-stage pipeline
New RVDNA binary format (.rvdna) purpose-built for AI genomic analysis:
- 2-bit nucleotide encoding (4x compression vs ASCII FASTA)
- Pre-computed k-mer vectors with int8 quantization for instant HNSW search
- Sparse attention matrices in COO format for direct tensor consumption
- Variant probability tensors with f16 genotype likelihoods
- Zero-copy memory-mappable with 64-byte aligned sections
- CRC32 checksums, section-level integrity verification

Real human gene sequences from NCBI RefSeq:
- HBB (hemoglobin beta, NM_000518.5) - sickle cell gene
- TP53 (tumor suppressor, NM_000546.6) - exons 5-8 hotspot
- BRCA1 (DNA repair, NM_007294.4) - exon 11 fragment
- CYP2D6 (drug metabolism, NM_000106.6) - pharmacogenomic
- INS (insulin, NM_000207.3) - preproinsulin

Pipeline upgraded to 8 stages using real data:
1. Load 5 real human genes (2,340 bp total)
2. K-mer similarity matrix across gene panel
3. Smith-Waterman alignment on HBB
4. Sickle cell variant detection at HBB codon 6
5. HBB → hemoglobin beta translation (MVHLTPEEKSAVTALWGKVN verified)
6. Horvath epigenetic clock
7. CYP2D6 *4/*10 pharmacogenomics
8. RVDNA format conversion with pre-computed vectors

87 tests, 0 failures. ADR-013 documents the format specification.

https://claude.ai/code/session_013B6stXbYwAkWHbE16sjUrq
2026-02-11 04:48:28 +00:00