A process that answers HTTP requests may still be unable to serve useful work. If its database is unavailable, a request to a trivial route can succeed while an order lookup fails. Give process health and dependency readiness distinct meanings so that an outage produces the intended operational response.
A backup file can exist and still fail to restore. Test recovery into a separate disposable database, then check the records and constraints that the application needs. File size and a successful dump exit code are useful observations, but they do not show that the restored application can work.
Django's deployment checks can catch a release that still uses development-oriented settings. Run them with the same settings module and environment that the deployed process will read. A clean local development check says little about a different production configuration.
A streamed response can remain useful for several minutes while sending small updates. A proxy that buffers those updates can make the browser look idle, and a long pause between upstream writes can close the connection. Diagnose buffering and idle timeouts separately before changing a timeout value.
A credential copied during a Docker build can remain in the resulting image history or a previous layer. Removing the visible file in a later instruction does not establish that the image is safe to distribute. Keep deployment credentials outside the build context and supply them only when the container starts.
A web container can start while PostgreSQL is still initializing its data directory. If the application opens its first connection during that interval, an otherwise valid release can fail with a connection error. Give the database a readiness check and make the application's initial startup depend on that check.
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 cache serves output from an outdated prompt or different permission context. Build a key from normalized input, prompt version and model configuration for synthetic summaries.