Compile yrs 0.28 to wasm32-wasip1 and run it in Go with wazero to compact
Yjs update logs and extract ProseMirror JSON and plain text. Fixtures come
from real Yjs, and y-prosemirror's output is the oracle.
- Output matches y-prosemirror on every fixture; Yjs loads yrs snapshots
- Snapshot + 200 updates compacts in 0.6-47 ms; WebAssembly costs at most 2x native
- merge_updates is quadratic, so the server must compact incrementally
Results and design rules are recorded in docs/adr/0003-yrs-wasm-wazero.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>