Jeep Wrangler Brake question

A fairly new MC showed the same symptoms long ago. I pulled the piston out and found the piston seal had been cut by a sharp corner in the bore. The rebuilder's had re-bored it but didn't break the edges on the ports. Sometimes it sealed and gave a hard pedal and other times the pedal would sink.