Need help explaining behaviour of a circuit
It's a half-wave precision rectifier, the precision of which is mitigated by the use of a simple diode to implement the peak detector.  Full-wave response and precision peak detection will require more than one op amp, so I feel that low cost was a primary goal of the design.