Commit graph

93 commits

Author SHA1 Message Date
rUv
5ac51a84de feat: comprehensive ruvector updates - analysis, workers, dashboard enhancements
Analysis module:
- Add complexity analysis (cyclomatic, cognitive, Halstead metrics)
- Add security scanning (SQL injection, XSS, command injection detection)
- Add pattern detection (code smells, design patterns)

Workers module:
- Add native worker implementation for parallel processing
- Add benchmark worker for performance testing
- Add worker type definitions

Core improvements:
- Add adaptive embedder with dynamic model selection
- Add ONNX optimized embeddings with caching
- Update intelligence engine with enhanced learning
- Update parallel workers with better concurrency

Dashboard enhancements:
- Add relay client service for Edge-Net communication
- Update network stats and specialized networks components
- Update network store with improved state management
- Update type definitions

Configuration:
- Add custom workers skill
- Add agentic-flow and ruvector fast scripts
- Update settings and gitignore

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 14:43:06 +00:00
rUv
d32da2090f feat(edge-net): add real WASM integration, relay infrastructure, and consent UI
- Add EdgeNet service with real WASM module initialization from CDN
- Add PiKey cryptographic identity store with Ed25519 signatures
- Add IndexedDB persistence for credits, tasks, and settings
- Add ConsentWidget for CPU/GPU contribution with settings modal
- Add IdentityPanel for crypto identity management
- Add DocumentationPanel with comprehensive user guide
- Add SpecializedNetworks component for network communities
- Deploy Edge-Net Genesis Relay to Google Cloud Run with security:
  - Origin validation (CORS whitelist)
  - Rate limiting (100 msgs/min per node)
  - Message size limits (64KB)
  - Connection timeout (30s heartbeat)
  - Max 5 connections per IP
- Update Header with Edge-Net branding
- Update Sidebar with Docs tab
- Update networkStore to use real WASM stats
- Configure dashboard to connect to Genesis relay

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 16:41:07 +00:00
rUv
2a582d26cf feat(dashboard): add Edge-Net Time Crystal Dashboard
Complete ViteJS dashboard implementation with:
- HeroUI components for responsive mobile/desktop layout
- Time Crystal dark theme with crystal, temporal, quantum colors
- Network stats visualization with real-time canvas animation
- CDN integration panel for WASM/AI/crypto script management
- WASM modules panel with status and benchmark tracking
- MCP tools panel with 15 default swarm/neural/performance tools
- Credits economy panel with time crystal staking
- Browser console debug panel with log capture
- Zustand stores for state management
- React Query for async data
- Docker configuration (multi-stage nginx build)
- Comprehensive test suite (39 tests passing)

Dashboard features:
- Responsive sidebar (desktop) and drawer (mobile) navigation
- Tab-based content switching with framer-motion animations
- Real-time network activity simulation
- Debug console with timing utilities and window.edgeNet API
- Glow effects and crystal-themed visual styling

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 07:47:14 +00:00
rUv
342c82dbdc feat(edge-net): add Node.js WASM support and publish v0.1.1
- Build dual WASM targets (web + nodejs) for universal compatibility
- Add Node.js polyfills for web APIs (crypto, performance, window, document)
- Create universal entry point with auto-detection of environment
- Update CLI with comprehensive benchmark, demo, and info commands
- Fix ESM/CJS compatibility with .cjs extension for Node.js module
- Package includes both browser and Node.js WASM binaries

Published to npm as @ruvector/edge-net v0.1.1
Package: 885.4 kB compressed, 3.2 MB unpacked

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 07:15:39 +00:00
rUv
cc0198e4a4 Add integration tests for ruvector-learning-wasm and ruvector-nervous-system-wasm
- Implement comprehensive tests for adaptive learning mechanisms including MicroLoRA and SONA in learning_tests.rs.
- Introduce tests for bio-inspired neural components such as HDC, BTSP, and Spiking Neural Networks in nervous_system_tests.rs.
- Create common utilities for random vector generation, vector assertions, and softmax calculations in mod.rs.
- Ensure all tests validate expected behaviors and maintain numerical stability.
2026-01-01 07:06:54 +00:00
rUv
8732920231 feat(edge-net): publish @ruvector/edge-net v0.1.0 to npm
- Build WASM module (1.1MB compressed)
- Create CLI with commands: start, benchmark, info, demo
- Fix symbol collisions (RacEconomicEngine, RacSemanticRouter)
- Security review passed:
  - Zeroize for secret cleanup
  - OsRng for cryptographic randomness
  - Argon2 for password hashing
  - AES-GCM authenticated encryption

Package: https://www.npmjs.com/package/@ruvector/edge-net

Usage:
  npx @ruvector/edge-net info
  npx @ruvector/edge-net demo

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 07:06:49 +00:00
rUv
bd723eaad5 feat(edge-net): add unified attention architecture
Four attention mechanisms answering fundamental questions:
- Neural Attention: What words/tokens matter?
- DAG Attention: What computational steps matter?
- Graph Attention: What relationships matter?
- State Space: What history still matters?

Includes:
- dag_attention.rs: Critical path analysis, topological ordering
- attention_unified.rs: Unified interface composing all 4 types
- Updated mod.rs architecture diagram

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 06:48:45 +00:00
rUv
aca2c703e9 feat(edge-net): integrate exotic AI capabilities with streamlined API
- Enable capabilities module with pub export
- Add compute/ module with SIMD, WebGPU, WebGL backends
- Add ai/ module with attention, router, federated learning, LoRA
- Streamline WASM API for Time Crystal, NAO, MicroLoRA, HDC, WTA, BTSP
- Add Global Workspace and Morphogenetic network support
- Add learning scenarios for error recovery and file sequences
- Add swarm collective intelligence and consensus modules

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 06:42:27 +00:00
rUv
907c695aef feat(wasm): add 5 exotic AI WASM packages with npm publishing
WASM Packages (published to npm as @ruvector/*):
- learning-wasm (39KB): MicroLoRA rank-2 adaptation with <100us latency
- economy-wasm (182KB): CRDT-based autonomous credit economy
- exotic-wasm (150KB): NAO governance, Time Crystals, Morphogenetic Networks
- nervous-system-wasm (178KB): HDC, BTSP, WTA, Global Workspace
- attention-unified-wasm (339KB): 18+ attention mechanisms (Neural, DAG, Graph, Mamba)

Changes:
- Add ruvector-attention-unified-wasm crate with unified attention API
- Add ruvector-economy-wasm crate with CRDT ledger and reputation
- Add ruvector-exotic-wasm crate with emergent AI mechanisms
- Add ruvector-learning-wasm crate with MicroLoRA adaptation
- Add ruvector-nervous-system-wasm crate with bio-inspired components
- Fix ruvector-dag for WASM compatibility (feature flags)
- Add exotic AI capabilities to edge-net example
- Update README with WASM documentation
- Include pkg/ directories with built WASM bundles

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 06:31:11 +00:00
rUv
568eb56724 feat(edge-net): implement production-grade cryptographic security
Critical security fixes before production deployment:

1. Argon2id PBKDF in pikey/mod.rs (replaces SHA-256)
   - Memory-hard KDF with 64MB memory, 3 iterations
   - Version 0x02 format with salt, backward compatible with v1
   - Secure zeroization of key material

2. Ed25519 signature verification in rac/mod.rs
   - Real cryptographic verification for authority resolutions
   - ScopedAuthority::sign_resolution() helper for signing
   - Canonical message format for verification

3. Password-protected key export in identity/mod.rs
   - export_secret_key now requires 8+ character password
   - AES-256-GCM encryption with Argon2id-derived key
   - import_secret_key for secure recovery

Dependencies added:
- argon2 v0.5 (memory-hard KDF)
- zeroize v1.7 (secure memory cleanup)

Test coverage:
- 125 tests passing (40 lib + 85 integration)
- Updated adversarial tests with real Ed25519 signatures

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 05:28:42 +00:00
rUv
1f3f440f82 feat(edge-net): add comprehensive security audit and battle testing
- Security audit identified 5 CRITICAL, 10+ HIGH severity issues
- Added 85 passing tests: adversarial scenarios, economic edge cases, RAC axioms
- Added economics module for RAC sustainability and treasury management
- Enhanced learning module with self-learning intelligence
- Fixed hooks configuration (--silent → 2>/dev/null || true)

Key security findings:
- CRITICAL: Weak PBKDF in Pi-Key (SHA-256 only, needs Argon2id)
- CRITICAL: Private key exposure via export_secret_key
- CRITICAL: Signature verification unimplemented in RAC
- HIGH: Session key derivation weakness
- HIGH: No memory zeroization for sensitive data

Architecture assessment: ~60% production ready (B+ rating)
All 85 tests pass: 18 adversarial + 38 economic + 29 RAC axioms

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 05:13:16 +00:00
rUv
61a0ff897b feat(edge-net): add RuVector learning intelligence and RAC adversarial coherence
## Learning Module (src/learning/mod.rs)
- ReasoningBank for pattern storage with similarity lookup and pruning
- TrajectoryTracker ring buffer for task execution tracking
- Spike-driven attention for 87x energy efficiency (based on Yao et al.)
- Multi-head attention for distributed task routing
- NetworkLearning unified interface for edge nodes

## RAC Module (src/rac/mod.rs) - Adversarial Coherence Thesis
Implements the 12 axioms for browser-scale adversarial truth maintenance:
1. Connectivity is not truth
2. Everything is an event
3. No destructive edits (deprecation only)
4. Every claim is scoped
5. Semantics drift is expected
6. Disagreement is signal
7. Authority is scoped, not global
8. Witnesses matter
9. Quarantine is mandatory
10. All decisions are replayable
11. Equivocation is detectable
12. Local learning is allowed

Core components:
- Append-only Merkle event log for tamper-evident history
- CoherenceEngine for conflict detection and resolution
- QuarantineManager for contested claims
- Authority policy and verifier traits
- Decision traces for audit and replay

## Integration
- Learning and RAC integrated into EdgeNetNode
- 28 tests pass (13 new tests for learning/RAC)

References:
- FLP Impossibility (MIT CSAIL)
- PBFT Byzantine Fault Tolerance
- CRDTs (Lip6)
- RFC 6962 Certificate Transparency

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 01:40:41 +00:00
rUv
bc783c8fa9 feat(edge-net): add Pi-Key crypto, lifecycle simulation, optimizations
- Add Pi-Key WASM cryptographic module with mathematical constant sizing
  - Pi-sized (314 bits/40 bytes) identity keys
  - Euler-sized (271 bits/34 bytes) session keys
  - Phi-sized (161 bits/21 bytes) genesis keys
  - Ed25519 signing + AES-256-GCM encryption

- Add comprehensive TypeScript lifecycle simulation (sim/)
  - 6 source files, 1,420 lines
  - Validates all 4 phases: Genesis → Growth → Maturation → Independence
  - Economic sustainability and phase transition testing

- Performance optimizations
  - FxHashMap for 30-50% faster lookups in evolution/mod.rs
  - VecDeque for O(1) front removal
  - Batched Q-learning updates in security/mod.rs
  - Fixed borrow checker error in process_batch_updates()

- Add benchmarks and documentation
  - BENCHMARKS.md with performance metrics
  - PERFORMANCE_OPTIMIZATIONS.md with details
  - docs/FINAL_REPORT.md comprehensive summary

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 01:29:11 +00:00
rUv
54bdc12403 docs(edge-net): reframe as artificial life simulation
Updated README to focus on research and simulation aspects:
- Renamed to 'Artificial Life Simulation'
- Cells instead of nodes terminology
- Energy system instead of cryptocurrency
- Clear disclaimer: NOT a financial product
- Research goals and applications

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:49:21 +00:00
rUv
e0e6fa0a2d feat(edge-net): distributed compute network with rUv economics
Complete implementation of browser-based P2P compute marketplace:

Core Features:
- rUv (Resource Utility Vouchers) - quantum-resistant DAG currency
- Early adopter multipliers (10x → 1x decay curve)
- Task execution: vectors, embeddings, neural, encryption

Self-Sustaining Architecture:
- Genesis sunset: 4-phase retirement (10K/50K/100K nodes)
- Self-organization: NetworkTopology with peer clustering
- Self-optimization: Q-learning security, routing optimization
- Economic sustainability: 70/15/10/5 distribution model

Security & Testing:
- Adaptive security with attack pattern recognition
- Adversarial simulation (DDoS, Sybil, Byzantine, etc.)
- 12 unit tests passing

Lifecycle Events:
- Easter eggs and milestone achievements
- Founding contributor recognition with vesting

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 23:46:13 +00:00
rUv
dcd1132675 feat(edge): add Web Workers configuration to generator
- Add Concurrency section with 4 worker modes:
  - Main Thread (no workers, simple)
  - Worker Pool (auto-scaling, recommended)
  - Dedicated (one worker per task type)
  - Shared Worker (cross-tab coordination)
- Add comprehensive worker templates with code examples
- Update stats to show worker count
- Include WorkerPool class with batch operations
- Add SharedWorker cross-tab example

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:15:53 +00:00
rUv
c40e28049c docs(edge): add Web Workers section with understandable language
- Add comprehensive Web Workers section explaining UI responsiveness
- Include WorkerPool usage examples with practical code
- Add feature table explaining auto-scaling, load balancing, timeouts
- Add "when to use workers" guidance table
- Update Table of Contents with Consensus Modes and Web Workers
- Add WorkerPool to API Reference section

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:13:55 +00:00
rUv
89bbae1485 docs(edge): update source README with npm package and consensus modes
- Add npm package section at top with install commands
- Link to pkg/README.md for JavaScript documentation
- Clarify Raft vs Gossip+CRDT consensus modes
- Add Web Worker pool to distributed systems features
- Update WASM badge to show 364KB size

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:11:09 +00:00
rUv
421279b61e feat(edge): add Web Worker pool for parallel operations
- Include worker.js and worker-pool.js in package
- Add exports for @ruvector/edge/worker and @ruvector/edge/worker-pool
- Document WorkerPool API with examples
- Features: round-robin distribution, batch splitting, load balancing
- Keeps UI responsive during heavy WASM operations
- Bump to v0.1.9

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:10:04 +00:00
rUv
81d10f4224 docs(edge): clarify Raft vs Gossip+CRDT consensus modes
Raft assumes stable membership and trusted nodes - not suitable for
wild browser swarms. Updated docs to:

- Position Raft for "trusted cohorts" (teams, enterprise, private relays)
- Add Gossip + CRDT for "open swarms" (public, high-churn, adversarial)
- Explain when to use each mode with code examples
- Update capability tables to reflect both consensus strategies

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:09:49 +00:00
rUv
6369a145da docs(edge): highlight self-learning capabilities in intro
- Update heading to "Free Self-Learning AI Swarms at the Edge"
- Emphasize self-optimizing agents that get smarter over time
- Mention LoRA fine-tuning, EWC++ continual learning, ReasoningBank
- Bump to v0.1.7

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:06:28 +00:00
rUv
94bc0f817d docs(edge): clarify full platform capabilities and edge-full integration
- Add comprehensive platform diagram showing edge vs edge-full
- List all capabilities of edge-full modules
- Add optional/peer dependency on @ruvector/edge-full
- Show usage patterns for both packages together
- Bump to v0.1.6

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:03:45 +00:00
rUv
53c9f57e13 feat(edge-full): add unified WASM package with all modules
- Create @ruvector/edge-full package bundling 6 WASM modules:
  - edge: crypto, vectors, consensus (364KB)
  - graph: Neo4j-style graph DB with Cypher (288KB)
  - rvlite: SQL/SPARQL/Cypher vector DB (260KB)
  - sona: self-learning neural router (238KB)
  - dag: workflow orchestration (132KB)
  - onnx: HuggingFace embeddings (7.1MB)

- Update generator.html with module selection UI
- Add module-specific code templates
- Update @ruvector/edge README with edge-full reference
- Bump @ruvector/edge to v0.1.5

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:59:29 +00:00
rUv
a4243ce042 feat(edge): add interactive swarm generator with MCP tools
Generator Features:
- 6 topologies: Mesh, Star, Hierarchical, Ring, Gossip, Sharded
- 4 transports: GUN.js, WebRTC, libp2p, Nostr
- 6 use cases: AI Assistants, Data Pipeline, Gaming, IoT, Marketplace, Research
- 8 features: Identity, Encryption, HNSW, Semantic, Raft, Post-Quantum, Spiking, Compression
- 7 exotic patterns: MCP Tools, Byzantine, Quantum, Neural Consensus, Swarm Intel, Self-Healing, Emergent

Browser-Based MCP Tools:
- discover_agents: Find agents by capability
- send_secure_message: Encrypted P2P messaging
- store_memory: Vector memory storage
- search_memory: Semantic search
- sign_message: Cryptographic signing
- MCPCollaborativeNetwork: Multi-server coordination

Live demo runs directly in browser using WASM.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:41:27 +00:00
rUv
6639947e47 docs(edge): add free infrastructure guide with tables
- Improved intro with cost comparison table and architecture diagram
- Added comprehensive free infrastructure section:
  - Free GUN relays (unlimited)
  - Free STUN servers (Google, Cloudflare, Mozilla)
  - Free TURN providers table
  - Free signaling services table
  - Free Nostr relays
  - Free self-hosting options (Fly.io, Railway, Cloudflare Workers)
- Complete example using 100% free stack
- Cost summary showing $0/month at any scale (1 to 1M+ users)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:30:46 +00:00
rUv
0365595328 docs(edge): add comprehensive tutorial-style README
- 5-step tutorial: Identity, Crypto, Vector Search, Routing, Consensus
- P2P transport options: WebRTC, GUN.js, IPFS/libp2p, Nostr
- Full code examples for each transport integration
- Architecture diagrams showing edge-first design
- Transport comparison table with recommendations
- Complete API reference for all 9 WASM exports

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:22:06 +00:00
rUv
d981a56e36 feat(edge): add WASM bindings and publish @ruvector/edge v0.1.1
WASM Implementation:
- Add wasm.rs with bindings for all core P2P types
- Configure Cargo.toml with wasm/native feature flags
- Gate native-only modules (tokio, transport) behind feature flags
- Convert intelligence.rs and memory.rs to sync (parking_lot::RwLock)
- Fix distributed_learning.rs example for sync API

Exports:
- WasmIdentity, WasmCrypto, WasmHnswIndex
- WasmSemanticMatcher, WasmRaftNode, WasmHybridKeyPair
- WasmSpikingNetwork, WasmQuantizer, WasmAdaptiveCompressor

Build:
- WASM: wasm-pack build --no-default-features --features wasm
- Native: cargo build --features native
- Tests: 60 passing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:16:15 +00:00
rUv
b9bf51bb01 docs(edge): improve README with free edge swarm introduction
- Emphasize zero-cost edge-first architecture
- Add economics comparison (cloud vs edge)
- Document all WASM APIs with examples
- Add use cases and architecture diagram
- Compare with cloud alternatives (OpenAI, LangChain, AutoGPT)
- Include agentic-flow integration example

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:15:24 +00:00
rUv
09b66e5191 feat(edge): add WASM npm package @ruvector/edge
- Built WASM bindings with wasm-pack for browser/Node.js usage
- Exports: WasmIdentity, WasmCrypto, WasmHnswIndex, WasmSemanticMatcher,
  WasmRaftNode, WasmHybridKeyPair, WasmSpikingNetwork, WasmQuantizer,
  WasmAdaptiveCompressor
- 364KB optimized WASM binary with full TypeScript types
- Published to npm as @ruvector/edge@0.1.0

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:11:26 +00:00
rUv
7eafcab492 docs(edge): comprehensive README overhaul
- Added badges (Rust, License, Tests, Security, WASM)
- New "Why RuVector Edge?" section explaining problem/solution
- Key Benefits table with quantified impacts
- Unique Capabilities table with 8 advanced features
- Features organized by category (Security, Intelligence, Performance, Distributed)
- Updated architecture diagram with Advanced Intelligence layer
- 7 comprehensive usage examples:
  - HNSW Vector Search
  - Post-Quantum Signatures
  - Spiking Neural Networks
  - Raft Consensus
  - Semantic Task Matching
  - Adaptive Compression
- Performance benchmarks table
- Zero-Trust Identity Chain documentation
- Comparison table vs libp2p, Matrix, NATS
- API Reference with Core Types table
- Complete exports listing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:48:00 +00:00
rUv
50da131469 feat(edge/p2p): complete RuVector advanced integrations
Added:
- Semantic embeddings interface with hash-based LSH encoding
- SemanticTaskMatcher for intelligent agent-task matching
- Raft consensus protocol for distributed task coordination
  - Leader election with term-based voting
  - Log replication with consistency checks
  - Heartbeat and append entries protocol

Now exports 20+ advanced types from p2p module:
- Quantization: ScalarQuantized, BinaryQuantized, CompressedData
- HDC: Hypervector, HdcMemory, HDC_DIMENSION
- Compression: AdaptiveCompressor, NetworkCondition
- Pattern routing: PatternRouter
- Vector index: HnswIndex
- Post-quantum: HybridKeyPair, HybridPublicKey, HybridSignature
- Spiking networks: LIFNeuron, SpikingNetwork
- Embeddings: SemanticEmbedder, SemanticTaskMatcher
- Consensus: RaftNode, RaftState, LogEntry, RaftVoteRequest/Response, RaftAppendEntries/Response

60 tests passing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:37:57 +00:00
rUv
f1f39902cd feat(edge/p2p): add advanced RuVector integrations
- HNSW vector indexing for O(log n) nearest neighbor search
- Hybrid post-quantum signatures (Ed25519 + Dilithium-style)
- Spiking neural networks (LIF neurons with STDP learning)
- Binary/Scalar quantization (4-32x compression)
- Hyperdimensional Computing for pattern matching
- Adaptive compression based on network conditions
- HDC-based semantic task routing

54 tests passing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:35:37 +00:00
rUv
99c5c97a73 docs(edge): Update README with P2P Swarm security documentation
- Add P2P Swarm Layer to architecture diagram
- Document Ed25519/X25519 crypto and AES-256-GCM encryption
- Add security features table and code examples
- Document task execution with signed receipts
- Add GUN integration section
- Include P2P Security Model and Identity Trust Chain
- Add Key Derivation formula
- Update performance metrics with crypto ops/sec
- Add feature flags documentation

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:06:56 +00:00
rUv
3a14478436 feat(edge): Production-grade P2P Swarm with Ed25519/X25519 crypto
Implements a production-grade P2P swarm coordination layer with:

Security Features:
- Ed25519 identity keys + X25519 ephemeral keys for ECDH
- AES-256-GCM authenticated encryption
- Canonical JSON serialization (sorted keys) for signatures
- Registry-based identity binding (never trust envelope keys)
- Message replay protection (nonces, counters, timestamps)
- Signed task receipts with full execution binding

Core Modules:
- identity.rs: Ed25519/X25519 key management, member registry
- crypto.rs: AES-256-GCM, canonical JSON, hashing
- envelope.rs: SignedEnvelope, TaskEnvelope, TaskReceipt types
- relay.rs: GUN relay health monitoring and failover
- artifact.rs: Local CID-based storage with LRU eviction
- swarm.rs: P2PSwarmV2 coordinator with heartbeats and task claiming

Additional:
- gun.rs: GUN decentralized database integration for swarm sync
- Examples: local_swarm.rs, distributed_learning.rs

All tests pass. Demo runs successfully.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:03:34 +00:00
rUv
940fd021e5 feat(edge): add ruv-swarm-transport integration example
New example: examples/edge/
- Distributed AI swarm communication using ruv-swarm-transport
- WebSocket, SharedMemory, and WASM transport support
- Intelligence sync for distributed Q-learning patterns
- Shared vector memory for collaborative RAG
- LZ4 + quantization tensor compression (up to 12x)
- Protocol with Join, Sync, Task, Election messages
- Agent roles: Coordinator, Worker, Scout, Specialist

Binaries:
- edge-demo: Demo of distributed learning
- edge-agent: CLI agent that joins swarm
- edge-coordinator: Swarm coordinator

Dependencies:
- ruv-swarm-transport v1.0.5
- tokio, serde, lz4_flex, clap
2025-12-31 17:20:51 +00:00
rUv
f646a562db docs(onnx-wasm): comprehensive README update for v0.1.2
- 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>
2025-12-31 05:10:36 +00:00
rUv
61971bc70d feat(onnx-wasm): add parallel worker threads for 3.8x batch speedup
- 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>
2025-12-31 05:02:28 +00:00
rUv
5a5874d403 feat(onnx-wasm): add SIMD support for improved performance
- 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>
2025-12-31 04:41:53 +00:00
rUv
1bbd353934 docs(onnx-wasm): add comprehensive README with badges and API reference
- 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>
2025-12-31 04:19:26 +00:00
rUv
9d33b4b45d feat(onnx-embeddings-wasm): add model loader with HuggingFace support
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>
2025-12-31 04:12:48 +00:00
rUv
8bdf50501a test(onnx-embeddings-wasm): add WASM validation test
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>
2025-12-31 04:07:57 +00:00
rUv
ea276475a4 feat(onnx-embeddings-wasm): add WASM-compatible embedding crate
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>
2025-12-31 04:00:24 +00:00
rUv
2a4783f2e5 chore(onnx-embeddings): fix crates.io category slug
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>
2025-12-31 03:37:06 +00:00
rUv
966fed50e2 fix(onnx-embeddings): fix HuggingFace model download fallback logic
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>
2025-12-31 03:34:24 +00:00
rUv
0e65e2b53d fix(postgres): remove Rust examples that cause linker errors
The Rust example files (learning_demo.rs, simd_distance_benchmark.rs)
were causing linker errors during pgrx tests because they use pgrx
functions without proper PostgreSQL library context.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:41:16 +00:00
rUv
1733d0a483 fix(ruvllm-esp32): Fix CLI version, bump npm to 0.3.1
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:11:59 +00:00
rUv
d44cef514b feat(ruvllm-esp32): Bump to v0.3.0 with new modules
Added to crate:
- ota.rs: Over-the-air firmware updates
- benchmark.rs: Performance measurement suite
- diagnostics.rs: Error patterns with fix suggestions
- models/: Pre-quantized model zoo

npm v0.3.0:
- Added web-flasher for browser-based flashing

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:11:58 +00:00
rUv
360bdb7ee7 feat(ruvllm-esp32): Add comprehensive improvements
Pre-built Binaries:
- GitHub Actions workflow for automated releases
- Builds for all ESP32 variants (esp32, s2, s3, c3, c6)
- Federation-enabled builds for multi-chip setups

Web Flasher:
- Browser-based flashing via ESP Web Serial API
- Zero-install experience
- Target selection with feature display

OTA Updates:
- Over-the-air firmware updates via WiFi
- Version checking and comparison
- Rollback support on failed updates
- Progress callbacks and state management

Model Zoo:
- Pre-quantized models ready to use
- tinystories-1m, microchat-2m, nanoembed-500k, tinyqa-1.5m
- Binary quantized models for minimal memory
- Use case recommendations

Benchmark Suite:
- Automated performance measurement
- Tokens/sec, latency percentiles, memory usage
- Chip-specific estimates
- Report generation

Error Diagnostics:
- 15+ known error patterns with fix suggestions
- Colored terminal output
- Documentation links
- Categories: toolchain, flash, memory, build, network

Offline Mode:
- Toolchain caching for air-gapped environments
- SHA256 verification
- Cross-platform support

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:11:58 +00:00
rUv
87dc18c32b chore(ruvllm-esp32): Bump npm version to 0.2.1
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:11:58 +00:00
rUv
04cb475269 feat(ruvllm-esp32): Add improved Windows PowerShell scripts
- Add setup.ps1: Auto-installs espup, espflash, and ESP32 toolchain
- Add build.ps1: Auto-detects toolchain paths, no hardcoded values
- Add flash.ps1: Auto-detects COM ports with interactive selection
- Add env.ps1: Sets up environment for current session
- Add monitor.ps1: Serial monitor with auto port detection
- Update CLI to use PowerShell scripts on Windows
- Improve COM port detection using System.IO.Ports
- Update README with improved Windows workflow

Fixes Windows-specific issues:
- No more hardcoded paths (C:\Users\ruv\...)
- Dynamic libclang and Python path resolution
- Auto-detection of ESP toolchain location
- Better error handling and user feedback

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 22:11:58 +00:00