Left to Prove | root Shared WASI runtime and I/O Status: Open Seeds: 10000 Category: Foundation (first wave) 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. Specification: https://wasi.dev/ Reference: https://wasi.dev/ Reference source: https://github.com/WebAssembly/wasi-libc Reference release: WASI 0.2 (https://wasi.dev/releases/wasi-p2) Subtasks: root.io: Byte I/O and argument forwarding (Proved; unblocks 44 targets) root.exit: Exit status (Tested, not proved; unblocks 4 targets) root.preopens: Files under a preopen (Not supported yet; requires root.io; unblocks 13 targets; recommended next task) Obligation graph: https://lefttoprove.com/obligations.json Task bundle: https://lefttoprove.com/bundles/root.json Proof replay: Specs.RootContract.accepted (replayed) Rocq contract: https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/targets/root/Contract.v Rocq assumptions policy: https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/assumptions-allowlist.txt Replay bundle and recorded assumptions: https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785#artifacts Rocq statement: RootContract.accepted (https://github.com/bloom-directory/lefttoprove/blob/main/targets/root/Contract.v) Specification replay from the contribution checkout: ./ltp check root Implementation replay command: 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. Submission: https://github.com/bloom-directory/lefttoprove/compare Pull request metadata: Target: root Contribution: proof Contribution guidelines: https://lefttoprove.com/join.txt