Govt caves in, accepts demands in ‘deal brokered by COAS’