mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-09-14 14:01:28 +08:00
2dd2bb891f
Two-layer architecture: Layer A (Rust→WASM kernel for pure functions) + Layer B (Node host bridge with transparent JS fallback). Kernel modules: - proof: SHA-256, HMAC-SHA256, content hashing, chain verification - gates: secret scanning (8 patterns), destructive command detection (12 patterns) - scoring: shard relevance scoring with domain/risk/keyword bonuses - batch: 9-operation batch API to minimize WASM boundary crossings Performance (SIMD128 enabled, 10k events): - SHA-256 throughput: 1.80x faster (910k/s vs 505k/s) - Secret scan (dirty): 1.96x faster (362k/s vs 185k/s) - Secret scan (clean): 1.68x faster (676k/s vs 402k/s) - Proof chain: 1.25x faster (61ms vs 76ms) Includes: - Pre-built wasm-pkg/ with SIMD+O2 optimization - 15 acceptance tests (parity + 10k throughput benchmarks) - ADR-G025 documenting architecture and performance - README updated with WASM kernel docs and KPIs - Wired exports into index.ts and package.json https://claude.ai/code/session_01HLi9WmfvFgkDLJxLKGAUTf