{"record":{"id":"ba2d44e1358aa745","repo":"paperclipai/paperclip","slug":"target-config-not-found-at-configpath","errorCode":null,"errorMessage":"Target config not found at ${configPath}.","messagePattern":"Target config not found at (.+?)\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/worktree.ts","lineNumber":2372,"sourceCode":"      manifest = readWorktreeSeedManifest(configPath)!;\n    }\n    canonicalSource = resolveCanonicalWorktreeSeedSource({\n      registeredBaseWorkspaceCwd,\n      explicitSourceConfigPath,\n      targetConfigPath: configPath,\n      expectedTargetInstanceId: targetPaths.instanceId,\n      manifestSource: manifest.source,\n      manifestTargetInstanceId: manifest.targetInstanceId,\n    });\n    const sourceConfigPath = canonicalSource.configPath;\n\n    const sourceConfig = readConfig(sourceConfigPath);\n    if (!sourceConfig) {\n      throw new Error(`Source config not found at ${sourceConfigPath}.`);\n    }\n    const targetConfig = readConfig(configPath);\n    if (!targetConfig) {\n      throw new Error(`Target config not found at ${configPath}.`);\n    }\n\n    const seedDatabase = dependencies.seedDatabase ?? seedWorktreeDatabase;\n    const details = await runVerifiedWorktreeSeed({\n      configPath,\n      sourceConfigPath,\n      sourceConfig,\n      targetConfig,\n      targetPaths,\n      instanceId: targetPaths.instanceId,\n      seedMode: manifest.seedMode,\n      preserveLiveWork: opts.preserveLiveWork,\n      expectedCompanyId,\n      seedDatabase,\n    });\n    return { seeded: true, reason: \"seeded\", details };\n  } finally {\n    await releaseLock();","sourceCodeStart":2354,"sourceCodeEnd":2390,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/cli/src/commands/worktree.ts#L2354-L2390","documentation":"Thrown by the worktree seed CLI command. Fires when readConfig cannot load a config at the given configPath (missing or unreadable target worktree config file), aborting the seed/merge operation before any plan is computed.","triggerScenarios":"Thrown at cli/src/commands/worktree.ts:1591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify ${configPath} exists; run the command from the target worktree or pass the correct config path."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-21T17:58:32.592Z","contentChangedAt":"2026-08-21T17:58:32.592Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}