Design the failure path before the happy path

Empty states and recovery paths are not edge decoration. They are part of the product contract.

Make recovery legible

A good failure state says what happened, what is safe, and what the next meaningful action is without asking the user to understand the implementation.