Commit graph

678 commits

Author SHA1 Message Date
rUv
f17c0d2922
Merge pull request #202 from ruvnet/chore/update-build-artifacts
chore: update npm build artifacts
2026-02-23 11:07:45 -05:00
rUv
c033e88797 chore: update npm build artifacts for ruvbot, cognitum-gate-wasm, ospipe, raft, replication, ruvector-wasm-unified, ruvllm, rvf, and other packages
Compiled TypeScript outputs (.d.ts, .js, .js.map, .d.ts.map) from
npm workspace builds.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-23 16:07:05 +00:00
github-actions[bot]
2ab92346ce chore: Update NAPI-RS binaries for all platforms
Built from commit d2342d8af0

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

  🤖 Generated by GitHub Actions
2026-02-23 13:34:57 +00:00
github-actions[bot]
0c773292b2 chore: Update NAPI-RS binaries for all platforms
Built from commit 7d410c47dd

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

  🤖 Generated by GitHub Actions
2026-02-22 17:56:40 +00:00
rUv
7d410c47dd
Merge pull request #200 from ruvnet/fix/rvf-string-id-mapping
fix(rvf): add string ID mapping to NodeBackend — silent data loss
2026-02-22 12:52:25 -05:00
rUv
cc0b7e1499 fix(rvf): add string ID ↔ numeric label mapping to NodeBackend
NodeBackend.ingestBatch() passed string IDs directly to the N-API layer
via Number(e.id), which returns NaN for non-numeric strings (UUIDs, hex
hashes, etc.). The native Rust HNSW silently drops entries with NaN IDs,
causing silent data loss with no error signal.

Fix: Add a bidirectional string↔numeric mapping layer to NodeBackend,
following the same pattern used by HNSWLibBackend in AgentDB:
- resolveLabel(): allocates sequential i64 labels for string IDs
- query(): maps numeric labels back to original string IDs
- delete(): resolves string IDs to labels before calling native layer
- Mappings persisted to {path}.idmap.json sidecar file

Also fixes query() returning numeric labels instead of original string
IDs, and delete() silently failing for non-numeric IDs.

Bumps @ruvector/rvf from 0.1.9 → 0.2.0 (breaking fix).

Closes ruvnet/agentic-flow#114

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-22 17:51:44 +00:00
github-actions[bot]
cf1c6c0443 chore: Update NAPI-RS binaries for all platforms
Built from commit db9c3d6a9e

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

  🤖 Generated by GitHub Actions
2026-02-22 16:11:54 +00:00
github-actions[bot]
fd2f665b10 chore: Update NAPI-RS binaries for all platforms
Built from commit 2ae343967c

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

  🤖 Generated by GitHub Actions
2026-02-22 16:07:28 +00:00
github-actions[bot]
8a1bc9f164 chore: Update NAPI-RS binaries for all platforms
Built from commit f957eb7ea4

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

  🤖 Generated by GitHub Actions
2026-02-22 16:05:26 +00:00
Claude
be7043b12b
perf(rvdna): optimize hot paths and add real-data integration tests
Optimizations (1.7-2x speedup across all hot paths):
- biomarker.js: Replace O(n) findIndex with pre-built RSID_INDEX Map
  for O(1) SNP lookups; cache LPA SNP references to avoid repeated
  array iteration in vector encoding and population generation
- stream.js: Add RingBuffer.pushPop() returning evicted value;
  replace O(n) windowMeanStd buffer scan with O(1) incremental
  windowed Welford algorithm in StreamProcessor

Benchmark improvements (before → after):
  computeRiskScores: 7.33 → 3.70 us/op (1.98x)
  encodeProfileVector: 9.51 → 5.25 us/op (1.81x)
  StreamProcessor.processReading: 220 → 110 us/op (2.00x)
  generateSyntheticPopulation(100): 1090 → 595 us/op (1.83x)

Real-data integration tests (25 new tests):
- 4 realistic 23andMe fixture files (29 SNPs each) covering:
  high-risk cardio, low-risk baseline, multi-risk, PCSK9-protective
- End-to-end pipeline: parse 23andMe → biomarker scoring → streaming
- Clinical scenarios: APOE e4/e4, BRCA1 carrier, MTHFR compound het,
  COMT×OPRM1 pain, DRD2×COMT, PCSK9 protective
- Cross-validation: 8 JS↔Rust parity assertions on tables, z-scores,
  classification, vector layout, risk thresholds
- Population correlations: APOE→HDL, LPA→Lp(a), score distribution,
  clinical biomarker range validation (500 subjects)
- Full pipeline benchmark: 220 us end-to-end

https://claude.ai/code/session_014FpaYVohmyLH5dcBZTgmSY
2026-02-22 15:44:33 +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
github-actions[bot]
241ccd1cc8 chore: Update NAPI-RS binaries for all platforms
Built from commit cc5ab2438a

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

  🤖 Generated by GitHub Actions
2026-02-21 23:08:31 +00:00
github-actions[bot]
83c107f6f6 chore: Update NAPI-RS binaries for all platforms
Built from commit d772890b1f

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

  🤖 Generated by GitHub Actions
2026-02-21 19:06:11 +00:00
github-actions[bot]
f4876c1ac2 chore: Update NAPI-RS binaries for all platforms
Built from commit 059cb2a9f5

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

  🤖 Generated by GitHub Actions
2026-02-21 18:56:54 +00:00
github-actions[bot]
5f61eece8c chore: Update NAPI-RS binaries for all platforms
Built from commit 3147d1e2ef

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

  🤖 Generated by GitHub Actions
2026-02-21 18:55:02 +00:00
github-actions[bot]
814257bb9f chore: Update NAPI-RS binaries for all platforms
Built from commit 62436a4a7b

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

  🤖 Generated by GitHub Actions
2026-02-21 18:48:40 +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
github-actions[bot]
81263ac740 chore: Update NAPI-RS binaries for all platforms
Built from commit 4e374683fc

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

  🤖 Generated by GitHub Actions
2026-02-21 18:22:29 +00:00
rUv
4e374683fc feat(npm): add intelligence module to @ruvector/ruvllm 2.5.0
TypeScript IntelligenceProvider, FileSignalProvider, and
IntelligenceLoader matching the Rust ADR-043 implementation.
Also fixes invalid category slug for ruvllm crate publish.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-21 18:16:48 +00:00
github-actions[bot]
da4d5361ac chore: Update NAPI-RS binaries for all platforms
Built from commit db8f83a5a0

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

  🤖 Generated by GitHub Actions
2026-02-21 18:07:56 +00:00
github-actions[bot]
4405843663 chore: Update NAPI-RS binaries for all platforms
Built from commit 6b203274f8

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

  🤖 Generated by GitHub Actions
2026-02-21 17:46:18 +00:00
github-actions[bot]
1320fc8b18 chore: Update NAPI-RS binaries for all platforms
Built from commit 293b31aee9

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

  🤖 Generated by GitHub Actions
2026-02-20 23:16:38 +00:00
rUv
293b31aee9 docs(ruvbot): add RVF microkernel docs, bump to 0.3.1
Add comprehensive RVF section to README covering segment layout,
build/run commands, boot output, supported hypervisors, and kernel
config. Add run:rvf and inspect:rvf npm scripts.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 23:12:08 +00:00
rUv
345b0920d3 feat(ruvbot): add RVF runner with initramfs boot support
Adds run-rvf.js that extracts the kernel from KERNEL_SEG, builds a
minimal initramfs with a static init binary, and boots via QEMU.
Rebuilds kernel with CONFIG_BLK_DEV_INITRD for initramfs support.

Modes: --boot (QEMU), --runtime (Node.js), --inspect (manifest)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 23:08:16 +00:00
github-actions[bot]
526d065921 chore: Update NAPI-RS binaries for all platforms
Built from commit 5e776f377e

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

  🤖 Generated by GitHub Actions
2026-02-20 22:24:16 +00:00
github-actions[bot]
6e09b6ae2f chore: Update NAPI-RS binaries for all platforms
Built from commit e34a47cbb0

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

  🤖 Generated by GitHub Actions
2026-02-20 22:22:58 +00:00
rUv
5e776f377e chore(ruvbot): bump version to 0.3.0 for npm publish
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 22:19:48 +00:00
rUv
58954b2400 feat(ruvbot): package as self-contained RVF with real Linux 6.6 kernel
- Build real Linux 6.6.80 bzImage with tinyconfig+virtio+net (1.5 MB)
- Create build-rvf.js that assembles self-contained RVF binary:
  KERNEL_SEG: gzip-compressed Linux 6.6.80 bzImage (MicroLinux, x86_64)
  WASM_SEG: Full RuvBot Node.js runtime bundle (2.2 MB)
  META_SEG: Package metadata with capabilities
  PROFILE_SEG: AI assistant domain profile
  WITNESS_SEG: Build provenance chain
  MANIFEST_SEG: Segment directory
- Include kernel/bzImage and ruvbot.rvf in npm distribution
- Add build:rvf script to package.json
- Total RVF: 3.67 MB, bootable with Firecracker/QEMU/Cloud Hypervisor

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 22:03:47 +00:00
rUv
4cab36bb91 fix(ruvbot): fix TypeScript error in /api/chat endpoint (#146)
The chat() method signature is (sessionId, content, options?) but the API
handler was passing (sessionId, agentId, message), causing TS2559. Fix by
creating a session from agentId first, then calling chat(sessionId, message).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 21:51:54 +00:00
github-actions[bot]
b81a4b0d15 chore: Update NAPI-RS binaries for all platforms
Built from commit ba66880e10

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

  🤖 Generated by GitHub Actions
2026-02-20 21:43:38 +00:00
github-actions[bot]
91c23ae6be chore: Update NAPI-RS binaries for all platforms
Built from commit 881ba31382

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

  🤖 Generated by GitHub Actions
2026-02-20 21:04:51 +00:00
github-actions[bot]
9c1ba09355 chore: Update NAPI-RS binaries for all platforms
Built from commit 72c2a8e1b7

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

  🤖 Generated by GitHub Actions
2026-02-20 21:03:14 +00:00
github-actions[bot]
30a6d6f3f5 chore: Update NAPI-RS binaries for all platforms
Built from commit f4a2401ca0

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

  🤖 Generated by GitHub Actions
2026-02-20 20:49:05 +00:00
github-actions[bot]
2b5a232e4b chore: Update NAPI-RS binaries for all platforms
Built from commit 4ef45dbde3

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

  🤖 Generated by GitHub Actions
2026-02-20 20:45:56 +00:00
rUv
f4a2401ca0 feat(npm/rvdna): add 23andMe genotyping API v0.2.0
Adds pure-JS 23andMe genotyping pipeline mirroring the Rust rvdna::genotyping:
- parse23andMe(): v4/v5 parser with genotype normalization + build detection
- callCyp2d6() / callCyp2c19(): confidence-gated diplotype calling
- determineApoe(): APOE genotype from rs429358 + rs7412
- analyze23andMe(): full pipeline in one call
- TypeScript declarations for all new types and functions

Published as @ruvector/rvdna v0.2.0 on npm.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 20:43:29 +00:00
github-actions[bot]
19c7c42269 chore: Update NAPI-RS binaries for all platforms
Built from commit 4f320f6d5d

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

  🤖 Generated by GitHub Actions
2026-02-20 20:14:06 +00:00
rUv
4f320f6d5d perf(rvf-solver): remove duplicate WASM, optimize tarball 48% smaller
- Remove rvf_solver_wasm.wasm (172 KB) — dead weight, glue only loads
  rvf_solver_bg.wasm
- Run wasm-opt -Oz on primary binary (negligible savings, already optimized)
- Add .npmignore to exclude src/, tsconfig, .gitignore
- Remove .gitkeep from pkg/

Tarball: 137.5 KB → 71.5 KB (48% reduction)
Published as @ruvector/rvf-solver v0.1.7

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 20:09:49 +00:00
rUv
d0145fde3b fix(rvf-solver): fix WASM path resolution in CJS→ESM interop
The glue code (pkg/rvf_solver.js) used `import.meta.url` which caused
Node.js v22 to detect the file as ESM, making `module.exports` a no-op
and `__dirname` unavailable. This broke the WASM path resolution for
all consumers using `require('@ruvector/rvf-solver')`.

Fix: Rewrite glue as pure CJS — use `require('node:fs')` and
`__dirname` instead of dynamic `import()` and `import.meta.url`.
Verified: create → train → destroy works end-to-end.

Published as @ruvector/rvf-solver v0.1.6

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 20:09:49 +00:00
rUv
1c0c7280da fix(rvf-solver): include WASM binary in npm tarball, fix ESM phantom entry
- Add pkg/.npmignore to override pkg/.gitignore (which had `*` blocking
  all files from npm pack)
- Remove phantom dist/index.mjs ESM entry point (file never existed)
- Fix README: max concurrent instances is 7, not 8
- Publish as v0.1.5 with working WASM (135 KB + 172 KB)

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 20:09:49 +00:00
github-actions[bot]
4e4d5d3830 chore: Update NAPI-RS binaries for all platforms
Built from commit 9b77713212

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

  🤖 Generated by GitHub Actions
2026-02-20 19:14:55 +00:00
rUv
9b77713212
Merge pull request #186 from ruvnet/claude/solver-adr-ddd-docs-RPQjh
docs: Add comprehensive ADR and DDD documentation for sublinear-time solver
2026-02-20 14:09:48 -05: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
github-actions[bot]
ab33fd5bb9 chore: Update NAPI-RS binaries for all platforms
Built from commit 99752cef1f

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

  🤖 Generated by GitHub Actions
2026-02-20 18:11:19 +00:00
github-actions[bot]
7cf5ec3caf chore: Update RVF NAPI-RS binaries for all platforms
Built from commit 99752cef1f

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

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-02-20 18:10:34 +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
github-actions[bot]
3344e95da3 chore: Update NAPI-RS binaries for all platforms
Built from commit ef78827853

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

  🤖 Generated by GitHub Actions
2026-02-20 03:13:57 +00:00
github-actions[bot]
e7287ecf38 chore: Update NAPI-RS binaries for all platforms
Built from commit c0e8fdbf67

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

  🤖 Generated by GitHub Actions
2026-02-20 02:57:03 +00:00
github-actions[bot]
1869ae09ab chore: Update NAPI-RS binaries for all platforms
Built from commit d0ab6683f4

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

  🤖 Generated by GitHub Actions
2026-02-17 02:09:14 +00:00
github-actions[bot]
b6edeeff12 chore: Update NAPI-RS binaries for all platforms
Built from commit 89459ec431

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

  🤖 Generated by GitHub Actions
2026-02-17 02:08:36 +00:00