Issue #140

A Fallback Path Is a Product Decision, Not an Error Handler

sent to 36 subscribers

Every AI feature has a moment when the model call fails: a timeout, a rate limit, an empty or malformed response. In most codebases that moment is handled by whoever wrote the call, usually with a generic catch block and a vague error message. That is a mistake, because what the user sees in that moment is a product decision.

Here are the questions worth answering *before* the incident, not during it:

A small exercise: list your feature's failure modes (timeout, rate limit, refusal, malformed output, empty retrieval) and write one sentence for each describing exactly what the user sees. If you cannot write the sentence, you have found a decision nobody made.

Then put that table somewhere findable and test each row at least once in staging. The goal is not to prevent failures; it is to make sure that when they happen, the behavior is something your team chose on purpose.

← Back to archive