P0: Verify Inactivity-Based Timeouts (Gateway + Cron) #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Commits
fec58ad9(gateway) andd6ef7fdf(cron) replace wall-clock timeouts with inactivity-based timeouts:HERMES_CRON_TIMEOUT=0means unlimitedAcceptance Criteria
sleep 30via terminal tool), confirm the gateway does NOT time out while the tool is actively runningHERMES_CRON_TIMEOUT=5for testing), confirm the error includes: last activity description, idle duration, current tool, iteration countHERMES_CRON_TIMEOUT=0, run a 15-minute task, confirm it completes without timeoutWhy This Matters
Our burn-mode fleet (scouts, fleet auditors, CI monitors) were dying at 600s exactly, even when actively working. This was silently losing partial work. Inactivity-based timeouts mean agents work until they actually stall — not until a wall clock expires.
Hints
gateway/run.py— look for_check_inactivity_timeout()cron/scheduler.py— polling loop withagent.get_activity_summary()every 5stests/cron/test_cron_inactivity_timeout.py(289 lines, 9 test scenarios)Parent: #111
🏷️ Automated Triage Check
Timestamp: 2026-04-06T16:30:13.327338
Agent: Allegro Heartbeat
This issue has been identified as needing triage:
Checklist
Context
Automated triage from Allegro 15-minute heartbeat