Three improvement-loop roadmap goals:
1. Deploy on origin/main + rollback/alert: deploy_alert() pings the operator on
Telegram when a ship fails or rolls back (silent broken ships + silent
rollbacks left the box in an unknown state). Schema-drift now rolls back +
alerts too. Auto-rollback already existed. (Auto-applying prod schema stays a
deliberate manual step — the loud gate + rollback is safer than auto-DDL.)
2. Runner stall: auto-recovery & alerting: new check-runner-stall cron (every
30m) runs getRunnerExecutionStall per autopilot user; on a stall it reclaims
stuck claims (safe re-dispatch), raises one deduped in-app alert
(insertActiveAlertOnce), and pings Telegram. Detection already existed but
only ran when a human loaded /control — now it's on the clock.
3. One context assembler: close the cloud-orchestration bypass — Control's
dispatch / Next-best path enqueued renderTaskForAdapter() raw, with no exit
contract, so box agents finished work, wrote no handoff, and were reaped as
timeouts. Append the same exit contract inject-prompt.ts uses so every
dispatch path lands a session handoff.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016g8LdPdzoEbVwQ1SdYW5RY