{"record":{"id":"75066586dbfda407","repo":"paperclipai/paperclip","slug":"git-worktree-base-not-git-checkout","errorCode":"git_worktree_base_not_git_checkout","errorMessage":"Issue ${issueLabel} requested ${input.requestedExecutionWorkspaceMode} with git_worktree, but base workspace \"${input.base.baseCwd}\" is not a git checkout. ${remediation}","messagePattern":"Issue (.+?) requested (.+?) with git_worktree, but base workspace \"(.+?)\" is not a git checkout\\. (.+?)","errorType":"validation","errorClass":"WorkspaceValidationFailure","httpStatus":null,"severity":"error","filePath":"server/src/services/heartbeat.ts","lineNumber":2153,"sourceCode":"  effectiveExecutionWorkspaceMode: string | null | undefined;\n  issue: {\n    companyId: string;\n    id?: string | null;\n    projectId?: string | null;\n  } | null;\n  resolveSelectedEnvironmentDriver: () => Promise<string | null | undefined>;\n  resolveWorkspace: () => Promise<TWorkspace>;\n}): Promise<{\n  selectedEnvironmentDriver: string | null;\n  workspace: TWorkspace;\n}> {\n  const selectedEnvironmentDriver = await preflightLowTrustWorkspaceIsolation({\n    db: input.db,\n    trustPreset: input.trustPreset,\n    isolatedWorkspacesEnabled: input.isolatedWorkspacesEnabled,\n    effectiveExecutionWorkspaceMode: input.effectiveExecutionWorkspaceMode,\n    issue: input.issue,\n    resolveSelectedEnvironmentDriver: input.resolveSelectedEnvironmentDriver,\n  });\n\n  return {\n    selectedEnvironmentDriver,\n    workspace: await input.resolveWorkspace(),\n  };\n}\n\nfunction deriveRepoNameFromRepoUrl(repoUrl: string | null): string | null {\n  const trimmed = repoUrl?.trim() ?? \"\";\n  if (!trimmed) return null;\n  try {\n    const parsed = new URL(trimmed);\n    const cleanedPath = parsed.pathname.replace(/\\/+$/, \"\");\n    const repoName =\n      cleanedPath\n        .split(\"/\")\n        .filter(Boolean)","sourceCodeStart":2135,"sourceCodeEnd":2171,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/heartbeat.ts#L2135-L2171","documentation":"Error \"Issue ${issueLabel} requested ${input.requestedExecutionWorkspaceMode} with git_worktree, but base workspace \"${input.base.baseCwd}\" is not a git checkout. ${remediation}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/services/heartbeat.ts:1985 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point the base workspace at a real git checkout; follow the remediation in the message."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}