{"record":{"id":"873ff0bd9e855158","repo":"deepseek-ai/deepseek-harness","slug":"binname-profile-json-stringify-name-does-n","errorCode":null,"errorMessage":"${binName}: profile ${JSON.stringify(name)} does not exist; create it with 'dsh plugin --profile ${name} add <package>'","messagePattern":"(.+?): profile (.+?) does not exist; create it with 'dsh plugin --profile (.+?) add <package>'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/boot/app-boot/src/profile.ts","lineNumber":379,"sourceCode":" * is a misconfiguration, not \"no patches\".\n * @param binName - the diagnostic prefix on thrown errors.\n * @param name - the profile name.\n * @param installAnchor - absolute path of the dsh app's package.json (first resolution anchor).\n * @param home - the Harness home; defaults to {@link resolveDshHome}.\n * @param options - `userLayer: false` skips reading `cordis.patch.yml`, so a\n * bundles-only consumer (`--dump-default-config`, a recovery diagnostic)\n * cannot fail on a broken user layer.\n * @returns the loaded profile (empty `patches` when the user layer is skipped).\n */\nexport function loadProfile(\n  binName: string, name: string, installAnchor: string, home: string = resolveDshHome(),\n  options: { userLayer?: boolean } = {},\n): Profile {\n  const dir = resolveProfileDir(name, home)\n  if (!existsSync(join(dir, 'package.json'))) {\n    const template = PROFILE_TEMPLATES[name]\n    if (template === undefined) {\n      throw new Error(\n        `${binName}: profile ${JSON.stringify(name)} does not exist; create it with 'dsh plugin --profile ${name} add <package>'`,\n      )\n    }\n    initProfile(dir, template)\n  }\n  const manifest = normalizeShippedProfile(name, dir, readProfileManifest(binName, dir))\n  // A hand-written profile manifest may omit the dsh section entirely.\n  const bundles = manifest.dsh?.profile?.bundles ?? []\n  const layers = bundles.map((packageName): ProfileLayer => {\n    const packageDir = resolveBundleDir(binName, packageName, installAnchor, dir)\n    const bundleManifest = JSON.parse(readFileSync(join(packageDir, 'package.json'), 'utf8')) as ProfileManifest\n    const declared = bundleManifest.dsh?.bundle?.patch\n    if (declared === undefined) {\n      throw new Error(`${binName}: profile bundle ${JSON.stringify(packageName)} declares no dsh.bundle in its package.json`)\n    }\n    const patchPath = join(packageDir, declared)\n    return { packageName, packageDir, patchPath, patches: loadOverlayPatches(binName, patchPath) }\n  })","sourceCodeStart":361,"sourceCodeEnd":397,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/boot/app-boot/src/profile.ts#L361-L397","documentation":"Error \"${binName}: profile ${JSON.stringify(name)} does not exist; create it with 'dsh plugin --profile ${name} add <package>'\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/boot/app-boot/src/profile.ts:379 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the profile with dsh plugin --profile <name> add <package>."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}