Dogs recognize and respond to human social signals to conclude that your food is more desirable than theirs. Sophie Bushwick reports