Which set of facts is needed before a ruling on detention?

Kitab al-Hajr: Claimed Insolvency, Detention and Release