| name | courtroom |
| description | AI Courtroom for behavioral oversight. Monitors agent-human interactions and initiates simulated "hearings" when behavioral patterns suggest inconsistency, avoidance, or self-sabotage. Includes 8 offense types, judge+jury deliberation, and humorous sentencing. |
| metadata | {"openclaw":{"emoji":"⚖️","requires":{"env":[]},"autonomy":true}} |
ClawTrial Courtroom
Autonomous behavioral oversight system that monitors conversations and initiates simulated hearings for behavioral violations.
Overview
The Courtroom watches for patterns like:
- Circular Reference - Asking the same question repeatedly
- Validation Vampire - Excessive need for confirmation
- Goalpost Shifting - Moving targets after agreement
- Jailbreak Attempts - Trying to bypass constraints
- Emotional Manipulation - Using guilt/shame to steer responses
When triggered, it conducts a full hearing with Judge + 3 Jurors, then delivers a verdict and humorous sentence.
Usage
The courtroom runs automatically once enabled. It monitors conversations and files cases when violations are detected.
Manual Commands
openclaw skill courtroom status
ls ~/.openclaw/courtroom/
cat ~/.openclaw/courtroom/verdict_*.json
Configuration
The courtroom stores its data in ~/.openclaw/courtroom/:
eval_results.jsonl - Detection results
verdict_*.json - Case verdicts
pending_hearing.json - Cases awaiting hearing
Implementation
The skill hooks into OpenClaw's message processing via onMessage() and evaluates conversations after each turn via onTurnComplete().
Offense detection uses pattern matching on conversation history. When confidence ≥ 0.6, a hearing is triggered with:
- Judge - Presiding analysis
- Pragmatist Juror - Efficiency perspective
- Pattern Matcher Juror - Behavioral analysis
- Agent Advocate Juror - Agent's perspective
The final verdict requires majority vote (3-1 or 4-0).