A useful application workflow stops when model generation fails. Stub an unavailable drafting provider and let a user continue with a blank editable internal task form.
An operator cannot tell which inputs produced an old recommendation. Persist synthetic source snapshot IDs, prompt version and reviewer decision with a recommendation record.
Accuracy hides failures on the rare class. Use a labeled synthetic dataset and compute confusion matrix, precision and recall with explicit support counts.
Each request reloads a model or leaves shared resources open. Use a lightweight fake predictor initialized at startup and closed at shutdown via lifespan.
A client displays a partial answer after the server has failed. Use a local streamed-text fixture with completion and interruption events and show incomplete-state UI.
A prompt edit changes behavior without a reproducible comparison. Store two prompt versions and synthetic test cases, then compare structured outputs from a deterministic stub.