I really like an idea to solve scheduling problem via compiling to WASI. Many months ago I had conversation with friends, how to implement deterministic testing in Go, without custom IO runtime (common approach in Scala/Rust/C++). We were talking about a few random things, which require a lot of effort (compare to WASI):
1. https://github.com/Shopify/toxiproxy
2. https://github.com/bytedance/ns-x
3. https://github.com/hnes/cpuworker
But all of them are not too good from the first glance.