{"record":{"id":"9ed5ff379f58c7a3","repo":"gastownhall/beads","slug":"issue-s-not-found-9ed5ff","errorCode":null,"errorMessage":"issue '%s' not found","messagePattern":"issue '(.+?)' not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/swarm_proxied_server.go","lineNumber":121,"sourceCode":"\t\t\tc.CloseEventAndAdd(evt)\n\t\t}\n\t}()\n\n\tif uowProvider == nil {\n\t\treturn HandleErrorRespectJSON(\"proxied-server UOW provider not initialized\")\n\t}\n\n\tstatus, err := uow.RunTxRead(ctx, uowProvider, func(ctx context.Context, uw uow.UnitOfWork) (*SwarmStatus, error) {\n\t\tr := uowMolReader{uw: uw}\n\n\t\tissueID, err := utils.ResolvePartialID(ctx, r, args[0])\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"issue '%s' not found: %v\", args[0], err)\n\t\t}\n\n\t\tissue, err := uw.IssueUseCase().GetIssue(ctx, issueID)\n\t\tif gateProxiedNotFound(err) || (err == nil && issue == nil) {\n\t\t\treturn nil, fmt.Errorf(\"issue '%s' not found\", issueID)\n\t\t}\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to get issue: %v\", err)\n\t\t}\n\n\t\tvar epic *types.Issue\n\n\t\tif issue.IssueType == \"molecule\" && issue.MolType == types.MolTypeSwarm {\n\t\t\tdeps, err := r.GetDependencyRecords(ctx, issue.ID)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to get swarm dependencies: %v\", err)\n\t\t\t}\n\t\t\tfor _, dep := range deps {\n\t\t\t\tif dep.Type == types.DepRelatesTo {\n\t\t\t\t\tepic, err = uw.IssueUseCase().GetIssue(ctx, dep.DependsOnID)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"failed to get linked epic: %v\", err)\n\t\t\t\t\t}","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/swarm_proxied_server.go#L103-L139","documentation":"Error from runSwarmStatusProxiedServer in cmd/bd/swarm_proxied_server.go:121. Raised when the ID resolved but GetIssue returns a proxied not-found signal or (nil, nil). Parity with classic mode: the resolver found a candidate ID that has no readable issue row. `bd swarm status` cannot proceed without the issue record.","triggerScenarios":"`bd swarm status <id>` in proxied-server mode where ResolvePartialID succeeds but uw.IssueUseCase().GetIssue(ctx, issueID) signals not-found or returns a nil issue.","commonSituations":"Partially synced database (prefix indexed, row missing); issue deleted concurrently; stale local DB after another machine pruned closed issues.","solutions":["Verify existence: `bd show <id>`.","Sync the database: `bd dolt pull`.","If deleted, locate the correct replacement issue ID.","Check `.beads/issues.jsonl` export / git history to confirm whether the issue ever existed in this repo."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"bd show \"$ISSUE_ID\" >/dev/null 2>&1 || { echo \"issue missing locally\"; bd dolt pull; }","typeGuard":null,"tryCatchPattern":"if err != nil && strings.HasSuffix(err.Error(), \"not found\") {\n    // confirm with bd show, re-sync, retry\n}","preventionTips":["Run bd dolt pull before swarm commands on a fresh clone","Verify IDs with bd show after any deletion pass","Check .beads/issues.jsonl history if an ID seems stale"],"tags":["go","cli","not-found","sync"],"backgroundTag":"issue-id-not-found","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}