refactor: remove Go patrol logic from witness manager (gt-kh6q)

Patrol logic is now handled by mol-witness-patrol molecule executed by Claude.
Removed ~985 lines of Go code:
- run(), checkAndProcess(), healthCheck()
- handleStuckPolecat(), getNudgeCount(), recordNudge(), clearNudgeCount()
- processShutdownRequests(), verifyPolecatState()
- autoSpawnForReadyWork(), getActivePolecatCount(), isAlreadySpawned(), spawnPolecat()
- Plus all helper functions

Kept: NewManager(), stateFile(), loadState(), saveState(), Status(), Start(), Stop()

🤖 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-23 23:44:54 -08:00
parent c29396d929
commit c483602231
4 changed files with 373 additions and 1376 deletions

View File

@@ -442,7 +442,7 @@ func runSpawn(cmd *cobra.Command, args []string) error {
witnessMgr := witness.NewManager(r)
if witStatus, err := witnessMgr.Status(); err == nil && witStatus.State != witness.StateRunning {
fmt.Printf("Starting witness for %s...\n", rigName)
if err := witnessMgr.Start(false); err != nil {
if err := witnessMgr.Start(); err != nil {
if err != witness.ErrAlreadyRunning {
fmt.Printf(" %s\n", style.Dim.Render(fmt.Sprintf("Warning: could not start witness: %v", err)))
}