# AI court

> Source: <https://dev.to/jx_c_b8c174843952fc10876a/ai-court-3oaj>
> Published: 2026-11-20 02:40:02+00:00

**Recommendation:** Model multi-role simulations as one central state machine with an append-only transcript as the source of truth, then fan out to live, stored and push outputs from that log.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

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

 │ 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) │

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