{"record":{"id":"738caf25f5e0e94f","repo":"deepseek-ai/deepseek-harness","slug":"directory-create-failed-738caf","errorCode":"directory-create-failed","errorMessage":"cannot create ${target}: ${message}","messagePattern":"cannot create (.+?): (.+?)","errorType":"error_code","errorClass":"DirectoryPickerError","httpStatus":null,"severity":"error","filePath":"packages/host/apiproxy/src/api-proxy.ts","lineNumber":2905,"sourceCode":"            return err(request, { code: 'cancelled', message: 'directory listing was aborted', details: {} })\n          }\n          return err(request, directoryError(error))\n        }\n      },\n\n      async createDirectory(request) {\n        const capability = ctx.directoryPicker.capability()\n        if (capability.kind !== 'browse') {\n          return err(request, {\n            code: 'directory-picker-unavailable',\n            message: `host.createDirectory needs the browse capability; the composed picker serves \"${capability.kind}\"`,\n            details: { capability: capability.kind },\n          })\n        }\n        try {\n          return ok(request, { path: await capability.createDirectory(request.payload.path, request.payload.name) })\n        } catch (error: unknown) {\n          return err(request, directoryError(error))\n        }\n      },\n\n      async openPath(request, signal) {\n        return openPath(request, request.payload.path, signal)\n      },\n    },\n\n    goals: {\n      // Mutations only — the read side is the 'goal' session projection.\n      // Every verb resolves the session's agent (agentFor: implicit cold\n      // resume, the command.* precedent) and acknowledges with the new CAS\n      // ref; the committed goal/change event carries the whole value to every\n      // client through the projection frames.\n      async create(request) {\n        const { objective, maxGoalRounds } = request.payload\n        return mutateGoal(request, (goals, agent) => goals.create(agent, {\n          objective,","sourceCodeStart":2887,"sourceCodeEnd":2923,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/host/apiproxy/src/api-proxy.ts#L2887-L2923","documentation":"Error \"cannot create ${target}: ${message}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/host/apiproxy/src/api-proxy.ts:2905 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the target path or its permissions per the embedded message, then create again."],"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"}