{"record":{"id":"8613df8187699849","repo":"paperclipai/paperclip","slug":"cannot-seed-worktree-database-because-source-confi","errorCode":null,"errorMessage":"Cannot seed worktree database because source config was not found at ${sourceConfigPath}. Use --no-seed or provide --from-config.","messagePattern":"Cannot seed worktree database because source config was not found at (.+?)\\. Use --no-seed or provide --from-config\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":2516,"sourceCode":"    {\n      ...buildWorktreeEnvEntries(paths, branding),\n      ...(existingAgentJwtSecret ? { PAPERCLIP_AGENT_JWT_SECRET: existingAgentJwtSecret } : {}),\n      ...(existingToolActionSigningSecret ? { PAPERCLIP_TOOL_ACTION_SIGNING_SECRET: existingToolActionSigningSecret } : {}),\n    },\n    paths.envPath,\n  );\n  ensureAgentJwtSecret(paths.configPath);\n  ensureToolActionSigningSecret(paths.configPath);\n  loadPaperclipEnvFile(paths.configPath);\n  const copiedGitHooks = copyGitHooksToWorktreeGitDir(cwd);\n\n  let seedSummary: string | null = null;\n  let seedExecutionQuarantineSummary: SeededWorktreeExecutionQuarantineSummary | null = null;\n  let pausedScheduledRoutineCount: number | null = null;\n  let reboundWorkspaceSummary: SeedWorktreeDatabaseResult[\"reboundWorkspaces\"] = [];\n  if (opts.seed !== false) {\n    if (!sourceConfig) {\n      throw new Error(\n        `Cannot seed worktree database because source config was not found at ${sourceConfigPath}. Use --no-seed or provide --from-config.`,\n      );\n    }\n    const spinner = p.spinner();\n    spinner.start(`Seeding isolated worktree database from source instance (${seedMode})...`);\n    const markers = resolveWorktreeSeedMarkerPaths(paths.configPath);\n    const releaseSeedLock = await acquireWorktreeSeedLock(markers.lock);\n    try {\n      const seeded = await runVerifiedWorktreeSeed({\n        configPath: paths.configPath,\n        sourceConfigPath,\n        sourceConfig,\n        targetConfig,\n        targetPaths: paths,\n        instanceId,\n        seedMode,\n        preserveLiveWork: opts.preserveLiveWork,\n        seedDatabase: seedWorktreeDatabase,","sourceCodeStart":2498,"sourceCodeEnd":2534,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L2498-L2534","documentation":"Seed-source guard in worktree init: seeding was requested, but the resolved source config file does not exist, so there is no source instance to copy data from; the command offers --no-seed or an explicit --from-config as the escape hatches.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:1702 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide --from-config pointing at the source config.","Re-run with --no-seed to skip database seeding."],"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-23T08:17:48.524Z"}