pub async fn active_actor(
pool: &PgPool,
user_id: Uuid,
) -> AppResult<Option<Actor>>Expand description
The actor of an active user as it is now (memberships and hidden groups
read again); None for a deactivated or deleted user. Long-running work
on behalf of a user (the assistant’s tool loop) calls this per step, so
a lost membership or a newly restricted group applies at once.