With on_error: compensate, each service_call and crud_operation step needs its own compensate block. A step without one stops the rollback there. A manual compensate kind ends the run in compensation_failed by design, so someone can finish the undo by hand.
The valid kinds are automatic, manual, skip_acknowledged and none (skip is rejected). Templates can't do arithmetic, so write an inventory reversal as a literal negative number. A compensate block can't contain then_steps or else_steps.