presubmit --doctor: check the reserved bd workspace exists, not just the bd binary nf-d7ss ← Beads

closed priority 2 task unassigned activesession:doctor-bd-workspace

Twinned from https://github.com/cfsh/ninefold/issues/1128 by tools/beads/import_github.py's reconcile pass.

presubmit.py --doctor checks the pinned bd binary is installed and at the right version (_bd_check, presubmit.py:697-734) but never checks that the reserved shared workspace itself exists — design 011 Amendment A1 (#1122/#1126), notes/beads.md. A box that has bd installed but never ran git worktree add ~/nf/beads origin/main + bd init there gets no signal from --doctor at all; every Bd(...) call site just degrades through its own never-fatal note: path per call, silently, forever.

Scope: a new optional check (same "○, never ✗" discipline as _bd_check — bd is still design-011 prototype status, not load-bearing for anything --doctor gates on) that resolves the workspace path (nflib.sessions.beads_workspace_root, same as every Bd(...) call site) and reports whether it exists and looks initialized (e.g. .beads/config.yaml present — a real bd list --json round-trip is probably too slow/heavy for --doctor's cadence, but that's a call for whoever picks this up).

Files: presubmit.py (new _bd_workspace_check() alongside _bd_check(), wired into doctor() at presubmit.py:960), its test coverage, and notes/beads.md if the setup steps need a --doctor cross-reference added.

Unclaimed — filed per CLAUDE.md's "strategic uplifts: file them, don't claim them."

Dependencies

None.

Comments

No comments.

Add a comment