{"record":{"id":"89a5f16f8b9bb776","repo":"deepseek-ai/deepseek-harness","slug":"agent-preset-not-found-89a5f1","errorCode":"agent-preset-not-found","errorMessage":"agent-presets: preset \"${presetId}\" not found (available: ${available.join(', ') || 'none'})","messagePattern":"agent-presets: preset \"(.+?)\" not found \\(available: (.+?)\\)","errorType":"error_code","errorClass":"UnknownPresetError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":338,"sourceCode":"/** Wrap an error result echoing the request's rpcId. */\nfunction err<T>(request: RpcRequest<unknown>, error: RpcError): RpcResponse<T> {\n  return { rpcId: request.rpcId, result: { ok: false, error } }\n}\n\n/**\n * The RPC refusal a preset failure becomes, or undefined when the failure is\n * 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[] = []","sourceCodeStart":320,"sourceCodeEnd":356,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L320-L356","documentation":"Error \"agent-presets: preset \"${presetId}\" not found (available: ${available.join(', ') || 'none'})\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:338 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pick one of the available preset ids listed in the message, or compose the missing preset into the deployment."],"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"}