Real T3 server proof: base ffcd5500460d22b106a5021354e81536004d0992 Seed: one commit on main; bare origin; origin/HEAD -> origin/main; remote-only exists only on origin. Seed: multi/ contains two repositories and is itself outside Git; probe/ is on unborn HEAD; source/ has no remotes. Fresh server ready on loopback; OpenCode 2.4.3, anthropic/claude-haiku-5-5, full-access. $ t3 project add fixture/demo Added project cfa35583-b382-4563-b3af-a16e2c54abc1 (Unborn HEAD proof) at /proof/server/fixture/demo. $ t3 project add fixture/multi Added project 57225653-5abd-4434-bddd-31eb6cde3aa2 (Non-Git root proof) at /proof/server/fixture/multi. It also covers 2 other folders. $ t3 thread start --provider opencode --model anthropic/claude-haiku-5-5 --worktree main --branch feature-proof fixture/demo --wait --json Prompt: Run git checkout --orphan fresh-start using the bash tool. Then use the task tool to start exactly one general subagent with prompt: Reply with the single word done. Do not commit or rename branches afterwards. Use native task, not any T3 delegate or thread tools. {"threadId":"mcp:cac513a5-b1d0-487e-940f-8d283f636fe2","runId":"run:thread:mcp%3Acac513a5-b1d0-487e-940f-8d283f636fe2:ordinal:1","status":"completed","reply":"The subagent finished and replied \"done.\" The `fresh-start` orphan branch is checked out, and nothing has been committed or renamed.","error":null} $ t3 thread start --provider opencode --model anthropic/claude-haiku-5-5 --worktree main --branch multi-proof fixture/multi --wait --json Prompt: Use the native task tool to start exactly one general subagent with prompt: Reply with the single word done. Do not use any T3 delegation tools. Do not change any files or branches. {"threadId":"mcp:bf26aee8-63c0-4ec2-b0fe-baa551015678","runId":"run:thread:mcp%3Abf26aee8-63c0-4ec2-b0fe-baa551015678:ordinal:1","status":"completed","reply":"The subagent finished and replied \"done,\" as requested.","error":null} $ t3 thread start --provider opencode --model anthropic/claude-haiku-5-5 --worktree remote-only --branch remote-proof fixture/demo --wait --json Prompt: Reply with the single word done. Do not run tools. {"threadId":"mcp:b908e0a5-7216-4e98-a881-6c1b0bceb74a","runId":"run:thread:mcp%3Ab908e0a5-7216-4e98-a881-6c1b0bceb74a:ordinal:1","status":"completed","reply":"done","error":null} $ live WebSocket vcs.createWorktree: unborn @, missing refs/heads/missing, missing branch with no remote, remote-only fallback {"phase":"request","label":"unborn-at","input":{"cwd":"/proof/server/fixture/probe","refName":"origin/main","newRefName":"probe-unborn-at","baseRefName":"@","path":null}} {"phase":"response","label":"unborn-at","result":{"_id":"Result","_tag":"Success","success":{"worktree":{"path":"/proof/server/worktrees/probe/probe-unborn-at-047d2ee36a797781","refName":"probe-unborn-at"}}}} {"phase":"request","label":"missing-full-ref","input":{"cwd":"/proof/server/fixture/probe","refName":"origin/main","newRefName":"probe-missing-full-ref","baseRefName":"refs/heads/missing","path":null}} {"phase":"response","label":"missing-full-ref","result":{"_id":"Result","_tag":"Success","success":{"worktree":{"path":"/proof/server/worktrees/probe/probe-missing-full-ref-aada8d0fd79ddc69","refName":"probe-missing-full-ref"}}}} {"phase":"request","label":"no-remote-miss","input":{"cwd":"/proof/server/fixture/source","refName":"main","newRefName":"probe-no-remote-miss","baseRefName":"missing","path":null}} {"phase":"response","label":"no-remote-miss","result":{"_id":"Result","_tag":"Success","success":{"worktree":{"path":"/proof/server/worktrees/source/probe-no-remote-miss-083a97453da9049b","refName":"probe-no-remote-miss"}}}} {"phase":"request","label":"remote-only","input":{"cwd":"/proof/server/fixture/probe","refName":"origin/main","newRefName":"probe-remote-only","baseRefName":"remote-only","path":null}} {"phase":"response","label":"remote-only","result":{"_id":"Result","_tag":"Success","success":{"worktree":{"path":"/proof/server/worktrees/probe/probe-remote-only-7d092c22213c4bca","refName":"probe-remote-only"}}}} $ git config --get branch.probe-remote-only.t3-merge-base (RPC remote fallback) remote-only $ git config --get branch.probe-remote-only.t3-merge-base-ref refs/remotes/origin/remote-only $ git config --get branch.remote-proof.t3-merge-base remote-only $ git config --get branch.remote-proof.t3-merge-base-ref refs/remotes/origin/remote-only $ inspect persisted native-child branch events (all creation and metadata events) {"sequence": 38, "type": "thread.created", "threadId": "thread:subagent:f61c22df084a8f5e", "branch": "feature-proof", "worktreePath": "/proof/server/worktrees/demo/feature-proof-33512f226b7579f2"} {"sequence": 39, "type": "thread.metadata-updated", "threadId": "thread:subagent:f61c22df084a8f5e", "branch": "HEAD", "worktreePath": "/proof/server/worktrees/demo/feature-proof-33512f226b7579f2"} {"sequence": 87, "type": "thread.metadata-updated", "threadId": "thread:subagent:f61c22df084a8f5e", "branch": "fresh-start", "worktreePath": "/proof/server/worktrees/demo/feature-proof-33512f226b7579f2"} {"sequence": 120, "type": "thread.created", "threadId": "thread:subagent:e687ae22cd27b298", "branch": "multi-proof", "worktreePath": "/proof/server/worktrees/multi/multi-proof-c098b57c5b0361c0"} $ inspect resolveBranchBase span subtrees; runGitCommand is one real Git subprocess {"spanId": "c1dfbbdec39078a8", "traceId": "cd795df4cf7620dce7af2bf20c8ce417", "cwd": "/proof/server/fixture/demo", "gitProcesses": 2, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.listRemoteNames", "exit": {"_tag": "Success"}}]} {"spanId": "d52aa260c2b52c22", "traceId": "2ea56f662daaa557b2d07526b2b3b62f", "cwd": "/proof/server/worktrees/demo/feature-proof-33512f226b7579f2", "gitProcesses": 5, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.resolveRepositoryPaths.layout", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.statusDetails.primaryRemoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteBranchExists", "exit": {"_tag": "Success"}}]} {"spanId": "f064f93bd99e3917", "traceId": "861a5163f8ef31cd9f689bc6b359741a", "cwd": "/proof/server/fixture/multi/one", "gitProcesses": 2, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.listRemoteNames", "exit": {"_tag": "Success"}}]} {"spanId": "eb6356d0aae6fcd9", "traceId": "861a5163f8ef31cd9f689bc6b359741a", "cwd": "/proof/server/fixture/multi/two", "gitProcesses": 2, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.listRemoteNames", "exit": {"_tag": "Success"}}]} {"spanId": "6083609fc0a6d348", "traceId": "2e5fbb9ffc7723896758e63b9d206119", "cwd": "/proof/server/worktrees/multi/multi-proof-c098b57c5b0361c0", "gitProcesses": 4, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Failure", "cause": "GitCommandError: Git command failed in GitVcsDriver.listRemoteNames (/proof/server/worktrees/multi/multi-proof-c098b57c5b0361c0): Git command exited with a non-zero status. (not_a_repository)\n at file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n at resolvePrimaryRemoteName (file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:2534:5)\n at resolvePrimaryRemoteName (definition) (file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:2510:40)\n at GitVcsDriver.resolveBranchBase (file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:6081:25)\n at GitVcsDriver.resolveBranchBase (definition) (file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:6045:36)\n at GitVcsDriver.resolveBranchName (file:///workspace/base/apps/server/src/orchestration-v2/ProviderEventIngestor.ts:860:45)\n at GitVcsDriver.resolveBranchName (definition) (file:///workspace/base/apps/server/src/vcs/GitVcsDriverCore.ts:6077:36)\n at RunExecutionService.startRootRun (file:///workspace/base/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:2738:27)\n at RunExecutionService.startRootRun (definition) (file:///workspace/base/apps/server/src/orchestration-v2/RunExecutionService.ts:1132:28)\n at ProviderTurnStartService.start (file:///workspace/base/apps/server/src/orchestration-v2/EffectWorker.ts:130:25)\n at ProviderTurnStartService.start (definition) (file:///workspace/base/apps/server/src/orchestration-v2/ProviderTurnStartService.ts:2802:86)"}}, {"name": "GitVcsDriver.resolveRepositoryPaths.layout", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.resolveRepositoryPaths.commonDir", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.listRemoteNames", "exit": {"_tag": "Success"}}]} {"spanId": "40852ccc599de233", "traceId": "706907e0e02586e63a93486a62e8b20c", "cwd": "/proof/server/fixture/demo", "gitProcesses": 2, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.listRemoteNames", "exit": {"_tag": "Success"}}]} {"spanId": "9006588b9bd75232", "traceId": "6580a4ee35f5a7d306a60ff381d2caa2", "cwd": "/proof/server/fixture/probe", "gitProcesses": 4, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.statusDetails.primaryRemoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteBranchExists", "exit": {"_tag": "Success"}}]} {"spanId": "84696090fb6e3f9e", "traceId": "108adf83ee3e86caf4cafe49978dfada", "cwd": "/proof/server/fixture/probe", "gitProcesses": 3, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteBranchExists", "exit": {"_tag": "Success"}}]} {"spanId": "4514ab14286e5bb9", "traceId": "f0705596eac2ea3b615666ae1e201e0e", "cwd": "/proof/server/fixture/source", "gitProcesses": 3, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.resolveRepositoryPaths.layout", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.statusDetails.primaryRemoteExists", "exit": {"_tag": "Success"}}]} {"spanId": "388c9f753e25fdd0", "traceId": "6fe5e111134cbe15141c7ce0a0472940", "cwd": "/proof/server/fixture/probe", "gitProcesses": 3, "operations": [{"name": "GitVcsDriver.resolveBranchName.resolveRef", "exit": {"_tag": "Success"}}, {"name": "resolvePrimaryRemoteName", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteExists", "exit": {"_tag": "Success"}}, {"name": "GitVcsDriver.remoteBranchExists", "exit": {"_tag": "Success"}}]} Server stopped. Complete raw SQLite and NDJSON trace retained for inspection. No tests used.