Under intense pressure from Arab states, Syria has signed a pact to pull its armed forces from the streets, release political prisoners and engage with opposition groups after seven months of unrest that has ravaged the strategically situated nation and unsettled the entire region.