{"record":{"id":"37b10ea87d541c0e","repo":"multica-ai/multica","slug":"resolve-lead-w","errorCode":null,"errorMessage":"resolve lead: %w","messagePattern":"resolve lead: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":336,"sourceCode":"\tdefer cancel()\n\n\tbody := map[string]any{\"title\": title}\n\tif v, _ := cmd.Flags().GetString(\"description\"); v != \"\" {\n\t\tbody[\"description\"] = v\n\t}\n\tif v, _ := cmd.Flags().GetString(\"status\"); v != \"\" {\n\t\tif err := validateProjectStatus(v); err != nil {\n\t\t\treturn err\n\t\t}\n\t\tbody[\"status\"] = v\n\t}\n\tif v, _ := cmd.Flags().GetString(\"icon\"); v != \"\" {\n\t\tbody[\"icon\"] = v\n\t}\n\tif v, _ := cmd.Flags().GetString(\"lead\"); v != \"\" {\n\t\taType, aID, resolveErr := resolveAssignee(ctx, client, v, memberOrAgentKinds)\n\t\tif resolveErr != nil {\n\t\t\treturn fmt.Errorf(\"resolve lead: %w\", resolveErr)\n\t\t}\n\t\tbody[\"lead_type\"] = aType\n\t\tbody[\"lead_id\"] = aID\n\t}\n\tif v, _ := cmd.Flags().GetString(\"start-date\"); v != \"\" {\n\t\tbody[\"start_date\"] = v\n\t}\n\tif v, _ := cmd.Flags().GetString(\"due-date\"); v != \"\" {\n\t\tbody[\"due_date\"] = v\n\t}\n\n\t// Bundle resources into the create payload so the server attaches them in\n\t// the same transaction; this avoids leaving a half-attached project on\n\t// failure.\n\trepos, _ := cmd.Flags().GetStringArray(\"repo\")\n\tif len(repos) > 0 {\n\t\tresources := make([]map[string]any, 0, len(repos))\n\t\tfor _, repoURL := range repos {","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L318-L354","documentation":"Error \"resolve lead: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the lead name or ID exists in the workspace."],"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"}