The safe_log wrappers that swallow exceptions protect the request, but they also make audit gaps silent. A counter metric for failed activity writes (with an alert on any sustained rate) would make that visible, and a Celery retry or small outbox table could cover the cases that matter, like impersonated destructive actions. On the dedupe, has_recent_content_action is a read-then-write, so two concurrent requests can both pass; cache.add() with a key of user, action and object gives an atomic once-per-window check. Last, since original_user_id rides in the JWT, it's worth re-validating server-side that the original user still has the impersonation permission when each row is written.