Commit graph

385 commits

Author SHA1 Message Date
rUv
77fa901e6e
fix: ruvector-postgres v0.3.1 — audit bug fixes, 46 SQL functions, Docker publish (#227)
Fixes #226
2026-03-03 12:53:10 -05:00
rUv
c2db75d6be Merge remote-tracking branch 'origin/main' into claude/exo-ai-capability-review-LjcVx
# Conflicts:
#	Cargo.toml
2026-02-27 16:27:34 +00:00
rUv
57b6675706 chore: publish EXO-AI crates v0.1.1 with bug fixes and READMEs
Published to crates.io:
- exo-core v0.1.1
- exo-temporal v0.1.1
- exo-hypergraph v0.1.1
- exo-manifold v0.1.1
- exo-federation v0.1.1
- exo-exotic v0.1.1
- exo-backend-classical v0.1.1

Changes from v0.1.0:
- Fix NaN panics in all partial_cmp().unwrap() calls
- Fix domain ID mismatch (underscores → hyphens)
- Fix SystemTime unwrap → unwrap_or_default
- Add README.md for all crates
- Gate rvf feature behind feature flag in exo-backend-classical
- Convert path dependencies to crates.io version dependencies

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:26:40 +00:00
rUv
42a5c47fe7 fix: format all files, add EXO crate READMEs, convert path deps to version deps
- Run cargo fmt across entire workspace
- Create README.md files for all 9 EXO-AI crates
- Convert path dependencies to crates.io version dependencies for publishing
- Add [patch.crates-io] to exo workspace for local development

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:21:14 +00:00
rUv
54399f5292 fix: resolve P0 safety issues in ruvector-dither, thermorust, and exo-ai
- Replace debug_assert with assert for bits bounds in quantize functions
- Guard ChannelDither against 0 channels and invalid bits
- Handle non-finite beta/rate in Langevin/Poisson noise (return 0)
- Remove unused itertools dependency from thermorust
- Fix partial_cmp().unwrap() NaN panics across 7 exo-ai files
- Fix SystemTime unwrap() in transfer_crdt (use unwrap_or_default)
- Fix domain ID mismatch (exo_retrieval → exo-retrieval) in orchestrator
- Update tests to match corrected domain IDs

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 16:12:45 +00:00
rUv
85df6b9314
Merge pull request #220 from ruvnet/claude/agentic-robotics-integration-VOZu2
Add ruvector-robotics: unified cognitive robotics platform
2026-02-27 10:47:09 -05:00
Claude
e9230450d6
feat: add ruvector-dither crate and integrate thermorust+dither into exo
ruvector-dither (new crate):
- GoldenRatioDither: additive φ-sequence with best 1-D equidistribution
- PiDither: cyclic 256-entry π-byte table for deterministic weight dithering
- quantize_dithered / quantize_slice_dithered: drop-in pre-quantization offset
- quantize_to_code: integer-code variant for packed-weight use
- ChannelDither: per-channel pool seeded by (layer_id, channel_id) pairs
- DitherSource trait for generic dither composition
- 15 unit tests + 3 doctests; 4 Criterion benchmark groups

exo-backend-classical integration:
- ThermoLayer (thermo_layer.rs): Ising motif coherence gate using thermorust
  - Runs Metropolis steps on clamped activations
  - Returns ThermoSignal { lambda, magnetisation, dissipation_j, energy_after }
  - λ-signal = −ΔE/|E₀|: positive means pattern is settling toward coherence
- DitheredQuantizer (dither_quantizer.rs): wraps ruvector-dither for exo tensors
  - GoldenRatio or Pi kind, per-layer seeding, reset support
  - Supports 3/5/7/8-bit quantization with ε-LSB dither amplitude
- 8 new unit tests across both modules; all 74 existing tests still pass

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 14:30:26 +00:00
Claude
0b6d54e61d
feat(exo): add RVF packaging, fix pattern retrieval, update README
- ExoTransferOrchestrator.package_as_rvf(): serializes all TransferPriors,
  PolicyKernels, and CostCurves into a 64-byte-aligned RVF byte stream
- ExoTransferOrchestrator.save_rvf(path): convenience write-to-file method
- Enable ruvector-domain-expansion rvf feature in exo-backend-classical
- 3 new RVF tests: empty packager, post-cycle magic verification, save-to-file
- substrate.rs: fill pattern field from returned search vector (r.vector.map(Pattern::new))
- README: document 5-phase transfer pipeline, RVF packaging, updated
  architecture diagram, 4 new Key Discoveries, 3 new Practical Applications

All 0 failures across full workspace test suite.

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 14:05:50 +00:00
Claude
bc71837964
feat(exo): resolve 5 TODOs, add cross-phase orchestrator and e2e tests
- vector.rs: convert exo_core::Filter Equal conditions to ruvector HashMap
  filter; store and round-trip _pattern_id in metadata
- substrate.rs: implement BettiNumbers, PersistentHomology, SheafConsistency
  for hypergraph_query using VectorDB stats
- anticipation.rs: implement TemporalCycle pre-fetching via sinusoidal
  phase encoding
- crdt.rs: add T: Display bound to reconcile_crdt; look up score from
  ranking_map by format!("{}", result)
- thermodynamics.rs: rust,ignore → rust,no_run
- ExoTransferOrchestrator: new cross-phase wiring module in
  exo-backend-classical that runs all 5 integration phases in a single
  run_cycle() call (bridge → manifold → timeline → CRDT → emergence)
- transfer_pipeline_test.rs: 5 end-to-end integration tests covering the
  full pipeline (single cycle, multi-cycle, emergence, manifold, CRDT)

All 0 failures across full workspace test suite.

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 13:29:18 +00:00
Claude
554214ba30
feat(exo): implement Phases 2-5 of ruvector-domain-expansion integration
Phase 2 — exo-manifold/src/transfer_store.rs
  TransferManifold stores (src, dst) transfer priors as 64-dim deformable
  patterns via ManifoldEngine::deform. Sinusoidal domain-ID hashing gives
  meaningful cosine distances for retrieve_similar.

Phase 3 — exo-temporal/src/transfer_timeline.rs
  TransferTimeline records transfer events in the temporal causal graph.
  Each event is linked to its predecessor so the system can trace full
  transfer trajectories. anticipate_next() returns CausalChain +
  SequentialPattern hints.

Phase 4 — exo-federation/src/transfer_crdt.rs
  TransferCrdt propagates transfer priors across the federation using
  LWW-Map (cycle = timestamp) + G-Set for domain discovery. Merges are
  idempotent and commutative. promote_via_consensus runs PBFT Byzantine
  commit before accepting a prior.

Phase 5 — exo-exotic/src/domain_transfer.rs
  StrangeLoopDomain implements the Domain trait: self-referential tasks
  whose solutions are scored by meta-cognitive keyword density.
  CollectiveDomainTransfer couples CollectiveConsciousness with
  DomainExpansionEngine — arm rewards flow into the substrate and
  collective Φ serves as the cycle quality metric.
  EmergentTransferDetector wraps EmergenceDetector to surface non-linear
  capability gains from cross-domain transfer.

All 4 crates gain the ruvector-domain-expansion path dep. 36 new tests,
all green alongside the existing suite.

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 05:54:50 +00:00
Claude
7b1c6e576c
chore(exo): update Cargo.lock for ruvector-domain-expansion dependency
https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 05:33:08 +00:00
Claude
ebf5e4c790
feat(exo): integrate ruvector-domain-expansion into exo-backend-classical
Implements Phase 1 of the EXO-AI × domain-expansion integration plan:
register EXO classical operations as first-class transfer-learning domains
so Thompson Sampling can discover optimal retrieval/traversal strategies.

New: crates/exo-backend-classical/src/domain_bridge.rs

ExoRetrievalDomain (implements Domain trait)
- Vector similarity search as a 3-arm bandit: exact / approximate / beam_rerank
- Tasks parameterized by dim (64-1024), k (3-50), noise (0-0.5)
- Evaluation: correctness = Recall@K, efficiency = inverse-latency, elegance = k-precision
- reference_solution: selects optimal arm based on dim+noise+k

ExoGraphDomain (implements Domain trait)
- Hypergraph traversal as a 3-arm bandit: bfs / approx / hierarchical
- Tasks parameterized by n_entities (50-1000), max_hops (2-6), min_coverage (5-100)
- Evaluation: correctness = coverage ratio, efficiency = hops saved, elegance = headroom
- reference_solution: hierarchical for large graphs, approx for medium

Aligned 64-dim embeddings (dims 5/6/7 = strategy one-hot in both domains)
enables meaningful cross-domain transfer priors:
  "approximate wins on high-dim noisy retrieval" →
  "approx expansion wins on large sparse graphs"

ExoTransferAdapter
- Wraps DomainExpansionEngine, registers both EXO domains
- warmup(N): trains both domains N cycles via evaluate_and_record
- transfer_ret_to_graph(N): initiate_transfer then measure acceleration
- All 8 domain_bridge unit tests pass + doctest compiles

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 05:32:23 +00:00
Claude
64c1519526
perf(exo): review & optimize — zero warnings, Kuramoto O(n²)→O(n), K-WTA partial select
- Fix all 35 compiler warnings across 23 files (unused imports, dead code,
  unused vars, unnecessary parens) — build is now warning-clean
- Optimize NeuromorphicBackend::kuramoto_step O(n²)→O(n):
  use sin/cos sum identity so coupling_i = (K/N)[cos(φ_i)·ΣsinΦ - sin(φ_i)·ΣcosΦ],
  eliminates inner loop for 1000-neuron network (1M→1K ops per tick)
- Optimize k_wta: full sort O(n log n) → select_nth_unstable O(n avg)
  using Rust's pdqselect partial sort
- Add #[inline] to hot paths: kuramoto_step, k_wta, hd_encode, lif_tick
- Fix federation: correctly swap unused FederationError (crdt.rs) and
  unused HashMap (consensus.rs) — both in opposite files from first guess

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 05:16:08 +00:00
rUv
53a567f957 docs: optimize 12 crate READMEs and add SONA learning loop diagram
Standardize all linked crate READMEs to match root README style:
plain-language taglines, comparison tables, key features tables.
Add SONA feedback loop diagram to root README intro.

Crates updated: ruvector-gnn, ruvector-core, ruvector-graph,
ruvector-graph-transformer, sona, ruvector-attention, ruvllm,
ruvector-solver, ruvector-replication, ruvector-postgres,
rvf-crypto, examples/dna.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-27 03:38:42 +00:00
Claude
4f86d345cb
feat: Add unified ruvector-robotics crate with bridge, perception, cognitive, and MCP modules
Consolidates robotics functionality into a single crate with four modules:
- bridge: Core types (Point3D, PointCloud, RobotState, Pose), spatial indexing,
  distance metrics, sensor converters, and perception pipeline
- perception: Scene graph construction, obstacle detection/classification,
  anomaly detection, trajectory prediction, and attention focusing
- cognitive: Behavior trees, perceive-think-act-learn loop, multi-criteria
  decision engine, three-tier memory system, skill learning from demonstration,
  swarm coordination with formations/consensus, and world model tracking
- mcp: Tool registry with 15 registered tools across 6 categories

Includes 26 passing tests (10 unit + 15 integration + 1 doc), 5 crate examples,
10 standalone binary examples, benchmarks covering 10 groups, and user guide.

https://claude.ai/code/session_01H1GkTK5z9ppVVQDQukjBsY
2026-02-27 03:35:54 +00:00
Claude
31a0bebe43
feat(exo): ADR-029 Phase 3 — ExoLearner + coherent federation commit
- ExoLearner: MicroLoRA rank-2 instant adaptation (<1ms), Phi-weighted EWC++,
  ReasoningBank trajectory storage, cosine-similarity recall
- coherent_commit.rs: Raft-style O(n) consensus replaces PBFT O(n²),
  coherence gate (lambda > threshold) gates commit proposals

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 03:34:36 +00:00
Claude
95e3ff3136
feat(exo): ADR-029 Phase 2 genomic bridge + sparse TDA + causal emergence
- genomic.rs: RvDnaPattern, HorvathClock, NeurotransmitterProfile, PharmacogenomicWeights
- sparse_tda.rs: O(n/eps) Forward Push PPR persistent homology (vs O(n^3) naive)
- causal_emergence.rs: EI maximization, coarse-graining search, emergence detection
- sparse_homology.rs: experiment 04 wrapper, circle TDA test
- All tests passing

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 03:29:44 +00:00
Claude
9dea2634d0
feat(exo): ADR-029 neuromorphic + quantum backends, experiments 01 & 03
- NeuromorphicBackend: HDC 10k-bit, K-WTA, LIF, Kuramoto, BTSP, E-prop
- QuantumStubBackend: interference search, T1/T2 decoherence, quantum decay
- Experiment 01: neuromorphic_spiking — BTSP one-shot, 40Hz gamma, K-WTA sparsity
- Experiment 03: time_crystal_cognition — periodic attractor, symmetry breaking
- SubstrateBackend trait: unified interface for all compute modalities
- exo-exotic: path dep on local exo-core for backends module access
- All tests passing (97 tests across exo-core + exo-exotic)

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 03:25:52 +00:00
Claude
4061e1b1c7
feat(exo-core): ADR-029 Phase 1 canonical primitives — CoherenceRouter, PlasticityEngine, CrossParadigmWitness
- CoherenceRouter: π-scaled spectral gap estimation, 5 backend variants
- PlasticityEngine: unified EWC++, BTSP, E-prop with Φ-weighted protection
- CrossParadigmWitness: hash-chained audit type for multi-paradigm stack
- All tests passing, gate latency <1ms confirmed

https://claude.ai/code/session_019Lt11HYsW1265X7jB7haoC
2026-02-27 03:04:07 +00:00
rUv
545d099d66 fix: address review issues in openfang RVF example
- Fix fragile persistence assertion: compare against post-delete baseline
  instead of pre-delete `all` which could include the deleted twitter vector
- Extract segment type magic numbers into named constants (SEG_VEC, etc.)
- Add comments for raw AGI container flag bitmasks (bits 4 and 10)
- Add seed non-overlap comment for vector generation
- Improve hex() to use pre-allocated String with fmt::Write

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-26 16:00:40 +00:00
Claude
2d00053fdc
Expand openfang to full RVF surface demo (14 -> 24 capabilities)
Add 10 new capability demonstrations:

- Quality envelope (query_with_envelope): ResponseQuality, safety-net
  activation, budget reporting
- Audited queries (query_audited): auto-appended witness per search
- Membership filter: tenant isolation via include-mode bitmap
- DoS hardening: BudgetTokenBucket, NegativeCache, ProofOfWork
- Adversarial detection: CV analysis, degenerate distribution check
- Embed WASM: microkernel role, self-bootstrapping verification
- Embed kernel: Linux image with cmdline and API port
- Embed eBPF: socket filter program (2 instructions)
- Embed dashboard: HTML registry bundle
- AGI container: full manifest with model, orchestrator, tools, eval,
  policy, parsed back with ParsedAgiManifest

All 24 steps pass, including persistence round-trip verifying that
WASM, kernel, eBPF, and dashboard segments survive close/reopen.

Update README with capability table, architecture notes for each new
feature (quality envelope, audited queries, membership, DoS, adversarial,
segment embedding, AGI container).

https://claude.ai/code/session_015KgxqLUhevxop1jhiZY2Y4
2026-02-26 14:47:29 +00:00
Claude
c5a0c0ad68
Optimize openfang RVF example with deep capability integration
- Extract Registry struct, metadata helpers, and witness helper to reduce
  repetition and improve readability
- Replace dead `_description` field with lean struct definitions
- Add per-category vector biasing via hash-based offsets for better clustering
- Use named constants for metadata field IDs (F_TYPE, F_NAME, etc.)
- Integrate 6 additional RVF capabilities:
  - Delete + compact lifecycle (decommission twitter, reclaim 512 bytes)
  - Derive with lineage tracking (parent/child provenance, depth=0->1)
  - COW branching + freeze (staging env with experimental 'sentinel' agent)
  - Segment directory inspection (raw segment types/offsets)
  - File identity preservation across close/reopen
  - Last witness hash inspection
- Expand from 10 steps to 14 covering the full RVF API surface
- Update README with capability table, architecture notes, and lifecycle docs

https://claude.ai/code/session_015KgxqLUhevxop1jhiZY2Y4
2026-02-26 14:33:33 +00:00
Claude
cb939120de
Add OpenFang Agent OS RVF example
Standalone RVF knowledge base modeling the OpenFang agent OS architecture:
- 7 autonomous Hands with tier/security metadata
- 38 built-in tools across 12 categories
- 20 channel adapters with protocol metadata
- Task routing via nearest-neighbor search
- Security and tier filtering with combined filter expressions
- Cryptographic witness chain audit trail
- Persistence verification (close/reopen round-trip)
- All tests passing, 65 vectors in ~35KB

https://claude.ai/code/session_015KgxqLUhevxop1jhiZY2Y4
2026-02-26 14:24:42 +00:00
rUv
221891295e feat: add formal verification layer with lean-agentic dependent types
Introduces ruvector-verified and ruvector-verified-wasm crates providing
proof-carrying vector operations with sub-microsecond overhead. Includes
ADR-045, 10 exotic application examples (weapons filter, medical diagnostics,
financial routing, agent contracts, sensor swarm, quantization proof,
verified memory, vector signatures, simulation integrity, legal forensics),
rvf-kernel-optimized example, CI workflow, and root README integration.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-25 03:45:18 +00:00
rUv
d2342d8af0 fix: migrate attention/dag/tiny-dancer to workspace versioning and fix all dep version specs
- ruvector-attention: 0.1.32 → version.workspace = true (2.0.4)
- ruvector-attention-wasm: 0.1.32 → workspace, dep 0.1.31 → 2.0
- ruvector-attention-node: 0.1.0 → workspace, dep already 2.0
- ruvector-dag: 0.1.0 → workspace, add version spec on ruvector-core dep
- ruvector-gnn-wasm: fix malformed Cargo.toml (metadata before version), add version spec
- ruvector-attention-unified-wasm: add version specs, fix category slug
- Update all consumers: ruvector-crv, ruvllm, ruvector-postgres, prime-radiant, rvdna, OSpipe

Published to crates.io:
  ruvector-attention@2.0.4, ruvector-dag@2.0.4, ruvector-tiny-dancer-core@2.0.4,
  ruvector-attention-wasm@2.0.4, ruvector-attention-node@2.0.4,
  ruvector-gnn-wasm@2.0.4, ruvector-gnn-node@2.0.4,
  ruvector-tiny-dancer-wasm@2.0.4, ruvector-tiny-dancer-node@2.0.4,
  ruvector-router-wasm@2.0.4, ruvector-router-ffi@2.0.4, ruvector-router-cli@2.0.4,
  ruvector-attention-unified-wasm@0.1.0

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-23 13:29:46 +00:00
rUv
2ae343967c chore: bump rvdna crate version to 0.3.0 for biomarker engine release
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-22 16:01:44 +00:00
Claude
579120c658
feat(rvdna): add npm biomarker engine with risk scoring, streaming, and benchmarks
ADR-015: Pure-JS biomarker engine mirroring Rust biomarker.rs and
biomarker_stream.rs exactly. Includes:

- src/biomarker.js: 20-SNP composite risk scoring, 6 gene-gene
  interactions, 64-dim L2-normalized profile vectors, synthetic
  population generation with Mulberry32 PRNG
- src/stream.js: RingBuffer, StreamProcessor with Welford online
  stats, CUSUM changepoint detection, z-score anomaly detection,
  linear regression trend analysis, batch reading generation
- tests/test-biomarker.js: 35 tests + 5 benchmarks covering all
  classification levels, risk scoring, vector encoding, population
  generation, streaming, anomaly/trend detection
- index.d.ts: Full TypeScript definitions for all biomarker APIs
- package.json: Bump to v0.3.0, add biomarker keywords

Benchmark results (Node.js):
  computeRiskScores: 7.33 us/op
  encodeProfileVector: 9.51 us/op
  RingBuffer push+iter: 3.32 us/op

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 15:27:37 +00:00
Claude
324a37decb
docs(rvdna): update README for 20-SNP panel with LPA and PCSK9
Update all references from 17 SNPs to 20 SNPs reflecting the
addition of LPA rs10455872/rs3798220 and PCSK9 rs11591147.
Document new gene-biomarker correlations (LPA→Lp(a), PCSK9→LDL)
in synthetic population section. Update module table line counts.

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 15:04:58 +00:00
Claude
d48b70a84b
feat(rvdna): add PCSK9 rs11591147 protective cardiovascular SNP
Add PCSK9 R46L loss-of-function variant (NEJM 2006: OR 0.77 CHD,
0.40 MI) as a protective cardiovascular SNP with negative weights.
Include PCSK9→LDL-C biomarker correlation (15-21% lower LDL in
carriers). Refactor gene-biomarker correlations from match to
additive if-chain so multiple gene effects can stack on the same
biomarker (e.g., APOE raises LDL while PCSK9 R46L lowers it).
Panel expanded to 20 SNPs.

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 06:44:14 +00:00
Claude
366eae172f
feat(rvdna): add LPA cardiovascular SNPs from SOTA meta-analysis evidence
Add rs10455872 (OR 1.6-1.75/allele CHD) and rs3798220 (OR 1.49-1.54/allele)
from 2024 LPA meta-analyses. Include Lp(a) biomarker reference (0-75 nmol/L)
and gene-biomarker correlation in population model. Separate NUM_ONEHOT_SNPS
(17) from NUM_SNPS (19) to preserve 64-dim vector layout with LPA encoded
in summary dimension 63.

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 06:41:06 +00:00
Claude
8b85624352
refactor(rvdna): consolidate SNP arrays, cache metadata, optimize streaming
Structural improvements from deep code review:

- Consolidate 5 parallel arrays (SNP_WEIGHTS, HOM_REF, HOM_ALT, HET,
  ALLELE_FREQS) into single SnpDef struct array — eliminates entire class
  of parallel-array misalignment bugs
- Cache category_meta() with LazyLock — avoids per-call Vec allocation
  (critical in generate_synthetic_population hot path)
- Hoist Normal::new out of inner loop in generate_readings — pre-compute
  distributions per biomarker instead of per-step*per-biomarker
- Add clinically meaningful lower bounds: LDL normal_low 0→50 mg/dL
  (critical_low 25), Triglycerides normal_low 0→35 mg/dL (critical_low 20)
- Optimize RingBuffer::clear from O(capacity) to O(1) — head/len reset
  is sufficient since push overwrites before read
- Use NUM_SNPS const for vector encoding bounds instead of magic number 51

All 172 tests pass, zero clippy warnings for rvdna.

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 06:31:44 +00:00
Claude
b4c230f4b5
docs: update rvDNA and root READMEs with health biomarker engine
- Add Health Biomarker Engine section to rvDNA README with usage examples
  for composite risk scoring, streaming processing, and synthetic populations
- Add biomarker.rs and biomarker_stream.rs to Modules table
- Update test count from 102 to 172 (added biomarker tests)
- Add biomarker benchmark results to Speed table
- Add Welford, CUSUM, and PRS to Published Algorithms table
- Update root README Genomics & Health capabilities (49 → 51 features)
- Add health biomarker engine and streaming biomarkers to root feature table
- Update rvDNA details section with risk scoring and streaming capabilities

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 06:13:12 +00:00
Claude
ad27974f6c
feat(rvdna): add gene-biomarker correlations, CUSUM changepoint detection, and interaction tests
- Add gene→biomarker correlations in synthetic population: APOE e4→lower HDL/higher
  triglycerides, MTHFR→lower B12, NQO1 null→higher CRP
- Add CUSUM changepoint detection algorithm to StreamProcessor for detecting
  sustained biomarker shifts beyond simple anomaly detection
- Add 4 new integration tests: MTHFR×COMT interaction, DRD2×COMT interaction,
  APOE→HDL population correlation, CUSUM changepoint detection
- Remove unused variant_categories import
- All 172 tests pass, all ADR-014 performance targets exceeded

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 06:08:41 +00:00
Claude
3f8eb9b890
refine(rvdna): calibrate SNP weights from SOTA clinical meta-analyses
Evidence-based refinements from peer-reviewed clinical research:

- TP53 rs1042522 (Pro72Arg): hom_ref 0.10→0.00 — CC/Pro/Pro is not
  independently risk-associated; prior non-zero baseline was unjustified
- BRCA2 rs11571833 (K3326X): het 0.25→0.20 — aligned with iCOGS
  meta-analysis OR 1.28 for breast cancer (Meeks et al., JNCI 2016,
  76,637 cases / 83,796 controls)
- NQO1 rs1800566 (Pro187Ser): het 0.20→0.15, hom_alt 0.45→0.30 —
  aligned with comprehensive meta-analysis OR 1.18 for TT vs CC
  (Lajin & Alachkar, Br J Cancer 2013, 92 studies, 21,178 cases);
  larger 2022 meta-analysis (43,736 cases) found no overall association

Validated unchanged weights against SOTA evidence:
- APOE rs429358: OR 3-4x het, 8-15x hom (Belloy JAMA Neurology 2023)
- SLCO1B1 rs4363657: OR 4.5/allele, 16.9 hom (SEARCH/NEJM; CPIC 2022)
- COMT×OPRM1 interaction: confirmed p=0.037 (orthopedic trauma study)

All 48 tests pass (33 unit + 15 integration).

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:53:16 +00:00
Claude
22dc2686fa
refine(rvdna): calibrate biomarker weights and ranges from Genetic Lifehacks clinical data
Evidence-based adjustments from geneticlifehacks.com research articles:

- MTHFR C677T (rs1801133): het weight 0.30→0.35 to match documented
  40% enzyme activity decrease
- MTHFR A1298C (rs1801131): het 0.15→0.10, hom_alt 0.35→0.25 to
  match documented ~20% enzyme decrease
- Homocysteine reference range: 4-12→5-15 μmol/L (clinical consensus),
  critical_high 50→30 (moderate hyperhomocysteinemia threshold)
- Add MTHFR A1298C × COMT interaction (1.25x Neurological): A1298C
  homozygous + COMT slow = amplified depression risk
- Add DRD2/ANKK1 × COMT interaction (1.2x Neurological): rs1800497 ×
  Val158Met working memory interaction
- Guard vector encoding with .take(4) so expanded interaction table
  (now 6 entries) doesn't overflow dims 56-59

Sources:
- geneticlifehacks.com/mthfr/ (enzyme activity percentages)
- geneticlifehacks.com/mthfr-c677t/ (MTHFR-COMT depression data)
- geneticlifehacks.com/understanding-homocysteine-levels/ (ref ranges)
- geneticlifehacks.com/dopamine-receptor-genes/ (DRD2×COMT interaction)

All 48 tests pass (33 unit + 15 integration), benchmark compiles.

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:49:22 +00:00
Claude
c96d226357
perf(rvdna): optimize biomarker engine — fix bug, reduce allocations, halve ring buffer memory
- Fix snp_idx silent fallback: unwrap_or(0) masked missing SNPs with
  incorrect index-0 lookups; now returns Option<usize>
- RingBuffer: eliminate Option<T> wrapper, halving per-slot memory
  for f64 (8 bytes vs 16); use T::Default instead
- window_mean_std: replace two-pass sum+variance with single-pass
  Welford's online algorithm (2x fewer cache misses)
- compute_risk_scores: pre-compute category max scores via
  category_meta() to avoid re-scanning SNP_WEIGHTS per call;
  use &str keys in intermediate HashMap to reduce String allocations
- HashMap capacity hints throughout (StreamProcessor, genotypes,
  biomarker_values, cat_scores) to eliminate rehashing
- generate_synthetic_population: hoist APOE lookup out of inner loop,
  reserve biomarker_values capacity upfront
- All 48 tests pass (33 unit + 15 integration), benchmark compiles

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:37:52 +00:00
Claude
65d671dcea
style(rvdna): apply linter formatting to biomarker module
https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:20:54 +00:00
Claude
db237d3d4d
feat(rvdna): add health biomarker analysis engine with streaming simulation
Implement ADR-014 Health Biomarker Analysis Architecture:
- biomarker.rs: Composite risk scoring engine with 17-SNP weight matrix,
  gene-gene interaction modifiers (COMT×OPRM1, MTHFR compound, BRCA1×TP53),
  64-dim HNSW-aligned profile vectors, clinical reference ranges for 12
  biomarkers, and deterministic synthetic population generation
- biomarker_stream.rs: Streaming biomarker simulator with generic RingBuffer,
  configurable noise/drift/anomaly injection, z-score anomaly detection,
  linear regression trend analysis, and exponential moving averages
- 35 unit tests + 15 integration tests (168 total, 0 failures)
- Criterion benchmark suite targeting ADR-014 performance budgets

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:19:23 +00:00
rUv
d102bb87ab fix: apply cargo fmt across workspace and fix CI issues
- Run cargo fmt --all to fix formatting in 362 files across the entire workspace
- Add PGDG repository for PostgreSQL 17 in CI test-all-features and benchmark jobs
- Add missing rvf dependency crates to standalone Dockerfile for domain-expansion
- Add sona-learning and domain-expansion features to standalone Dockerfile build
- Create npu.rs stub for ruvector-sparse-inference (fixes rustfmt resolution error)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 20:56:38 +00:00
rUv
62436a4a7b fix(security): harden intelligence providers — type-safe enums, input validation, file size limits
Security hardening for ADR-043 intelligence module:
- Replace String outcome/verdict with Outcome and HumanVerdict enums (type safety)
- Add MAX_SIGNAL_FILE_SIZE (10 MiB) and MAX_SIGNALS_PER_FILE (10,000) limits
- BufReader streaming parse instead of read_to_string (prevent double allocation)
- Validate quality_score range (finite, 0.0-1.0) on load
- NaN protection in calibration_bias()
- TypeScript: top-level imports, runtime validation, file size checks, score clamping
- Bump workspace to 2.0.4, @ruvector/ruvllm to 2.5.1
- Published ruvllm@2.0.4 to crates.io, @ruvector/ruvllm@2.5.1 to npm

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 18:29:33 +00:00
rUv
55a968aabe feat(security): Security Hardened RVF v3.0 — 30 capabilities verified
Upgrade from 22 to 30 capabilities exercising every major RVF API:
- KernelBinding anti-tamper (manifest_root + policy_hash binding)
- Dual WASM modules (Interpreter + Microkernel, self-bootstrapping)
- DASHBOARD_SEG embedded security monitoring UI
- Scalar quantization (int8, 4x compression) via rvf-quant
- Binary quantization (1-bit, 32x compression) + Hamming distance
- Filter deletion + compaction lifecycle
- QEMU requirements check via rvf-launch
- Freeze/seal permanent immutability
- Additional kernel flags: VIRTIO_NET, VSOCK, INGEST_API
- RvfOptions: signing=true, profile=3, m=32, ef_construction=400

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 17:39:58 +00:00
rUv
4625ac7ac2 feat(security): add security_hardened.rvf to examples/ root
Copy the 2.1 MB sealed RVF artifact to examples/ for easier discovery.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 16:41:40 +00:00
rUv
c0bb84e948 feat(security): Security Hardened RVF v2.0 — One File To Rule Them All
Include the generated 2.1 MB .rvf binary artifact in repo alongside
the v2.0 optimized example (22 capabilities, zero warnings, Paranoid
policy, audited queries, COW branching, SSN/encoding detection).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 16:31:43 +00:00
rUv
98b2d332f2 feat(security): ADR-042 Security RVF — AIDefence + TEE hardened container
6-layer defense-in-depth in a single sealed RVF file:
  1. TEE attestation (SGX, SEV-SNP, TDX, ARM CCA) with bound keys
  2. Hardened Linux microkernel (16 security configs, REQUIRES_TEE)
  3. eBPF packet filter (XDP) + syscall enforcer (Seccomp)
  4. AIDefence WASM engine (injection, jailbreak, PII, behavioral)
  5. Ed25519 signing + SHAKE-256 content hashes + Paranoid policy
  6. 6-role RBAC + Coherence Gate authorization

20 capabilities verified, 10/10 AIDefence tests, 3/3 tamper rejections,
30-entry witness chain, 1000 threat signatures (512-dim), 3 tenant stores.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 00:45:25 +00:00
rUv
4ef45dbde3 feat(rvdna): native 23andMe genotyping pipeline v0.2.0
Replaces the Python rvdna-bridge with a pure Rust implementation:
- 7-stage pipeline: parse, QC, classification, pharma, health, compound, report
- CYP2D6/CYP2C19 diplotype calling with confidence gating (Strong/Moderate/Weak/Unsupported)
- 17 health variant interpretations (APOE, BRCA1/2, TP53, MTHFR, COMT, OPRM1, etc.)
- Genotype normalization (case/strand insensitive, allele-sorted)
- CPIC drug recommendations gated on Moderate+ confidence
- Panel QC signatures with het rate metrics
- MTHFR compound analysis and pain sensitivity profiling
- 91 tests passing (79 lib + 12 security)

Published as rvdna v0.2.0 on crates.io.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 20:40:51 +00:00
rUv
9304568753 fix: publish-readiness for 6 solver crates + npm package
- Remove duplicate workspace members (solver/solver-wasm/solver-node)
- Add ruvector-attn-mincut to workspace members
- Switch ruvector-solver and ruvector-solver-wasm to workspace version/metadata
- Add version pin on ruvector-solver dep for solver-wasm and solver-node
- Remove stale version pins in examples/dna and examples/prime-radiant
- Fix unused assignment and unused mut warnings in neumann.rs
- Remove publish = false from ruvector-profiler, add keywords/categories
- Bump @ruvector/rvf-solver to 0.1.4
- Add Publishing section to CLAUDE.md

Published to crates.io: ruvector-solver, ruvector-solver-wasm,
ruvector-solver-node, ruvector-coherence, ruvector-attn-mincut,
ruvector-profiler (all v2.0.3)
Published to npm: @ruvector/rvf-solver v0.1.4

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 19:02:50 +00:00
rUv
c21542bf13 merge: resolve examples/rvf/Cargo.toml conflict with main
Keep both solver examples (solver_witness, sparse_matrix_store,
solver_benchmark) and causal atlas examples from main.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:10:40 +00:00
rUv
3ad28b2031 merge: resolve conflicts with main
Accept main's updated binaries and npm packages, keep our solver
fixes (evaluate-before-train, conservative Thompson, noise injection)
and dashboard/desktop additions.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:05:55 +00:00
rUv
8750b59944 feat(rvf): add Causal Atlas dashboard, solver fixes, and desktop app
ADR-040 Causal Atlas implementation with full Three.js dashboard:
- Planet detection, life candidate scoring, Dyson sphere 3D views
- WASM solver with fixed acceptance test (evaluate-before-train,
  conservative Thompson sampling, non-contradictory noise injection)
- wry-based desktop app embedding the full dashboard (1.6 MB binary)
- WebSocket live updates, docs view, download page, status dashboard
- 10/10 seed acceptance pass rate (was ~40% before fixes)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:01:09 +00:00
Claude
6c7b1495bd
feat: integrate ruvector-solver into DNA and quantum components
DNA crate (rvdna):
- Add ruvector-solver dependency with forward-push feature
- New kmer_pagerank module: KmerGraphRanker uses Forward Push PPR to
  rank sequences by structural centrality in k-mer overlap graphs
- New solver_bench benchmark suite with 3 groups:
  A) Localized relevance via Forward Push PPR (20-200x speedup)
  B) Laplacian solve for denoising via Neumann/CG (10-80x speedup)
  C) Cohort-scale label propagation via CG solver
- README: add DNA Solver Benchmarks section with dataset citations
  (GIAB, NA12878, 1000 Genomes), graph construction docs, benchmark
  tables, and reproducibility instructions

Quantum crate (prime-radiant-category):
- Add ruvector-solver dependency with neumann/cg features
- SparseMatrix: replace O(nnz) COO Vec with O(1) HashMap entries,
  add to_csr_f64() and spmv_f64() using solver CsrMatrix
- ComplexMatrix: add Jacobi eigenvalue algorithm for real-symmetric
  matrices (much more stable than power iteration + deflation),
  add to_csr_real() and is_real_valued() helper methods
- DensityMatrix: add SpectralDecomposition cache, purity_fast() via
  Frobenius norm O(n²) vs O(n³), static eigenvalue helpers
- SimplicialComplex: add graph_laplacian_csr() for spectral analysis
- SolverBackedOperator: sparse quantum operator using CsrMatrix SpMV
  for 40-60 effective qubit scaling (vs ~33 with dense matrices)
- New quantum_solver_bench: SpMV scaling, eigenvalue convergence,
  memory scaling benchmarks from 10 to 30 qubits

All 362 tests pass (81 quantum + 102 DNA + 179 solver).

https://claude.ai/code/session_01TiqLbr2DaNAntQHaVeLfiR
2026-02-20 13:37:24 +00:00