What must be established before treating a surety as liable?

Kitab al-Hajr: Claimed Insolvency, Detention and Release