Shift: "This unit can move through walls and counts through walls when determining closeness to a bot/awareness chip. It patrols even when in a room and is not constrained to its current area when patrolling."
The security unit's awareness doesn't extend through walls, so bots won't get pursued through walls. But it counts closeness through walls, so that applies to both being investigated, and units with Shift also tend to have the patrol of Closest Bot, so closeness is used for its patrol as well.
Also note that this ability does not make you adjacent if the Shift unit is on one side of a wall and the bot is on the other.