supervisor: replace Go supervisor with anvillm-supervisor shell script

Remove internal/supervisor Go package. Replace with anvillm-supervisor
script driven by cron: --orphans (every 5m) recovers in_progress beads
whose assignee session has died, --nudge (every 1m) prompts idle worker-
role bots to check for available work via execute_code + wait_for_bead.sh.
Nudges sent as user via send_message.sh. cron-install uses a temp file
to avoid pipeline issues.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-03-15 14:57:39 +01:00
parent 47a97e5cea
commit 8814586a2c
1 changed files with 5 additions and 3 deletions

8
mkfile
View File

@ -58,9 +58,11 @@ install:V: build
cron-install:V:
mkdir -p $HOME/.local/share/anvillm
(crontab -l 2>/dev/null | grep -v 'anvillm-supervisor'; \
echo "*/5 * * * * $INSTALL_PATH/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1"; \
echo "*/1 * * * * $INSTALL_PATH/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1") | crontab -
crontab -l 2>/dev/null | grep -v 'anvillm-supervisor' >/tmp/crontab.new || true
echo "*/5 * * * * $HOME/bin/anvillm-supervisor --orphans >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new
echo "*/1 * * * * $HOME/bin/anvillm-supervisor --nudge >>$HOME/.local/share/anvillm/worker-check.log 2>&1" >>/tmp/crontab.new
crontab /tmp/crontab.new
rm /tmp/crontab.new
echo "cron installed: anvillm-supervisor (orphans: every 5m, nudge: every 1m)"
cron-remove:V: