KABUL, Afghanistan — When Rahima Jami heard that the Americans and the Taliban were close to a peace deal, she thought about her feet.

Ms. Jami is now a lawmaker in the Afghan Parliament, but back in 1996, when Taliban insurgents took power, she was a headmistress — until she was forced out of her job and told she could leave her home only in an ankle-length burqa.

One hot day at the market, her feet were showing, so the religious police beat them with a horse whip until she could barely stand.

Horror stories at the hands of enforcers from the Taliban’s Committee for the Promotion of Virtue and the Prevention of Vice are a staple for any educated Afghan woman over age 25 or so. Now those women have a new horror story: the possibility that American troops will leave Afghanistan as part of a peace deal with the Taliban.