Commit Graph

3 Commits

Author SHA1 Message Date
Peter Steinberger 692c9452aa fix(agents): preserve authoritative background process outcomes (#120754) 2026-08-08 16:49:36 -07:00
xin zhuang 2f76ec387a fix: process poll leaves notify-on-exit completion queued (#120585)
* fix(exec): acknowledge notify-on-exit after process poll

* test(exec): mock completion event enqueue

* fix: retire stale exec heartbeat wakes

Prevent acknowledged process completions from turning their queued wake into an unrelated heartbeat. Preserve coalesced task work and keep stale wakes out of scheduler cadence and commitment follow-up.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test: isolate stale exec heartbeat coverage

Keep existing heartbeat suites below the max-lines ratchet while retaining coverage for stale wake coalescing, scheduler bookkeeping, and commitment fan-out.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(heartbeat): preserve scheduled cadence for stale exec wakes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* test(heartbeat): keep stale wake coverage within lint limits

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(heartbeat): retire stale exec wakes before busy gates

Preserve scheduled cadence and cron work when coalesced exec wakes are acknowledged, while retiring stale wakes before retryable busy checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix(heartbeat): accept inferred wake sources

Allow stale-wake preflight to handle the optional source produced by reason inference without weakening the exec-event check.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-08 16:23:47 -05:00
Vincent Koc efcced7207 test(agents): prove process control roundtrip (#118843) 2026-08-04 04:46:57 +08:00