mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-20 09:50:48 +01:00
The first replacement hint can arrive before the test samples its wake counter. A skipped dispatch inside the existing hint cooldown then emits no new notification, so waiting for a second hint without another dispatch fails even though the handover works. Make the cooldown observable, wait for the initial hint, and retry the old server's skipped dispatch within the existing wait. Keep proving that the old server refuses the run and the replacement claims it exactly once. Verification: the controlled cooldown case reproduced CI's expected-1-to- be-greater-than-1 failure before the change. All 19 handover tests pass after the change. The original suite also passed in local isolation. Co-Authored-By: Paperclip <noreply@paperclip.ing>