{"record":{"id":"9266515c4c492b80","repo":"gastownhall/beads","slug":"loading-status-configuration-w","errorCode":null,"errorMessage":"loading status configuration: %w","messagePattern":"loading status configuration: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/bd/human.go","lineNumber":165,"sourceCode":"\t\tprintHumanList(issues)\n\t\treturn nil\n\t},\n}\n\n// humanIssues loads the human-labeled beads matching the status selector\n// through whichever backend this invocation uses: the direct store, or a\n// proxied-server unit of work. Both routes apply the same humanListFilter.\nfunc humanIssues(ctx context.Context, status string) ([]*types.Issue, error) {\n\tif usesProxiedServer() {\n\t\treturn proxiedHumanIssues(ctx, status)\n\t}\n\n\tif err := ensureStoreActive(); err != nil {\n\t\treturn nil, err\n\t}\n\tcfg, err := workapi.LoadStoreListConfig(ctx, store)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"loading status configuration: %w\", err)\n\t}\n\tfilter, err := humanListFilter(status, cfg)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treturn store.SearchIssues(ctx, \"\", filter)\n}\n\n// humanListRequest builds the list request for \"human list\": every\n// human-labeled bead regardless of type — a human label is an explicit\n// request for a person's attention, and this command is the only place a\n// person sees it, so gates, wisps, infra beads, and templates all show.\n// Status filtering matches `bd list`: done/frozen statuses and pinned beads\n// are hidden by default, an explicit --status selects specific statuses\n// (validated against the built-in and custom status names), and \"all\" lifts\n// the status defaults entirely.\nfunc humanListRequest(status string) issueops.ListRequest {\n\tunlimited := 0","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/gastownhall/beads/blob/71377f276968b452ee607177637970a4ff888584/cmd/bd/human.go#L147-L183","documentation":"humanIssues (the direct-store path behind `bd human` / `bd human list`) calls workapi.LoadStoreListConfig to load the status/list configuration used to build the human-list filter. This error wraps any failure loading that per-store configuration, so the command aborts before querying issues.","triggerScenarios":"`bd human` (or humanIssues via the anonymous cobra RunE) with the direct (non-proxied) store active, where LoadStoreListConfig fails: unreadable/corrupt status configuration in the store/database, database open or migration failure, or schema problems in the config source.","commonSituations":"Corrupted .beads database after a crash; version mismatch where an older bd reads a config written by a newer one; read-only filesystem preventing config load; partial sync leaving inconsistent config rows.","solutions":["Look at the wrapped cause (%w) for the underlying error — fix that first.","Run `bd doctor` to diagnose database/config health.","Back up and check the .beads directory; restore from .beads/issues.jsonl or a fresh clone/sync if corrupt.","Ensure the bd version matches the data (upgrade/downgrade bd if versions differ).","Retry `bd human` after repair."],"exampleFix":"// before\n$ bd human\n// error: loading status configuration: ... (underlying db/config failure)\n// after\n$ bd doctor        # diagnose\n$ bd dolt pull     # or restore from backup\n$ bd human","handlingStrategy":"try-catch","validationCode":"if _, err := os.Stat(filepath.Join(\".beads\", \"beads.db\")); err != nil {\n    return fmt.Errorf(\"no beads store found in .beads; run bd init or sync first\")\n}","typeGuard":null,"tryCatchPattern":"issues, err := humanIssues(ctx, status)\nif err != nil {\n    if strings.Contains(err.Error(), \"loading status configuration\") {\n        log.Printf(\"run bd doctor to repair the store/config: %v\", err)\n    }\n    return err\n}","preventionTips":["Keep bd versions consistent between machines sharing a beads store","Run bd doctor periodically to catch store/config corruption early","Back up .beads before risky operations and prefer clean sync over manual edits"],"tags":["configuration","database","human-list","beads"],"backgroundTag":"config-load-failed","analyzedSha":"71377f276968b452ee607177637970a4ff888584","analyzedAt":"2026-08-30T18:55:39.744Z","schemaVersion":2},"datasetVersion":"2026-08-30T23:17:21.991Z"}