| id | 65 |
|---|---|
| title | Spike WASM-Embedded Weasel Inference |
| status | 🔲 |
Evaluate a WASM-based inference path that can be embedded in mdsmith with no runtime dynamic library dependency.
- Choose one Go-hosted WASM runtime candidate
(for example
wazero) and define module loading strategy. - Build a minimal proof of concept that embeds a
.wasmartifact withgo:embedand runs inference in-process. - Verify deterministic output behavior on a fixed prompt and fixed model parameters.
- Measure CPU latency and memory overhead versus: current MDS029 heuristic, pure-Go spike, and yzma spike baselines.
- Measure binary-size impact with embedded
.wasmartifact. - Define artifact update workflow and integrity checks (checksum/version pinning).
- Document fallback boundaries when WASM init or inference fails.
- Prototype runs with no
YZMA_LIBand no external dynamic libs. - Embedded WASM artifact loads via
go:embed. - Deterministic behavior is confirmed across repeat runs.
- CPU latency and memory metrics are captured.
- Binary-size impact is measured and documented.
- Recommendation is made: adopt, defer, or reject this path.