When I fight the boss at 100% completion I always loose the battle even though 1/2 my team is still alive...

The battle didn't even finish... why I loose? Been stuck here for 1 day now and can not advance. Is this a bug??

Or do I need to kill the mini boss in X amount of hits??