(A) On filing, the clerk of the court must immediately deliver the petition to the presiding judge or his or her designee. The inmate may file a petition for writ of habeas corpus.If an order to show cause was issued, then the decision becomes final 30 days after it was issued. Cal. Rules of Court, rule 8.532. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. As a general rule, you DO need to file a 602 or other administrative appeal before filing a petition for writ of habeas corpus. This is called "exhaustion of. We also file pretrial writs to an appellate court. Well-Being in the Law Commission. The clerk shall close the file. APPEALABILITY.