┌─────────────────┐

│ Case File Generator │ 3 cases per day

│ (docket.py) │ Rewritten from real network disputes

└────────┬────────┘

│ case.json

┌────────▼────────┐

│ Trial Engine │ ← Core State Machine

│ (courtroom.py) │

└────────┬────────┘

┌──────────────┼──────────────┐

│ │ │

┌───────▼──────┐ ┌─────▼──────┐ ┌────▼─────────┐

│ Party Level │ │ Court Level │ │ Observer Level │

│Plaintiff / Defendant │ │ Judge │ │ Clerk (Transcription) │

│ Plaintiff's lawyer │ │ 12 jurors │ │ Reporter (reporting) │

│ Defendant's lawyer │ │ │ │ Commentator (roast) │

└───────┬──────┘ └─────┬──────┘ └────┬─────────┘

│ │ │

└──────────────┼──────────────┘

│ Every sentence spoken

┌────────▼────────┐

│ transcript.jsonl│ ← Full records, append only

│ (A bomb that keeps getting bigger) │

└────────┬────────┘

│

┌──────────────┼──────────────┐

│ │ │

┌─────▼─────┐ ┌─────▼─────┐ ┌────▼──────┐

│ SSE Push │ │ SQLite │ │ iMessage │

│ (Web Live Broadcast) │ │ (History) │ │ (Push to You) │

└───────────┘ └───────────┘ └───────────┘

原文来源:dev.to