Ok, I believe we have this one fixed (the guy's been commuting in it for a few days and the code hasn't returned

) so I'll post the resolution in case anyone with the same problem might be doing thread searches. Things done since last post were:
1. Checked for exhaust leaks per TN user Maxpayne124's suggestion. Don't know why this one didn't occur to me but anyway, we didn't find anything. So, we proceeded with . . .
2. Changed MAF sensor (remanufactured unit from Advance Auto Parts, $69.95, $50.00 core charge).
As I said in a previous post, we had tried cleaning the sensor elements with contact cleaner, and had done all the tests with an ohmmeter shown in the Haynes manual, and the existing sensor showed good. I was nervous that we might have thrown away his money, but the replacement sensor did the trick. Apparently, there can be something wrong with them that's hard to home-diagnose. So there you have it TN users, another P0171 code down to the MAF sensor.
HTH; automaton