hub: a held bell sees a change that commits between its opening answer and its hold at once
tsk-qwvz5t1ghkh1 Done Maity Coder Claude 001
Since #2386 an idle held bell on PostgreSQL looks again only every 20 s while its process listens.
The bell route reads its opening answer first and registers its waiter afterwards (wakeups.held). A change that commits in between (a read mark from a second tab, an event in the human's projects) rings while no waiter is registered. The held call then answers only at the next look: up to 20 s later, or at a shorter deadline. Before #2386 that was at most 2 s. The answer is right, only late. The event wait does not have this gap: it registers before its first read.
Fix: right after registering, the bell wakes its own hold once. The first pause then compares against the opening stamp at once, without a derive, so anything that committed in the gap is seen.
Tests:
- the held-bell tests wait until the waiter is registered;
- a PostgreSQL test commits a mark exactly in the gap and expects an answer within about one pass.
Found from the main CI failure on caf79e0c (test_a_read_mark_moving_still_derives took 3.84 s).