> ## Documentation Index
> Fetch the complete documentation index at: https://help.lexfill.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Litigation

> Federal mandamus and § 2241 habeas — intake, analysis, pleading, filing package

## Two federal case types

Lexfill's litigation case types don't file anything with USCIS. Each collects the facts a federal court filing is built from, and the outputs are court documents: an analysis, a drafted pleading, and the complete filing package.

Both run the same arc — a client-facing intake questionnaire, an attorney worksheet the client never sees, an analysis Lex runs before it drafts, and a package you file.

## Federal Mandamus

For unreasonable delay. The **mandamus intake questionnaire** collects:

* **The delayed application** — receipt number, filing date, the office handling it, current status.
* **Case timeline** — every notice, appointment and response, in order.
* **Attempts to resolve the delay** — e-Requests, USCIS calls, Ombudsman and congressional inquiries, expedite requests.
* **Hardship** — the specific, personal consequences of the delay.

Risk screening and venue/counsel live on the **attorney worksheet**.

**The outputs:** a delay analysis graded against USCIS's own published processing times; a drafted federal complaint; and the filing package — JS-44 civil cover sheet, AO 440 summonses, and the service documents.

Ask Lex with `/mandamus` on a linked mandamus matter: it runs the delay analysis first and tells you plainly if the case is weak or premature — and stops there rather than drafting something you shouldn't file.

<Warning>
  Filing a mandamus invites USCIS to fully adjudicate. On a weak underlying
  case that can mean a denial and a Notice to Appear. Lex repeats this warning
  every time it drafts a complaint.
</Warning>

## Habeas Corpus — Detention (28 U.S.C. § 2241)

For detention review. Because the client is detained, the **habeas intake questionnaire** is written to be completed by the attorney, their staff, or a family member:

* **Where they are held** — the facility and its street address, the A-number, and every period in immigration custody (which drives both venue and the time-detained math).
* **The immigration case** — posture (proceedings pending, final removal order, related history), appeal status, travel-document history.
* **Bond requests** — each request, the judge's decision and its stated ground, and any appeal.
* **Health, family, and who is filling this out** — medical needs, family circumstances, conditions at the facility.

Claims screening and venue/respondents live on the **attorney worksheet** — the family never sees them.

**The outputs:** a detention analysis with its reasons spelled out; a drafted § 2241 petition with its verification block; and the filing package — JS-44 with the Alien Detainee nature-of-suit, AO 440 summonses per respondent, service documents, and (when requested on the worksheet) an application for an order to show cause asking the court to set a fast response deadline.

Ask Lex with `/habeas` on a linked habeas matter.

<Warning>
  Two things Lex flags on every habeas draft: **mootness** — habeas requires
  custody at filing, so release during litigation may moot the petition; and
  **transfer** — jurisdiction attaches at filing, so file in the district of
  confinement *before* any transfer. A transfer after filing does not defeat it.
</Warning>

## What stays yours

Each generator refuses the other's case type, and neither should be imitated with a general drafting request. After a successful draft, Lex flags what you must verify by hand — the defendant or respondent set (especially the immediate custodian), venue, and every fact pulled from the intake.
