{"record":{"id":"62f9ec800b3b1ce8","repo":"multica-ai/multica","slug":"local-directory-daemon-id-is-required","errorCode":null,"errorMessage":"local_directory: daemon_id is required","messagePattern":"local_directory: daemon_id is required","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/internal/handler/project_resource.go","lineNumber":282,"sourceCode":"\t}\n\treturn current\n}\n\nfunc validateLocalDirectoryRef(ref json.RawMessage) (json.RawMessage, error) {\n\tvar payload localDirectoryRef\n\tif err := json.Unmarshal(ref, &payload); err != nil {\n\t\treturn nil, fmt.Errorf(\"invalid local_directory payload: %w\", err)\n\t}\n\tpayload.LocalPath = strings.TrimSpace(payload.LocalPath)\n\tif payload.LocalPath == \"\" {\n\t\treturn nil, errors.New(\"local_directory: local_path is required\")\n\t}\n\tif !isAbsoluteLocalPath(payload.LocalPath) {\n\t\treturn nil, errors.New(\"local_directory: local_path must be an absolute path\")\n\t}\n\tpayload.DaemonID = strings.TrimSpace(payload.DaemonID)\n\tif payload.DaemonID == \"\" {\n\t\treturn nil, errors.New(\"local_directory: daemon_id is required\")\n\t}\n\tpayload.Label = strings.TrimSpace(payload.Label)\n\tpayload.ExecutionMode = strings.TrimSpace(payload.ExecutionMode)\n\tswitch payload.ExecutionMode {\n\tcase \"\", localDirectoryModeInPlace, localDirectoryModeWorktree:\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"local_directory: execution_mode must be %q or %q, got %q\",\n\t\t\tlocalDirectoryModeInPlace, localDirectoryModeWorktree, payload.ExecutionMode)\n\t}\n\tout, err := json.Marshal(payload)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn out, nil\n}\n\n// isAbsoluteLocalPath checks the path looks absolute on either POSIX or\n// Windows daemons. The server can't know which OS the daemon runs on, so we","sourceCodeStart":264,"sourceCodeEnd":300,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/handler/project_resource.go#L264-L300","documentation":"Error \"local_directory: daemon_id is required\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/handler/project_resource.go:282 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the daemon_id of the daemon that owns the local directory."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}