The attachment fetch gate called the gateway auth check without is_bot, so a bot_users sender on the human allowlist got the human verdict and its attachments were fetched while its chat was in loop-guard cooldown. The SessionSource is now built before the gate and its is_bot is forwarded, the same way the reaction gate does it (keyword only when set, so 3-arg callbacks keep working). Refs #108353