gastown/polecats/slit
3dd18a1981
Add Deacon stuck-session detection and force-kill protocol
Implements gt-l6ro3.4: Deacon can now detect and kill genuinely stuck/hung
Claude Code sessions during health rounds.
New commands:
- gt deacon health-check <agent>: Pings agent, waits for response, tracks
consecutive failures. Returns exit code 2 when force-kill threshold reached.
- gt deacon force-kill <agent>: Kills tmux session, updates agent bead state,
notifies mayor. Respects cooldown period.
- gt deacon health-state: Shows health check state for all monitored agents.
Detection protocol:
1. Send HEALTH_CHECK nudge to agent
2. Wait for agent bead update (configurable timeout, default 30s)
3. Track consecutive failures (default threshold: 3)
4. Recommend force-kill when threshold exceeded
Force-kill protocol:
1. Log intervention (mail to agent)
2. Kill tmux session
3. Update agent bead state to "killed"
4. Notify mayor (optional)
Configurable parameters:
- --timeout: How long to wait for response (default 30s)
- --failures: Consecutive failures before force-kill (default 3)
- --cooldown: Minimum time between force-kills (default 5m)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 22:14:05 -08:00
..
2025-12-30 16:42:14 -08:00
2025-12-30 22:05:45 -08:00
2025-12-29 18:05:50 -08:00
2025-12-30 22:14:05 -08:00
2025-12-30 16:21:38 -08:00
2025-12-28 17:18:03 -08:00
2025-12-30 15:59:00 -08:00
2025-12-30 22:13:14 -08:00
2025-12-30 22:14:05 -08:00
2025-12-30 22:01:38 -08:00
2025-12-30 10:38:18 -08:00
2025-12-30 10:43:34 -08:00
2025-12-30 02:12:01 -08:00
2025-12-30 21:16:43 -08:00
2025-12-30 22:13:14 -08:00
2025-12-28 17:13:34 -08:00
2025-12-30 22:11:27 -08:00
2025-12-25 23:14:29 -08:00
2025-12-30 01:45:04 -08:00
2025-12-30 16:56:46 -08:00
2025-12-30 10:48:00 -08:00
2025-12-30 02:12:43 -08:00
2025-12-30 19:29:02 -08:00
2025-12-30 22:10:08 -08:00
2025-12-28 16:38:04 -08:00
2025-12-22 17:52:44 -08:00
2025-12-29 23:46:59 -08:00
2025-12-30 22:10:08 -08:00
2025-12-30 16:20:00 -08:00
2025-12-29 23:52:38 -08:00
2025-12-30 21:18:59 -08:00
2025-12-28 19:19:10 -08:00
2025-12-26 16:46:39 -08:00
2025-12-30 21:01:21 -08:00