{"record":{"id":"14256a4f15ea82e9","repo":"multica-ai/multica","slug":"list-profiles-w","errorCode":null,"errorMessage":"list profiles: %w","messagePattern":"list profiles: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_daemon.go","lineNumber":508,"sourceCode":"// (requireHumanLocalCommand, or daemonStatusHealthPort for status). Listing the\n// profiles root inside a task would disclose the Owner's profile names, which\n// those guards exist to prevent.\nfunc requireKnownProfile(profile string) error {\n\tif profile == \"\" {\n\t\treturn nil\n\t}\n\texists, err := profileExists(profile)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve profile %q: %w\", profile, err)\n\t}\n\tif exists {\n\t\treturn nil\n\t}\n\t// Only now is the listing worth its disk walk, and only now can it be\n\t// wrong in a way the user sees.\n\tnames, err := knownProfiles()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"list profiles: %w\", err)\n\t}\n\treturn &unknownProfileError{Profile: profile, Known: names}\n}\n\n// --- daemon start ---\n\n// daemonExecutable resolves the binary to spawn as the background daemon\n// child. Tests override it: spawning the resolved executable there would fork\n// the test binary itself, which ignores the daemon args and re-runs the suite.\nvar daemonExecutable = selfexec.Resolve\n\n// requireDaemonAuth fails fast when the user never ran `multica login`. The\n// daemon child performs the same check (resolveAuth) and dies immediately,\n// but the background parent can't see that exit — it would poll the health\n// port for the full 45s readiness window and then print a vague \"check logs\"\n// warning. Checking before spawning turns that silent stall into an\n// immediate, actionable error. Mirrors daemon.resolveAuth: the daemon only\n// authenticates via the stored config token, never MULTICA_TOKEN.","sourceCodeStart":490,"sourceCodeEnd":526,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_daemon.go#L490-L526","documentation":"Error \"list profiles: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_daemon.go:508 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check daemon connectivity and retry listing profiles."],"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-15T22:17:37.221Z"}