{"record":{"id":"84da9af2a38ad009","repo":"gastownhall/beads","slug":"invalid-bond-type-s-must-be-sequential-paral","errorCode":null,"errorMessage":"invalid bond type '%s', must be: sequential, parallel, or conditional","messagePattern":"invalid bond type '(.+?)', must be: sequential, parallel, or conditional","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/mol_bond.go","lineNumber":190,"sourceCode":"\tephemeral   bool\n\tpour        bool\n\tchildRef    string\n}\n\nfunc gatherMolBondInput(cmd *cobra.Command, args []string) (molBondInput, error) {\n\tin := molBondInput{argA: args[0], argB: args[1]}\n\tin.bondType, _ = cmd.Flags().GetString(\"type\")\n\tin.customTitle, _ = cmd.Flags().GetString(\"as\")\n\tin.dryRun, _ = cmd.Flags().GetBool(\"dry-run\")\n\tin.ephemeral, _ = cmd.Flags().GetBool(\"ephemeral\")\n\tin.pour, _ = cmd.Flags().GetBool(\"pour\")\n\tin.childRef, _ = cmd.Flags().GetString(\"ref\")\n\n\tif in.ephemeral && in.pour {\n\t\treturn in, fmt.Errorf(\"cannot use both --ephemeral and --pour\")\n\t}\n\tif in.bondType != types.BondTypeSequential && in.bondType != types.BondTypeParallel && in.bondType != types.BondTypeConditional {\n\t\treturn in, fmt.Errorf(\"invalid bond type '%s', must be: sequential, parallel, or conditional\", in.bondType)\n\t}\n\n\tvarFlags, _ := cmd.Flags().GetStringArray(\"var\")\n\tvars, err := parseVarFlags(varFlags)\n\tif err != nil {\n\t\treturn in, err\n\t}\n\tin.vars = vars\n\treturn in, nil\n}\n\nfunc renderMolBondDryRun(in molBondInput, issueA *types.Issue, formulaA string, issueB *types.Issue, formulaB string) {\n\tidA := in.argA\n\tidB := in.argB\n\taIsProto := false\n\tbIsProto := false\n\n\tif issueA != nil {","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/mol_bond.go#L172-L208","documentation":"bd mol bond validates the bond type against the known set (sequential, parallel, conditional); any other value is rejected with this error listing the valid options.","triggerScenarios":"`bd mol bond --type <value>` with a misspelled or unsupported type, e.g. --type seq, --type ordered, or empty string.","commonSituations":"Typo in a script, or copying a bond type name from an older/other tool version that used different vocabulary.","solutions":["Use exactly one of: sequential, parallel, conditional (lowercase).","Check spelling of the --type value in scripts/aliases.","Run `bd mol bond --help` to see the accepted values for your installed bd version."],"exampleFix":"// before\nbd mol bond --type seq ... \n// after\nbd mol bond --type sequential ...","handlingStrategy":"validation","validationCode":"case \"$BOND_TYPE\" in\n  sequential|parallel|conditional) ;;\n  *) echo \"invalid bond type: $BOND_TYPE\"; exit 1 ;;\nesac","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only pass the literal values sequential, parallel, conditional.","Copy enum values from the version's --help output, not from memory/docs of other versions.","Add a shell case/guard in scripts that accept a user-supplied type."],"tags":["cli","flag-validation","mol-bond"],"backgroundTag":"invalid-enum-value","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}