feat(doctor): add ephemeral beads health checks

Add gt doctor checks for ephemeral beads repos:
- ephemeral-exists: Verify .beads-ephemeral/ exists for each rig (fixable)
- ephemeral-git: Verify it's a valid git repo (fixable)
- ephemeral-orphans: Detect molecules >24h old (needs manual review)
- ephemeral-size: Warn if repo >100MB
- ephemeral-stale: Detect molecules with no activity in last hour

Implements gt-3x0z.3.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-21 16:02:55 -08:00
parent a0de2b1f47
commit ca93a45b7d
3 changed files with 531 additions and 7 deletions

View File

@@ -61,6 +61,13 @@ func runDoctor(cmd *cobra.Command, args []string) error {
d.Register(doctor.NewBranchCheck())
d.Register(doctor.NewBeadsSyncOrphanCheck())
// Ephemeral beads checks
d.Register(doctor.NewEphemeralExistsCheck())
d.Register(doctor.NewEphemeralGitCheck())
d.Register(doctor.NewEphemeralOrphansCheck())
d.Register(doctor.NewEphemeralSizeCheck())
d.Register(doctor.NewEphemeralStaleCheck())
// Run checks
var report *doctor.Report
if doctorFix {