- Serialize wake claim transitions with a semaphore so the post-dispatch
cursor ack and a concurrent release can no longer interleave; the ack
and wake-count increment are now one critical section with the claim
check (Macroscope)
- Rewind the cursor on session-set(error): the provider reactor emits it
before provider.turn.start.failed, so dropping the claim there left the
failure handler nothing to restore and acked events were lost. A clean
session finish still just frees the claim (Bugbot, high)
- Only mark boot reconciliation complete when every orphan ended
successfully, so failures are retried on the next poll (Bugbot)
- Drop the registration when session teardown runs before the engine is
bound, instead of leaving a monitor that can wake a dead session
(Bugbot)
Co-Authored-By: Claude Fable 5 <[email protected]>