Files
PaperClipAI/server
Devin FoleyandPaperclip afee630120 Respect dispatch-hint coalescing in the handover test
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>
2026-11-18 15:59:47 -08:00
..