mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-22 19:56:25 +00:00
Add the WASM_SEG segment type and complete self-bootstrapping architecture that allows RVF files to carry their own execution runtime. When an RVF file embeds a WASM interpreter alongside the microkernel, the host only needs raw execution capability — making RVF "run anywhere compute exists." Changes: - rvf-types: Add SegmentType::Wasm (0x10), WasmHeader (64-byte), WasmRole, WasmTarget enums, and feature flag constants - rvf-runtime: Add embed_wasm(), extract_wasm(), extract_wasm_all(), is_self_bootstrapping() methods on RvfStore, plus write_wasm_seg() in the write path - rvf-wasm: Add bootstrap module with resolve_bootstrap_chain() that discovers WASM_SEGs, parses headers, and resolves the optimal bootstrap strategy (None/HostRequired/SelfContained/TwoStage/Full) - docs: Add spec/11-wasm-bootstrap.md with complete wire format, bootstrap protocol, size budget analysis, and security model The three-layer bootstrap stack: Layer 0: Raw bytes (.rvf file) Layer 1: Embedded WASM interpreter (~50 KB) Layer 2: WASM microkernel (~5.5 KB) Layer 3: RVF data segments All 131 rvf-types tests and 72 rvf-runtime tests pass. https://claude.ai/code/session_01RnwD4x5cbpB7FPvoyYQz8G |
||
|---|---|---|
| .. | ||
| benchmarks | ||
| crypto | ||
| microkernel | ||
| profiles | ||
| spec | ||
| wire | ||
| INDEX.md | ||
| SWARM-GUIDANCE.md | ||