{"record":{"id":"b27a127b265d8a27","repo":"deepseek-ai/deepseek-harness","slug":"agent-presets-preset-presetid-not-found-ava","errorCode":null,"errorMessage":"agent-presets: preset \"${presetId}\" not found (available: ${available.join(', ') || 'none'})","messagePattern":"agent-presets: preset \"(.+?)\" not found \\(available: (.+?)\\)","errorType":"exception","errorClass":"UnknownPresetError","httpStatus":null,"severity":"error","filePath":"packages/preset/agent-presets/src/index.ts","lineNumber":218,"sourceCode":"    return await discoverPresets(this.resolvedRoots)\n  }\n\n  /**\n   * Resolve one preset by id.\n   *\n   * A broken preset resolves — deleting one, reading one, and reporting one\n   * all need the row — and the mounting paths refuse it AFTER resolution\n   * through {@link resolveMountable}.\n   * @param id - the preset id, or `undefined` for {@link defaultId}.\n   * @returns the resolved preset.\n   * @throws when no configured root supplies that id.\n   */\n  async resolve(id?: string): Promise<AgentPreset> {\n    const wanted = id ?? this.defaultId\n    const presets = await this.list()\n    const found = presets.find(preset => preset.id === wanted)\n    if (found === undefined) {\n      throw new UnknownPresetError(wanted, presets.map(preset => preset.id))\n    }\n    return found\n  }\n\n  /**\n   * Resolve one preset that is about to compose an agent, refusing a broken\n   * one with its discovery-reported reason. Failing here rather than inside\n   * the loader keeps the answer the same for every unloadable shape — ghost\n   * directory, unparsable YAML, rowless list — and spends no mount attempt\n   * on a composition discovery already read as unusable.\n   * @param id - the preset id, or `undefined` for {@link defaultId}.\n   * @returns the resolved, mountable preset.\n   * @throws when the preset is unknown or discovery reports it broken.\n   */\n  private async resolveMountable(id?: string): Promise<AgentPreset> {\n    const preset = await this.resolve(id)\n    if (preset.broken !== undefined) {\n      throw new PresetMountError(preset.id, preset.broken)","sourceCodeStart":200,"sourceCodeEnd":236,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/preset/agent-presets/src/index.ts#L200-L236","documentation":"Error \"agent-presets: preset \"${presetId}\" not found (available: ${available.join(', ') || 'none'})\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/preset/agent-presets/src/index.ts:218 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the listed available preset ids."],"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"}