Short answer: from Still Dock 1.33, Still Dock tells you when a lock stops working. The alert appears on your Mac, and on your iPhone when the iPhone app is signed in.
A lock that stops holding is easy to miss. The first sign used to be a Dock that had moved or a Cmd Q that quit an app. The alert tells you first, so you can open Still Dock and check the lock.
Allow notifications for Still Dock in System Settings on the Mac and in Settings on the iPhone, or the alert cannot appear.
No. The Mac alert needs no iPhone. The iPhone alert needs the Still Dock iPhone app signed in to the same account.
No. The alert only says that a lock stopped working.
Related: the Dock moving after the screen locks and control the Mac Dock from your iPhone.