Cognitive Duality for Adaptive Web Agents