{
  "environment": {
    "platform": "Linux-6.8.0-146-generic-x86_64-with-glibc2.39",
    "python": "3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0]",
    "tarBinarySha256": "3ee2c3c0b4dd9aacebfd2f0fbae44bad36348203acff78a44888dd58c05f811c",
    "tarVersion": "tar (GNU tar) 1.35"
  },
  "expected": {
    "payloadHex": "67656e65726174696f6e3d617263686976653b2076616c75653d34320a",
    "staleHex": "67656e65726174696f6e3d7374616c655f5f3b2076616c75653d30370a"
  },
  "fixture": {
    "archiveBytes": 10240,
    "archiveSha256": "5ffce003e0a1104b96560230858fd0ef39038e34ce1b67d04d664706eb09f5d1",
    "creation": {
      "command": [
        "tar",
        "--format=ustar",
        "--owner=0",
        "--group=0",
        "--numeric-owner",
        "--mtime=@0",
        "-cf",
        "../fixture.tar",
        "target",
        "alias"
      ],
      "returncode": 0,
      "stderr": "",
      "stdout": ""
    },
    "id": "linked-target-first",
    "inventory": [
      {
        "linkname": "",
        "name": "target",
        "size": 29,
        "type": "0"
      },
      {
        "linkname": "target",
        "name": "alias",
        "size": 0,
        "type": "1"
      }
    ],
    "listing": {
      "command": [
        "tar",
        "-tf",
        "fixture.tar"
      ],
      "returncode": 0,
      "stderr": "",
      "stdout": "target\nalias\n"
    },
    "source": {
      "files": {
        "alias": {
          "linkCount": 2,
          "matchesExpected": true,
          "matchesStale": false,
          "mode": "0o640",
          "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
          "size": 29
        },
        "target": {
          "linkCount": 2,
          "matchesExpected": true,
          "matchesStale": false,
          "mode": "0o640",
          "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
          "size": 29
        }
      },
      "sameLiveFile": true
    }
  },
  "fixtureHarnessSha256": "af42170d89aafc1d9c6953b374d8650464d16c38b32381d808f6fc792b0d39f1",
  "generatedAt": "2026-10-22T03:17:34.806108+00:00",
  "harnessSha256": "01e5cb0c48ad4b108cfe07350def771968b3f42a290e11be5bea18170ecbf5e3",
  "observations": [
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "default",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "default",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 2,
        "stderr": "tar: alias: Cannot hard link to 'target': No such file or directory\ntar: Exiting with failure status due to previous errors\n",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "default",
      "selection": "alias"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "default",
      "selection": "alias"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--keep-old-files",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "keep",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--keep-old-files",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 2,
        "stderr": "tar: target: Cannot open: File exists\ntar: Exiting with failure status due to previous errors\n",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "keep",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--keep-old-files",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 2,
        "stderr": "tar: alias: Cannot hard link to 'target': No such file or directory\ntar: Exiting with failure status due to previous errors\n",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "keep",
      "selection": "alias"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--keep-old-files",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "keep",
      "selection": "alias"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": true,
            "matchesStale": false,
            "mode": "0o600",
            "sha256": "de8e2c4386f01529449f1714cfd6dedbc94e3d26a955b88da6bd1c7135c48ced",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--skip-old-files",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "skip",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--skip-old-files",
          "-xf",
          "../fixture.tar"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "skip",
      "selection": "all"
    },
    {
      "after": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "before": {
        "files": {
          "alias": null,
          "target": null
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--skip-old-files",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 2,
        "stderr": "tar: alias: Cannot hard link to 'target': No such file or directory\ntar: Exiting with failure status due to previous errors\n",
        "stdout": ""
      },
      "initial": "empty",
      "policy": "skip",
      "selection": "alias"
    },
    {
      "after": {
        "files": {
          "alias": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          },
          "target": {
            "linkCount": 2,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": true
      },
      "before": {
        "files": {
          "alias": null,
          "target": {
            "linkCount": 1,
            "matchesExpected": false,
            "matchesStale": true,
            "mode": "0o600",
            "sha256": "2ab71236c332f33ab702225dabd2258c8d1d16ac230355c9ef68e496d09b5559",
            "size": 29
          }
        },
        "sameLiveFile": null
      },
      "command": {
        "command": [
          "tar",
          "--skip-old-files",
          "-xf",
          "../fixture.tar",
          "alias"
        ],
        "returncode": 0,
        "stderr": "",
        "stdout": ""
      },
      "initial": "stale",
      "policy": "skip",
      "selection": "alias"
    }
  ],
  "schemaVersion": 1,
  "study": "tar-hardlink-overwrite-controls"
}
