Commit graph

348 commits

Author SHA1 Message Date
Claude
7fa36fc834 feat: add fintech, cybersecurity, and climate graph-cut examples
- Financial fraud: credit card fraud detection with 5 attack types
  (card-not-present, account takeover, card clone, synthetic, refund),
  log-normal transaction amounts, temporal chain + merchant edges
- Cybersecurity: network threat detection with 6 attack types
  (port scan, brute force, exfiltration, C2 beacon, DDoS, lateral
  movement), flow-level features, source/destination graph edges
- Climate: environmental anomaly detection on 30x40 station grid
  with 6 event types (heat wave, pollution spike, drought, ocean
  warming, cold snap, sensor fault), spatial adjacency + gradient
  weighted edges

All examples use Edmonds-Karp mincut, RVF witness chains, filtered
queries, and lineage derivation.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
028f7e2cdb feat: optimize graph-cut pipelines, add supply chain anomaly detection
- Medical: adaptive local thresholding (7x7 neighborhood), 8-connected
  grid with Gaussian gradient-weighted edges
- Genomic: platform-adaptive thresholds, GC-content bias correction,
  skip-2 segment smoothing edges
- Exomoon: finer bump-fit grid (16x8 vs 11x5) for better perturbation
  sensitivity
- New: supply chain anomaly detection (logistics vertical) with 6
  disruption types, multi-tier network graph, RVF witness chain

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
2f93a95945 refine: streamline medical and genomic graph cut examples
Reduce both examples to under 500 lines per CLAUDE.md guidelines.
Preserve all functionality: graph cut segmentation, RVF integration,
witness chains, evaluation metrics, and cancer driver gene detection.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
b735559f7a feat: add real microlensing, medical imaging, and genomic graph cut pipelines
Three new examples extending the graph cut / MRF optimization framework:

1. real_microlensing.rs — Real data analysis pipeline
   - Simulates events with parameters from published OGLE/MOA discoveries
   - OGLE-2005-BLG-390 (first cool super-Earth), MOA-2011-BLG-262 (rogue+moon candidate)
   - OGLE-2016-BLG-1195 (ice planet), MOA-2009-BLG-387 (massive planet)
   - OGLE EWS format parser for future real data ingestion
   - Correctly identifies 2 planet candidates + 1 moon candidate
   - Cross-event similarity search via RVF embeddings

2. medical_graphcut.rs — Medical imaging lesion segmentation
   - Synthetic 2D tissue with injected tumors (T1-MRI, T2-MRI, CT modalities)
   - Per-voxel feature extraction: intensity, texture, multi-scale statistics
   - Graph cut with spatial adjacency + gradient-weighted edges
   - Outperforms simple thresholding: Dice 0.44-0.59 vs 0.32-0.46
   - RVF storage with modality-filtered similarity search

3. genomic_graphcut.rs — DNA copy number variant detection
   - Synthetic chromosomes with CNV gains, losses, LOH, mutation hotspots
   - WGS (30x), WES (100x), targeted panel (500x) sequencing platforms
   - Graph cut segmentation: linear chain + RuVector similarity edges
   - Cancer driver genes (TP53, BRCA1, EGFR, MYC) detected across all platforms
   - Sensitivity 91-95%, specificity 66-97% depending on platform

All examples include RVF integration (embeddings, filtered queries, lineage,
witness chains) and demonstrate the graph cut framework's versatility across
astrophysics, medical imaging, and genomics domains.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
e57d5135ff refine: improve exomoon graph cut pipeline detection quality
Key improvements to the exomoon detection pipeline:

PSPL Fitting:
- Extract pspl_chi2_at() helper for reuse
- Add fine refinement pass (±1 unit, 0.2 step) around coarse grid best
- Better parameter recovery for all geometric parameters

Lambda Computation:
- Three complementary statistics: excess chi2, runs test coherence, Gaussian bump fit
- Excess chi2 normalized against event's global reduced chi2 (not theoretical)
- Differential lambda: compare each window to its tau-neighbors, producing
  z-scores that are ~0 for uniform fit quality and positive for localized anomalies
- This key change prevents the cut from labeling entire peak regions as moon

Detection Criteria:
- J-score from lambda_sum with per-window penalty (replacing BIC formalism)
- Fragility bootstrap for support stability
- Support fraction bounded (2-50%) for localization

Embeddings:
- Fixed residual computation to use fitted F_s * A(u) + F_b model
- Injection bank labels based on positive local evidence (not just geometry)
- Bank size increased to 60 events for better prior calibration

Current metrics: P=25%, R=25%, F1=0.25 on 30 synthetic events.
Detection quality is limited by the perturbative Chang-Refsdal
approximation — production requires a full polynomial lens solver,
as noted in the user's formulation.

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
69a318e375 feat: add exomoon detection via graph cut / MRF optimization
Implements full s-t mincut pipeline for exomoon detection:
- Binary lens (Chang-Refsdal perturbation) magnification model
- PSPL grid search with linear F_s/F_b regression
- Per-window lambda_i scoring with Occam penalty
- RuVector retrieval prior from injection bank
- Temporal chain + kNN pairwise edges for MRF graph
- Edmonds-Karp BFS max-flow / min-cut solver
- Global BIC + fragility J-score decision rule
- MOA-II and OGLE-IV survey cadence adapters
- RVF integration with witness chains and metadata

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
b08514bf58 fix: correct metadata field_id type to u16, register microlensing example
- Change FIELD_* constants from u32 to u16 to match MetadataEntry.field_id type
- Add microlensing_detection example to Cargo.toml

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:43 -04:00
Claude
538755765c fix: planet finder review fixes + add microlensing detection pipeline
Review fixes:
- Fix XSS vulnerability in PlanetDashboard.ts (sanitize innerHTML with API data)
- Fix SNR variance calculation in planet_detection.rs (use out-of-transit only)
- Fix sort comparator for string columns in PlanetDashboard.ts
- Fix material/texture memory leaks in PlanetSystem3D.ts (dispose on clearSystem/destroy)
- Fix camera auto-rotate drift by storing intended radius
- Use Kepler's third law for semi-major axis calculation
- Seed orbit eccentricity/inclination from candidate ID for reproducibility
- Add metadata field constants (replace magic numbers)
- Document synthetic embedding limitation
- Fix ADR-040 typo ("two-machinevisu" → "two-machine")

New feature:
- Add microlensing_detection.rs example with M0-M3 pipeline for rogue planet
  and exomoon candidate detection using synthetic OGLE/MOA-style light curves
  with Paczynski PSPL fitting, residual anomaly detection, and coherence gating

https://claude.ai/code/session_01UWE22wnsZRSHKhT4h4Axby
2026-03-16 23:14:42 -04:00
Reuven
cf542ca29c style: apply cargo fmt formatting
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-12 20:57:18 -04:00
rUv
1b6e725b49 fix: resolve 5 P0 critical issues + 2 pre-existing compile errors
- ONNX embeddings: dynamic dimension detection + conditional token_type_ids (#237)
- rvf-node: add compression field pass-through to Rust N-API struct (#225)
- Cargo workspace: add glob excludes for nested rvf sub-packages (#214)
- ruvllm: fix stats crash (null guard + try/catch) + generate warning (#103)
- ruvllm-wasm: deprecated placeholder on npm (#238)
- Pre-existing: fix ruvector-sparse-inference-wasm API mismatch, exclude from workspace
- Pre-existing: fix ruvector-cloudrun-gpu RuvectorLayer::new() Result handling

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 14:03:42 +00:00
rUv
229877fe9a 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
ac52d50a77 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
c2e021e8f1 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
e7a5096205 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
b4d2b7343f 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
418f82c42a 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
658c762994 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
7b055d875f 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
d99ff3efd4 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
1cb0e69dff 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
11c81e1a76 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
67f2754995 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
201abc3ab4 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
55d7dbb6fd 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
85447c0bfc 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
68c525da99 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
f3836eb2cb 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
4dfb625997 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
41bc2599be 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
cd69d46140 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
59a7ee866d 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
2fddbdbd61 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
2da4944c66 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
45eaff391a 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
668c873efb 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
561f44ef86 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
d7efab34c5 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
b2ab3bf22d 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
9eb6e3364d 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
0378bda78e 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
e079deb85c 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
458e2f78f6 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
e35e7919c7 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
3eed6ed52d 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
e5fbc3a366 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
c86fad8cc6 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
146c421276 style(rvdna): apply linter formatting to biomarker module
https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 05:20:54 +00:00
Claude
81ab90f6b0 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
161f890ddb 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
cbdc1e9afd 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