Commit Graph

2 Commits

Author SHA1 Message Date
Kurt VanDusen
f7fb21ac34 fix(gateway): say where a capped watch notice's output still lives
The drain's retry cap drops a watch notice after its last refusal; the
warning now says the output stays available via process(action='log'),
as the gone-pin drop and the completion pre-flight already do.

Tests: assert the backoff doubles to its cap instead of only a lower
bound; move the transport-retry test's clock a minute per watcher tick
rather than per read, which also drove the orphan-sweep throttle; cover
a refused notice with no pinned session (requeued, never dropped).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 03:19:01 -07:00
Kurt VanDusen
849bf60971 test(gateway): drive the watch-drain backoff clock without moving the loop's
The drain-backoff tests patched time.monotonic itself, which the running
event loop's timers also read, so a frozen or skewed clock reached every
timer in the process. tests/module_clock.py swaps only
gateway.run_notifications' own time binding, so the loop keeps real time.
Also say plainly in _watch_pin_gone that a dropped notice is not
redelivered by a later /resume; only the process's later notices admit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 03:19:01 -07:00