{"record":{"id":"418aefb30e73413d","repo":"multica-ai/multica","slug":"invalid-protocol-family-q-must-be-one-of-s","errorCode":null,"errorMessage":"invalid --protocol-family %q: must be one of %s","messagePattern":"invalid --protocol-family %q: must be one of (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime_profile.go","lineNumber":124,"sourceCode":"\t// argv-aware command-line parser here too.\n\truntimeProfileUpdateCmd.Flags().Bool(\"enabled\", true, \"Enable or disable the profile\")\n\truntimeProfileUpdateCmd.Flags().String(\"output\", \"json\", \"Output format: table or json\")\n\n\t// set-path\n\truntimeProfileSetPathCmd.Flags().String(\"path\", \"\", \"Absolute path to the executable on this machine (required)\")\n}\n\n// runtimeProfilesPath builds the workspace-scoped collection path.\nfunc runtimeProfilesPath(workspaceID string) string {\n\treturn fmt.Sprintf(\"/api/workspaces/%s/runtime-profiles\", workspaceID)\n}\n\n// validateProtocolFamily checks a protocol family against the canonical agent\n// whitelist client-side so an obvious typo fails fast with a helpful list\n// instead of an opaque server 400.\nfunc validateProtocolFamily(family string) error {\n\tif !agent.IsSupportedType(family) {\n\t\treturn fmt.Errorf(\"invalid --protocol-family %q: must be one of %s\",\n\t\t\tfamily, strings.Join(agent.SupportedTypes, \", \"))\n\t}\n\treturn nil\n}\n\n// NOTE: a --visibility flag is intentionally NOT exposed in v1. The server\n// forces every profile to 'workspace' because the read paths do not yet\n// enforce 'private' (exposing it would leak \"private\" profiles). Re-add once\n// creator-visibility filtering exists. Follow-up: MUL-3308.\n\nfunc runRuntimeProfileList(cmd *cobra.Command, _ []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\tworkspaceID, err := requireWorkspaceID(cmd)\n\tif err != nil {\n\t\treturn err","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime_profile.go#L106-L142","documentation":"Error \"invalid --protocol-family %q: must be one of %s\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime_profile.go:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported protocol families listed in the message."],"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"}