The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(cron): name idle-vs-wall-clock and the separate script timeout
teknium19c0633b63168
diff --git a/cron/AGENTS.md b/cron/AGENTS.mdindex b4030ee1ded..b2a5b6b3909 100644--- a/cron/AGENTS.md+++ b/cron/AGENTS.md@@ -15,7 +15,11 @@ A's last output into job B's prompt), `workdir` (run with that directory's `AGENloaded), multi-platform delivery.Hardening invariants — each guards a real failure; don't weaken without answering for it:-- **600-second inactivity watchdog** on cron sessions: `HERMES_CRON_TIMEOUT` controls the idle limit (`0` disables it), so runaway inactive loops cannot monopolise the scheduler.+- **Inactivity watchdog** on cron agent sessions (`_cron_inactivity_seconds()`): default 600s idle,+ `HERMES_CRON_TIMEOUT` overrides, `0` = unlimited. It is idle time, not wall-clock — a stalled+ session is hard-interrupted so it cannot monopolise the scheduler, while a long-but-active job+ is never cut off. Attached scripts (pre-run or `no_agent`) are bounded separately by the script+ timeout (`_DEFAULT_SCRIPT_TIMEOUT`, 3600s).- Catch-up window = half the period, clamped to 120s–2h; 120s grace for missed one-shots.- Every recurring occurrence is accounted for: `tick()` advances `next_run_at` BEFORE dispatch(at-most-once across a mid-run crash) and stamps `pending_slot` in the same save; a scan that