Build a mental operating system that spots and patches perception bugs before they sabotage your life.