The contacts read from the database replaced the list in memory when the read finished on the writer thread. A SetContact handled meanwhile was lost (its write was queued behind the read), which made contacts_are_kept_in_the_database fail under load. The engine now awaits the read at start and after AttachHistory before its next command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G