{
  "executedAt": "2026-11-04T11:38:41.765799+00:00",
  "scope": "Disposable text file and loopback HTTP fixtures only; no model download or inference.",
  "os": "27.2",
  "osBuild": "26B123",
  "architecture": "arm64",
  "redactions": "Temporary paths, local username, PID and kernel device identifier are redacted.",
  "setupScript": "docs/research/artifacts/run-mac-diagnostics-followup-2026-11-04.py",
  "setupScriptSha256": "01d9ecf9e39d32603b78c8820904979c241c19009aa034e605954b38f48102a8",
  "fileFixture": {
    "originalText": "Local LLM Updates checksum fixture.\n",
    "filename": "model fixture.gguf",
    "sha256": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd181",
    "isModel": false
  },
  "checksumFunction": "check_model_sha256() {\n  if [ \"${#expected_sha}\" -ne 64 ]; then\n    printf '%s\\n' 'Expected exactly 64 hexadecimal characters; check skipped.' >&2\n    return 2\n  fi\n  case \"$expected_sha\" in\n    *[!0-9a-fA-F]*)\n      printf '%s\\n' 'Expected only hexadecimal characters; check skipped.' >&2\n      return 2\n      ;;\n  esac\n  printf '%s  %s\\n' \"$expected_sha\" \"$model_file\" | shasum -a 256 -c -\n}\ncheck_model_sha256",
  "checks": [
    {
      "label": "unguarded SHA-1 input baseline",
      "shell": "/bin/zsh",
      "command": "printf '%s  %s\\n' \"$expected_sha\" \"$model_file\" | shasum -a 256 -c -",
      "inputDigest": "e56b6e3f01dddf95f14f098de4c10d7c252c6d69",
      "expectedExitCode": 0,
      "expectedStdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "exitCode": 0,
      "stdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "stderr": ""
    },
    {
      "label": "matching SHA-256",
      "shell": "/bin/zsh",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 1,
      "expectedExitCode": 0,
      "expectedInvocations": 1,
      "exitCode": 0,
      "stdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "stderr": ""
    },
    {
      "label": "uppercase SHA-256",
      "shell": "/bin/zsh",
      "inputDigest": "4BC6F33287D6FFB1A780D24932F84D40D0362BF0FFDBDAE38CCE67C41CDCD181",
      "shasumInvocations": 1,
      "expectedExitCode": 0,
      "expectedInvocations": 1,
      "exitCode": 0,
      "stdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "stderr": ""
    },
    {
      "label": "changed bytes",
      "shell": "/bin/zsh",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 1,
      "expectedExitCode": 1,
      "expectedInvocations": 1,
      "exitCode": 1,
      "stdout": "<temporary-directory>/model fixture.gguf: FAILED\n",
      "stderr": "shasum: WARNING: 1 computed checksum did NOT match\n"
    },
    {
      "label": "empty digest",
      "shell": "/bin/zsh",
      "inputDigest": "",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "40-character SHA-1",
      "shell": "/bin/zsh",
      "inputDigest": "e56b6e3f01dddf95f14f098de4c10d7c252c6d69",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "63 hex characters",
      "shell": "/bin/zsh",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd18",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "64 non-hex characters",
      "shell": "/bin/zsh",
      "inputDigest": "gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected only hexadecimal characters; check skipped.\n"
    },
    {
      "label": "embedded newline",
      "shell": "/bin/zsh",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40\n0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected only hexadecimal characters; check skipped.\n"
    },
    {
      "label": "matching SHA-256",
      "shell": "/bin/bash",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 1,
      "expectedExitCode": 0,
      "expectedInvocations": 1,
      "exitCode": 0,
      "stdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "stderr": ""
    },
    {
      "label": "uppercase SHA-256",
      "shell": "/bin/bash",
      "inputDigest": "4BC6F33287D6FFB1A780D24932F84D40D0362BF0FFDBDAE38CCE67C41CDCD181",
      "shasumInvocations": 1,
      "expectedExitCode": 0,
      "expectedInvocations": 1,
      "exitCode": 0,
      "stdout": "<temporary-directory>/model fixture.gguf: OK\n",
      "stderr": ""
    },
    {
      "label": "changed bytes",
      "shell": "/bin/bash",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 1,
      "expectedExitCode": 1,
      "expectedInvocations": 1,
      "exitCode": 1,
      "stdout": "<temporary-directory>/model fixture.gguf: FAILED\n",
      "stderr": "shasum: WARNING: 1 computed checksum did NOT match\n"
    },
    {
      "label": "empty digest",
      "shell": "/bin/bash",
      "inputDigest": "",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "40-character SHA-1",
      "shell": "/bin/bash",
      "inputDigest": "e56b6e3f01dddf95f14f098de4c10d7c252c6d69",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "63 hex characters",
      "shell": "/bin/bash",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40d0362bf0ffdbdae38cce67c41cdcd18",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected exactly 64 hexadecimal characters; check skipped.\n"
    },
    {
      "label": "64 non-hex characters",
      "shell": "/bin/bash",
      "inputDigest": "gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected only hexadecimal characters; check skipped.\n"
    },
    {
      "label": "embedded newline",
      "shell": "/bin/bash",
      "inputDigest": "4bc6f33287d6ffb1a780d24932f84d40\n0362bf0ffdbdae38cce67c41cdcd181",
      "shasumInvocations": 0,
      "expectedExitCode": 2,
      "expectedInvocations": 0,
      "exitCode": 2,
      "stdout": "",
      "stderr": "Expected only hexadecimal characters; check skipped.\n"
    },
    {
      "label": "IPv4 listener",
      "setup": {
        "bindAddress": "127.0.0.1",
        "requestedPort": 0,
        "boundPort": 55655,
        "ipv6Only": false
      },
      "command": ["lsof", "-nP", "-iTCP:55655", "-sTCP:LISTEN"],
      "expectedExitCode": 0,
      "exitCode": 0,
      "stdout": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\nPython <fixture-pid> <local-user> 3u IPv4 <redacted> 0t0 TCP 127.0.0.1:55655 (LISTEN)\n",
      "stderr": ""
    },
    {
      "label": "IPv4 matching address",
      "command": [
        "curl",
        "-sS",
        "--connect-timeout",
        "2",
        "--max-time",
        "5",
        "-o",
        "/dev/null",
        "-w",
        "HTTP %{http_code}\n",
        "http://127.0.0.1:55655/"
      ],
      "expectedExitCode": 0,
      "expectedStdout": "HTTP 200\n",
      "exitCode": 0,
      "stdout": "HTTP 200\n",
      "stderr": ""
    },
    {
      "label": "IPv4 closed listener",
      "command": [
        "curl",
        "-sS",
        "--connect-timeout",
        "2",
        "--max-time",
        "5",
        "-o",
        "/dev/null",
        "-w",
        "HTTP %{http_code}\n",
        "http://127.0.0.1:55655/"
      ],
      "expectedExitCode": 7,
      "expectedStdout": "HTTP 000\n",
      "exitCode": 7,
      "stdout": "HTTP 000\n",
      "stderr": "curl: (7) Failed to connect to 127.0.0.1 port 55655 after 0 ms: Couldn't connect to server\n"
    },
    {
      "label": "IPv6-only listener",
      "setup": {
        "bindAddress": "::1",
        "requestedPort": 0,
        "boundPort": 55659,
        "ipv6Only": true
      },
      "command": ["lsof", "-nP", "-iTCP:55659", "-sTCP:LISTEN"],
      "expectedExitCode": 0,
      "exitCode": 0,
      "stdout": "COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME\nPython <fixture-pid> <local-user> 3u IPv6 <redacted> 0t0 TCP [::1]:55659 (LISTEN)\n",
      "stderr": ""
    },
    {
      "label": "IPv6-only matching address",
      "command": [
        "curl",
        "-sS",
        "--connect-timeout",
        "2",
        "--max-time",
        "5",
        "-o",
        "/dev/null",
        "-w",
        "HTTP %{http_code}\n",
        "http://[::1]:55659/"
      ],
      "expectedExitCode": 0,
      "expectedStdout": "HTTP 200\n",
      "exitCode": 0,
      "stdout": "HTTP 200\n",
      "stderr": ""
    },
    {
      "label": "IPv4 cannot reach the IPv6-only fixture",
      "command": [
        "curl",
        "-sS",
        "--connect-timeout",
        "2",
        "--max-time",
        "5",
        "-o",
        "/dev/null",
        "-w",
        "HTTP %{http_code}\n",
        "http://127.0.0.1:55659/"
      ],
      "expectedExitCode": 7,
      "expectedStdout": "HTTP 000\n",
      "exitCode": 7,
      "stdout": "HTTP 000\n",
      "stderr": "curl: (7) Failed to connect to 127.0.0.1 port 55659 after 0 ms: Couldn't connect to server\n"
    },
    {
      "label": "IPv6-only closed listener",
      "command": [
        "curl",
        "-sS",
        "--connect-timeout",
        "2",
        "--max-time",
        "5",
        "-o",
        "/dev/null",
        "-w",
        "HTTP %{http_code}\n",
        "http://[::1]:55659/"
      ],
      "expectedExitCode": 7,
      "expectedStdout": "HTTP 000\n",
      "exitCode": 7,
      "stdout": "HTTP 000\n",
      "stderr": "curl: (7) Failed to connect to ::1 port 55659 after 0 ms: Couldn't connect to server\n"
    }
  ],
  "allExpectedOutcomesPassed": true
}
