Skip to content

chore(graph-node): update npm package to v2.0.2#158

Open
ruvnet wants to merge 721 commits intomainfrom
feat/rvlite-v0.3.0
Open

chore(graph-node): update npm package to v2.0.2#158
ruvnet wants to merge 721 commits intomainfrom
feat/rvlite-v0.3.0

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented Feb 8, 2026

Summary

  • Updates @ruvector/graph-node from 0.1.26 to 2.0.2
  • Aligns npm package version with crates.io v2.0.1 release
  • Updates platform dependency versions to match

Related

  • Follows @ruvector/graph-wasm@2.0.2 npm publish

Test Plan

  • GitHub Actions builds multi-platform NAPI-RS binaries
  • Publish to npm on merge

🤖 Generated with Claude Code

ruvnet and others added 30 commits December 30, 2025 19:15
Removed legacy /npm/ruvector/ (v0.1.38) in favor of
/npm/packages/ruvector/ (v0.1.42) which is actively maintained
and published to npm.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fixes $schema to correct URL
- Removes invalid Start/End hooks (renamed to SessionStart/Stop)
- Preserves other existing settings when merging

Bumps to v0.1.43

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…tation

- Added CLAUDE.md creation to 'hooks init' command
- Includes complete hooks documentation and CLI commands
- Added --no-claude-md flag to skip CLAUDE.md creation
- Respects existing CLAUDE.md unless --force is used
chore: remove duplicate npm/ruvector directory
  Built from commit 598e2a1

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

  🤖 Generated by GitHub Actions
- Add environment variables (RUVECTOR_INTELLIGENCE_ENABLED, LEARNING_RATE, etc.)
- Add permissions configuration (allow/deny lists)
- Add UserPromptSubmit hook for context suggestions
- Add PreCompact hook for preserving context before compaction
- Add Notification hook for event tracking
- Add --minimal flag for basic hooks only
- Add --no-env and --no-permissions flags
- Updated CLAUDE.md template with complete documentation
… init

New commands:
- hooks verify: Check if hooks are working correctly
- hooks doctor: Diagnose and fix setup issues (with --fix)
- hooks export: Export intelligence data for backup
- hooks import: Import intelligence data (with --merge, --dry-run)

Enhanced init:
- Auto-detect project type (Rust, Node, Python, Go, Ruby, Java)
- Project-specific permissions (cargo for Rust, npm for Node, etc.)
- StatusLine configuration with .claude/statusline.sh
- MCP server configuration (claude-flow)
- .gitignore update (adds .ruvector/)
- Creates .ruvector/ directory

New options for init:
- --no-gitignore: Skip .gitignore update
- --no-mcp: Skip MCP server configuration
- --no-statusline: Skip statusLine configuration
New command:
- hooks pretrain: Bootstrap intelligence by analyzing repository
  - Phase 1: Analyze file structure → agent routing patterns
  - Phase 2: Analyze git history → co-edit patterns
  - Phase 3: Create vector memories from key files
  - Phase 4: Build directory-agent mappings

Options:
  --depth <n>: Git history depth (default: 100)
  --workers <n>: Parallel workers (default: 4)
  --skip-git: Skip git history analysis
  --skip-files: Skip file structure analysis
  --verbose: Show detailed progress

Fix:
- Removed fork bomb pattern from deny list (caused validation error)
…nto init

New command:
- hooks build-agents: Generate optimized agent configs based on repo analysis
  - Focus modes: quality, speed, security, testing, fullstack
  - Detects languages (Rust, TypeScript, Python, Go) and frameworks (React, Vue)
  - Generates YAML/JSON/MD agent definitions with system prompts
  - Creates coordinator agent with routing rules
  - Outputs to .claude/agents/

Init enhancements:
- --pretrain: Bootstrap intelligence after init
- --build-agents [focus]: Generate agents after init

Example: npx ruvector hooks init --pretrain --build-agents security
- Intelligence now saves to .ruvector/intelligence.json in project dir
- Falls back to ~/.ruvector/ only if no project context found
- Prefers project-local when .ruvector/ or .claude/ exists
- Fixes verify showing 'will be created' after pretrain
- Added hooks feature summary near top of README.md
- Created comprehensive HOOKS.md documentation
- Links to detailed docs for pretrain, build-agents, verify, etc.
Add Model Context Protocol (MCP) server with stdio transport for
seamless Claude Code integration. Provides 10 self-learning
intelligence tools via JSON-RPC protocol.

New commands:
- `npx ruvector mcp start` - Start MCP server
- `npx ruvector mcp info` - Show setup instructions

MCP Tools:
- hooks_stats - Get intelligence statistics
- hooks_route - Route task to best agent
- hooks_remember - Store context in vector memory
- hooks_recall - Search vector memory semantically
- hooks_init - Initialize hooks in project
- hooks_pretrain - Pretrain from repository
- hooks_build_agents - Generate agent configs
- hooks_verify - Verify hooks configuration
- hooks_doctor - Diagnose setup issues
- hooks_export - Export intelligence data

MCP Resources:
- ruvector://intelligence/stats
- ruvector://intelligence/patterns
- ruvector://intelligence/memories

Setup: claude mcp add ruvector npx ruvector mcp start

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…d attention

- Add IntelligenceEngine class integrating VectorDB, SONA, and Attention
- Add 11 new MCP tools (22 total): trajectory tracking, co-edit patterns,
  error suggestions, swarm recommendations, force learning
- Add 8 new CLI commands: trajectory-begin/step/end, coedit-record/suggest,
  error-record/suggest, force-learn
- Integrate Flash/MultiHead attention for embeddings with fallbacks
- Add Read/Glob/Task hooks to settings.json for pattern learning
- Fix @ruvector/attention-linux-x64-gnu (publish v0.1.3)
- Published ruvector@0.1.53

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
feat(hooks): Full IntelligenceEngine with MCP tools, trajectory tracking, and attention
  Built from commit 23fc783

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

  🤖 Generated by GitHub Actions
Add complete integration examples for all 20+ @neural-trader npm packages
with the RuVector platform:

Core Integration:
- basic-integration.js: HNSW vector indexing with trading operations
- hnsw-vector-search.js: Pattern matching with 150x faster native search
- technical-indicators.js: 150+ indicators (RSI, MACD, Bollinger, etc.)

Strategy & Portfolio:
- backtesting.js: Walk-forward optimization, Monte Carlo simulation
- optimization.js: Markowitz, Risk Parity, Black-Litterman portfolios

Neural Networks:
- training.js: LSTM training for price prediction with RuVector storage

Risk Management:
- risk-metrics.js: VaR, CVaR, stress testing, position limits

MCP Integration:
- mcp-server.js: 87+ trading tools via Model Context Protocol

Accounting:
- crypto-tax.js: FIFO/LIFO/HIFO cost basis with native Rust bindings

Specialized Markets:
- sports-betting.js: Arbitrage detection, Kelly criterion sizing
- prediction-markets.js: Polymarket/Kalshi expected value analysis
- news-trading.js: Sentiment-driven event trading

Full Platform:
- platform.js: Complete trading system integration demo

Packages integrated:
- neural-trader@2.7.1 (core engine, 178 NAPI functions)
- @neural-trader/core, strategies, execution, portfolio, risk
- @neural-trader/neural, features, backtesting, market-data
- @neural-trader/mcp, brokers, predictor, backend
- @neural-trader/agentic-accounting-rust-core
- @neural-trader/sports-betting, prediction-markets, news-trading
- @ruvector/core for HNSW vector database
Advanced examples (production-grade):
- live-broker-alpaca.js: Production broker integration with smart order routing
- order-book-microstructure.js: VPIN, Kyle's Lambda, spread decomposition
- conformal-prediction.js: Distribution-free guaranteed prediction intervals

Exotic examples (cutting-edge techniques):
- multi-agent-swarm.js: Distributed trading with consensus mechanisms
- gnn-correlation-network.js: Graph neural network correlation analysis
- attention-regime-detection.js: Transformer attention for regime detection
- reinforcement-learning-agent.js: Deep Q-Learning trading agent
- quantum-portfolio-optimization.js: QAOA and quantum annealing
- hyperbolic-embeddings.js: Poincaré disk market embeddings
- atomic-arbitrage.js: Cross-exchange atomic arbitrage with MEV protection

Updated package.json with npm scripts for all new examples.
Updated README.md with documentation for advanced/exotic techniques.
Key fixes across exotic neural-trader examples:

- reinforcement-learning-agent.js: Fixed broken backpropagation that only
  updated output layer. Now stores activations and flows gradients through
  all hidden layers properly.

- quantum-portfolio-optimization.js: Fixed QAOA mixer Hamiltonian that was
  incorrectly accumulating all qubit operations. Now applies Rx rotations
  sequentially per-qubit with proper normalization.

- hyperbolic-embeddings.js: Fixed Math.acosh/atanh domain errors and
  implemented proper Riemannian gradient descent using expMap in Poincaré
  ball model.

- multi-agent-swarm.js: Added division-by-zero guards for linear regression,
  z-score calculation, and iterator type fixes. Added memory bounds.

- gnn-correlation-network.js: Added guards for betweenness normalization
  (n<3), density (n<2), and clustering/degree calculations (n=0).

- attention-regime-detection.js: Added empty array handling for softmax and
  matrix validation for transpose operations.

- atomic-arbitrage.js: Added guard for flash loan spread calculation.
Generated during deep review of exotic neural-trader examples.
The download logic would immediately fail if model.onnx wasn't at the
repo root, never trying the onnx/ subfolder where most sentence-transformer
models store their ONNX files.

Now tries both locations:
1. Root: {repo}/model.onnx
2. Subfolder: {repo}/onnx/model.onnx

Also applies fallback logic to auxiliary files (tokenizer.json, config.json).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed invalid category "machine-learning" to "algorithms".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
New optional companion package using Tract for inference:
- Runs in browsers, Cloudflare Workers, Deno, edge environments
- Same API as native crate
- JavaScript bindings via wasm-bindgen
- Supports all pooling strategies (Mean, Cls, Max, etc.)

Uses Tract instead of ONNX Runtime for WASM compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ples

- gnn-correlation-network.js: Added RollingStats class for O(1) incremental
  updates and correlation caching with TTL to avoid redundant O(n²) calculations

- attention-regime-detection.js: Optimized matmul with cache-friendly i-k-j
  loop order and added empty matrix guards

- quantum-portfolio-optimization.js: Added ComplexPool for object reuse to
  reduce GC pressure, plus in-place operations (addInPlace, multiplyInPlace,
  scaleInPlace) to avoid allocations in hot loops

- multi-agent-swarm.js: Added RingBuffer for O(1) bounded memory operations
  and SignalPool for signal object reuse
Validates core WASM bindings work:
- Version check
- Cosine similarity utility
- L2 normalization utility
- Config creation and chaining

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fixes PreToolUse:Read hook error by supporting --silent flag
for Read/Glob/Task hooks that should not produce output.

Published ruvector@0.1.54

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds loader.js with:
- Pre-configured model URLs for 6 popular models
- ModelLoader class with caching and progress reporting
- createEmbedder() helper for quick setup
- embed() and similarity() one-liner helpers

Supported models:
- all-MiniLM-L6-v2 (default)
- all-MiniLM-L12-v2
- bge-small-en-v1.5
- bge-base-en-v1.5
- e5-small-v2
- gte-small

Usage:
```javascript
import { createEmbedder } from './loader.js';
const embedder = await createEmbedder('all-MiniLM-L6-v2');
const embedding = embedder.embedOne("Hello world");
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added npm and crates.io version badges
- WebAssembly and MIT license badges
- Quick start examples for Browser, Node.js, and Cloudflare Workers
- Complete API reference for WasmEmbedder, WasmEmbedderConfig
- Model comparison table with 6 HuggingFace models
- Performance benchmarks and use case examples

Published to npm as ruvector-onnx-embeddings-wasm@0.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Enable WASM SIMD128 instructions for vectorized operations
- Update simd_available() to properly detect SIMD at compile time
- SIMD build is 180KB smaller than non-SIMD (more compact instructions)
- Published v0.1.1 to both npm and crates.io

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ParallelEmbedder class using Node.js worker_threads
- Distributes batches across multiple CPU cores
- Benchmark results: 3.6-3.8x speedup on batch processing
- Per-text latency drops from ~390ms to ~103ms with 4 workers
- Published v0.1.2 to npm and crates.io

Usage:
  import { ParallelEmbedder } from 'ruvector-onnx-embeddings-wasm/parallel';
  const embedder = new ParallelEmbedder({ numWorkers: 4 });
  await embedder.init();
  const embeddings = await embedder.embedBatch(texts);

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added SIMD badge and documentation
- Added ParallelEmbedder API reference and usage examples
- Updated performance benchmarks with parallel vs sequential comparison
- Added browser compatibility table
- Added changelog section
- Added batch processing use case example
- Updated build instructions with SIMD flags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
claude and others added 29 commits January 27, 2026 04:49
- Added RuvBot vs Clawdbot feature comparison table
- Added performance benchmarks (50-100x speedups)
- Added 3-tier LLM routing documentation
- Added 6-layer security architecture diagram
- Added 12 background worker types documentation
- Added SONA learning pipeline diagram
- Expanded skills section with SOTA features

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
- Added complete skills comparison (52 Clawdbot → 68+ RuvBot)
- Added RuVector-exclusive capabilities section
- Added agentic-flow integration details (12 workers, 4 topologies, 4 consensus)
- Added benchmark table showing RuvBot dominance
- Added module-by-module comparison with improvements
- Shows RuvBot is definitively better in every dimension

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
…nation

ADR-009: Hybrid Search Architecture
- Vector + BM25 keyword search fusion
- Reciprocal Rank Fusion (RRF)
- Performance targets (<25ms total)

ADR-010: Multi-Channel Integration
- 8+ channel adapters (Slack, Discord, Telegram, Signal, WhatsApp, Line, Web, CLI)
- Unified message interface
- Multi-tenant channel isolation

ADR-011: Swarm Coordination (agentic-flow)
- 4 topology types (hierarchical, mesh, hybrid, adaptive)
- 4 consensus protocols (byzantine, raft, gossip, crdt)
- 12 specialized background workers

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
Implements comprehensive capabilities matching and exceeding Clawdbot:

Hybrid Search:
- BM25Index: Full-text search with TF-IDF scoring
- HybridSearch: Vector + keyword fusion with RRF

Multi-Channel Adapters:
- BaseAdapter: Unified message interface
- SlackAdapter: @slack/bolt integration
- DiscordAdapter: discord.js integration
- TelegramAdapter: telegraf integration
- ChannelRegistry: Multi-tenant channel management

Swarm Coordination:
- SwarmCoordinator: 12 specialized workers, 4 topologies
- ByzantineConsensus: PBFT-style fault tolerance

LLM Providers:
- AnthropicProvider: Claude models with streaming
- OpenRouterProvider: Multi-model including QwQ reasoning

Total: 3,954 new lines of production code

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
Google Cloud Deployment:
- Dockerfile: Multi-stage build for Cloud Run (~150MB)
- docker-compose.yml: Local development with PostgreSQL, Redis
- deploy/gcp/cloudbuild.yaml: CI/CD pipeline
- deploy/gcp/terraform/main.tf: Infrastructure as code
- deploy/gcp/deploy.sh: Quick deployment script
- deploy/init-db.sql: PostgreSQL schema with RLS

Estimated cost: ~$15-20/month for low traffic

Documentation Updates:
- ADR-012: LLM Provider Integration (Anthropic + OpenRouter)
- ADR-013: GCP Deployment Architecture
- Updated README with GCP and LLM sections
- Updated FEATURE_COMPARISON.md with:
  - Cloud deployment comparison
  - LLM provider comparison
  - Hybrid search (BM25 + Vector RRF)
  - Reasoning model support (QwQ, DeepSeek R1, O1)

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
Adds production-ready AI defense through aidefence@2.1.1:

Security Features:
- Prompt injection detection (<10ms, 50+ patterns)
- Jailbreak prevention (DAN, bypass, unlimited mode)
- PII detection and masking (email, phone, SSN, API keys)
- Control character sanitization
- Unicode homoglyph normalization
- Behavioral analysis (optional)
- Response validation

New Files:
- src/security/AIDefenceGuard.ts - Main guard implementation
- src/security/index.ts - Module exports
- docs/adr/ADR-014-aidefence-integration.md - Architecture decision

Updated:
- package.json - Added aidefence@^2.1.1 dependency
- src/index.ts - Export security module
- README.md - Added AI Defense section

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
Adds extensible plugin system with:

Features:
- Plugin discovery from ./plugins directory
- Lifecycle management (install, enable, disable, unload)
- Hot-reload support
- Sandboxed execution with permissions
- IPFS registry integration (optional)
- Plugin scaffolding utility

New Files:
- src/plugins/PluginManager.ts - Main plugin manager (500+ lines)
- src/plugins/index.ts - Module exports

Updated:
- src/index.ts - Export plugins module
- README.md - Added plugin system documentation
- FEATURE_COMPARISON.md - Added plugin system comparison

Plugin Permissions:
- memory:read/write
- session:read/write
- skill:register/invoke
- llm:invoke
- http:outbound
- fs:read/write

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
- Add 29 AIDefence tests covering prompt injection, jailbreak, PII,
  sanitization, response validation, and performance benchmarks
- Add 24 plugin manager tests covering manifest validation, lifecycle,
  permissions, events, and registry operations
- Fix response validation to detect injection echoes in LLM responses
  by using all injection patterns and adding response-specific patterns

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
…ugins, and agent commands

- Add .env.example with all environment variables documented
- Add bin/ruvbot.js entry point for npx execution
- Add doctor command with 10+ health checks (Node, env, db, LLM, memory, security)
- Add memory commands (stats, store, search, export, import, clear, info)
- Add security commands (scan, audit, test, config, stats)
- Add plugins commands (list, create, info, validate)
- Add agent/swarm commands (spawn, list, stop, status, swarm init/status/dispatch)
- Update package.json with bin entry and files array

CLI Commands:
  ruvbot start       - Start RuvBot server
  ruvbot init        - Initialize RuvBot (--preset minimal/standard/full)
  ruvbot doctor      - Run diagnostics (--fix, --json)
  ruvbot config      - Manage configuration (--show, --validate)
  ruvbot status      - Show bot status (--watch)
  ruvbot memory      - Memory management (stats, info, store, search, etc.)
  ruvbot security    - Security scanning (scan, audit, test, config, stats)
  ruvbot plugins     - Plugin management (list, create, info, validate)
  ruvbot agent       - Agent management (spawn, list, stop, status)
  ruvbot agent swarm - Swarm coordination (init, status, dispatch)
  ruvbot skills      - List available skills
  ruvbot version     - Show version information

https://claude.ai/code/session_01GGEDq3rjDELfBzhn9u5fTo
- Create missing learning/memory/MemoryManager.ts with Embedder and VectorIndex interfaces
- Fix core/index.ts to re-export memory types from learning module instead of non-existent core/memory
- Fix HybridSearch to await async vectorIndex.add() call and handle empty queries
- Fix MockSlackWebClient name collisions (users, files, reactions private Maps shadowed by API objects)
- Fix MockRouter path matching to properly split method:path keys with param colons
- Fix SkillRegistry updateMetrics calculation for success rate
- Fix test mocks to match async interface signatures (VectorIndex, Embedder)
- Update skill test latency calculation to use performance.now() for sub-ms precision

Test results: 561 passing (previously 287), 10 remaining edge case failures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add server.ts with REST API endpoints for RuvBot
- Implement health/ready checks for Cloud Run
- Add agent and session management API
- Integrate AIDefence security layer in production
- Fix Dockerfile CMD path to dist/server.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix pino error serialization (use 'err' key instead of 'error')
- Add detailed logging for JSON parse errors with rawBody preview
- Add nested try-catch for AIDefence output validation
- Block critical threats with SECURITY_BLOCKED error code
- Add /api/models endpoint with 12+ supported LLM models
- Add Gemini 2.5 Pro support via OpenRouter
- Update README with stronger security messaging vs Clawdbot
- Update FEATURE_COMPARISON.md with security gap analysis
- Bump version to 0.1.1

Tested and verified on Cloud Run deployment:
- All endpoints working: health, ready, status, models, agents, sessions, chat
- Chat returns proper fallback when LLM not configured
- Error logs now properly serialize error objects

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add embedded chat UI with dark mode default (ADR-015)
- Add channel setup commands for Slack, Discord, Telegram
- Add webhook configuration CLI commands
- Add cloud deployment CLI with Cloud Run, Docker, Kubernetes support
- Add gcloud CLI integration and curl-based installer
- Add template library system for quick starts
- Update Dockerfile to include static files
- Bump version to 0.1.6

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add GoogleAIProvider for direct Gemini API access
- Support Gemini 2.5 Flash, Pro, and Lite models
- Add Gemini 3.x preview models
- Auto-detect and use Google AI when GOOGLE_AI_API_KEY is set
- Update chat UI with debugging and LLM status checks
- Fix model routing for Google Cloud deployments
- Bump version to 0.1.8

Tested models:
- gemini-2.5-flash (stable, recommended)
- gemini-2.5-pro (stable)
- gemini-2.5-flash-lite (stable)

Sources:
- https://ai.google.dev/gemini-api/docs/models

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements the full delta-behavior framework - systems where change is
permitted but collapse is not.

## Core Implementation
- Coherence type with [0,1] bounds and safe constructors
- Three-layer enforcement: energy cost, scheduling, memory gating
- DeltaSystem trait for coherence-preserving systems
- DeltaConfig with strict/relaxed/default presets

## 11 Exotic Applications
1. Self-Limiting Reasoning - AI that does less when uncertain
2. Computational Event Horizon - bounded computation without hard limits
3. Artificial Homeostasis - synthetic life with coherence-based survival
4. Self-Stabilizing World Model - models that refuse to hallucinate
5. Coherence-Bounded Creativity - novelty without chaos
6. Anti-Cascade Financial System - markets that cannot collapse
7. Graceful Aging - systems that simplify over time
8. Swarm Intelligence - collective behavior without pathology
9. Graceful Shutdown - systems that seek safe termination
10. Pre-AGI Containment - bounded intelligence growth
11. Extropic Substrate - goal mutation, agent lifecycles, spike semantics

## Performance Optimizations
- O(n²) → O(n·k) swarm neighbor detection via SpatialGrid
- O(n) → O(1) coherence calculation with incremental cache
- VecDeque for O(1) history removal
- SIMD utilities with 8x loop unrolling
- Bounded history to prevent memory leaks

## Security Fixes
- Replaced unsafe static mut with AtomicU64 for thread-safe RNG
- NaN validation on all coherence inputs
- Overflow protection in calculations

## WASM + TypeScript SDK
- Full wasm-bindgen exports for all 11 applications
- High-level TypeScript SDK with ergonomic APIs
- Browser and Node.js examples

## Test Coverage
- 32 lib tests, 14 WASM tests, 13 doc tests (59 total)

Resolves #140

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds modular crates implementing delta-behavior for different domains:

## ruvector-delta-core
- Delta trait with compute/apply/compose/inverse operations
- VectorDelta with sparse/dense encoding
- DeltaStream for event sourcing with checkpoints
- DeltaWindow for time-bounded aggregation
- Compression codecs: LZ4, Zstd, DeltaOfDelta, Quantized

## ruvector-delta-wasm
- JsDelta JavaScript-friendly wrapper
- DeltaEngine for capture/apply operations
- SIMD-accelerated operations
- SharedBuffer and BufferPool for memory management

## ruvector-delta-index
- DeltaHnsw - delta-aware HNSW index
- IncrementalUpdater with multiple strategies
- GraphRepairer with lazy/eager/batched/adaptive modes
- QualityMonitor for recall estimation

## ruvector-delta-graph
- GraphDelta for node/edge operations
- NodeDelta with property and label changes
- EdgeDelta with weight and type changes
- DeltaAwareTraversal (BFS, DFS, shortest path)

## ruvector-delta-consensus
- VectorClock and HybridLogicalClock
- DeltaConsensus coordinator
- DeltaGossip for delta dissemination
- CRDTs: GCounter, PNCounter, LWWRegister, ORSet

Test coverage: 77+ tests across all crates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add ChatEnhancer for enhanced chat processing with skills, memory,
  and proactive assistance integration
- Add SkillExecutor for skill lifecycle management and execution
- Add builtin skills: CodeSkill, MemorySkill, SummarizeSkill, WebSearchSkill
- Improve server.ts with better error handling and session management
- Update AIDefenceGuard with enhanced security checks
- Update chat UI with improved styling and interactions
- Bump version to 0.1.1 with delta crates integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
feat(ruvbot): v0.1.1 with skill system, chat UI, and delta crates
  Built from commit 048b8e5

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

  🤖 Generated by GitHub Actions
This commit fixes a critical P0 bug where HNSW indexes on ruvector
columns would crash PostgreSQL with a segmentation fault when using
parameterized queries (prepared statements, ORMs, application drivers).

Root Cause:
- Query vector extraction failed for parameterized queries
- Code fell back to zero vector without validation
- Zero vector caused segfault during HNSW search

Changes:
- Add multi-method query vector extraction pipeline
  1. Direct RuVector::from_polymorphic_datum()
  2. Text parameter conversion for parameterized queries
  3. Validated varlena fallback with dimension checking
- Add query_valid flag to track extraction success
- Add validation before search execution:
  - Reject empty/invalid query vectors with clear errors
  - Reject all-zero vectors (invalid for similarity search)
  - Validate dimension match between query and index
- Apply same fixes to IVFFlat for consistency

Testing:
- Added regression tests for parameterized queries
- Added tests for zero vector error handling
- Added tests for dimension mismatch errors
- Added 384-dimension production-scale tests

Fixes: #141
See: docs/adr/ADR-0027-hnsw-parameterized-query-fix.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move datum and false arguments to same line in from_polymorphic_datum
- Join split let text_len = ... assignment to single line

These changes fix CI rustfmt check failures.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Run rustfmt on all Rust files to fix CI formatting checks.
This addresses pre-existing formatting inconsistencies across:
- cognitum-gate-kernel
- cognitum-gate-tilezero
- prime-radiant
- ruvector-* crates
- examples/benchmarks
- and other crates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…ault-141

fix(hnsw): resolve segfault with parameterized queries (#141)
  Built from commit e76f01a

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

  🤖 Generated by GitHub Actions
Resolves the "already exists and is not an empty directory" error by:
- Adding a cleanup step to remove the directory before git clone
- Setting up Node.js for ruvector dependencies
- Installing and verifying ruvector MCP installation
  Built from commit 1eb32f7

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

  🤖 Generated by GitHub Actions
Major update integrating all WASM crates from the RuVector ecosystem
into RvLite via feature-gated Cargo dependencies.

Rust crate changes:
- Add 22 optional dependencies behind individual feature flags
- Add composite feature sets: core-plus, ml, advanced-search, full
- Create 12 extension modules under src/extensions/ for GNN, attention,
  delta, learning, math, hyperbolic, nervous-system, sparse-inference,
  DAG, router, HNSW, and SONA
- Update lib.rs with conditional module includes and dynamic feature
  reporting via get_features() and get_module_count()
- Bump version to 0.3.0

NPM package changes:
- Update TypeScript SDK with 15 typed interfaces for all module configs
  (GnnConfig, AttentionConfig, DeltaOp, LearningConfig, MathMetric,
  HyperbolicConfig, NervousSystemConfig, SparseConfig, DagNode,
  RouterConfig, SonaConfig, HnswConfig, ModuleInfo, etc.)
- Add getModules(), getFeatures(), searchWithFilter(), isEmpty(),
  cypherClear(), clearTriples() methods to RvLite class
- Bump package.json to v0.3.0 with expanded keywords

CLI changes:
- Add 'modules' command listing all 22 WASM modules
- Add 'info' command for system information
- Add delta-compute and delta-apply commands
- Add math-distance command (wasserstein, kl, js, hellinger, mahalanobis)
- Add hyperbolic-embed, hyperbolic-search, hyperbolic-midpoint commands
- Add dag-create, dag-add-node, dag-topo-sort, dag-list commands
- Add nervous-simulate command (LIF neuron simulation)
- Add sparse-analyze command (sparsity pattern analysis)
- Add router-route command (embedding-based routing)

README rewrite:
- Complete rewrite documenting all 22 modules, 45+ CLI commands,
  feature flags, composite sets, TypeScript API, build instructions,
  size budget, and supported environments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants