{
  "recommended": "root.preopens",
  "recommendationLive": true,
  "note": "requires lists recorded prerequisites. Beyond the first wave, only argv and preopen capabilities are recorded so far. unblocks counts the scoped targets that depend on an obligation, directly or through another obligation.",
  "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": "cat.copy",
      "target": "cat",
      "title": "Byte-at-a-time copy",
      "summary": "The copy export copies stdin to stdout one byte at a time through root, for every modeled I/O trace.",
      "status": "proved",
      "statement": "CatContract.copy",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/cat/Cat.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/6",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/cat/#cat.copy"
    },
    {
      "id": "head.lines",
      "target": "head",
      "title": "Line prefix",
      "summary": "Read the bounded line count from argv and emit the requested stdin prefix under the successful byte I/O model.",
      "status": "proved",
      "statement": "HeadContract.lines",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/head/Head.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/12",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/head/#head.lines"
    },
    {
      "id": "wc.count",
      "target": "wc",
      "title": "Count lines and bytes through root",
      "summary": "The count export returns unsigned i32 LF and byte counts for stdin shorter than 2^32 bytes, reading through root.read_byte.",
      "status": "proved",
      "statement": "WcContract.count",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/wc/Wc.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/5",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/wc/#wc.count"
    },
    {
      "id": "uniq.adjacent",
      "target": "uniq",
      "title": "Collapse adjacent runs",
      "summary": "Write one LF-terminated line for each adjacent run of equal byte lines shorter than 2^20 bytes, including a final line without LF.",
      "status": "proved",
      "statement": "UniqContract.adjacent",
      "proof": {
        "source": "https://github.com/bloom-directory/lefttoprove/blob/1d8af2c5cde11163204be6dd05ed2c6b96bc47dc/targets/uniq/Uniq.v",
        "pullRequest": "https://github.com/bloom-directory/lefttoprove/pull/11",
        "contributor": "josh-richardson",
        "mergedAt": "2026-12-01T08:17:43Z"
      },
      "requires": [
        "root.io"
      ],
      "unblocks": 1,
      "recommended": false,
      "page": "/utilities/uniq/#uniq.adjacent"
    },
    {
      "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"
    }
  ],
  "targets": [
    {
      "target": "wc",
      "requires": [
        "wc.count",
        "root.io",
        "root.exit"
      ]
    },
    {
      "target": "head",
      "requires": [
        "head.lines",
        "root.io",
        "root.exit"
      ]
    },
    {
      "target": "cat",
      "requires": [
        "cat.copy",
        "root.io",
        "root.exit"
      ]
    },
    {
      "target": "uniq",
      "requires": [
        "uniq.adjacent",
        "root.io",
        "root.exit"
      ]
    },
    {
      "target": "cut",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "sort",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "tr",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "tail",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "printf",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "cmp",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "true",
      "requires": []
    },
    {
      "target": "false",
      "requires": []
    },
    {
      "target": "test",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "echo",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "basename",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "dirname",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "pathchk",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "tee",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "tac",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "paste",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "comm",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "join",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "fold",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "expand",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "unexpand",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "nl",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "od",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "cksum",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "base64",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "seq",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "factor",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "cp",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "mv",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "mkdir",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "rmdir",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "ln",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "sleep",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "ls",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "rm",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "pwd",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "grep",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "sed",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "find",
      "requires": [
        "root.io",
        "root.preopens"
      ]
    },
    {
      "target": "base32",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "printenv",
      "requires": [
        "root.io"
      ]
    },
    {
      "target": "sha256sum",
      "requires": [
        "root.io"
      ]
    }
  ]
}
