{"slug": "ai-court", "title": "AI court", "summary": "A developer built an AI court simulation in which a case file generator produces three rewritten network disputes per day and a core state machine runs a trial with plaintiff, defendant, lawyers, a judge, 12 jurors, and observer roles including a clerk, reporter, and commentator. Every spoken sentence is appended to a transcript.jsonl file, which is then pushed live over SSE, stored in SQLite, and delivered via iMessage.", "body_md": "┌─────────────────┐\n\n │ Case File Generator │ 3 cases per day\n\n │ (docket.py) │ Rewritten from real network disputes\n\n └────────┬────────┘\n\n │ case.json\n\n ┌────────▼────────┐\n\n │ Trial Engine │ ← Core State Machine\n\n │ (courtroom.py) │\n\n └────────┬────────┘\n\n ┌──────────────┼──────────────┐\n\n │ │ │\n\n ┌───────▼──────┐ ┌─────▼──────┐ ┌────▼─────────┐\n\n │ Party Level │ │ Court Level │ │ Observer Level │\n\n │Plaintiff / Defendant │ │ Judge │ │ Clerk (Transcription) │\n\n │ Plaintiff's lawyer │ │ 12 jurors │ │ Reporter (reporting) │\n\n │ Defendant's lawyer │ │ │ │ Commentator (roast) │\n\n └───────┬──────┘ └─────┬──────┘ └────┬─────────┘\n\n │ │ │\n\n └──────────────┼──────────────┘\n\n │ Every sentence spoken\n\n ┌────────▼────────┐\n\n │ transcript.jsonl│ ← Full records, append only\n\n │ (A bomb that keeps getting bigger) │\n\n └────────┬────────┘\n\n │\n\n ┌──────────────┼──────────────┐\n\n │ │ │\n\n ┌─────▼─────┐ ┌─────▼─────┐ ┌────▼──────┐\n\n │ SSE Push │ │ SQLite │ │ iMessage │\n\n │ (Web Live Broadcast) │ │ (History) │ │ (Push to You) │\n\n └───────────┘ └───────────┘ └───────────┘", "url": "https://wpnews.pro/news/ai-court", "canonical_source": "https://dev.to/jx_c_b8c174843952fc10876a/ai-court-3oaj", "published_at": "2026-11-20 02:40:02+00:00", "updated_at": "2026-11-20 02:43:06.821307+00:00", "lang": "en", "topics": ["ai-agents", "artificial-intelligence", "generative-ai"], "entities": [], "also_reported_by": [], "takeaway": "A multi-role trial simulation can be structured as a single core state machine that fans out to party, court and observer roles, with every utterance appended to an immutable transcript.jsonl that feeds SSE, SQLite and iMessage outputs.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/ai-court", "markdown": "https://wpnews.pro/news/ai-court.md", "text": "https://wpnews.pro/news/ai-court.txt", "jsonld": "https://wpnews.pro/news/ai-court.jsonld"}}