Commit graph

5 commits

Author SHA1 Message Date
rUv
04cc2f8825 chore: Update dependency versions for crates.io publishing
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 19:44:24 +00:00
rUv
6b2c3693f7 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
890ff45075 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
b3455a0a96 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
e9dcc778fa 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