An adequate substitute for habeas corpus must provide a comprehensive review of both the lawfulness of detention and factual basis for detaining an individual, equivalent to what would be available via a habeas corpus proceeding.
For example: If a statute allows for judicial review of detentions but lacks the power to order release, it would not be considered an adequate substitute for habeas corpus.