{
  "side": "before",
  "commit": "ed101ef641fe75e1a86c7ff7ef34a09955765307",
  "environment": "Linux; real Node T3 server; isolated HOME and fresh T3 database; authenticated WebSocket; synthetic files",
  "settings": {
    "_tag": "Success",
    "providerInstances": {
      "claude-work": {
        "driver": "claudeAgent",
        "enabled": true,
        "config": {
          "homePath": "<run>/claude-work"
        }
      },
      "claude-rel": {
        "driver": "claudeAgent",
        "environment": [
          {
            "name": "CLAUDE_CONFIG_DIR",
            "value": ".claude-rel",
            "sensitive": false
          }
        ],
        "enabled": true,
        "config": {
          "homePath": ""
        }
      },
      "claudeAgent": {
        "driver": "claudeAgent",
        "enabled": true,
        "config": {
          "homePath": ""
        }
      }
    }
  },
  "project": {
    "_tag": "Success",
    "value": {
      "id": "proof-project",
      "title": "Workflow proof",
      "workspaceRoot": "<run>/workspace",
      "repositoryIdentity": null,
      "faviconPath": null,
      "projectIcon": null,
      "defaultModelSelection": null,
      "defaultThreadEnvMode": null,
      "autoPull": false,
      "scripts": [],
      "pinnedAt": null,
      "archivedAt": null,
      "createdAt": "2026-11-14T22:38:35.311Z",
      "updatedAt": "2026-11-14T22:38:35.311Z",
      "deletedAt": null
    }
  },
  "threads": {
    "claude-work": {
      "_tag": "Success",
      "value": {
        "threadId": "proof-claude-work",
        "projection": {
          "thread": {
            "createdBy": "user",
            "creationSource": "web",
            "id": "proof-claude-work",
            "projectId": "proof-project",
            "title": "claude-work",
            "providerInstanceId": "claude-work",
            "modelSelection": {
              "instanceId": "claude-work",
              "model": "default"
            },
            "runtimeMode": "full-access",
            "interactionMode": "default",
            "branch": "master",
            "worktreePath": null,
            "pullRequests": [],
            "activeProviderThreadId": null,
            "lineage": {
              "parentThreadId": null,
              "relationshipToParent": null,
              "rootThreadId": "proof-claude-work"
            },
            "forkedFrom": null,
            "createdAt": "2026-11-14T22:38:35.367Z",
            "updatedAt": "2026-11-14T22:38:35.367Z",
            "archivedAt": null,
            "settledOverride": null,
            "settledAt": null,
            "snoozedUntil": null,
            "snoozedAt": null,
            "lastVisitedAt": null,
            "deletedAt": null
          },
          "runs": [],
          "attempts": [],
          "nodes": [],
          "subagents": [],
          "providerSessions": [],
          "providerThreads": [],
          "providerTurns": [],
          "runtimeRequests": [],
          "messages": [],
          "plans": [],
          "turnItems": [],
          "checkpointScopes": [],
          "checkpoints": [],
          "contextHandoffs": [],
          "contextTransfers": [],
          "visibleTurnItems": [],
          "updatedAt": "2026-11-14T22:38:35.367Z"
        },
        "resumed": false
      }
    },
    "claude-rel": {
      "_tag": "Success",
      "value": {
        "threadId": "proof-claude-rel",
        "projection": {
          "thread": {
            "createdBy": "user",
            "creationSource": "web",
            "id": "proof-claude-rel",
            "projectId": "proof-project",
            "title": "claude-rel",
            "providerInstanceId": "claude-rel",
            "modelSelection": {
              "instanceId": "claude-rel",
              "model": "default"
            },
            "runtimeMode": "full-access",
            "interactionMode": "default",
            "branch": "master",
            "worktreePath": null,
            "pullRequests": [],
            "activeProviderThreadId": null,
            "lineage": {
              "parentThreadId": null,
              "relationshipToParent": null,
              "rootThreadId": "proof-claude-rel"
            },
            "forkedFrom": null,
            "createdAt": "2026-11-14T22:38:35.403Z",
            "updatedAt": "2026-11-14T22:38:35.403Z",
            "archivedAt": null,
            "settledOverride": null,
            "settledAt": null,
            "snoozedUntil": null,
            "snoozedAt": null,
            "lastVisitedAt": null,
            "deletedAt": null
          },
          "runs": [],
          "attempts": [],
          "nodes": [],
          "subagents": [],
          "providerSessions": [],
          "providerThreads": [],
          "providerTurns": [],
          "runtimeRequests": [],
          "messages": [],
          "plans": [],
          "turnItems": [],
          "checkpointScopes": [],
          "checkpoints": [],
          "contextHandoffs": [],
          "contextTransfers": [],
          "visibleTurnItems": [],
          "updatedAt": "2026-11-14T22:38:35.403Z"
        },
        "resumed": false
      }
    }
  },
  "requests": [
    {
      "phase": "default projects absent",
      "file": "custom",
      "thread": "claude-work",
      "result": {
        "_tag": "Failure",
        "cause": [
          {
            "_tag": "Fail",
            "error": {
              "_tag": "OrchestrationGetWorkflowScriptError",
              "reason": "root-unavailable",
              "scriptPath": "<run>/claude-work/projects/-workspace/workflows/custom.js",
              "cause": {
                "name": "OrchestrationWorkflowFileError",
                "message": "Workflow file root unavailable.",
                "cause": {
                  "name": "Error",
                  "message": "ENOENT: no such file or directory, realpath '<run>/home/.claude/projects'"
                }
              }
            }
          }
        ]
      }
    },
    {
      "phase": "default projects absent",
      "file": "relative",
      "thread": "claude-rel",
      "result": {
        "_tag": "Failure",
        "cause": [
          {
            "_tag": "Fail",
            "error": {
              "_tag": "OrchestrationGetWorkflowScriptError",
              "reason": "root-unavailable",
              "scriptPath": "<run>/workspace/.claude-rel/projects/-workspace/workflows/rel.js",
              "cause": {
                "name": "OrchestrationWorkflowFileError",
                "message": "Workflow file root unavailable.",
                "cause": {
                  "name": "Error",
                  "message": "ENOENT: no such file or directory, realpath '<run>/home/.claude/projects'"
                }
              }
            }
          }
        ]
      }
    },
    {
      "phase": "default projects present",
      "file": "custom",
      "thread": "claude-work",
      "result": {
        "_tag": "Failure",
        "cause": [
          {
            "_tag": "Fail",
            "error": {
              "_tag": "OrchestrationGetWorkflowScriptError",
              "reason": "outside-root",
              "scriptPath": "<run>/claude-work/projects/-workspace/workflows/custom.js",
              "cause": {
                "name": "OrchestrationWorkflowFileError",
                "message": "Path is outside the workflow files root."
              }
            }
          }
        ]
      }
    },
    {
      "phase": "default projects present",
      "file": "relative",
      "thread": "claude-rel",
      "result": {
        "_tag": "Failure",
        "cause": [
          {
            "_tag": "Fail",
            "error": {
              "_tag": "OrchestrationGetWorkflowScriptError",
              "reason": "outside-root",
              "scriptPath": "<run>/workspace/.claude-rel/projects/-workspace/workflows/rel.js",
              "cause": {
                "name": "OrchestrationWorkflowFileError",
                "message": "Path is outside the workflow files root."
              }
            }
          }
        ]
      }
    },
    {
      "phase": "default projects present",
      "file": "default",
      "thread": "claude-work",
      "result": {
        "_tag": "Success",
        "value": {
          "scriptPath": "<run>/home/.claude/projects/-workspace/workflows/default.js",
          "contents": "export const source = \"default\";\n",
          "truncated": false
        }
      }
    },
    {
      "phase": "default projects present",
      "file": "outside",
      "thread": "claude-work",
      "result": {
        "_tag": "Failure",
        "cause": [
          {
            "_tag": "Fail",
            "error": {
              "_tag": "OrchestrationGetWorkflowScriptError",
              "reason": "outside-root",
              "scriptPath": "<run>/outside.js",
              "cause": {
                "name": "OrchestrationWorkflowFileError",
                "message": "Path is outside the workflow files root."
              }
            }
          }
        ]
      }
    }
  ]
}