# The 13 stages

Each stage is a zod-contracted unit that reads the ledger and writes to it. Runs are resumable;
`rebuild-from <stage>` re-runs that stage and everything after it.

```mermaid
flowchart TD
  P["1 PLAN\nquestion → research design:\ndomain profile · target terms (+contrast) ·\nanswer contract"] --> C
  C["2 CARTOGRAPH\nexhaustive concordance per term:\nevery occurrence → information systems\n(paired / continued / isolated) + pairing stats"] --> CO
  CO["3 COLLECT\nbroad evidence:\nverses · corpus stats · lexicon · sequence markers"] --> D
  D["4 DOSSIER\nanchor sweep (domain vocabulary) → anchors,\nword studies (Lane + classical),\ntafsīr positions per mufassir, targeted hadith,\nroot-contrast studies (rawāsī↔jibāl)"] --> PR
  PR["5 PROPERTIES\nthe property ledger: every property the words\ngive each term, grounded against the Arabic,\nunmaking passages, scope tags"] --> R
  R["6 REFERENT TRIAL\n'What is NOT X': the inherited translation tried\nas H1; blind property tests; verdicts per\ninformation system — computed in code"] --> SC
  SC["7 CORRESPONDENCE\nblind, scope-partitioned science scoring:\nmatch / conflict / silent per property;\nfit computed in code"] --> EX
  EX["8 EXAMINATION\ncollective reading · patterns & variants ·\ntextual gaps · science-seam gaps ·\nspeculative resonances (suggest-only) ·\nwhole commentary + possible outcomes"] --> H
  H["9 HYPOTHESIZE\nclaims from the ledger, each labelled:\nepistemic status + ladder level L1–L6"] --> A
  A["10 ADVERSARIAL\nred team attacks every claim;\nhard cases mined from the corpus;\nobjections ledger"] --> M
  M["11 MODEL\nthe architecture: prerequisites (hadith) →\nphases stitched by the text's own markers →\ncomponents, relations, mermaid diagram"] --> AU
  AU["12 AUDIT\nuṣūl principles U1–U16 checked; objections\nruled (answered/sustained/carried); revisions\napplied; entity verdicts; L7 gate; U15 fiqh;\nparallel architectures"] --> CP
  CP["13 COMPOSE\nreport assembled from the ledger:\ndeterministic sections + LLM discussion,\nplain-terms boxes, citations validated"]
```

## Stage notes worth knowing

- **Plan** emits the *answer contract* — what a complete answer must state — and the *domain
  profile* (cosmological, psychological, biological…) that drives sweep vocabulary and science
  catalogues downstream. A route guard forces bridge questions through the full pipeline.
- **Cartograph** is the author's M4: the counts (190/188, 181, 135) are computed here and feed the
  report's corpus map. Terms are also clustered into *information systems* by attribute signatures.
- **Dossier** records *term-contrast studies* (root A vs root B — e.g. rawāsī↔jibāl, judged
  `object_serves_function`) and *sweep provenance* (every passage seen, selected or set aside).
- **Referent trial** verdicts are computed in code from test outcomes — a fail anywhere, or survival
  only by rescue, rejects a reading however mainstream.
- **Examination** is the "read the material as a whole" pass: collective readings, patterns with
  variants, gaps in the gathered material itself, and speculative-science resonance (which may
  suggest, never decide).
- **Audit** owns the **L7 gate**: an identity claim ("Ard IS dark matter") survives only if the
  blind comparison flags that entity with zero standing conflicts — otherwise it is downgraded to
  L6 in code, with the blocking conflicts printed.
- **Compose** validates every `[E-n]` against the ledger and drops unresolvable citations.
