Long-running agents and workers fail silently. Here's the minimal heartbeat pattern that catches a dead loop before you find out the hard way.