Virtual spatiality in agent controllers: Encoding compartmentalization