beads/cmd/bd/doctor
Steve Yegge 5a772dca44 feat(doctor): add redirect configuration health checks
Add three new bd doctor checks for redirect configuration health:

1. CheckRedirectTargetValid - Verifies redirect target exists and
   contains a valid beads database

2. CheckRedirectTargetSyncWorktree - Verifies redirect target has
   beads-sync worktree when using sync-branch mode

3. CheckNoVestigialSyncWorktrees - Detects unused .beads-sync
   worktrees in redirected repos that waste space

These checks help diagnose redirect configuration issues in
multi-clone setups like Gas Town polecats and crew workspaces.

Closes bd-b88x3

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 21:30:05 -08:00
..
fix fix: bd doctor detects lefthook jobs syntax (GH#981) 2026-01-09 22:56:02 -08:00
claude.go fix(doctor): handle installed_plugins.json v2 format (GH#741) 2025-12-25 16:20:02 -08:00
claude_test.go DOCTOR IMPROVEMENTS: visual improvements/grouping + add comprehensive tests + fix gosec warnings (#656) 2025-12-20 03:10:06 -08:00
config_values.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
config_values_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
daemon.go feat(daemon): unify auto-sync config for simpler agent workflows (#904) 2026-01-06 12:52:19 -08:00
daemon_test.go feat(daemon): unify auto-sync config for simpler agent workflows (#904) 2026-01-06 12:52:19 -08:00
database.go fix(doctor): detect status mismatches between DB and JSONL (GH#885) 2026-01-04 11:35:59 -08:00
database_test.go fix(doctor): detect status mismatches between DB and JSONL (GH#885) 2026-01-04 11:35:59 -08:00
deep.go feat: add bd doctor --deep for full graph integrity validation (bd-cwpl) 2025-12-28 02:13:34 -08:00
deep_test.go feat: add bd doctor --deep for full graph integrity validation (bd-cwpl) 2025-12-28 02:13:34 -08:00
gemini.go feat: add bd setup gemini for Gemini CLI integration (#845) 2026-01-02 00:02:38 -08:00
git.go fix(doctor): recognize bd shims when external manager config exists (GH#946) 2026-01-07 21:35:07 -08:00
git_hygiene_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
git_test.go fix: bd doctor falsely reports pre-push hook is not a bd hook (#799) 2025-12-29 14:55:42 -08:00
git_test_helpers_test.go test: add git helper and guard annotations 2025-12-28 20:48:37 -08:00
gitignore.go feat(doctor): add redirect configuration health checks 2026-01-10 21:30:05 -08:00
gitignore_test.go fix(doctor): add .sync.lock and sync_base.jsonl to gitignore (#980) 2026-01-09 11:04:28 -08:00
installation.go fix(doctor): skip JSONL tracking checks in sync-branch mode (GH#858) (#860) 2026-01-02 15:56:33 -08:00
installation_test.go DOCTOR IMPROVEMENTS: visual improvements/grouping + add comprehensive tests + fix gosec warnings (#656) 2025-12-20 03:10:06 -08:00
integrity.go fix(daemon): propagate startup failure reason to user (GH#863) 2026-01-02 16:06:09 -08:00
integrity_test.go DOCTOR IMPROVEMENTS: visual improvements/grouping + add comprehensive tests + fix gosec warnings (#656) 2025-12-20 03:10:06 -08:00
jsonl_integrity.go fix: doctor checks follow redirect for Gas Town support (bd-tvus) 2025-12-27 20:41:57 -08:00
jsonl_integrity_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
legacy.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
legacy_test.go refactor: remove unused bd pin/unpin/hook commands (bd-x0zl) 2025-12-27 16:02:15 -08:00
maintenance.go refactor: remove Gas Town references from codebase 2025-12-30 14:13:32 -08:00
maintenance_test.go feat: consolidate maintenance commands into bd doctor --fix (bd-bqcc) 2025-12-23 01:31:18 -08:00
migration.go feat: add FreeBSD release builds (#832) 2026-01-01 10:51:51 -08:00
migration_test.go feat: integrate migration detection into bd doctor (bd-7l27) 2025-12-30 00:06:42 -08:00
multirepo.go feat(doctor): add multi-repo custom types discovery (bd-62g22) 2026-01-09 14:26:32 -08:00
perf.go chore: remove issue ID references from comments and changelogs 2025-12-28 10:05:16 -08:00
prefix_test.go DOCTOR IMPROVEMENTS: visual improvements/grouping + add comprehensive tests + fix gosec warnings (#656) 2025-12-20 03:10:06 -08:00
quick.go refactor(doctor): split doctor.go into modular package files (#653) 2025-12-19 17:29:36 -08:00
sqlite_open.go fix: lint errors and update Nix vendorHash 2025-12-27 17:29:36 -08:00
sync_divergence.go fix(lint): address gosec, misspell, and unparam warnings 2026-01-05 22:06:52 -08:00
sync_divergence_test.go fix(doctor): query metadata table instead of config for last_import_time (#916) 2026-01-05 19:11:17 -08:00
types.go feat: Add 'bd orphans' command with DRY refactoring of orphan detection 2025-12-27 17:23:45 -08:00
types_test.go test(doctor): add tests to restore coverage above 45% 2025-12-19 17:43:18 -08:00
validation.go fix(doctor): align duplicate detection with bd duplicates (bd-sali) (#917) 2026-01-05 19:11:38 -08:00
validation_test.go fix(doctor): align duplicate detection with bd duplicates (bd-sali) (#917) 2026-01-05 19:11:38 -08:00
version.go fix: doctor checks follow redirect for Gas Town support (bd-tvus) 2025-12-27 20:41:57 -08:00
version_test.go test(doctor): add tests to restore coverage above 45% 2025-12-19 17:43:18 -08:00