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:
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user