{
  "schemaVersion": 1,
  "generatedAt": "2026-10-18T14:37:43.561298+00:00",
  "evidenceType": "controlled-software-experiment",
  "protocolVersion": 1,
  "command": [
    "btrfs",
    "receive",
    "--dump"
  ],
  "environment": {
    "btrfs": "btrfs-progs v6.6.3",
    "python": "3.12.3",
    "system": "Linux",
    "machine": "x86_64",
    "binarySha256": "ce9e56b2273b31ec2fe8c4c0df96f144945599fcbba640b50a567f587675fe0f"
  },
  "scope": "Six synthetic parser controls, one invocation per case. No Btrfs filesystem mounted or restored. No frequency or security claim.",
  "construction": "Little-endian protocol-v1 commands; CRC32C seed zero, no final XOR, CRC field zero while calculating. Fixture source is original Hesela code.",
  "source": "https://github.com/kdave/btrfs-progs/blob/c03e29f083678f47a7d7d810db4d21d905979b77/kernel-shared/send.h",
  "license": "CC0-1.0 for this original harness and generated fixture observations; not upstream btrfs-progs.",
  "rows": [
    {
      "case": "complete-file",
      "bytes": 156,
      "sha256": "ea09be6013ca45f086fdbab57a1023b950b68c4def0cb7dedc21c6074d6c4d0e",
      "purpose": "Six payload bytes in one WRITE command",
      "exitCode": 0,
      "stdout": "subvol          ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=1\nmkfile          ./fixture/payload\nwrite           ./fixture/payload               offset=0 len=6\n",
      "stderr": ""
    },
    {
      "case": "write-omitted",
      "bytes": 113,
      "sha256": "9692429ac01585201298fea4b83a4414ff5208b7b270480924a8eff218ceccd8",
      "purpose": "Whole WRITE removed; all remaining command checksums unchanged",
      "exitCode": 0,
      "stdout": "subvol          ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=1\nmkfile          ./fixture/payload\n",
      "stderr": ""
    },
    {
      "case": "payload-bit-flipped",
      "bytes": 156,
      "sha256": "7f155ea96738da21fb0ef7136efd139708230d3e01a2cf5b5ed1b1b8fc4b6576",
      "purpose": "One payload bit flipped without updating its command checksum",
      "exitCode": 1,
      "stdout": "subvol          ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=1\nmkfile          ./fixture/payload\n",
      "stderr": "ERROR: crc32 mismatch in command\nERROR: failed to dump the send stream: Invalid argument\n"
    },
    {
      "case": "end-missing",
      "bytes": 146,
      "sha256": "a9102e7c68d1026415d96365f8b727d661696c704b2f0975cbd21bdb31dc783f",
      "purpose": "END command removed",
      "exitCode": 1,
      "stdout": "subvol          ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=1\nmkfile          ./fixture/payload\nwrite           ./fixture/payload               offset=0 len=6\n",
      "stderr": "ERROR: unexpected EOF in stream\nERROR: failed to dump the send stream: Invalid argument\n"
    },
    {
      "case": "command-truncated",
      "bytes": 145,
      "sha256": "ef9c8fae2ba8a273c0baf64f4927c50f3ce8e0c0eafc3d5e35a70f78032b1481",
      "purpose": "Last payload byte and END absent",
      "exitCode": 1,
      "stdout": "subvol          ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=1\nmkfile          ./fixture/payload\n",
      "stderr": "ERROR: short read from stream: expected 33 read 32\nERROR: failed to dump the send stream: Input/output error\n"
    },
    {
      "case": "unresolved-parent",
      "bytes": 112,
      "sha256": "4f5a9e2b5d805346f841bdbc4ea420176a15caf122340052fa77c662a710cd4a",
      "purpose": "Synthetic parent UUID; no destination or parent provided to dump",
      "exitCode": 0,
      "stdout": "snapshot        ./fixture                       uuid=00112233-4455-6677-8899-aabbccddeeff transid=2 parent_uuid=ffeeddcc-bbaa-9988-7766-554433221100 parent_transid=1\n",
      "stderr": ""
    }
  ]
}
