{
  "optionalRead": {
    "input": {
      "cwd": "<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d",
      "relativePath": "t3.json",
      "allowMissing": true
    },
    "exit": {
      "_tag": "Failure",
      "cause": [
        {
          "_tag": "Fail",
          "error": {
            "_tag": "ProjectReadFileError",
            "cwd": "<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d",
            "relativePath": "t3.json",
            "failure": "operation_failed",
            "resolvedPath": "<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d/t3.json",
            "operation": "realpath-workspace-root",
            "operationPath": "<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d",
            "message": "Failed to read workspace file 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'.",
            "cause": {
              "name": "WorkspaceFileSystemOperationError",
              "message": "Workspace file operation 'realpath-workspace-root' failed at '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d' for resolved path '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d/t3.json' (requested as 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d').",
              "cause": {
                "name": "Error",
                "message": "ENOENT: no such file or directory, realpath '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'"
              }
            }
          }
        }
      ]
    }
  },
  "matchingFailureSpans": [
    {
      "type": "effect-span",
      "name": "WorkspaceFileSystem.resolveReadTarget",
      "traceId": "b63e5cdaa79f7f5afd9fa8080440d0dc",
      "spanId": "4f04ea8857864f38",
      "parentSpanId": "108dbbec1b34d7a1",
      "sampled": true,
      "kind": "internal",
      "startTimeUnixNano": "1794860128164212491",
      "endTimeUnixNano": "1794860128164685820",
      "durationMs": 0.473329,
      "attributes": {},
      "events": [],
      "links": [],
      "exit": {
        "_tag": "Failure",
        "cause": "WorkspaceFileSystemOperationError: Workspace file operation 'realpath-workspace-root' failed at '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d' for resolved path '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d/t3.json' (requested as 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d').\n    at catch (file://<checkout>:310:9)\n    at file://<checkout>:829:40\n    at WorkspaceFileSystem.resolveReadTarget (file://<checkout>:376:27)\n    at WorkspaceFileSystem.resolveReadTarget (definition) (file://<checkout>:259:36)\n    at WorkspaceFileSystem.readFile (file://<checkout>:2973:31)\n    at WorkspaceFileSystem.readFile (definition) (file://<checkout>:373:71)\n    at ws.rpc.projects.readFile (file://<checkout>:270:16)\n    at server.runServerCommand (file://<checkout>:73:17)\n    at server.runServerCommand (definition) (file://<checkout>:19:33)\n    at server.runDefaultServerCommand (file://<checkout>:55:93)\n    at server.runDefaultServerCommand (definition) (file://<checkout>:53:47) {\n  [cause]: Error: ENOENT: no such file or directory, realpath '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'\n      at async Module.realpath (node:internal/fs/promises:2112:10)\n}"
      }
    },
    {
      "type": "effect-span",
      "name": "WorkspaceFileSystem.readFile",
      "traceId": "b63e5cdaa79f7f5afd9fa8080440d0dc",
      "spanId": "108dbbec1b34d7a1",
      "parentSpanId": "181e5beb456e229e",
      "sampled": true,
      "kind": "internal",
      "startTimeUnixNano": "1794860128164200989",
      "endTimeUnixNano": "1794860128164976125",
      "durationMs": 0.775136,
      "attributes": {},
      "events": [],
      "links": [],
      "exit": {
        "_tag": "Failure",
        "cause": "WorkspaceFileSystemOperationError: Workspace file operation 'realpath-workspace-root' failed at '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d' for resolved path '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d/t3.json' (requested as 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d').\n    at catch (file://<checkout>:310:9)\n    at file://<checkout>:829:40\n    at WorkspaceFileSystem.resolveReadTarget (file://<checkout>:376:27)\n    at WorkspaceFileSystem.resolveReadTarget (definition) (file://<checkout>:259:36)\n    at WorkspaceFileSystem.readFile (file://<checkout>:2973:31)\n    at WorkspaceFileSystem.readFile (definition) (file://<checkout>:373:71)\n    at ws.rpc.projects.readFile (file://<checkout>:270:16)\n    at server.runServerCommand (file://<checkout>:73:17)\n    at server.runServerCommand (definition) (file://<checkout>:19:33)\n    at server.runDefaultServerCommand (file://<checkout>:55:93)\n    at server.runDefaultServerCommand (definition) (file://<checkout>:53:47) {\n  [cause]: Error: ENOENT: no such file or directory, realpath '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'\n      at async Module.realpath (node:internal/fs/promises:2112:10)\n}"
      }
    },
    {
      "type": "effect-span",
      "name": "ws.rpc.projects.readFile",
      "traceId": "b63e5cdaa79f7f5afd9fa8080440d0dc",
      "spanId": "181e5beb456e229e",
      "sampled": true,
      "kind": "internal",
      "startTimeUnixNano": "1794860128164185099",
      "endTimeUnixNano": "1794860128165381837",
      "durationMs": 1.196738,
      "attributes": {
        "rpc.transport": "websocket",
        "rpc.system": "effect-rpc",
        "rpc.method": "projects.readFile",
        "rpc.aggregate": "workspace"
      },
      "events": [],
      "links": [
        {
          "traceId": "be7871475af2a5b35eb1d27bfe8cf806",
          "spanId": "1b78b7596e9542a4",
          "attributes": {}
        }
      ],
      "exit": {
        "_tag": "Failure",
        "cause": "ProjectReadFileError: Failed to read workspace file 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'.\n    at file://<checkout>:2976:17\n    at file://<checkout>:152:23\n    at Array.map (<anonymous>)\n    at file://<checkout>:149:33\n    at file://<checkout>:79:18\n    at WorkspaceFileSystem.resolveReadTarget (file://<checkout>:376:27)\n    at WorkspaceFileSystem.resolveReadTarget (definition) (file://<checkout>:259:36)\n    at WorkspaceFileSystem.readFile (file://<checkout>:2973:31)\n    at WorkspaceFileSystem.readFile (definition) (file://<checkout>:373:71)\n    at ws.rpc.projects.readFile (file://<checkout>:270:16)\n    at server.runServerCommand (file://<checkout>:73:17)\n    at server.runServerCommand (definition) (file://<checkout>:19:33)\n    at server.runDefaultServerCommand (file://<checkout>:55:93)\n    at server.runDefaultServerCommand (definition) (file://<checkout>:53:47) {\n  [cause]: WorkspaceFileSystemOperationError: Workspace file operation 'realpath-workspace-root' failed at '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d' for resolved path '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d/t3.json' (requested as 't3.json' in '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d').\n      at catch (file://<checkout>:310:9)\n      at file://<checkout>:829:40 {\n    [cause]: Error: ENOENT: no such file or directory, realpath '<scenario-home>/worktrees/cleanup-demo/t3-cleanup-repro-8bc5e097cde4c04d'\n        at async Module.realpath (node:internal/fs/promises:2112:10)\n  }\n}"
      }
    }
  ]
}