Files
ruvnet__ruflo/v3/@claude-flow/guidance/wasm-pkg/package.json
Claude 2dd2bb891f feat: add Rust WASM policy kernel with SIMD128 acceleration
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
2026-02-01 17:44:35 +00:00

12 lines
317 B
JSON

{
"name": "guidance-kernel",
"description": "Rust WASM kernel for @claude-flow/guidance — deterministic policy engine",
"version": "0.1.0",
"files": [
"guidance_kernel_bg.wasm",
"guidance_kernel.js",
"guidance_kernel.d.ts"
],
"main": "guidance_kernel.js",
"types": "guidance_kernel.d.ts"
}