Commit graph

2409 commits

Author SHA1 Message Date
Reuven
4f49ec2d42 feat(demo): add interactive demos and self-learning examples
Interactive Demos:
- Similarity Search: Click image to find similar ones
- Motion Detection: Real-time scene change via embeddings
- A/B Comparison: Side-by-side image comparison
- Batch Processor: Process up to 20 images at once
- Embedding Explorer: Visualize 512-dim features with stats
- Anomaly Detection: Find outlier images in a set

Self-Learning Code Examples:
- Self-Learning System: Adaptive classifier with feedback loop
- Incremental Learning: Online learning without forgetting
- Few-Shot Learning: Learn from 1-5 examples per class
- Image Retrieval: Searchable image database
- Content Moderation: Flag similar inappropriate content
- Visual Recommendations: Recommend similar items
- Video Keyframes: Extract unique frames

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 18:26:30 -04:00
github-actions[bot]
9aaaf03786 chore: Update NAPI-RS binaries for all platforms
Built from commit da6c7e260a

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

  🤖 Generated by GitHub Actions
2026-03-11 22:15:23 +00:00
github-actions[bot]
22262d2ba2 chore: Update NAPI-RS binaries for all platforms
Built from commit 72c1f225f7

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

  🤖 Generated by GitHub Actions
2026-03-11 22:13:38 +00:00
Reuven
da6c7e260a fix(pose): force WebGL backend for TensorFlow.js compatibility
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 18:10:59 -04:00
Reuven
72c1f225f7 feat(demo): add real-time pose estimation with MoveNet
- Add new Pose Estimation tab with 17-keypoint body tracking
- Integrate TensorFlow.js MoveNet (SinglePose Lightning model)
- Real-time skeleton visualization with colored keypoints
- Pose embedding (34-dim) with similarity comparison
- Reference pose capture for pose matching
- Toggle skeleton visibility
- Add pose tracking and gesture control code examples
- Update badges and examples grid

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 18:09:07 -04:00
github-actions[bot]
641a7d355f chore: Update NAPI-RS binaries for all platforms
Built from commit 1799da243f

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

  🤖 Generated by GitHub Actions
2026-03-11 22:06:34 +00:00
github-actions[bot]
9ce3d478f0 chore: Update NAPI-RS binaries for all platforms
Built from commit 15fcb8d556

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

  🤖 Generated by GitHub Actions
2026-03-11 22:03:38 +00:00
github-actions[bot]
9aeb9c942f chore: Update NAPI-RS binaries for all platforms
Built from commit 10b03c75c6

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

  🤖 Generated by GitHub Actions
2026-03-11 22:02:36 +00:00
Reuven
1799da243f feat: add real-time CNN processing with live webcam
- Real-time embedding extraction at ~30+ FPS
- Live FPS and latency display
- Reference image comparison with similarity score
- Live embedding visualization
- Center-crop to square for consistent input

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 18:02:13 -04:00
github-actions[bot]
35ee504c64 chore: Update NAPI-RS binaries for all platforms
Built from commit 4bf6bf706b

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

  🤖 Generated by GitHub Actions
2026-03-11 22:02:00 +00:00
Reuven
15fcb8d556 fix: host WASM files locally + add console debugging
- Host ruvector_cnn_wasm.js and .wasm in docs/cnn/
- Add detailed console.log for debugging WASM init
- Remove CDN dependency for reliability

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 17:59:13 -04:00
github-actions[bot]
8007dc398a chore: Update NAPI-RS binaries for all platforms
Built from commit 955793a301

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

  🤖 Generated by GitHub Actions
2026-03-11 21:58:01 +00:00
Reuven
4bf6bf706b fix: correct WASM API usage in CNN demo
- Use object format for init: { module_or_path: url }
- Use WasmCnnEmbedder (not CnnEmbedder)
- Use snake_case methods: embedding_dim, cosine_similarity

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 17:57:25 -04:00
github-actions[bot]
81e4d73602 chore: Update NAPI-RS binaries for all platforms
Built from commit 0625e2c46c

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

  🤖 Generated by GitHub Actions
2026-03-11 21:56:46 +00:00
github-actions[bot]
6072a61d79 chore: Update NAPI-RS binaries for all platforms
Built from commit 27b1931130

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

  🤖 Generated by GitHub Actions
2026-03-11 21:56:23 +00:00
Reuven
955793a301 fix: add .nojekyll to disable Jekyll processing
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 17:53:19 -04:00
Reuven
0625e2c46c refactor: move CNN demo to docs/cnn/ for shorter URL
URL: https://ruvnet.github.io/ruvector/cnn/

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 17:52:13 -04:00
Reuven
27b1931130 fix: add docs/index.html for GitHub Pages landing
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-11 17:51:50 -04:00
rUv
10b03c75c6 feat: add interactive CNN browser demo for GitHub Pages (#253)
- Single-file HTML demo with modern dark theme UI
- Drag & drop image upload + camera capture
- Real-time embedding extraction and visualization
- Similarity matrix comparing multiple images
- Performance metrics display (~5ms per image)
- Falls back to demo mode if WASM fails to load
- ADR-089 documenting the approach

Deploy to: https://ruvnet.github.io/ruvector/demo/cnn/

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-03-11 17:50:42 -04:00
github-actions[bot]
1caaa1b2fa chore: Update NAPI-RS binaries for all platforms
Built from commit e743785c7d

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

  🤖 Generated by GitHub Actions
2026-03-11 21:46:44 +00:00
rUv
e743785c7d feat(ruvector-cnn): CNN contrastive learning + SIMD optimization fixes (#252)
* feat: add CNN contrastive learning crate with SIMD optimization

- Add ruvector-cnn crate with SIMD-optimized convolutions and contrastive losses
- Implement InfoNCE (SimCLR) and TripletLoss for contrastive learning
- Add MobileNet-V3 inspired backbone architecture
- Include AVX2, NEON, WASM SIMD support with scalar fallback
- Add WASM bindings (ruvector-cnn-wasm) for browser/Node.js
- Add npm package with TypeScript definitions
- Include comprehensive research docs and ADR-088
- 36 tests passing

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

* feat: add npm package JavaScript wrapper and TypeScript definitions

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

* fix(ruvector-cnn): implement real SIMD and fix stubbed code

## SIMD Implementations (was using scalar fallbacks)
- AVX2: conv_3x3_avx2, conv_3x3_avx2_fma, depthwise_conv_3x3_avx2
- AVX2: global_avg_pool_avx2, max_pool_2x2_avx2
- WASM: conv_3x3_wasm, depthwise_conv_3x3_wasm

All now use real SIMD intrinsics processing 8 (AVX2) or 4 (WASM)
channels simultaneously with scalar fallback for remainders.

## Backbone Fixes
- Deprecated MobileNetV3Small/Large (use unified MobileNetV3 instead)
- Implemented actual block processing in forward() methods
- Fixed hardcoded channel counts in global_avg_pool calls

## Dead Code Fixes
- Added #[allow(dead_code)] for momentum field (used in training)
- Added #[allow(dead_code)] for rng field (feature-gated)
- Added #[cfg(feature = "augmentation")] for rand::Rng import
- Commented out undefined "parallel" feature reference

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

* feat(ruvector-cnn): add Winograd F(2,3) and π-calibrated INT8 quantization

- Add Winograd F(2,3) transforms for 2.25x faster 3x3 convolutions
- Implement π-calibrated INT8 quantization with anti-resonance offsets
- Apply 4x loop unrolling with 4 accumulators to AVX2 convolutions
- Update README with practical intro, capabilities table, benchmarks
- Update npm README with simpler language and examples
- Add CNN image embeddings to root README capabilities

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

* feat: publish @ruvector/cnn v0.1.0 WASM npm package

- Add unsafe blocks for WASM SIMD intrinsics (v128_load/v128_store)
- Disable wasm-opt to avoid SIMD validation issues
- Build and include WASM bindings in npm package
- Update npm package.json with all WASM files
- Published to npm as @ruvector/cnn@0.1.0

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

---------

Co-authored-by: Reuven <cohen@ruv-mac-mini.local>
2026-03-11 17:41:53 -04:00
github-actions[bot]
aa57b9a7c2 chore: Update NAPI-RS binaries for all platforms
Built from commit 7ace64061d

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

  🤖 Generated by GitHub Actions
2026-03-10 20:05:41 +00:00
rUv
7ace64061d fix: auto-generate embedding and witness_hash for page creation
CreatePageRequest previously required embedding and witness_hash
fields, causing 422 errors when clients (including MCP SSE) omitted
them. Now matches ShareRequest behavior: #[serde(default)] on
embedding, witness_hash, tags, and evidence_links. Server
auto-generates 128-dim embedding via ruvllm and SHAKE-256 witness
hash when not provided.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-10 20:01:10 +00:00
github-actions[bot]
c1522bad91 chore: Update NAPI-RS binaries for all platforms
Built from commit 82b3431853

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

  🤖 Generated by GitHub Actions
2026-03-10 19:25:22 +00:00
rUv
82b3431853 feat: make SSE the default MCP connection method on pi.ruv.io
Restructure Guide modal MCP tab to lead with SSE (one command, no
install) and demote npx/Cargo to an optional "Local install" step.
Update main page terminal section to show SSE first.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-10 19:20:45 +00:00
github-actions[bot]
0122f35a1a chore: Update NAPI-RS binaries for all platforms
Built from commit 296749aafb

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

  🤖 Generated by GitHub Actions
2026-03-10 19:12:11 +00:00
rUv
296749aafb docs: add SSE transport documentation to pi.ruv.io landing page
Add remote MCP SSE connection instructions to the Guide modal (MCP tab)
and the main page terminal section. Users can now connect via
`claude mcp add pi-brain --transport sse https://pi.ruv.io/sse`
without any local install.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-10 19:06:25 +00:00
github-actions[bot]
48c3812e4e chore: Update NAPI-RS binaries for all platforms
Built from commit d11dde6dbd

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

  🤖 Generated by GitHub Actions
2026-03-10 15:02:35 +00:00
rUv
d11dde6dbd fix: prevent .mcp.json overwrites by removing empty mcpServers from settings (#250)
Stop writing empty mcpServers: {} to settings.json which could trigger
Claude Code to regenerate .mcp.json, stripping user-added fields like
autoStart. Doctor --fix now cleans up stale empty mcpServers entries.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-10 14:55:40 +00:00
github-actions[bot]
380a00a4e4 chore: Update NAPI-RS binaries for all platforms
Built from commit a1c3ae6dec

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

  🤖 Generated by GitHub Actions
2026-03-08 17:15:30 +00:00
github-actions[bot]
ad922c5bd5 chore: Update NAPI-RS binaries for all platforms
Built from commit 72649db3d8

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

  🤖 Generated by GitHub Actions
2026-03-08 17:08:29 +00:00
rUv
a1c3ae6dec security: harden ADR-087 with 6 security audit findings
Adds Section 20 (Security Hardening Notes) addressing: root task
privilege attenuation post-boot, capability delegation depth limits,
boot RVF proof bootstrap resolution, Reflex proof cache scoping,
zero-copy IPC TOCTOU mitigation, and boot signature failure behavior.
All findings are specification clarifications, not structural flaws.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-08 17:06:09 +00:00
rUv
72649db3d8 Merge pull request #248 from ruvnet/feat/ruvix-kernel
feat: ADR-087 RuVix Cognition Kernel
2026-03-08 13:04:17 -04:00
rUv
1ddb44a0dd feat: add ADR-087 RuVix Cognition Kernel architecture
Defines a cognition kernel for the Agentic Age with 6 primitives
(task, capability, region, queue, timer, proof), 12 syscalls, and
RVF as the native boot object. Includes coherence-aware scheduler,
proof-gated mutation as kernel invariant, seL4-inspired capabilities,
io_uring-style queue IPC, 8 demo applications, and a two-phase build
path (Linux-hosted nucleus → bare metal AArch64).

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-08 16:34:48 +00:00
github-actions[bot]
eca17ddd82 chore: Update NAPI-RS binaries for all platforms
Built from commit 97218b9d0f

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

  🤖 Generated by GitHub Actions
2026-03-08 16:27:56 +00:00
rUv
97218b9d0f Merge pull request #244 from ruvnet/feat/neural-trader
feat: neural trader — market graph types, MinCut coherence gate, reservoir replay
2026-03-08 12:22:56 -04:00
rUv
dc0de72d9c feat: add neural-trader-wasm crate with WASM bindings and ADR-086
Adds browser WASM bindings for neural-trader-core, coherence, and replay
crates using the established wasm-bindgen pattern. Includes BigInt-safe
serialization, hex ID helpers, 10 unit tests, 43 Node.js smoke tests,
comprehensive README, and animated dot-matrix visuals for π.ruv.io.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-08 16:17:58 +00:00
rUv
ce2647ccc7 docs: add neural trader crates to root README
Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 19:23:18 +00:00
rUv
2ba13251e4 fix: renumber ADR-084 → ADR-085, fix unused deps in neural-trader crates
- Rename ADR-084-neural-trader to ADR-085 (ADR-084 is taken by ruvllm-wasm-publish)
- Move serde_json to dev-dependencies in neural-trader-core (only used in tests)
- Remove unused neural-trader-core dependency from neural-trader-coherence

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 19:12:33 +00:00
Claude
cd04afe201 fix: optimize ADR-084 and harden neural-trader crates
ADR:
- Add SQL indexes on (symbol_id, ts_ns) for all tables
- Add HNSW index on nt_embeddings.embedding
- Range-partition nt_event_log and nt_segments by timestamp
- Add retention config (hot/warm/cold TTL) to example YAML
- Add retrieval weight normalization constraint (α+β+γ+δ=1)
- Cross-reference existing examples/neural-trader/

Code:
- core: Replace String property keys with PropertyKey enum (zero alloc)
- core: Add PartialEq on MarketEvent for test assertions
- coherence: Fix redundant drift check — learning now requires half
  drift margin (stricter than act/write)
- coherence: Add boundary_stable_count to GateContext and enforce
  boundary stability window threshold from ADR gate policy
- coherence: Add PartialEq on CoherenceDecision
- coherence: Add 2 new tests (high_drift, boundary_instability)
- replay: Switch ReservoirStore from Vec to VecDeque for O(1) eviction
- replay: Use RegimeLabel enum instead of Option<String> in MemoryQuery

12 tests pass (was 10).

https://claude.ai/code/session_01EExDkEDv4eejvfgqUWnSks
2026-03-06 19:11:37 +00:00
Claude
8da5be5961 feat: Add ADR-084 Neural Trader and three starter crates
ADR-084 defines the RuVector-native Neural Trader architecture using
dynamic market graphs, mincut coherence gating, and proof-gated mutation.
Includes three starter crates (neural-trader-core, neural-trader-coherence,
neural-trader-replay) with canonical types, threshold gate, reservoir
memory store, and 10 passing tests.

https://claude.ai/code/session_01EExDkEDv4eejvfgqUWnSks
2026-03-06 19:11:37 +00:00
github-actions[bot]
c760df8059 chore: Update NAPI-RS binaries for all platforms
Built from commit e94412e5b3

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

  🤖 Generated by GitHub Actions
2026-03-06 15:18:21 +00:00
rUv
e94412e5b3 docs: add accurate ruvllm-wasm README with working API examples
Replaces outdated README that referenced non-existent APIs
(load_model_from_url, generate_stream) with documentation
matching the actual v2.0.0 exports.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 15:14:06 +00:00
github-actions[bot]
19c3443744 chore: Update NAPI-RS binaries for all platforms
Built from commit ef1f665203

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

  🤖 Generated by GitHub Actions
2026-03-06 15:12:35 +00:00
github-actions[bot]
9db26a25b3 chore: Update NAPI-RS binaries for all platforms
Built from commit 25e208b0fe

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

  🤖 Generated by GitHub Actions
2026-03-06 15:11:05 +00:00
rUv
ef1f665203 docs: update README with ruvllm-wasm v2.0.0 — accurate API examples, npm link
- Fix browser code example to use actual working API (ChatTemplateWasm, HnswRouterWasm)
- Add npm install line for @ruvector/ruvllm-wasm
- Update npm packages count (4→5) with ruvllm-wasm link
- Update WASM size to actual 435KB (178KB gzipped)
- Link ruvllm-wasm feature table to npm package

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 15:07:08 +00:00
rUv
25e208b0fe Merge pull request #241 from ruvnet/feat/ruvllm-wasm-publish
feat: ruvllm-wasm v2.0.0 — first functional WASM publish
2026-03-06 10:06:05 -05:00
rUv
da0f016d0f feat: ruvllm-wasm v2.0.0 — first functional WASM publish
- Gate WebGPU web-sys features behind `webgpu` Cargo feature flag
- Remove unused bytemuck, gpu_map_mode, GpuSupportedLimits dependencies
- Add wasm-opt=false workaround for Rust 1.91 codegen bug
- Published @ruvector/ruvllm-wasm@2.0.0 with compiled WASM binary (435KB)
- ADR-084 documenting build workarounds and known limitations

Closes #240

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-06 14:55:34 +00:00
github-actions[bot]
0657a96082 chore: Update NAPI-RS binaries for all platforms
Built from commit 3d7f31ce7e

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

  🤖 Generated by GitHub Actions
2026-03-06 14:11:17 +00:00
github-actions[bot]
41d318e424 chore: Update NAPI-RS binaries for all platforms
Built from commit 423908655c

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

  🤖 Generated by GitHub Actions
2026-03-06 14:10:32 +00:00