{"record":{"id":"cee56ca079aa459b","repo":"deepseek-ai/deepseek-harness","slug":"binname-failed-to-read-config-absoluteconfig","errorCode":null,"errorMessage":"${binName}: failed to read config ${absoluteConfigPath}: ${String(error)}","messagePattern":"(.+?): failed to read config (.+?): (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/boot/app-boot/src/index.ts","lineNumber":389,"sourceCode":" * belongs to the added layer.\n * @param binName - the diagnostic prefix on read/parse errors.\n * @param absoluteConfigPath - the base config file `boot()` would include.\n * @param layers - overlay layers in application order (later wins).\n * @param warn - sink for skipped-patch diagnostics; defaults to stderr.\n * @returns the composed entry list rendered as a YAML document with\n * source comment separators.\n */\nexport function renderConfigDump(\n  binName: string,\n  absoluteConfigPath: string,\n  layers: ConfigDumpLayer[],\n  warn: (line: string) => void = line => void process.stderr.write(`${line}\\n`),\n): string {\n  let content: string\n  try {\n    content = readFileSync(absoluteConfigPath, 'utf8')\n  } catch (error) {\n    throw new Error(`${binName}: failed to read config ${absoluteConfigPath}: ${String(error)}`)\n  }\n  let parsed: unknown\n  try {\n    parsed = yaml.load(content, { schema: entryListSchema })\n  } catch (error) {\n    throw new Error(`${binName}: failed to parse config ${absoluteConfigPath}: ${String(error)}`)\n  }\n  if (!Array.isArray(parsed)) {\n    throw new Error(`${binName}: config ${absoluteConfigPath} must be a top-level YAML array of entries`)\n  }\n  const baseLabel = basename(absoluteConfigPath)\n  // YAML parsing yields untyped rows; the include validates each entry\n  // at mount, and the dump prints whatever the file holds, so `EntryOptions`\n  // here is structural trust in the same file `boot()` would include.\n  const base = parsed as Parameters<typeof applyEntryPatches>[0]\n  // snapshot_k = ONE application of layers 1..k flattened, using the exact\n  // arguments boot passes for that prefix. snapshot_N is the mounted composition.\n  // The patches are cloned per call: applyEntryPatches detaches the entry","sourceCodeStart":371,"sourceCodeEnd":407,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/boot/app-boot/src/index.ts#L371-L407","documentation":"Error \"${binName}: failed to read config ${absoluteConfigPath}: ${String(error)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/boot/app-boot/src/index.ts:389 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the config file exists and is readable."],"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"}