A WebSocket connection can disappear while its consumer still owns group membership or a background coroutine. Put cleanup in the disconnect path and make it safe when connection setup completed only partly. Reject unauthenticated connections before accepting them or joining a private group.
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 callback is accepted for the wrong browser flow. Trace a local authorization-code flow with a stored state value and rejection of a mismatched callback.
A provider sends the same event several times. Store a synthetic event ID under a unique constraint and acknowledge repeated deliveries without reapplying work.
A scheduled publishing job fires at an unexpected local time. Configure a local periodic task and show timezone-aware due timestamps around a selected date.
A task retries invalid input until it exhausts the queue. Use a local provider stub returning timeouts, 429 and validation failures with explicit retry decisions.
A retried publishing job repeats an externally visible action. Use a synthetic delivery record with an idempotency key and separate claimed, sent and uncertain states.
A frontend gets an unstructured error string for several fields. Return field errors and non-field errors for a booking-style synthetic request, then map them to inputs.
Cached API responses leak one user's results into another session. Build synthetic account summaries with user ID and filter parameters in the cache key.
A schema change breaks older application instances during rollout. Plan nullable field addition, backfill and later constraint change using a toy model.