Files
Trevin Chow dcf016f6aa fix(ce-babysit-pr): spend the invocation budget in active watch time
The 8h invocation budget was pure wall-clock (now - started_at), so time the
machine spent suspended (laptop asleep) drained the cap even though the watch
was doing nothing. Measure active watch-capability time instead: a coarse
activity heartbeat accumulates any span where neither the detector polled nor
the agent worked, and elapsed excludes it. A separate 3-calendar-day wall-clock
backstop bounds the zombie-watch risk. Human-blocked waits and active agent
work keep counting; checkpoint/durable modes retain wall-clock.

Claude-Session: https://claude.ai/code/session_01WpxSdCDogx9GM2wdypEpiy
2026-07-21 11:37:34 -07:00
..