implement phi-autopair-close-cautious