{"record":{"id":"57b4629275e44d8f","repo":"gastownhall/beads","slug":"resolving-s-w","errorCode":null,"errorMessage":"resolving %s: %w","messagePattern":"resolving (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/comments_proxied_server.go","lineNumber":160,"sourceCode":"\treturn result.Comment, issue, nil\n}\n\n// resolveCommentTargetProxied resolves the anchor and applies the CLI's own\n// pre-flight policy. It reads in a unit of work of its own and writes nothing,\n// so the role's request stays the whole of the transaction.\nfunc resolveCommentTargetProxied(ctx context.Context, id string) (*types.Issue, error) {\n\tuw, err := proxiedOpenReadUOW(ctx)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer uw.Close(ctx)\n\n\tissue, _, err := workapi.GetIssueOrWisp(ctx, workapi.NewUOWDetailSource(uw), id)\n\tif errors.Is(err, storage.ErrNotFound) {\n\t\treturn nil, fmt.Errorf(\"issue %s not found\", id)\n\t}\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"resolving %s: %w\", id, err)\n\t}\n\tif err := validateIssueUpdatable(id, issue); err != nil {\n\t\treturn nil, err\n\t}\n\treturn issue, nil\n}\n","sourceCodeStart":142,"sourceCodeEnd":167,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/comments_proxied_server.go#L142-L167","documentation":"Error \"resolving %s: %w\" thrown in gastownhall/beads.","triggerScenarios":"Thrown at cmd/bd/comments_proxied_server.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped resolution error for its cause","Correct the identifier or state problem and retry the resolve"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"bd show \"$ID\" >/dev/null 2>&1 || exit 1  # cheap pre-check before comment resolve","typeGuard":null,"tryCatchPattern":"if ! bd comment \"$ID\" --text \"$T\" 2>err.txt; then\n  grep -q 'resolving' err.txt && bd doctor  # store-level failure, not just missing ID\nfi","preventionTips":["Keep the Dolt store healthy and reachable","Run bd doctor when resolve errors (vs not-found) appear","Avoid concurrent processes contending on the same store","Keep schema versions aligned across bd upgrades"],"tags":[],"backgroundTag":null,"analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}