ruvector/docs/research/rvf/spec
Claude 4bec65135f feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files
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
2026-02-15 15:36:34 +00:00
..
00-overview.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
01-segment-model.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
02-manifest-system.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
03-temperature-tiering.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
04-progressive-indexing.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
05-overlay-epochs.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
06-query-optimization.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
07-deletion-lifecycle.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
08-filtered-search.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
09-concurrency-versioning.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
10-operations-api.md feat(rvf): RuVector Format — Universal Cognitive Container SDK (#166) 2026-02-14 13:14:49 -05:00
11-wasm-bootstrap.md feat(rvf): add WASM_SEG (0x10) for self-bootstrapping RVF files 2026-02-15 15:36:34 +00:00