{"record":{"id":"dd256f64ef141485","repo":"deepseek-ai/deepseek-harness","slug":"agent-preset-invalid-dd256f","errorCode":"agent-preset-invalid","errorMessage":"agent-presets: preset \"${presetId}\" failed to mount: ${reason}","messagePattern":"agent-presets: preset \"(.+?)\" failed to mount: (.+?)","errorType":"error_code","errorClass":"PresetMountError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":345,"sourceCode":" * about something else.\n *\n * Both the session-create path and the switch path can be handed the same two\n * failures, and a client that has to branch on the code needs them worded the\n * same from either.\n * @param request - the request being answered.\n * @param error - the thrown value.\n * @returns the refusal, or undefined when the caller should keep handling.\n */\nfunction presetFailure(request: RpcRequest<unknown>, error: unknown): RpcResponse<never> | undefined {\n  if (error instanceof UnknownPresetError) {\n    return err(request, {\n      code: 'agent-preset-not-found',\n      message: error.message,\n      details: { agentPreset: error.presetId, available: [...error.available] },\n    })\n  }\n  if (error instanceof PresetMountError) {\n    return err(request, {\n      code: 'agent-preset-invalid',\n      message: error.message,\n      details: { agentPreset: error.presetId, reason: error.reason },\n    })\n  }\n  return undefined\n}\n\n/** Simple async queue: core callbacks push, the AsyncIterable pulls; abort/return cleans up. */\nclass FrameQueue<F> {\n  private buffer: F[] = []\n  private waiter: (() => void) | undefined\n  private done = false\n\n  push(item: F): void {\n    if (this.done) return\n    this.buffer.push(item)\n    this.waiter?.()","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L327-L363","documentation":"Error \"agent-presets: preset \"${presetId}\" failed to mount: ${reason}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:345 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the preset's cordis.yml or bundle per the embedded mount failure reason, then retry."],"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"}