# Taaweel 1.0 vs 2.0

Taaweel 2.0 was developed as **Burhan**, a parallel app beside Taaweel 1.0. The two had different
jobs. **Taaweel 1.0** answers *"what do the words and verses mean,
morphologically and lexically?"* — a superb evidence collector. **Taaweel 2.0** answers *"what is the
best-supported research conclusion about this question?"* — a researcher that uses Taaweel 1.0's
evidence and goes all the way to a defended, cited verdict.

```mermaid
flowchart LR
  subgraph T["Taaweel 1.0 (apps/api · :3001)"]
    T1["Refine chat"] --> T2["Topics &\nArabic synonyms"] --> T3["Verse finder\n(root + string)"] --> T4["Morphology\n(kalimat)"] --> T5["Shortlist\nLLM scoring"] --> T6["Synthesis\nlexicon combinations"] --> T7["PARI report\n(plan·act·review)"]
  end
  subgraph B["Taaweel 2.0 (:3901)"]
    B1["Plan\n(profile, contract)"] --> B2["Cartograph\n(full-corpus maps)"] --> B3["Dossier\n(anchors · words · tafsīr · hadith · contrasts)"] --> B4["Property ledger\n(grounded, scoped)"] --> B5["Referent trial\n(code-computed verdicts)"] --> B6["Blind science\n(scope-partitioned)"] --> B7["Examination\n(patterns · gaps)"] --> B8["Audit\n(U1–U16 · L7 gate)"] --> B9["Report\n(+ parallel architectures)"]
  end
  T3 -. "corpora, read-only" .-> B3
  T6 -. "no dependency" .-> B
```

## Side by side

| | **Taaweel 1.0** | **Taaweel 2.0** |
| --- | --- | --- |
| **Question** | "Which verses, which morphemes, which lexicon readings?" | "What is the best-supported answer — and what would change it?" |
| **Verse discovery** | connotation → synonym → root/string finder | exhaustive concordance per term + domain vocabulary sweeps; **counts everything** |
| **What LLMs do** | shortlist, synthesis scores, PARI prose | judgment calls only: positions, objections, labels, prose — every output zod-validated |
| **Verification** | ontology path checks, falsifier in Taʾwīl (single-verse tool) | referent trial per system, red team, uṣūl audit U1–U16, L7 gate — on every run |
| **Science** | not in the pipeline | blind, scope-partitioned, proven + speculative tiers, fits computed in code |
| **Conclusions** | readings and scores per verse | decisive answer, entity verdicts, **parallel architectures**, falsification triggers |
| **Citations** | appendix listing | every `[E-n]` validated against the ledger; drillable provenance page |
| **Question intake** | refine chat | refine chat **with lock** — research runs on the locked text |
| **Post-report** | discuss chat + regenerate | discuss chat **grounded in the report's ledger** + regenerate-from-angle |
| **Stack** | Fastify :3001 + React app, own DB | Fastify :3901, server-rendered dashboard, own DB; reads its corpora read-only |
| **LLM posture** | OpenAI Responses/vector-store centric | provider-agnostic (deepseek/GLM/openai/openrouter/mock); decomposed small calls for cheap models |

## What Taaweel 2.0 takes *from* Taaweel 1.0

- The corpora (Quran text, tokens, roots, Lane, tafsīr DBs) — **read-only**, the reason Taaweel 2.0
  exists as a parallel app: zero risk to the production system.
- Design principles proven there: deterministic code first, resumable stage runs, NDJSON progress,
  per-step cost accounting.
- The two chat experiences — refined here with locking and angle regeneration.

## What Taaweel 2.0 adds that Taaweel 1.0 has no equivalent for

Corpus cartography with information systems · the property ledger with grounding · the referent
trial with code verdicts · root-contrast studies · blind scope-partitioned science · speculative
resonance · holistic examination (patterns, gaps) · the uṣūl audit with revisions · the
claim-strength ladder with the L7 gate · parallel architectures · terminology discipline · the
provenance meta report.

## Where 1.0's features go

Taaweel 2.0 takes over 1.0's accounts and admin, the lexicon and verse tools, and the ontology (see
the roadmap in `docs/taaweel-2-plan.md`). 1.0's own research pipeline (steps 5/6, PARI reports) is
retired: 2.0's engine replaces it.
