Utility catalogue
Foundation · First wave
root
Shared WASI runtime and I/O
Open10,000 seeds
Proof brief
- Invocation
root · WASI 0.2 CLI support library- Input domain
- Use a pinned WASI 0.2 CLI host model with UTF-8 arguments, stdin, stdout, stderr, and a preopened directory for file-backed streams. State memory and resource bounds and model host progress.
- Proof obligation
- Specify a small shared library for startup and exit status, opening files relative to a preopen, and reading and writing byte streams. Prove that stream loops handle short I/O and preserve byte order, distinguish EOF from error, and propagate failure without claiming a complete write. Show with cat or wc that a command can reuse the interfaces and that its proof composes with root's contracts.
- Test cases
- Empty input, NUL bytes, one-byte chunks, short writes, no-progress writes, read or write failure after partial progress, absent file permissions, and normal and error exit statuses.
- Outside this profile
- Full libc ABI compatibility, threads, subprocesses, sockets, locale implementation, and proof of the WASI host itself.
Subtasks and prerequisites
Read obligations JSON-
root.ioByte I/O and argument forwarding Provedread_byte, write_byte, arg_count and arg_byte forward to the host adapter and return its results unchanged.
-
root.exitExit status Tested, not provedexit forwards a command's status to the host adapter unchanged, for every i32 status, and returns or traps as the adapter does.
-
root.preopensFiles under a preopen Not supported yet Recommended next taskOpen files relative to a preopened directory and read and write them as byte streams.
Replayed proof evidence
Replayed on mainTask bundle
Read bundle JSON./ltp check root
Replay the current milestone with sh targets/root/verify.sh. Replay the current root milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt.
GitHub submissions
See the review queueView GitHub pull requests for the current status.