{
  "proofEvidence": {
    "statement": "Specs.RootContract.accepted",
    "assumptionsPolicy": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/assumptions-allowlist.txt",
    "registry": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/.github/targets.json",
    "status": "replayed",
    "replay": {
      "contract": "https://github.com/bloom-directory/lefttoprove/blob/3440f400d235544fe816475adde8e55009e057c0/targets/root/Contract.v",
      "revision": "3440f400d235544fe816475adde8e55009e057c0",
      "checkedAt": "2026-12-01T17:27:44.000Z",
      "run": "https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785",
      "bundle": "https://github.com/bloom-directory/lefttoprove/actions/runs/46701031785#artifacts"
    }
  },
  "target": "root",
  "scope": {
    "status": "scoped",
    "invocation": "root · WASI 0.2 CLI support library",
    "inputDomain": "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.",
    "proofObligation": "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.",
    "excluded": "Full libc ABI compatibility, threads, subprocesses, sockets, locale implementation, and proof of the WASI host itself."
  },
  "obligations": [
    {
      "id": "root.io",
      "target": "root",
      "title": "Byte I/O and argument forwarding",
      "summary": "read_byte, write_byte, arg_count and arg_byte forward to the host adapter and return its results unchanged.",
      "status": "proved",
      "statement": "RootContract.io",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/root/Root.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/8",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [],
      "unblocks": 44,
      "recommended": false,
      "page": "/utilities/root/#root.io"
    },
    {
      "id": "root.exit",
      "target": "root",
      "title": "Exit status",
      "summary": "exit forwards a command's status to the host adapter unchanged, for every i32 status, and returns or traps as the adapter does.",
      "status": "tested",
      "statement": "RootContract.exit",
      "proof": null,
      "requires": [],
      "unblocks": 4,
      "recommended": false,
      "page": "/utilities/root/#root.exit"
    },
    {
      "id": "root.preopens",
      "target": "root",
      "title": "Files under a preopen",
      "summary": "Open files relative to a preopened directory and read and write them as byte streams.",
      "status": "missing",
      "statement": null,
      "proof": null,
      "requires": [
        "root.io"
      ],
      "unblocks": 13,
      "recommended": true,
      "page": "/utilities/root/#root.preopens"
    }
  ],
  "requires": [],
  "reference": {
    "name": "WASI",
    "version": "0.2",
    "release": "https://wasi.dev/releases/wasi-p2",
    "manual": "https://wasi.dev/",
    "source": "https://github.com/WebAssembly/wasi-libc"
  },
  "specification": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/root/SPEC.md",
  "rocq": {
    "statement": "RootContract.accepted",
    "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/root/Contract.v",
    "checkSpecification": [
      "./ltp check root"
    ]
  },
  "fixtures": {
    "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.",
    "data": [],
    "source": null
  },
  "submission": {
    "url": "https://github.com/bloom-directory/lefttoprove/compare",
    "metadata": [
      "Target: root",
      "Contribution: proof"
    ],
    "replay": "sh targets/root/verify.sh",
    "existingVerifier": {
      "source": "https://github.com/bloom-directory/lefttoprove/blob/main/targets/root/verify.sh",
      "instruction": "Replay the current root milestone in the checker image, which sets WASMCERT. See SET UP THE CHECKER in https://lefttoprove.com/join.txt."
    }
  }
}
