{"record":{"id":"683c1603408e74db","repo":"gastownhall/beads","slug":"not-found-s","errorCode":null,"errorMessage":"not found: %s","messagePattern":"not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/wisp.go","lineNumber":385,"sourceCode":"func resolvePartialIDDirect(ctx context.Context, partial string) (string, error) {\n\t// Try direct lookup first\n\tif issue, err := store.GetIssue(ctx, partial); err == nil {\n\t\treturn issue.ID, nil\n\t}\n\t// Search by prefix\n\tissues, err := store.SearchIssues(ctx, \"\", types.IssueFilter{\n\t\tIDs: []string{partial + \"*\"},\n\t})\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\tif len(issues) == 1 {\n\t\treturn issues[0].ID, nil\n\t}\n\tif len(issues) > 1 {\n\t\treturn \"\", fmt.Errorf(\"ambiguous ID: %s matches %d issues\", partial, len(issues))\n\t}\n\treturn \"\", fmt.Errorf(\"not found: %s\", partial)\n}\n\nvar wispListCmd = &cobra.Command{\n\tUse:   \"list\",\n\tShort: \"List all wisps in current context\",\n\tLong: `List all wisps (ephemeral molecules) in the current context.\n\nWisps are issues with Ephemeral=true in the main database. They are stored\nlocally but not synced via git.\n\nThe list shows:\n  - ID: Issue ID of the wisp\n  - Title: Wisp title\n  - Status: Current status (open, in_progress, closed)\n  - Started: When the wisp was created\n  - Updated: Last modification time\n\nOld wisp detection:","sourceCodeStart":367,"sourceCodeEnd":403,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/wisp.go#L367-L403","documentation":"resolvePartialIDDirect falls through to this error when neither a direct ID lookup nor a prefix search finds any matching issue — the given ID/prefix does not exist in the store.","triggerScenarios":"`bd wisp create <id>` with a mistyped, already-closed/GC'd, or from-another-database issue ID where the prefix search returns zero rows.","commonSituations":"Typo in the ID; wisp already burned/GC'd; referencing an issue that lives in a different repo/database or hasn't been synced to this clone; stale script referencing deleted wisps.","solutions":["Verify the ID with `bd show <id>` or `bd list`","Use `bd wisp list` to confirm the wisp still exists (it may have been GC'd/burned)","Check you're operating in the correct database/repo context"],"exampleFix":"// before\nbd wisp create bd-wxyz   # does not exist\n// after\nbd wisp list             # find the correct ID, then retry","handlingStrategy":"validation","validationCode":"if _, err := store.GetIssue(ctx, id); err != nil {\n    return fmt.Errorf(\"issue %s not found; run 'bd list' to find the correct ID\", id)\n}","typeGuard":null,"tryCatchPattern":"if err := runWispCreate(id); err != nil {\n    if strings.HasPrefix(err.Error(), \"not found: \") {\n        // prompt user to check the ID or list existing wisps\n    }\n}","preventionTips":["Copy IDs from `bd show`/`bd list` output rather than typing them","Remember wisps are ephemeral — verify with `bd wisp list` that it still exists","Confirm you are in the right repo/database context"],"tags":["cli","id-resolution","not-found"],"backgroundTag":"entity-not-found","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}