mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-06-01 06:10:31 +00:00
- ADR-154: embodied connectome runtime on RuVector (graph-native,
structural coherence analysis, counterfactual cuts, auditable).
Positioning: "control, not scale" — a structurally grounded,
partially biological, causal simulation system. Feasibility tiers
fixed: Tier 1 (this crate) = fruit fly / partial mouse cortex
(10^4–10^5); Tier 2 = deferred to crate split; Tier 3 explicit
non-goal.
- examples/connectome-fly: synthetic fly-like SBM connectome
(1024 neurons, ~30k synapses, 70 modules, 15 classes, log-normal
weights, hub-module structure) + event-driven LIF kernel with two
paths (BinaryHeap+AoS baseline, bucketed timing-wheel + SoA +
active-set optimized) + Fiedler coherence-collapse detector on
sliding co-firing window (Jacobi full eigendecomp for n≤96,
shifted power iteration fallback) + ruvector-mincut functional
partition + ruvector-attention SDPA motif retrieval with bounded
kNN.
- Acceptance criteria (ADR-154 §3.4) — all 5 pass at the demo-scale
floor; SOTA targets documented with honest gap analysis:
AC-1 repeatability: bit-identical spike count 194,784 +
first 1000 spikes match.
AC-2 motif emergence: precision@5 proxy = 0.600 (SOTA 0.80).
AC-3 partition alignment: class_hist L1 = 1.545; mincut ARI ≈ 0
vs greedy baseline 0.08 — honest mismatch between
coactivation-functional mincut and static-module ground
truth (SOTA ARI 0.75 is for the production static path).
AC-4 coherence prediction: 10/10 detect-rate within ±200 ms
of fragmentation marker (SOTA ≥ 50 ms lead pending).
AC-5 causal perturbation: z_cut = 5.55, z_rand = 1.57 —
targeted-cut effect HITS the SOTA 5σ bound; random-cut
is 0.57σ above the 1σ bound. Core differentiating claim
holds at demo scale.
- Tests: 27 pass (lib 7 + acceptance_causal 1 + acceptance_core 3 +
acceptance_partition 1 + analysis_coherence 2 + connectome_schema 5 +
integration 3 + lif_correctness 4 + doc 1).
- Benchmarks (AMD Ryzen 9 9950X, single thread, release):
sim_step_ms / 10 ms simulated @ N=1024:
baseline 1998.6 µs (±17.1)
optimized 511.6 µs (±2.1) → 3.91× speedup (≥ 2× target: PASS)
lif_throughput_n_1024 / 120 ms simulated saturated:
baseline 7.49 s, optimized 7.39 s → 1.01× (active-set collapses
in saturated regime; documented in BENCHMARK.md §4.4).
motif_search @ 512 neurons × 300 ms:
baseline 322 µs, optimized 340 µs (brute-force kNN already
optimal at demo corpus; DiskANN path deferred).
- BENCHMARK.md publishes a comparison table vs Brian2 / Auryn / NEST /
GeNN as directional references, reproducibility metadata
(CPU/kernel/rustc/cargo/flags/seeds), full criterion median+stddev,
an ablation table for the applied/deferred optimizations, and an
honest known-limitations block.
- Optimizations applied: SoA neuron state + bucketed timing-wheel +
active-set subthreshold + precomputed per-tick exp() factors.
Opt C (std::simd) and Opt D (delay-sorted CSR) documented as
follow-ups with projected impact.
- File-size discipline: every source file < 500 lines (largest:
lif/engine.rs at 348). Source LOC: 2772; tests 816; benches 213.
- Rust only. No MuJoCo / NeuroMechFly bindings. No consciousness /
upload / digital-person language. No modifications to existing
crates — only the workspace Cargo.toml members list is extended
to include the new example.
Do NOT push.
Co-Authored-By: claude-flow <ruv@ruv.net>
294 lines
9.7 KiB
TOML
294 lines
9.7 KiB
TOML
[workspace]
|
|
exclude = ["crates/micro-hnsw-wasm", "crates/ruvector-hyperbolic-hnsw", "crates/ruvector-hyperbolic-hnsw-wasm", "examples/ruvLLM/esp32", "examples/ruvLLM/esp32-flash", "examples/edge-net", "examples/data", "examples/ruvLLM", "examples/delta-behavior", "crates/rvf", "crates/rvf/*", "crates/rvf/*/*", "examples/rvf-desktop", "crates/mcp-brain-server"]
|
|
members = [
|
|
"crates/ruvector-core",
|
|
"crates/ruvector-node",
|
|
"crates/ruvector-wasm",
|
|
"crates/ruvector-cli",
|
|
"crates/ruvector-bench",
|
|
"crates/ruvector-metrics",
|
|
"crates/ruvector-filter",
|
|
"crates/ruvector-router-core",
|
|
"crates/ruvector-router-cli",
|
|
"crates/ruvector-router-ffi",
|
|
"crates/ruvector-router-wasm",
|
|
"crates/ruvector-server",
|
|
"crates/ruvector-snapshot",
|
|
"crates/ruvector-tiny-dancer-core",
|
|
"crates/ruvector-tiny-dancer-wasm",
|
|
"crates/ruvector-tiny-dancer-node",
|
|
"crates/ruvector-collections",
|
|
"crates/ruvector-cluster",
|
|
"crates/ruvector-raft",
|
|
"crates/ruvector-replication",
|
|
"crates/ruvector-graph",
|
|
"crates/ruvector-graph-node",
|
|
"crates/ruvector-graph-wasm",
|
|
"crates/ruvector-gnn",
|
|
"crates/ruvector-gnn-node",
|
|
"crates/ruvector-gnn-wasm",
|
|
"crates/ruvector-attention",
|
|
"crates/ruvector-attention-wasm",
|
|
"crates/ruvector-attention-node",
|
|
"crates/ruvector-cnn",
|
|
"crates/ruvector-cnn-wasm",
|
|
"crates/ruvector-mincut",
|
|
"crates/ruvector-mincut-wasm",
|
|
"crates/ruvector-mincut-node",
|
|
"crates/ruvector-mincut-gated-transformer",
|
|
"crates/ruvector-mincut-gated-transformer-wasm",
|
|
"crates/ruvector-postgres",
|
|
"crates/ruvector-nervous-system",
|
|
"examples/refrag-pipeline",
|
|
"examples/scipix",
|
|
"examples/google-cloud",
|
|
"examples/subpolynomial-time",
|
|
"crates/sona",
|
|
"crates/rvlite",
|
|
"crates/ruvector-nervous-system",
|
|
"crates/ruvector-dag",
|
|
"crates/ruvector-dag-wasm",
|
|
"crates/ruvector-nervous-system-wasm",
|
|
"crates/ruvector-economy-wasm",
|
|
"crates/ruvector-learning-wasm",
|
|
"crates/ruvector-exotic-wasm",
|
|
"crates/ruvector-attention-unified-wasm",
|
|
"crates/ruvector-fpga-transformer",
|
|
"crates/ruvector-fpga-transformer-wasm",
|
|
"crates/ruvector-sparse-inference",
|
|
"crates/ruvector-math",
|
|
"crates/ruvector-math-wasm",
|
|
"examples/benchmarks",
|
|
"crates/cognitum-gate-kernel",
|
|
"crates/cognitum-gate-tilezero",
|
|
"crates/mcp-gate",
|
|
"crates/mcp-brain",
|
|
"crates/mcp-brain-server",
|
|
"crates/ruQu",
|
|
"crates/ruvllm",
|
|
"crates/ruvllm-cli",
|
|
"crates/ruvllm-wasm",
|
|
"crates/prime-radiant",
|
|
"crates/ruvector-delta-core",
|
|
"crates/ruvector-delta-wasm",
|
|
"crates/ruvector-delta-index",
|
|
"crates/ruvector-delta-graph",
|
|
"crates/ruvector-delta-consensus",
|
|
"crates/ruvector-crv",
|
|
"crates/ruvector-temporal-tensor",
|
|
"crates/ruqu-core",
|
|
"crates/ruqu-algorithms",
|
|
"crates/ruqu-wasm",
|
|
"crates/ruqu-exotic",
|
|
"crates/ruvector-domain-expansion",
|
|
"crates/ruvector-domain-expansion-wasm",
|
|
"crates/ruvector-solver",
|
|
"crates/ruvector-solver-wasm",
|
|
"crates/ruvector-solver-node",
|
|
"examples/dna",
|
|
"examples/OSpipe",
|
|
"crates/ruvector-coherence",
|
|
"crates/ruvector-profiler",
|
|
"crates/ruvector-attn-mincut",
|
|
"crates/ruvector-cognitive-container",
|
|
"crates/ruvector-verified",
|
|
"crates/ruvector-verified-wasm",
|
|
"crates/ruvector-graph-transformer",
|
|
"crates/ruvector-graph-transformer-wasm",
|
|
"crates/ruvector-graph-transformer-node",
|
|
"examples/rvf-kernel-optimized",
|
|
"examples/verified-applications",
|
|
"crates/thermorust",
|
|
"crates/ruvector-dither",
|
|
"crates/ruvector-robotics",
|
|
"examples/robotics",
|
|
"crates/neural-trader-core",
|
|
"crates/neural-trader-coherence",
|
|
"crates/neural-trader-replay",
|
|
"crates/neural-trader-wasm",
|
|
# Kalshi integration (ADR-153)
|
|
"crates/ruvector-kalshi",
|
|
"crates/neural-trader-strategies",
|
|
# RuVix Cognition Kernel (organized under crates/ruvix/)
|
|
"crates/ruvix/crates/types",
|
|
"crates/ruvix/crates/region",
|
|
"crates/ruvix/crates/queue",
|
|
"crates/ruvix/crates/cap",
|
|
"crates/ruvix/crates/proof",
|
|
"crates/ruvix/crates/sched",
|
|
"crates/ruvix/crates/boot",
|
|
"crates/ruvix/crates/vecgraph",
|
|
"crates/ruvix/crates/nucleus",
|
|
# Phase B: Bare metal AArch64 support
|
|
"crates/ruvix/crates/hal",
|
|
"crates/ruvix/crates/aarch64",
|
|
"crates/ruvix/crates/drivers",
|
|
"crates/ruvix/tests",
|
|
"crates/ruvix/benches",
|
|
"crates/ruvix/examples/cognitive_demo",
|
|
# rvAgent — AI Agent Framework (DeepAgents Rust conversion)
|
|
"crates/rvAgent/rvagent-core",
|
|
"crates/rvAgent/rvagent-backends",
|
|
"crates/rvAgent/rvagent-middleware",
|
|
"crates/rvAgent/rvagent-tools",
|
|
"crates/rvAgent/rvagent-subagents",
|
|
"crates/rvAgent/rvagent-cli",
|
|
"crates/rvAgent/rvagent-acp",
|
|
"crates/rvAgent/rvagent-mcp",
|
|
"crates/rvAgent/rvagent-wasm",
|
|
# ETL pipeline example
|
|
"examples/train-discoveries",
|
|
# Spectral graph sparsification
|
|
"crates/ruvector-sparsifier",
|
|
"crates/ruvector-sparsifier-wasm",
|
|
# Consciousness metrics (IIT Φ, causal emergence)
|
|
"crates/ruvector-consciousness",
|
|
"crates/ruvector-consciousness-wasm",
|
|
"examples/cmb-consciousness",
|
|
"examples/gw-consciousness",
|
|
"examples/ecosystem-consciousness",
|
|
"examples/quantum-consciousness",
|
|
"examples/gene-consciousness",
|
|
"examples/climate-consciousness",
|
|
# JS bundle decompiler (ADR-135)
|
|
"crates/ruvector-decompiler",
|
|
"crates/ruvector-decompiler-wasm",
|
|
# DiskANN / Vamana (ADR-143)
|
|
"crates/ruvector-diskann",
|
|
"crates/ruvector-diskann-node",
|
|
# Boundary-first scientific discovery PoC
|
|
"examples/boundary-discovery",
|
|
# CMB Cold Spot boundary-first discovery
|
|
"examples/cmb-boundary-discovery",
|
|
# FRB population boundary discovery (CHIME-like data)
|
|
"examples/frb-boundary-discovery",
|
|
# Cosmic void boundary information content
|
|
"examples/void-boundary-discovery",
|
|
# Multi-regime temporal attractor boundary detection
|
|
"examples/temporal-attractor-discovery",
|
|
# Music genre boundary discovery via spectral graph bisection
|
|
"examples/music-boundary-discovery",
|
|
# Weather regime boundary detection (variance/correlation precedes temperature)
|
|
"examples/weather-boundary-discovery",
|
|
# Market regime boundary discovery via correlation structure
|
|
"examples/market-boundary-discovery",
|
|
# Health state boundary detection from wearable sensor data
|
|
"examples/health-boundary-discovery",
|
|
# SETI exotic signals gallery: boundary-first detection of sub-threshold signals
|
|
"examples/seti-exotic-signals",
|
|
# SETI boundary-first discovery: sub-noise signal detection via coherence graphs
|
|
"examples/seti-boundary-discovery",
|
|
# Earthquake precursor detection via inter-station correlation boundary shifts
|
|
"examples/earthquake-boundary-discovery",
|
|
# Pandemic outbreak detection 60 days before case counts via correlation boundaries
|
|
"examples/pandemic-boundary-discovery",
|
|
# Infrastructure failure prediction via sensor correlation boundaries
|
|
"examples/infrastructure-boundary-discovery",
|
|
# Pre-seizure detection via brain correlation boundary shifts
|
|
"examples/brain-boundary-discovery",
|
|
# Clinical-publication-grade pre-seizure detection report with CSV output
|
|
"examples/seizure-clinical-report",
|
|
# Closed-loop seizure detection + therapeutic response simulation
|
|
"examples/seizure-therapeutic-sim",
|
|
# Real EEG analysis: CHB-MIT PhysioNet data with boundary-first detection
|
|
"examples/real-eeg-analysis",
|
|
# Multi-seizure cross-patient analysis: all 7 chb01 seizures
|
|
"examples/real-eeg-multi-seizure",
|
|
# Connectome-driven embodied brain demonstrator (ADR-154)
|
|
"examples/connectome-fly",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "2.2.0"
|
|
edition = "2021"
|
|
rust-version = "1.77"
|
|
license = "MIT"
|
|
authors = ["Ruvector Team"]
|
|
repository = "https://github.com/ruvnet/ruvector"
|
|
|
|
[workspace.dependencies]
|
|
# Core functionality
|
|
redb = "2.1"
|
|
memmap2 = "0.9"
|
|
hnsw_rs = "0.3"
|
|
simsimd = "5.9"
|
|
rayon = "1.10"
|
|
crossbeam = "0.8"
|
|
|
|
# Serialization
|
|
rkyv = "0.8"
|
|
bincode = { version = "2.0.0-rc.3", features = ["serde"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# Node.js bindings
|
|
napi = { version = "2.16", default-features = false, features = ["napi9", "async", "tokio_rt"] }
|
|
napi-derive = "2.16"
|
|
|
|
# WASM
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
js-sys = "0.3"
|
|
web-sys = { version = "0.3", features = ["Worker", "MessagePort", "console"] }
|
|
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1.41", features = ["rt-multi-thread", "sync", "macros"] }
|
|
futures = "0.3"
|
|
|
|
# Error handling and utilities
|
|
thiserror = "2.0"
|
|
anyhow = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Math and numerics
|
|
nalgebra = { version = "0.33", default-features = false, features = ["std"] }
|
|
ndarray = "0.16"
|
|
rand = "0.8"
|
|
rand_distr = "0.4"
|
|
|
|
# Time and UUID
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1.11", features = ["v4", "serde", "js"] }
|
|
|
|
# CLI
|
|
clap = { version = "4.5", features = ["derive", "cargo"] }
|
|
indicatif = "0.17"
|
|
console = "0.15"
|
|
|
|
# Testing and benchmarking
|
|
criterion = { version = "0.5", features = ["html_reports"] }
|
|
proptest = "1.5"
|
|
mockall = "0.13"
|
|
|
|
# Formal verification
|
|
lean-agentic = "=0.1.0"
|
|
|
|
# Performance
|
|
dashmap = "6.1"
|
|
parking_lot = "0.12"
|
|
once_cell = "1.20"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "unwind"
|
|
|
|
[profile.bench]
|
|
inherits = "release"
|
|
debug = true
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|
|
|
|
[profile.test]
|
|
|
|
# Patch hnsw_rs to use rand 0.8 instead of 0.9 for WASM compatibility
|
|
# This resolves the getrandom version conflict (0.2 vs 0.3)
|
|
[patch.crates-io]
|
|
hnsw_rs = { path = "./patches/hnsw_rs" }
|