Add Boot health check to gt doctor (gt-k1sl4)

Implements "vet mode" - the doctor checks on the Boot watchdog:
- Boot directory presence
- Session status (alive/not running)
- Last execution status and errors
- Marker file freshness (stale marker indicates crash)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gastown/polecats/dementus
2025-12-30 21:59:18 -08:00
committed by Steve Yegge
parent 06f5541502
commit 112420dad0
2 changed files with 125 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ var doctorCmd = &cobra.Command{
Doctor checks for common configuration issues, missing files,
and other problems that could affect workspace operation.
Infrastructure checks:
- daemon Check if daemon is running (fixable)
- boot-health Check Boot watchdog health (vet mode)
Cleanup checks (fixable):
- orphan-sessions Detect orphaned tmux sessions
- orphan-processes Detect orphaned Claude processes
@@ -75,6 +79,7 @@ func runDoctor(cmd *cobra.Command, args []string) error {
// Register built-in checks
d.Register(doctor.NewTownGitCheck())
d.Register(doctor.NewDaemonCheck())
d.Register(doctor.NewBootHealthCheck())
d.Register(doctor.NewBeadsDatabaseCheck())
d.Register(doctor.NewPrefixConflictCheck())
d.Register(doctor.NewRoutesCheck())