Skip to content

Instantly share code, notes, and snippets.

View bath-tub's full-sized avatar
:shipit:
High Life

Miller bath-tub

:shipit:
High Life
View GitHub Profile
@bath-tub
bath-tub / bd-health.sh
Last active March 15, 2026 18:11
bd-health.sh — composite beads health check (bd doctor + bd lint + bd swarm validate + bd stale)
#!/usr/bin/env bash
# bd-health: composite beads health check
# Covers: infrastructure (bd doctor) + content quality (bd lint) + DAG structure (bd swarm validate)
# Usage: bash .beads/bd-health.sh
# Exit code: 0 = clean, 1 = errors found (cycles or doctor errors), warnings do not fail
set -euo pipefail
# Always run from the repo root so bd resolves .beads/ correctly
cd "$(git -C "$(dirname "$0")" rev-parse --show-toplevel)"