{"record":{"id":"8ff36537add4c9cb","repo":"multica-ai/multica","slug":"invalid-outcome-q-valid-values-action-no-actio","errorCode":null,"errorMessage":"invalid outcome %q; valid values: action, no_action, failed","messagePattern":"invalid outcome %q; valid values: action, no_action, failed","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_squad.go","lineNumber":463,"sourceCode":"\tLong: `Record the squad leader's evaluation decision for an issue.\n\nOutcome must be one of:\n  action     — leader delegated or took action\n  no_action  — leader evaluated and decided no action needed\n  failed     — leader encountered an error\n\nThis command is intended to be called by squad leader agents after each\ntrigger to record their decision in the issue timeline.`,\n\tArgs: exactArgs(2),\n\tRunE: runSquadActivity,\n}\n\nfunc runSquadActivity(cmd *cobra.Command, args []string) error {\n\tissueID := args[0]\n\toutcome := args[1]\n\n\tif outcome != \"action\" && outcome != \"no_action\" && outcome != \"failed\" {\n\t\treturn fmt.Errorf(\"invalid outcome %q; valid values: action, no_action, failed\", outcome)\n\t}\n\n\treason, _ := cmd.Flags().GetString(\"reason\")\n\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tissueRef, err := resolveIssueRef(ctx, client, issueID)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve issue: %w\", err)\n\t}\n\n\tbody := map[string]any{","sourceCodeStart":445,"sourceCodeEnd":481,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_squad.go#L445-L481","documentation":"Raised by runSquadActivity as an enum guard on the second positional argument: the evaluation outcome must be exactly 'action', 'no_action', or 'failed' (the leader's decision categories). The input at fault is the outcome argument; validated before any API call.","triggerScenarios":"Thrown at server/cmd/multica/cmd_squad.go:463 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an outcome of action, no_action, or failed."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}