{
  "schemaVersion": 1,
  "generatedAt": "2026-10-18T03:36:32.375743+00:00",
  "kind": "designed software conformance demonstration",
  "environment": {
    "python": "3.12.3",
    "tar": "tar (GNU tar) 1.35",
    "system": "Linux",
    "machine": "x86_64",
    "tarBinarySha256": "3ee2c3c0b4dd9aacebfd2f0fbae44bad36348203acff78a44888dd58c05f811c",
    "tarfileModuleSha256": "664f862558196d80a46663a81bc16cd51061ccec6c1fdda5950a106e97e12512"
  },
  "scriptSha256": "1bb346d4d5d5238bf09e48c40ef8c3bca62a03a595dc3d40d49d802351dbd0a4",
  "design": {
    "format": "USTAR",
    "input": "Plain TAR; no compression wrapper or external archive.",
    "offsets": {
      "tailHeader": 1024,
      "tailPayload": 1536
    },
    "trustedArchiveSha256": "1f95cbe9a6d0538db4af1ad4b1421e7232420cda4892ae0704dbc919e8ea30ea",
    "expectedPayloads": {
      "record.txt": {
        "text": "first\n",
        "bytes": 6,
        "sha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41"
      },
      "tail.txt": {
        "text": "later\n",
        "bytes": 6,
        "sha256": "0bd7226ea868984d97d517ccc35c0bc9a04d93e81c5a25b6c8eaded088626944"
      }
    },
    "acceptance": "Selected payload: exit zero plus exact expected bytes. Listing has no payload oracle.",
    "limits": "Three designed fixtures, not failure rates or a general archive validator. No syscall read tracing, hostile paths, links, metadata restore, power loss or compressed-input coverage."
  },
  "sources": [
    "https://www.gnu.org/software/tar/manual/html_node/Option-Summary.html",
    "https://www.gnu.org/software/tar/manual/html_node/Standard.html"
  ],
  "cases": [
    {
      "id": "clean",
      "tarBytes": 10240,
      "tarSha256": "1f95cbe9a6d0538db4af1ad4b1421e7232420cda4892ae0704dbc919e8ea30ea",
      "matchesTrustedArchive": true,
      "mutation": null,
      "observations": [
        {
          "method": "first-occurrence",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--occurrence=1",
            "--",
            "record.txt"
          ],
          "exitCode": 0,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        },
        {
          "method": "first-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "record.txt"
          ],
          "exitCode": 0,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        },
        {
          "method": "list-all",
          "command": [
            "tar",
            "-tf",
            "fixture.tar"
          ],
          "exitCode": 0,
          "stdoutText": "record.txt\ntail.txt\n",
          "stdoutBytes": 20,
          "stdoutSha256": "4884c1ec55c91304cea77cc9b327fcb3399e71e7ddfa4c5a313d231649970767",
          "stderr": "",
          "target": null,
          "matchesExpectedPayload": null,
          "selectedPayloadAccepted": null
        },
        {
          "method": "tail-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "tail.txt"
          ],
          "exitCode": 0,
          "stdoutText": "later\n",
          "stdoutBytes": 6,
          "stdoutSha256": "0bd7226ea868984d97d517ccc35c0bc9a04d93e81c5a25b6c8eaded088626944",
          "stderr": "",
          "target": "tail.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        }
      ]
    },
    {
      "id": "tail-header-bit",
      "tarBytes": 10240,
      "tarSha256": "a16fe2cf571a9d2a4915d96861e4d47fb0deeff5c962faa6e9b0421f45599470",
      "matchesTrustedArchive": false,
      "mutation": {
        "offset": 1024,
        "xorMask": 1,
        "before": 116,
        "after": 117,
        "region": "header"
      },
      "observations": [
        {
          "method": "first-occurrence",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--occurrence=1",
            "--",
            "record.txt"
          ],
          "exitCode": 0,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        },
        {
          "method": "first-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "record.txt"
          ],
          "exitCode": 2,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "/usr/bin/tar: Skipping to next header\n/usr/bin/tar: Exiting with failure status due to previous errors\n",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": false
        },
        {
          "method": "list-all",
          "command": [
            "tar",
            "-tf",
            "fixture.tar"
          ],
          "exitCode": 2,
          "stdoutText": "record.txt\n",
          "stdoutBytes": 11,
          "stdoutSha256": "f82900ecab1ed1636dccb8b809f727c4ea2bfdc9a80691cfd48824207d22a1d8",
          "stderr": "/usr/bin/tar: Skipping to next header\n/usr/bin/tar: Exiting with failure status due to previous errors\n",
          "target": null,
          "matchesExpectedPayload": null,
          "selectedPayloadAccepted": null
        },
        {
          "method": "tail-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "tail.txt"
          ],
          "exitCode": 2,
          "stdoutText": "",
          "stdoutBytes": 0,
          "stdoutSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
          "stderr": "/usr/bin/tar: Skipping to next header\n/usr/bin/tar: tail.txt: Not found in archive\n/usr/bin/tar: Exiting with failure status due to previous errors\n",
          "target": "tail.txt",
          "matchesExpectedPayload": false,
          "selectedPayloadAccepted": false
        }
      ]
    },
    {
      "id": "tail-payload-bit",
      "tarBytes": 10240,
      "tarSha256": "c88f9048f5ac572f69432a2f3cb15fbda1073372ceb98840964d93af6d476b8c",
      "matchesTrustedArchive": false,
      "mutation": {
        "offset": 1536,
        "xorMask": 1,
        "before": 108,
        "after": 109,
        "region": "payload"
      },
      "observations": [
        {
          "method": "first-occurrence",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--occurrence=1",
            "--",
            "record.txt"
          ],
          "exitCode": 0,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        },
        {
          "method": "first-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "record.txt"
          ],
          "exitCode": 0,
          "stdoutText": "first\n",
          "stdoutBytes": 6,
          "stdoutSha256": "b640e840b19d378660b32fb51ae18d67dccb4a8596a29e7bd72c1b2ae5928f41",
          "stderr": "",
          "target": "record.txt",
          "matchesExpectedPayload": true,
          "selectedPayloadAccepted": true
        },
        {
          "method": "list-all",
          "command": [
            "tar",
            "-tf",
            "fixture.tar"
          ],
          "exitCode": 0,
          "stdoutText": "record.txt\ntail.txt\n",
          "stdoutBytes": 20,
          "stdoutSha256": "4884c1ec55c91304cea77cc9b327fcb3399e71e7ddfa4c5a313d231649970767",
          "stderr": "",
          "target": null,
          "matchesExpectedPayload": null,
          "selectedPayloadAccepted": null
        },
        {
          "method": "tail-default",
          "command": [
            "tar",
            "-xOf",
            "fixture.tar",
            "--",
            "tail.txt"
          ],
          "exitCode": 0,
          "stdoutText": "mater\n",
          "stdoutBytes": 6,
          "stdoutSha256": "145a2ea4b86b0c9e430a96df50aac4640d05da9ac327b924928f24ee93c169b3",
          "stderr": "",
          "target": "tail.txt",
          "matchesExpectedPayload": false,
          "selectedPayloadAccepted": false
        }
      ]
    }
  ]
}
