The court must rule on a petition for writ of habeas corpus within 60 days after the petition is filed. These rules are the local rules for the Superior Court of California, County of. Alameda.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. The Writ of Habeas Corpus protects prison inmates from false imprisonment to ensure people are not thrown into jail unlawfully. FORMS TO FILL OUT BEFORE GRIEVANCES: You must complete all the following forms that apply to your complaint before filing a grievance. The court held that this was not a retroactive application of the law under state or federal law. The law in the area is an intricate weave of statute and case law.