Read the main subsystems
Power, thermal, communications, mobility, compute and instruments: a compact summary of each, plus the software state that runs them.
Seal it as a health receipt
The summary becomes a receipt, signed twice and chained to the previous heartbeat. A missing beat is as visible as a bad one.
Rover to orbiter to Earth
The receipt goes up to an orbiter on its next pass and down to Earth. If no relay is in view, the beats are stored and forwarded later, in order.
Earth watches the slope, not the cliff
A battery that holds a little less charge each sol, a motor drawing a little more current: small drifts across hundreds of beats show a failure coming.
Respond while the rover can still listen
Reassign the task, shed load, disable the failing function or push a signed software update, and every one of those actions is receipted too.