LegalWorld: A Life-Cycle Interactive Environment for Legal Agents

arXiv cs.CL Papers

Summary

LegalWorld is a life-cycle interactive environment that models Chinese civil litigation as a causally connected state chain across five stages, paired with LongJud-Bench for evaluating legal agents across the full process.

arXiv:2606.18728v1 Announce Type: new Abstract: Civil litigation is inherently a life-cycle process: what a lawyer drafts on day one constrains what unfolds at trial months later. Yet existing legal benchmarks evaluate isolated subtasks, and prior legal-agent simulators reinitialize each scenario from shared ground truth, leaving cross-stage causal dependencies unmodeled. We present LegalWorld, a life-cycle interactive environment that models Chinese civil litigation as a causally connected state chain of five stages (seven sub-scenarios), grounded in 75,309 paired Chinese civil judgments. We pair it with reusable infrastructure (local memory, global case memory, a Skill/Tool library) that keeps each dispute consistent across its full life cycle. Building on this environment, we construct LongJud-Bench to evaluate agent capability across all five connected stages. 18,992 ratings from 217 legal-background evaluators confirm that LegalWorld trajectories are procedurally faithful and role-consistent; and a capability-level cross-model evaluation reveals sharp divergences that aggregate scores cannot expose, with no single backbone leading across consultation, drafting, and courtroom advocacy. Detailed resources will be released publicly.
Original Article
View Cached Full Text

Cached at: 06/18/26, 05:46 AM

# LegalWorld: A Life-Cycle Interactive Environment for Legal Agents
Source: [https://arxiv.org/html/2606.18728](https://arxiv.org/html/2606.18728)
Songhan Zuo1,2†,Shengbin Yue1†,Tao Chiang1,Guanying Li1,Yun Song3, Xuanjing Huang1,2,Zhongyu Wei1,2∗ 1Fudan University2Shanghai Innovation Institute 3Northwest University of Political and Law songhanzuo@gmail\.com, sbyue23@m\.fudan\.edu\.cn, zywei@fudan\.edu\.cn Project Page:[https://chidaic\.github\.io/Legal\-world/](https://chidaic.github.io/Legal-world/)

###### Abstract

Civil litigation is inherently a life\-cycle process: what a lawyer drafts on day one constrains what unfolds at trial months later\. Yet existing legal benchmarks evaluate isolated subtasks, and prior legal\-agent simulators reinitialize each scenario from shared ground truth, leaving cross\-stage causal dependencies unmodeled\. We presentLegalWorld, a life\-cycle interactive environment that models Chinese civil litigation as a causally connected state chain of five stages \(seven sub\-scenarios\), grounded in 75,309 paired Chinese civil judgments\. We pair it with reusable infrastructure \(local memory, global case memory, a Skill/Tool library\) that keeps each dispute consistent across its full life cycle\. Building on this environment, we constructLongJud\-Benchto evaluate agent capability across all five connected stages\. 18,992 ratings from 217 legal\-background evaluators confirm thatLegalWorldtrajectories are procedurally faithful and role\-consistent; and a capability\-level cross\-model evaluation reveals sharp divergences that aggregate scores cannot expose, with no single backbone leading across consultation, drafting, and courtroom advocacy\. Detailed resources will be released publicly\.

LegalWorld: A Life\-Cycle Interactive Environment for Legal Agents

Songhan Zuo1,2†, Shengbin Yue1†, Tao Chiang1, Guanying Li1, Yun Song3,Xuanjing Huang1,2,Zhongyu Wei1,2∗1Fudan University2Shanghai Innovation Institute3Northwest University of Political and Lawsonghanzuo@gmail\.com, sbyue23@m\.fudan\.edu\.cn, zywei@fudan\.edu\.cnProject Page:[https://chidaic\.github\.io/Legal\-world/](https://chidaic.github.io/Legal-world/)

## 1Introduction

Legal artificial intelligence has made substantial progress in recent years, spanning legal language models\(Cui et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib5); Yue et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib31)\), evaluation benchmarks\(Fei et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib8); Guha et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib10); Xiao et al\.,[2018](https://arxiv.org/html/2606.18728#bib.bib30); Li et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib16)\), and interactive agent systems\(Chen et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib4); He et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib11); Jia et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib12)\)\. These advances, however, remain largely confined to single\-scenario settings, where each task is evaluated over fixed inputs without inheriting state from earlier procedural stages, a limitation echoed by recent calls to reframe legal\-agent benchmarking around realistic workflows and agentic performance\(Ranjan and Ma,[2024](https://arxiv.org/html/2606.18728#bib.bib24); Liu et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib18)\)\. Real civil litigation, by contrast, is not a collection of independent tasks\. A dispute unfolds from initial consultation through document drafting, first\-instance trial, appeal, and second\-instance judgment, with facts, claims, evidence, and procedural choices from earlier stages shaping what can happen later\. Each stage consumes the artifacts produced by the previous stage; drafting errors propagate downstream into trial outcomes; party knowledge, lawyer strategies, and judicial findings co\-evolve along a single causal chain\. Modeling this complete litigation life cycle is therefore a prerequisite for assessing whether a legal agent possesses genuine procedural capability rather than isolated task skills\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/figures/first.png)Figure 1:Example fromLegalWorld\. The figure traces a civil dispute from legal consultation to the first\-instance civil trial, showing scene\-level communication content and the memory flow through which case information is recorded, updated, and carried forward\.Recent legal\-agent simulators take a step toward more realistic legal scenarios, yet three key gaps remain\.\(1\) Long\-horizon stage coverage\.Existing systems cover only local segments of the process, modeling adversarial courtroom procedures alone\(Chen et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib4); He et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib11)\)or initializing each scenario from shared case\-level ground truth rather than from the previous scenario’s output\(Jia et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib12)\), leaving cross\-stage state transmission structurally missing\.\(2\) Heterogeneous role consistency\.Clients, lawyers, and judges hold distinct knowledge horizons and adversarial stances that continuously evolve as the case proceeds, yet existing simulators reinitialize each scenario from shared ground truth and cannot preserve this stage\-bound role state\.\(3\) Procedural tool support\.Real legal tasks require dedicated tool and skill support for evidence submission, document drafting, and courtroom procedure, which current agent environments rarely provide\. Together, these gaps point to a common requirement: a complete life\-cycle simulation environment with role\-bound interfaces and procedural infrastructure\.

To address the three gaps above, we proposeLegalWorld, a life\-cycle interactive environment for legal agents\. Figure[1](https://arxiv.org/html/2606.18728#S1.F1)illustrates a concrete dispute trajectory\.LegalWorldmodels Chinese civil litigation as a five\-stage causal chain across seven sub\-scenarios, where each stage consumes facts, evidence, positions, and documents from earlier stages, forming a causally connected trajectory over the full life cycle\. The environment construction is supported by 75,309 paired first\- and second\-instance Chinese civil cases covering over 500 causes of action\. Three agent types—clients, lawyers, and judges—are instantiated through role\-specific, stage\-bound interfaces with appropriate visibility, actions, and Skill/Tool access\. For long\-horizon simulation, it provides reusable infrastructure: in\-scenario local memory, global case memory, and a modular Skill/Tool library, which together keep facts, evidence, and positions consistent as the case advances through its stages\.

Building on this environment, we constructLongJud\-Benchto evaluate the life\-cycle legal capability of agents across all five connected stages ofLegalWorld\. A large\-scale human study with 18,992 ratings from 217 legal\-background evaluators confirms thatLegalWorldtrajectories are procedurally faithful and role\-consistent, establishing a reliable testbed for legal\-agent research\. Cross\-model evaluation on LongJud\-Bench further reveals capability\-level divergences across backbones that aggregate scores cannot expose, with no single backbone leading across consultation, drafting, and courtroom advocacy\.

Our contributions are:\(A\) The first life\-cycle civil litigation simulation environment\.We constructLegalWorld, which simulates Chinese civil litigation from consultation to final second\-instance judgment as a five\-stage state chain across seven sub\-scenarios;\(B\) Reusable infrastructure for long\-horizon legal agents\.We design in\-scenario local memory, global case memory, and a modular Skill/Tool library that keep case state consistent across the full litigation life cycle; and\(C\) A life\-cycle legal capability benchmark\.Based onLegalWorld, we build LongJud\-Bench to evaluate individual legal capability over the full litigation life cycle\.

## 2LegalWorld: Constructing a Life\-Cycle Civil Litigation Environment

LegalWorldturns real civil cases into runnable life\-cycle litigation trajectories\. Starting from paired first\- and second\-instance judgments, the environment extracts a structured case seed, initializes role and persona conditions, exposes stage\-specific procedural interfaces, records agent interaction traces and stage outputs, and updates the case state after each stage\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/figures/legal_world_overview.png)Figure 2:Overview ofLegalWorld\. The figure shows the participating client, lawyer, and judge agents, the five\-stage life\-cycle state chain, in\-scenario local memory, global case memory, and Skill/Tool support\.Figure[2](https://arxiv.org/html/2606.18728#S2.F2)gives the runtime organization ofLegalWorld, including the participating roles, life\-cycle stage chain, and the support components connected to the simulation process\.

We organize this section into four parts: data\-driven case construction \(§[2\.1](https://arxiv.org/html/2606.18728#S2.SS1)\), life\-cycle state and interface design \(§[2\.2](https://arxiv.org/html/2606.18728#S2.SS2)\), role and persona initialization \(§[2\.3](https://arxiv.org/html/2606.18728#S2.SS3)\), and the stage construction protocol \(§[2\.4](https://arxiv.org/html/2606.18728#S2.SS4)\)\. Together, these parts turn each case into a connected litigation trajectory that can be instantiated by different LLM backbones under the same procedural interface\.

### 2\.1Data\-Driven Case Construction

A life\-cycle environment is only as faithful as the cases that drive it, soLegalWorldis grounded in real civil litigation data rather than manually invented disputes\. The construction pipeline turns raw public judgments into runnable case seeds in four steps—source collection, first/second\-instance pairing, structured field extraction, and persona/consultation generation—and then exposes the resulting fields to agents only through stage\-specific visibility rules\. Formally, let𝒟\\mathcal\{D\}denote the paired judgment collection, with each casecccontaining a first\-instance judgmentJc\(1\)J^\{\(1\)\}\_\{c\}and a second\-instance judgmentJc\(2\)J^\{\(2\)\}\_\{c\}; we convert each pair into a structured case seedDcD\_\{c\}that the environment instantiates as a connected litigation trajectory\.

#### Source collection\.

We collect public civil first\-instance and second\-instance judgment documents from China Judgments Online \(wenshu\.court\.gov\.cn\), retaining the judgment text and case number of each document and removing duplicate filings\. The resulting corpus spans courts at every level of the Chinese civil court hierarchy and forms the raw material from which runnable cases are built\.

#### First/second\-instance pairing\.

We pair the first\- and second\-instance judgments of the same dispute, matching each case by shared case number, identical parties, and consistent cause of action\. We further drop second\-instance records that never reached a substantive appellate hearing \(e\.g\., withdrawal, non\-acceptance, or procedural dismissal\), so that every retained pair carries a genuine first\-to\-second\-instance progression\. After pairing and filtering, 75,309 \(first, second\) tuples remain, covering over 500 causes of action and spanning both high\-frequency and long\-tail civil disputes \(Figure[3](https://arxiv.org/html/2606.18728#S2.F3)\)\.

#### Structured field extraction\.

We convert each paired judgment into a structured case seedDcD\_\{c\}that reorganizes the two judgments into the fields a litigation trajectory needs\. Using a stage\-typed schema, the seed records case metadata, party fields, claims and defenses, facts and reasons, evidence lists, first\-instance court findings and disposition, and the analogous appeal and second\-instance fields, so that oneDcD\_\{c\}captures the full procedural record of a dispute\. The seed is not exposed to agents as a whole: the environment later releases its fields through the stage\-specific visibility rules of Section[2\.2](https://arxiv.org/html/2606.18728#S2.SS2), so each agent observes only what its role and stage permit\. The extraction model, schema, and quality\-control procedure are described in Appendix[B](https://arxiv.org/html/2606.18728#A2)\.

#### Persona and consultation seeds\.

Two further generation steps make each seed runnable as an interactive dispute rather than a static record\. First, we assign each litigant a persona under the Legal Client Persona Framework \(LCPF, Section[2\.3](https://arxiv.org/html/2606.18728#S2.SS3)\), which conditions how the party discloses facts, asks questions, and reacts during the simulation\. Second, conditioned on the LCPF persona and the accepted facts, we generate party\-side consultation questions together with reference answers grounded in the applicable statutes; the questions drive the consultation stage, while the reference answers are reserved for evaluation only\.

#### Scale and splits\.

The complete corpus \(Full\) retains all 75,309 paired cases\. To keep large\-scale simulation tractable—one complete life\-cycle run averages about 500,000 tokens—we additionally derive two cause\-balanced subsets under a fixed seed:Medium\(1,000 cases from the top 100 causes\) andLight\(100 cases from the top 20 causes\)\. Figure[3](https://arxiv.org/html/2606.18728#S2.F3)summarizes the court\-level and top\-category cause\-of\-action distribution of the corpus, and Appendix[B](https://arxiv.org/html/2606.18728#A2)\(Table[7](https://arxiv.org/html/2606.18728#A2.T7)\) reports the per\-split sizes and sampling rules\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/figures/longjud_dataset_composition.png)Figure 3:Data foundation forLegalWorldenvironment construction\. \(A\) Court\-level distribution of the 75,309 second\-instance judgments used to construct runnable civil\-litigation case trajectories\. Most cases are decided at the intermediate court level, consistent with the structure of Chinese civil appellate jurisdiction\. \(B\) Top\-category cause\-of\-action distribution across all 75,309 paired cases\. The distribution summarizes the broad legal\-domain coverage available for environment construction and shows thatLegalWorldsupports both frequent and long\-tail civil disputes\.

### 2\.2Life\-Cycle State and Interface Design

Given a case seedDcD\_\{c\},LegalWorldinstantiates the same civil dispute as a connected multi\-agent trajectory over the life\-cycle stages\. The participating agent set𝒜c\\mathcal\{A\}\_\{c\}contains the plaintiff clientapa\_\{p\}, defendant clientada\_\{d\}, plaintiff lawyeral​pa\_\{lp\}, defendant lawyeral​da\_\{ld\}, first\-instance judgeaj​1a\_\{j1\}, and second\-instance judgeaj​2a\_\{j2\};𝒜c\(t\)\\mathcal\{A\}\_\{c\}^\{\(t\)\}denotes the subset active at stagett\. The role mapping at stagettis denoted byRc\(t\)R\_\{c\}^\{\(t\)\}; after the appeal\-determination transition,Rc\(t\)R\_\{c\}^\{\(t\)\}maps the original plaintiff and defendant sides into appellant or appellee roles according to the appeal fields inDcD\_\{c\}\.

The life cycle comprises five connected stages, instantiated through seven concrete sub\-scenarios: Legal Consultation \(LC\), Complaint Drafting \(CD\), Defense Drafting \(DD\), First\-Instance Trial \(FIT\), Appeal Drafting \(AD\), Appeal Response \(AR\), and Second\-Instance Trial \(SIT\):

Sc\(0\)\\displaystyle S\_\{c\}^\{\(0\)\}⟶LCSc\(1\)⟶CD/DDSc\(2\)⟶FITSc\(3\)\\displaystyle\\mathrel\{\\overset\{\\mathrm\{LC\}\}\{\\longrightarrow\}\}S\_\{c\}^\{\(1\)\}\\mathrel\{\\overset\{\\mathrm\{CD/DD\}\}\{\\longrightarrow\}\}S\_\{c\}^\{\(2\)\}\\mathrel\{\\overset\{\\mathrm\{FIT\}\}\{\\longrightarrow\}\}S\_\{c\}^\{\(3\)\}\(1\)⟶AD/ARSc\(4\)⟶SITSc\(5\)\.\\displaystyle\\mathrel\{\\overset\{\\mathrm\{AD/AR\}\}\{\\longrightarrow\}\}S\_\{c\}^\{\(4\)\}\\mathrel\{\\overset\{\\mathrm\{SIT\}\}\{\\longrightarrow\}\}S\_\{c\}^\{\(5\)\}\.
The stage stateSc\(t\)S\_\{c\}^\{\(t\)\}records the case seed, role mapping, accumulated artifacts, interaction traces, and memory handle:

Sc\(t\)=\(Dc,Rc\(t\),Oc\(≤t\),Hc\(≤t\),Mc\(t\)\)\.S\_\{c\}^\{\(t\)\}\\mathrel\{\\boldsymbol\{=\}\}\\left\(D\_\{c\},R\_\{c\}^\{\(t\)\},O\_\{c\}^\{\(\\leq t\)\},H\_\{c\}^\{\(\\leq t\)\},M\_\{c\}^\{\(t\)\}\\right\)\.\(2\)For each agentaaat stagett, the role\-specific interface is

Ia,c\(t\)=\(Va,c\(t\),Φa\(t\),Σa\(t\),𝒰a\(t\)\)\.I\_\{a,c\}^\{\(t\)\}\\mathrel\{\\boldsymbol\{=\}\}\\left\(V\_\{a,c\}^\{\(t\)\},\\Phi\_\{a\}^\{\(t\)\},\\Sigma\_\{a\}^\{\(t\)\},\\mathcal\{U\}\_\{a\}^\{\(t\)\}\\right\)\.\(3\)Here,Va,c\(t\)V\_\{a,c\}^\{\(t\)\}is the role\-visible state derived fromSc\(t−1\)S\_\{c\}^\{\(t\-1\)\}andDcD\_\{c\},Φa\(t\)\\Phi\_\{a\}^\{\(t\)\}is the stage procedural template,Σa\(t\)\\Sigma\_\{a\}^\{\(t\)\}is the Skill/Tool support entry from Section[3\.2](https://arxiv.org/html/2606.18728#S3.SS2), and𝒰a\(t\)\\mathcal\{U\}\_\{a\}^\{\(t\)\}is the permitted action set\.

### 2\.3Role and Persona Initialization

LegalWorldinstantiates three agent types—lawyers\{al​p,al​d\}\\\{a\_\{lp\},a\_\{ld\}\\\},clients\{ap,ad\}\\\{a\_\{p\},a\_\{d\}\\\}, andjudges\{aj​1,aj​2\}\\\{a\_\{j1\},a\_\{j2\}\\\}—each constructed from a role profile, stage\-specific visibility rules, permitted action types, and a Skill/Tool boundary exposed throughIa,c\(t\)I\_\{a,c\}^\{\(t\)\}\. One lawyer serves as the target agenta∗a^\{\\ast\}under evaluation; the other supplies adversarial counterpart behavior\. Clients carry party\-side narratives under the persona conditions defined below\. Judges are stage\-bound, do not write persistent memory, and produce judgment artifacts at FIT and SIT only\. Appendix[A](https://arxiv.org/html/2606.18728#A1)lists role profiles, visible\-state rules, and permitted actions for all three agent types\.

#### Legal Client Persona Framework \(LCPF\)\.

Prior legal\-agent and social\-agent environments often rely on broad, general\-purpose persona traits\(Jia et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib12); Zhou et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib35)\)\. We find these too coarse for ordinary litigants, who differ less in broad personality than in how they understand legal procedure, disclose facts, tolerate procedural pressure, and organize case narratives\. Inspired by PatientSim’s domain\-specific persona design\(Kyung et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib14)\), LCPF defines four legal\-scene dimensions—Legal Literacy, Information Disclosure Willingness, Emotional Stability, and Narrative Proficiency—each at high, medium, or low\. Their combinations shape disclosure, question\-asking, risk reaction, and evidence narration in the simulation \(Appendix[A\.4](https://arxiv.org/html/2606.18728#A1.SS4)\)\.

### 2\.4Stage Construction Protocol

All five life\-cycle stages share one construction pattern: the environment readsSc\(t−1\)S\_\{c\}^\{\(t\-1\)\}, assigns roles viaRc\(t\)R\_\{c\}^\{\(t\)\}, exposes interfaceIa,c\(t\)I\_\{a,c\}^\{\(t\)\}to each agent, records the dialogue traceHc\(t\)H\_\{c\}^\{\(t\)\}and legal artifactOc\(t\)O\_\{c\}^\{\(t\)\}, and appends them toSc\(t\)S\_\{c\}^\{\(t\)\}through a transition function\. The concrete scenarios are as follows\.Legal Consultation \(LC\)builds the initial client\-lawyer interaction from persona\-conditioned facts and party questions, producing consultation records and lawyer advice\. At the pre\-trial drafting stage,Complaint Drafting \(CD\)is used when the target lawyer represents the plaintiff, whileDefense Drafting \(DD\)is used for the defendant; both collect party facts, claims or defenses, and evidence, then generate first\-instance pleading artifacts\.First\-Instance Trial \(FIT\)brings both parties, both lawyers, and the first\-instance judge into a structured trial that produces a transcript and first\-instance judgment\.

After FIT,Appeal Determination \(AD\-Det\)is an environment transition rather than an agent\-driven stage: it reads the appeal fields inDcD\_\{c\}and remaps the original plaintiff/defendant sides into appellant/appellee roles\. The pre\-appellate drafting stage then usesAppeal Drafting \(AD\)for the appellant side orAppeal Response \(AR\)for the appellee side, generating appellate pleadings and drafting traces from the first\-instance judgment, appeal requests, and new evidence when available\.Second\-Instance Trial \(SIT\)follows the structured trial procedure with appellate role titles and produces the final judgmentJfinal=Oc\(5\)J\_\{\\mathrm\{final\}\}\\mathrel\{\\boldsymbol\{=\}\}O\_\{c\}^\{\(5\)\}\. CD/DD and AD/AR are role\-conditional: only the sub\-scenario triggered bya∗a^\{\\ast\}’s procedural side is executed and scored\. FIT and SIT share the trial procedure in Appendix Algorithm[1](https://arxiv.org/html/2606.18728#alg1), with role titles adapted to the appellate context\.

## 3Life\-Cycle Environment Infrastructure

Section 2 defines the life\-cycle state chainSc\(t\)S\_\{c\}^\{\(t\)\}and the stage interfaceIa,c\(t\)I\_\{a,c\}^\{\(t\)\}\. To make this chain runnable over a long simulation,LegalWorldprovides two runtime components: the memory handleMc\(t\)M\_\{c\}^\{\(t\)\}and the Skill/Tool support entryΣa\(t\)\\Sigma\_\{a\}^\{\(t\)\}\.

### 3\.1Life\-Cycle Environment Memory Infrastructure

Each case inLegalWorldis accompanied by structured memories for participating clients and lawyers\(Packer et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib21); Zhang et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib32)\)\. For a memory\-maintaining agentaa, the agent\-level memory handleMa,c\(t\)M\_\{a,c\}^\{\(t\)\}separatesin\-scenario local memoryLa,c\(t\)L\_\{a,c\}^\{\(t\)\}fromglobal case memoryGa,c\(t\)G\_\{a,c\}^\{\(t\)\}\. Local memory is the dialogue record exposed back to agents inside a single scenario—the portion ofHc\(t\)H\_\{c\}^\{\(t\)\}that preserves turn\-level continuity\. It does not consolidate dialogue into durable facts; that structured consolidation is handled by global memory at stage end\. Global case memory stores information that should persist across stages within the same case: facts, evidence status, claims and defenses, procedural progress, client goals, and confirmed litigation positions\. The case\-level handleMc\(t\)M\_\{c\}^\{\(t\)\}aggregates the agent\-level handles for𝒜mem,c\(t\)\\mathcal\{A\}\_\{\\mathrm\{mem\},c\}^\{\(t\)\}, the clients and lawyers with memory\-writing responsibility\. Judge agents do not write persistent memory because they are instantiated as stage\-specific roles\. At the end of each stage, participating memory\-maintaining agents update relevant fields via

Mc\(t\)=fmem​\(Mc\(t−1\),Hc\(t\),Oc\(t\),Rc\(t\)\)\.M\_\{c\}^\{\(t\)\}\\mathrel\{\\boldsymbol\{=\}\}f\_\{\\mathrm\{mem\}\}\\left\(M\_\{c\}^\{\(t\-1\)\},H\_\{c\}^\{\(t\)\},O\_\{c\}^\{\(t\)\},R\_\{c\}^\{\(t\)\}\\right\)\.\(4\)wherefmemf\_\{\\mathrm\{mem\}\}is implemented through bounded memory\-writing Tools that support two field\-level operations:revise\(correct/replace an existing field\) andexpand\(append newly acquired case information\)\. The lawyer memory functions as a dynamic professional case record \(factual main line, evidence ledger, dispute focuses, client communication profile, confirmed positions\), while the client memory stores party\-side narrative, perceived procedural progress, litigation goals, and bottom line\. This separation letsLegalWorldmodel the gap between professional legal cognition and ordinary party cognition while keeping both consistent across the litigation life cycle\.

### 3\.2Procedural Skill and Tool Support

The Skill/Tool layer provides stage\-specific procedural support for agents\(Schick et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib25); Qin et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib23); Wang et al\.,[2024b](https://arxiv.org/html/2606.18728#bib.bib28)\)\. In the stage interface,Σa\(t\)\\Sigma\_\{a\}^\{\(t\)\}bundles visibleSkills𝒦a\(t\)\\mathcal\{K\}\_\{a\}^\{\(t\)\}with executableTools𝒯a\(t\)\\mathcal\{T\}\_\{a\}^\{\(t\)\}: Skills specify steps, constraints, and outputs, while Tools handle memory, retrieval, artifacts, export, and citation checks\. Stage gating withVa,c\(t\)V\_\{a,c\}^\{\(t\)\}and𝒰a\(t\)\\mathcal\{U\}\_\{a\}^\{\(t\)\}prevents hidden, ground\-truth, or post\-stage leakage; details appear in Appendices[D\.5](https://arxiv.org/html/2606.18728#A4.SS5)–[D\.6](https://arxiv.org/html/2606.18728#A4.SS6)\.

TargetProcedural /StanceCoherence /Distinct\.HumanAvg\.LLMAvg\.Mean Diff\.\(H–L\)Within±\\pm1 \(%\)Stage AuthenticityLC8\.919\.008\.957\.84\+1\.1152\.60CD/DD8\.858\.958\.908\.20\+0\.7063\.92FIT8\.948\.998\.967\.88\+1\.0956\.19AD/AR8\.928\.998\.968\.18\+0\.7863\.02SIT8\.999\.049\.017\.90\+1\.1248\.44Overall8\.928\.998\.968\.00\+0\.9656\.85Role ConsistencyClient9\.098\.848\.967\.73\+1\.2356\.70Lawyer9\.079\.019\.049\.19\-0\.1592\.78Judge8\.918\.968\.939\.48\-0\.5581\.44Overall9\.028\.938\.988\.80\+0\.1876\.98Table 1:Human–LLM agreement validation forLegalWorld\. The first two numeric columns are human\-average rubric sub\-dimensions, not separate annotators: procedural compliance/process coherence for Stage Authenticity, and stance authenticity/role distinguishability for Role Consistency\. Mean Diff\. is Human minus LLM; Within±\\pm1 is the share of aligned metric pairs within one point\. Bold and numeric underlining mark best/second\-best non\-overall results within each group; underlined Overall rows report group aggregates\.

## 4Experiments

### 4\.1Experimental Setup

All main\-paper experiments run on the cause\-balancedLightsplit defined in Section[2\.1](https://arxiv.org/html/2606.18728#S2.SS1), which keeps the per\-case simulation cost tractable while preserving cause coverage\. LLM\-as\-Judge evaluations use Claude\-Sonnet\-4\.6\(Anthropic,[2026](https://arxiv.org/html/2606.18728#bib.bib1)\), while non\-evaluated lawyer agents and other environment agents use Qwen3\.5\-Plus\.

Experiments cover two main components: environment reliability—stage authenticity and role consistency \(§[4\.2](https://arxiv.org/html/2606.18728#S4.SS2)\) together with judicial output alignment \(§[4\.3](https://arxiv.org/html/2606.18728#S4.SS3)\), with cross\-stage causal dependence reported in Appendix[E\.2](https://arxiv.org/html/2606.18728#A5.SS2); and cross\-model lawyer\-backbone benchmarking across the litigation life cycle \(§[4\.5](https://arxiv.org/html/2606.18728#S4.SS5)\)\. We then add a final exploratory probe showing that long\-horizon interaction traces produced by a life\-cycle environment can serve as training signals for improving legal\-agent capabilities \(§[4\.6](https://arxiv.org/html/2606.18728#S4.SS6)\)\.

### 4\.2Environment Reliability Validation

We validateLegalWorldas a reliable foundation for downstream agent evaluation along two main dimensions—stage authenticity and role consistency—complemented by judicial output alignment \(§[4\.3](https://arxiv.org/html/2606.18728#S4.SS3)\) and cross\-stage causal dependence \(Appendix[E\.2](https://arxiv.org/html/2606.18728#A5.SS2)\)\. For both main dimensions, we further compare LLM\-as\-Judge results with 18,992 individual ratings from 217 legal\-background human evaluators\.

#### Stage Authenticity\.

Stage authenticity tests whether simulated trajectories follow legal procedure\. Each stage dialogue is scored on a 10\-point scale across procedural compliance and process coherence, covering Civil Procedure Law alignment, procedural\-step integrity, information transfer, turn\-taking, role boundaries, and professional expression\. The evaluation covers all stages to obtain stable average score estimates for each stage\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/figures/human_llm_difference_distribution.png)Figure 4:Human minus Claude\-Sonnet\-4\.6 LLM\-as\-Judge score differences across aligned metric\-level pairs\. Positive values indicate higher human scores; mean difference is\+0\.67\+0\.67,σ=0\.98\\sigma=0\.98, and 64\.4% fall within one point \(\|Δ\|≤1\.0\|\\Delta\|\\leq 1\.0\)\.
#### Role Consistency\.

Role consistency checks whether agents maintain coherent behavior across the litigation life cycle\. Role behavior is scored on authenticity of stance and motivation, which checks whether behavior conforms to each role’s interest position, and inter\-role distinguishability, which checks whether clients, lawyers, and judges remain clearly separable\.

Table[1](https://arxiv.org/html/2606.18728#S3.T1)and Figure[4](https://arxiv.org/html/2606.18728#S4.F4)provide the main human\-validation evidence\. Across all five stages and three roles, 217 legal\-background evaluators rateLegalWorldat 8\.96/10 on stage authenticity and 8\.98/10 on role consistency, indicating that the trajectories are perceived as procedurally faithful and role\-coherent\. Claude\-Sonnet\-4\.6 applies the same rubric more conservatively \(\+0\.96\+0\.96lower mean on stage authenticity\), but still scores all stages in the 7\.7–9\.5 range, suggesting that the gap mainly reflects rater strictness rather than disagreement about trajectory validity\. Role consistency shows tighter agreement \(within±1\\pm 1in 77% of pairs\), with the main residual mismatch on the client role, where humans tolerate more legally informed client speech\. We therefore use LLM\-as\-Judge as the primary scorer in §[4\.5](https://arxiv.org/html/2606.18728#S4.SS5), treating human ratings as evidence that its scores are conservative lower bounds on environment quality\.

#### Evaluation Reason Analysis\.

Human ratings are overwhelmingly high: 73% of all 18,992 ratings are≥9\\geq 9and only 4\.5% are≤6\\leq 6\(Figure[5](https://arxiv.org/html/2606.18728#S4.F5), top\)\. We analyze the free\-text justifications as a reason\-composition check rather than a contrastive error analysis\. Among the informative coded themes in the high\-score band, the most frequent reasons point to process coherence, procedural completeness, and role authenticity, indicating that evaluators recognized concrete procedural quality in the trajectories\. The rare low\-score band is summarized separately to identify localized refinement points, with some comments mentioning missing procedural links, repetitive turns, AI\-flavored phrasing, or weak legal grounding in particular moments\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/x1.png)Figure 5:Human rating reason analysis from the 18,992 free\-text justifications\.*Top*: the overall score distribution—73% of ratings are≥9\\geq 9and only 4\.5% are≤6\\leq 6\.*Bottom*: selected informative reason themes summarized separately for the high\-score band \(≥9\\geq 9\) and the rare low\-score band \(≤6\\leq 6\); each bar reports a theme’s share within its own score band after assigning each justification one quality theme and omitting the uninformative*other*class\. High\-score reasons mainly reflect process coherence, procedural completeness, and role authenticity, while rare low\-score comments indicate localized refinement points\.

### 4\.3Judicial Output Alignment

Beyond process authenticity, we check whether the judgments produced insideLegalWorldmatch real judicial outputs\. A rule\-based metric compares each generated first\- and second\-instance judgment against its real counterpart on six structured elements—verdict, reasoning, legal reference, appeal action, entity, and structure—using set\-overlap F1; Appendix[C\.4](https://arxiv.org/html/2606.18728#A3.SS4)gives the dimension definitions and scoring formula\. Table[2](https://arxiv.org/html/2606.18728#S4.T2)reports the alignment on a 0–10 scale\. Generated judgments align closely with real ones on structure, entity, and factual reasoning, while the largest residual gap is on legal\-reference precision, where models tend to cite the correct provision family but not always the exact article\. This level of alignment indicates that the environment’s judicial outputs are faithful enough to serve as references for downstream evaluation, further supporting the accuracy ofLegalWorldas a civil\-litigation simulation environment\.

Judicial Output AlignmentJudgment elementFITSITOverallVerdict8\.177\.787\.98Reasoning8\.228\.698\.45Legal reference6\.767\.297\.02Appeal action–7\.587\.58Entity8\.998\.788\.89Structure9\.709\.029\.36Overall8\.378\.198\.28Table 2:Rule\-based output\-alignment validation for generated judicial judgments against their real counterparts, scored 0–10 over six structured judgment elements\. Columns are first\-instance \(FIT\), second\-instance \(SIT\), and their combination \(Overall\); the underlined bottom row averages across elements\. Dimension definitions and the scoring formula are in Appendix[C\.4](https://arxiv.org/html/2606.18728#A3.SS4)\.Legal ConsultationDocument DraftingCourtroom AdvocacyModelIssueSpottingPartyIdentificationClaimConstructionFactMarshallingEvidenceMarshallingPositionConsistencyEvidentiaryAdvocacyLegalReasoningKimi\-K2\.50\.670\.80/0\.850\.69/0\.710\.68/0\.740\.74/ 0\.520\.63/0\.650\.55/0\.590\.56/0\.58Qwen3\.5\-Plus0\.620\.71/0\.850\.72/0\.720\.66 / 0\.700\.69 /0\.700\.62/0\.640\.53 / 0\.540\.53 /0\.58GPT\-5\.20\.630\.53 /0\.830\.60 / 0\.700\.60 / 0\.680\.71 / 0\.630\.62/0\.640\.61/0\.550\.57/0\.57DeepSeek\-V4\-Flash0\.620\.64 /0\.830\.65 / 0\.650\.67/ 0\.690\.69 / 0\.570\.60 / 0\.630\.52 / 0\.540\.52 /0\.57GLM\-4\.70\.540\.56 / 0\.820\.66 / 0\.660\.67/ 0\.700\.72/0\.710\.61 / 0\.610\.53 / 0\.520\.48 / 0\.51Qwen3\.5\-Flash0\.560\.46 / 0\.820\.56 / 0\.690\.62 /0\.720\.50 / 0\.530\.53 / 0\.550\.46 / 0\.410\.45 / 0\.45

Table 3:Cross\-model task\-capability profile on LongJud\-Bench\. Rows are lawyer backbones; columns are eight legal capabilities grouped by litigation phase\. Except for the consultation capability, each cell reports first\-instance / second\-instance scores in\[0,1\]\[0,1\]: for*document drafting*these come from the first\-instance \(CD/DD\) and second\-instance \(AD/AR\) pleadings, and for*courtroom advocacy*from the first\- and second\-instance trials\.Boldandunderlinemark the best and second\-best backbone on each side independently\.![Refer to caption](https://arxiv.org/html/2606.18728v1/x2.png)Figure 6:Capability heatmap of the six backbones \(consultation uses its single score; paired drafting and advocacy cells use the mean of the first\-/second\-instance scores in Table[3](https://arxiv.org/html/2606.18728#S4.T3); darker is higher\)\. The courtroom\-advocacy rows stay lighter than the drafting rows across all backbones, marking advocacy as the shared frontier\.
### 4\.4LongJud\-Bench Evaluation Framework

Building on the validated environment, LongJud\-Bench scores the target lawyer agenta∗a^\{\\ast\}over the complete litigation process through eight legal capabilities grouped by litigation phase:*legal consultation*\(issue spotting\);*document drafting*\(party identification, claim construction, fact marshalling, and evidence marshalling\); and*courtroom advocacy*\(position consistency, evidentiary advocacy, and legal reasoning\)\. This capability\-level view aligns evaluation with the professional functions a litigation lawyer must perform across the full life cycle\.

Each capability is evaluated with either rule\-based matching or LLM\-as\-Judge scoring\(Zheng et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib33)\), depending on the evidence type\. Consultation is scored question\-by\-question against reference answers grounded in case facts and applicable statutes\. Drafting capabilities combine exact match for structured party slots with 0–10 semantic scoring for claims or defenses, facts, and evidence in the first\- and second\-instance pleadings\. Courtroom\-advocacy capabilities apply multi\-dimensional 0–10 scoring toa∗a^\{\\ast\}’s trial statements, covering consistency with the pleaded position, fact\-and\-evidence use, and legal reasoning\. Every item is normalized to\[0,1\]\[0,1\]; the per\-capability formulas and the full scoring\-item\-to\-capability mapping are given in Appendix[C](https://arxiv.org/html/2606.18728#A3)\.

### 4\.5Cross\-Model Capability Profile

We instantiate each backbone as the target lawyer agent inLegalWorldwhile fixing the surrounding roles to Qwen3\.5\-Plus, and read out the eight capabilities of Table[3](https://arxiv.org/html/2606.18728#S4.T3)across the first\- and second\-instance sides of the life cycle\. Three patterns stand out\.

#### No backbone wins everywhere\.

Models that look comparable in aggregate diverge sharply once the trajectory is decomposed by capability\. Kimi\-K2\.5 is strongest on the drafting capabilities and on keeping courtroom advocacy aligned with the pleaded position, whereas GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2606.18728#bib.bib20)\)—weaker at the formal drafting slots—leads precisely where it matters most in court, on first\-instance evidentiary advocacy and legal reasoning; Qwen3\.5\-Plus is in turn the strongest claim constructor\. These trade\-offs are invisible to any single aggregate score and are exactly what a capability profile is meant to surface\.

#### Courtroom advocacy is the frontier\.

Across all backbones the three advocacy capabilities—position consistency, evidentiary advocacy, and legal reasoning—sit well below the drafting capabilities \(Figure[6](https://arxiv.org/html/2606.18728#S4.F6)\), and the gap widens for the weaker models\. Multi\-turn courtroom advocacy, where the lawyer must integrate accumulated memory, opposing statements, and judge prompts on the fly, remains the hardest competency for current models and the most discriminative target for future legal\-agent training\.

#### Formal sub\-skills saturate while reasoning discriminates\.

Structural competencies such as party identification are near\-saturated on the second\-instance side, where the first\-instance judgment scaffolds the document, so they barely separate backbones; the discriminative signal concentrates in evidentiary advocacy and legal reasoning\. The first\-to\-second\-instance shift is itself informative—most capabilities improve once the first\-instance judgment is available as scaffolding, but evidence marshalling can instead fall on appeal, where marshalling new evidence is harder than reusing an established record\.

### 4\.6Trajectory Reflection as an Exploratory Training Signal

Beyond benchmarking,LegalWorldproduces complete procedural traces—dialogues, drafted artifacts, judgments, memory updates, and evaluation signals—that can be reused as grounded experience for training later agents\. We do not treat reflection as part of the core environment framework; instead, we run a lightweight probe called*Reflective Legal Skill*\(RLS\) to test whether the generated long\-horizon data contains reusable legal\-practice signal\.

RLS is produced in two steps\. First, after a case finishes, we build a post\-case reflection context from the visible case materials, lawyer actions, generated artifacts, memory updates, and evaluation signals, and ask the lawyer agent to summarize the completed trajectory into a candidate reusable rule\. Second, the candidate is checked against existing cause\-matched Skills for overlap and redundancy, and is retained only if it specifies a reusable trigger condition, role or stage scope, procedural correction principle, and expected\-output constraint\. The retained rule becomes an optional cause\-matched Skill note\. In later same\-cause cases, the same baseline lawyer agent receives the note as an additional Skill; the case seed, Tools, and in\-case memory mechanism remain unchanged\.

Table[4](https://arxiv.org/html/2606.18728#S4.T4)reports the result on the three most frequent civil causes of action in our dataset: post\-divorce property disputes, private lending, and labor disputes\. Adding these simple reflective Skill notes raises the average LongJud\-Bench overall score from 61\.56 to 65\.29 \(\+3\.73 points\)\. Gains appear on all three causes, with larger improvements on reflected cases \(\+4\.20 on average\) and still positive transfer to held\-out same\-cause cases not used to write the Skill \(\+2\.34 on average\)\. This exploratory result suggests that life\-cycle interaction traces are useful not only for evaluation, but also as procedurally grounded data for improving legal agents\.

ScoreDiffCauseBase\.RLSOverallRefl\.Held\-outPost\-divorceproperty60\.0863\.76\+3\.69\+3\.81\+3\.29Private lending58\.5661\.84\+3\.28\+3\.63\+2\.32Labor dispute66\.2570\.47\+4\.22\+5\.24\+1\.42Average61\.5665\.29\+3\.73\+4\.20\+2\.34Table 4:Exploratory RLS gains across high\-frequency civil causes\. Scores are LongJud\-Bench overall scores on a 0–100 scale; Base\. is the same lawyer agent without reflective Skills\. Refl\. measures cases used to produce the reflective note, while Held\-out measures same\-cause cases not used for reflection\.

## 5Related Work

#### Legal simulation and generative agents\.

LLM\-based social simulation elicits coherent role behavior and long\-horizon interaction\(Park et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib22); Wang et al\.,[2024a](https://arxiv.org/html/2606.18728#bib.bib27); Li et al\.,[2025a](https://arxiv.org/html/2606.18728#bib.bib15)\), with extensions to professional workflows\(Li et al\.,[2025b](https://arxiv.org/html/2606.18728#bib.bib17); Jin et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib13)\)and persona\-driven diversification\(Tseng et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib26)\)\. Existing legal simulators remain narrower than the full litigation process: AgentCourt and AgentsCourt model adversarial trial procedures\(Chen et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib4); He et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib11)\), Ready Jurist One covers multiple scenarios but initializes each from shared case ground truth\(Jia et al\.,[2026](https://arxiv.org/html/2606.18728#bib.bib12)\), and Law in Silico studies socio\-legal dynamics through group simulation\(Wang et al\.,[2025](https://arxiv.org/html/2606.18728#bib.bib29)\)\.LegalWorlddiffers by chaining consultation, drafting, and both trial instances into a single life cycle, so that factual carryover and error amplification become observable within one case\.

#### Legal capability benchmarks\.

Existing legal AI benchmarks mostly measure local capabilities such as statute retrieval, document generation, single\-case reasoning, and outcome prediction\(Fei et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib8); Guha et al\.,[2023](https://arxiv.org/html/2606.18728#bib.bib10); Xiao et al\.,[2018](https://arxiv.org/html/2606.18728#bib.bib30); Zhong et al\.,[2018](https://arxiv.org/html/2606.18728#bib.bib34); Li et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib16); Deng et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib7); Gao et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib9)\)\. Long\-context benchmarks test single\-pass input handling\(Bai et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib2),[2025](https://arxiv.org/html/2606.18728#bib.bib3)\), while agent\-memory work focuses on persistence across long conversations\(Maharana et al\.,[2024](https://arxiv.org/html/2606.18728#bib.bib19)\)\. LongJud\-Bench instead evaluates consultation, drafting, trial advocacy, appeal, and second\-instance trial as connected stages of one case, measuring local quality together with cross\-stage error propagation\.

## 6Conclusion

We presentedLegalWorld, a life\-cycle interactive environment for Chinese civil litigation grounded in 75,309 paired civil judgments and equipped with reusable infrastructure for long\-horizon agents, which turns each dispute into a connected trajectory across consultation, drafting, and two trial instances\. Building on this foundation, we constructedLongJud\-Benchto evaluate legal\-agent capability across the full procedural life cycle\.

Two implications follow\. First, trajectory\-level evaluation exposes cross\-stage causal dependence that single\-stage benchmarks cannot detect, framing legal\-agent capability as a trajectory\-level property rather than a collection of isolated subtask scores\. Second, beyond evaluation, the life\-cycle interaction traces produced byLegalWorld—legal artifacts, multi\-role dialogues, and cross\-stage memory updates—are themselves procedurally grounded data for agent improvement: our lightweight trajectory\-reflection probe shows that even simple post\-case reflection can improve later same\-cause legal\-agent behavior\.

## Limitations

This work focuses on Chinese civil litigation and paired first\-/second\-instance judgment data, so the current environment does not yet cover criminal, administrative, enforcement, or retrial procedures\. The simulation also simplifies exceptional procedural events and relies on benchmark scoring rather than real legal service outcomes\. Future work should extend the life\-cycle formulation to other procedures, incorporate branching events such as jurisdictional objections, preservation applications, counterclaims, expert opinions, and settlement failures, and validate human\-agent collaboration with legal professionals\.

## Ethics Statement

All judgment data used in this work come from public legal sources and are processed for research and evaluation\. Because public judgments may still contain party names, case numbers, addresses, organization names, or other legally relevant identifiers, we remove or anonymize direct personal identifiers when they are not required for benchmark construction or reproducible evaluation\.LegalWorldand LongJud\-Bench are intended for legal AI simulation, benchmarking, and training support, not for replacing lawyers or judges or making real legal decisions\. Model outputs may contain legal errors or unsupported reasoning, so any deployment\-facing use should include professional review, privacy protection, and clear disclosure that the system is an AI research tool\.

The human\-rating study used public legal\-case materials and did not collect personally identifiable information from evaluators\. The 217 legal\-background evaluators were informed of the research purpose, participated knowingly and voluntarily, and were told that their 18,992 ratings would be analyzed only in aggregate\. The study did not intervene in real legal disputes or collect private party data beyond information already available from public legal sources\.

## References

- Anthropic \(2026\)Anthropic\. 2026\.[Claude sonnet 4\.6 system card](https://anthropic.com/claude-sonnet-4-6-system-card)\.System card\.
- Bai et al\. \(2024\)Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li\. 2024\.[LongBench: A bilingual, multitask benchmark for long context understanding](https://doi.org/10.18653/v1/2024.acl-long.172)\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 3119–3137\. Association for Computational Linguistics\.
- Bai et al\. \(2025\)Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li\. 2025\.[LongBench v2: Towards deeper understanding and reasoning on realistic long\-context multitasks](https://doi.org/10.18653/v1/2025.acl-long.183)\.In*Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 3639–3664, Vienna, Austria\. Association for Computational Linguistics\.
- Chen et al\. \(2025\)Guhong Chen, Liyang Fan, Zihan Gong, Nan Xie, Zixuan Li, Ziqiang Liu, Chengming Li, Qiang Qu, Hamid Alinejad\-Rokny, Shiwen Ni, and Min Yang\. 2025\.[AgentCourt: Simulating court with adversarial evolvable lawyer agents](https://doi.org/10.18653/v1/2025.findings-acl.304)\.In*Findings of the Association for Computational Linguistics: ACL 2025*, pages 5850–5865, Vienna, Austria\. Association for Computational Linguistics\.
- Cui et al\. \(2024\)Jiaxi Cui, Munan Ning, Zongjian Li, Bohua Chen, Yang Yan, Hao Li, Bin Ling, Yonghong Tian, and Li Yuan\. 2024\.[Chatlaw: A multi\-agent collaborative legal assistant with knowledge graph enhanced mixture\-of\-experts large language model](https://arxiv.org/abs/2306.16092)\.*Preprint*, arXiv:2306\.16092\.
- DeepSeek\-AI \(2025\)DeepSeek\-AI\. 2025\.[Deepseek\-v3\.2: Pushing the frontier of open large language models](https://arxiv.org/abs/2512.02556)\.*arXiv preprint arXiv:2512\.02556*\.
- Deng et al\. \(2024\)Chenlong Deng, Kelong Mao, and Zhicheng Dou\. 2024\.[Learning interpretable legal case retrieval via knowledge\-guided case reformulation](https://doi.org/10.18653/v1/2024.emnlp-main.73)\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pages 1253–1265, Miami, Florida, USA\. Association for Computational Linguistics\.
- Fei et al\. \(2024\)Zhiwei Fei, Xiaoyu Shen, Dawei Zhu, Fengzhe Zhou, Zhuo Han, Alan Huang, Songyang Zhang, Kai Chen, Zhixin Yin, Zongwen Shen, Jidong Ge, and Vincent Ng\. 2024\.[LawBench: Benchmarking legal knowledge of large language models](https://doi.org/10.18653/v1/2024.emnlp-main.452)\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pages 7933–7962, Miami, Florida, USA\. Association for Computational Linguistics\.
- Gao et al\. \(2024\)Cheng Gao, Chaojun Xiao, Zhenghao Liu, Huimin Chen, Zhiyuan Liu, and Maosong Sun\. 2024\.[Enhancing legal case retrieval via scaling high\-quality synthetic query\-candidate pairs](https://doi.org/10.18653/v1/2024.emnlp-main.402)\.In*Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing*, pages 7086–7100, Miami, Florida, USA\. Association for Computational Linguistics\.
- Guha et al\. \(2023\)Neel Guha, Julian Nyarko, Daniel E\. Ho, Christopher Ré, Adam Chilton, Aditya Narayana, Alex Chohlas\-Wood, Austin Peters, Brandon Waldon, Daniel N\. Rockmore, Diego Zambrano, Dmitry Talisman, Enam Hoque, Faiz Surani, Frank Fagan, Galit Sarfaty, Gregory M\. Dickinson, Haggai Porat, Jason Hegland, and 21 others\. 2023\.[LegalBench: A collaboratively built benchmark for measuring legal reasoning in large language models](https://openreview.net/forum?id=WqSPQFxFRC)\.In*Advances in Neural Information Processing Systems 36 \(NeurIPS 2023\) Datasets and Benchmarks Track*\.
- He et al\. \(2024\)Zhitao He, Pengfei Cao, Chenhao Wang, Zhuoran Jin, Yubo Chen, Jiexin Xu, Huaijun Li, Kang Liu, and Jun Zhao\. 2024\.[AgentsCourt: Building judicial decision\-making agents with court debate simulation and legal knowledge augmentation](https://doi.org/10.18653/v1/2024.findings-emnlp.549)\.In*Findings of the Association for Computational Linguistics: EMNLP 2024*, pages 9399–9416, Miami, Florida, USA\. Association for Computational Linguistics\.
- Jia et al\. \(2026\)Zheng Jia, Shengbin Yue, Wei Chen, Siyuan Wang, Yidong Liu, Zejun Li, Yun Song, and Zhongyu Wei\. 2026\.[Ready jurist one: Benchmarking language agents for legal intelligence in dynamic environments](https://arxiv.org/abs/2507.04037)\.*Preprint*, arXiv:2507\.04037\.
- Jin et al\. \(2025\)Sheng Jin, Haoming Wang, Zhiqi Gao, Yongbo Yang, Bao Chunjia, and Chengliang Wang\. 2025\.[Evolution in simulation: AI\-agent school with dual memory for high\-fidelity educational dynamics](https://doi.org/10.48550/arXiv.2510.11290)\.*Preprint*, arxiv:2510\.11290 \[cs\]\.
- Kyung et al\. \(2025\)Daeun Kyung, Hyunseung Chung, Seongsu Bae, Jiho Kim, Jae Ho Sohn, Taerim Kim, Soo Kyung Kim, and Edward Choi\. 2025\.[PatientSim: A persona\-driven simulator for realistic doctor\-patient interactions](https://openreview.net/forum?id=1THAjdP4QJ)\.In*Advances in Neural Information Processing Systems 39 \(NeurIPS 2025\) Datasets and Benchmarks Track*\.
- Li et al\. \(2025a\)Chance Jiajie Li, Jiayi Wu, Zhenze Mo, Ao Qu, Yuhan Tang, Kaiya Ivy Zhao, Yulu Gan, Jie Fan, Jiangbo Yu, Jinhua Zhao, Paul Liang, Luis Alonso, and Kent Larson\. 2025a\.[Simulating society requires simulating thought](https://doi.org/10.48550/arXiv.2506.06958)\.*Preprint*, arxiv:2506\.06958 \[cs\]\.
- Li et al\. \(2024\)Haitao Li, You Chen, Qingyao Ai, Yueyue Wu, Ruizhe Zhang, and Yiqun Liu\. 2024\.[LexEval: A comprehensive Chinese legal benchmark for evaluating large language models](https://doi.org/10.52202/079017-0790)\.In*Advances in Neural Information Processing Systems 38 \(NeurIPS 2024\) Datasets and Benchmarks Track*\.
- Li et al\. \(2025b\)Junkai Li, Yunghwei Lai, Weitao Li, Jingyi Ren, Meng Zhang, Xinhui Kang, Siyu Wang, Peng Li, Ya\-Qin Zhang, Weizhi Ma, and Yang Liu\. 2025b\.[Agent hospital: A simulacrum of hospital with evolvable medical agents](https://doi.org/10.48550/arXiv.2405.02957)\.*Preprint*, arxiv:2405\.02957 \[cs\]\.
- Liu et al\. \(2026\)Shuang Liu, Ruijia Zhang, Ruoyun Ma, Yujia Deng, Lanyi Zhu, Jiayu Li, Zelong Li, Zhibin Shen, and Mengnan Du\. 2026\.[LLM agents in law: Taxonomy, applications, and challenges](https://doi.org/10.48550/arXiv.2601.06216)\.*Preprint*, arxiv:2601\.06216 \[cs\]\.
- Maharana et al\. \(2024\)Adyasha Maharana, Dong\-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang\. 2024\.[Evaluating very long\-term conversational memory of LLM agents](https://aclanthology.org/2024.acl-long.747/)\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pages 13851–13870\. Association for Computational Linguistics\.
- OpenAI \(2025\)OpenAI\. 2025\.[Update to gpt\-5 system card: Gpt\-5\.2](https://cdn.openai.com/pdf/3a4153c8-c748-4b71-8e31-aecbde944f8d/oai_5_2_system-card.pdf)\.System card update\.
- Packer et al\. \(2024\)Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G\. Patil, Ion Stoica, and Joseph E\. Gonzalez\. 2024\.[MemGPT: Towards LLMs as operating systems](https://arxiv.org/abs/2310.08560)\.*Preprint*, arXiv:2310\.08560\.
- Park et al\. \(2023\)Joon Sung Park, Joseph C\. O’Brien, Carrie J\. Cai, Meredith Ringel Morris, Percy Liang, and Michael S\. Bernstein\. 2023\.[Generative agents: Interactive simulacra of human behavior](https://doi.org/10.1145/3586183.3606763)\.In*Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology \(UIST ’23\)*, New York, NY, USA\. Association for Computing Machinery\.
- Qin et al\. \(2024\)Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, Sihan Zhao, Lauren Hong, Runchu Tian, Ruobing Xie, Jie Zhou, Mark Gerstein, Dahai Li, Zhiyuan Liu, and Maosong Sun\. 2024\.[ToolLLM: Facilitating large language models to master 16000\+ real\-world APIs](https://openreview.net/forum?id=dHng2O0Jjr)\.In*The Twelfth International Conference on Learning Representations \(ICLR\)*\.
- Ranjan and Ma \(2024\)Riya Ranjan and Megan Ma\. 2024\.[Motivations for reframing large language model benchmarking for legal applications](https://neurips.cc/virtual/2024/104203)\.In*Proceedings of the NeurIPS 2024 Workshop on Evaluating Evaluations: Examining Best Practices for Measuring Broader Impacts of Generative AI*\.
- Schick et al\. \(2023\)Timo Schick, Janne Dwivedi\-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom\. 2023\.[Toolformer: Language models can teach themselves to use tools](https://openreview.net/forum?id=Yacmpz84TH)\.In*Advances in Neural Information Processing Systems 36 \(NeurIPS 2023\)*\.
- Tseng et al\. \(2024\)Yu\-Min Tseng, Yu\-Chao Huang, Teng\-Yun Hsiao, Wei\-Lin Chen, Chao\-Wei Huang, Yu Meng, and Yun\-Nung Chen\. 2024\.[Two tales of persona in LLMs: A survey of role\-playing and personalization](https://doi.org/10.18653/v1/2024.findings-emnlp.969)\.In*Findings of the Association for Computational Linguistics: EMNLP 2024*, pages 16612–16631, Miami, Florida, USA\. Association for Computational Linguistics\.
- Wang et al\. \(2024a\)Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Ji\-Rong Wen\. 2024a\.[A survey on large language model based autonomous agents](https://doi.org/10.1007/s11704-024-40231-1)\.*Frontiers of Computer Science*, arXiv:2308\.11432\.
- Wang et al\. \(2024b\)Xingyao Wang, Yangyi Chen, Lifan Yuan, Yizhe Zhang, Yunzhu Li, Hao Peng, and Heng Ji\. 2024b\.[Executable code actions elicit better LLM agents](https://proceedings.mlr.press/v235/wang24h.html)\.In*Proceedings of the 41st International Conference on Machine Learning \(ICML\)*, pages 50208–50232\. PMLR\.
- Wang et al\. \(2025\)Yiding Wang, Yuxuan Chen, Fanxu Meng, Xifan Chen, Xiaolei Yang, and Muhan Zhang\. 2025\.[Law in silico: Simulating legal society with LLM\-based agents](https://doi.org/10.48550/arXiv.2510.24442)\.*Preprint*, arxiv:2510\.24442 \[cs\]\.
- Xiao et al\. \(2018\)Chaojun Xiao, Haoxi Zhong, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Yansong Feng, Xianpei Han, Zhen Hu, Heng Wang, and Jianfeng Xu\. 2018\.[CAIL2018: A large\-scale legal dataset for judgment prediction](https://arxiv.org/abs/1807.02478)\.*Preprint*, arXiv:1807\.02478\.
- Yue et al\. \(2023\)Shengbin Yue, Wei Chen, Siyuan Wang, Bingxuan Li, Chenchen Shen, Shujun Liu, Yuxuan Zhou, Yao Xiao, Song Yun, Xuanjing Huang, and Zhongyu Wei\. 2023\.[DISC\-LawLLM: Fine\-tuning large language models for intelligent legal services](https://arxiv.org/abs/2309.11325)\.*Preprint*, arXiv:2309\.11325\.
- Zhang et al\. \(2026\)Haozhen Zhang, Quanyu Long, Jianzhu Bao, Tao Feng, Weizhi Zhang, Haodong Yue, and Wenya Wang\. 2026\.[MemSkill: Learning and evolving memory skills for self\-evolving agents](https://doi.org/10.48550/arXiv.2602.02474)\.*Preprint*, arxiv:2602\.02474 \[cs\]\.
- Zheng et al\. \(2023\)Lianmin Zheng, Wei\-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P\. Xing, Hao Zhang, Joseph E\. Gonzalez, and Ion Stoica\. 2023\.[Judging LLM\-as\-a\-judge with MT\-bench and chatbot arena](https://openreview.net/forum?id=uccHPGDlao)\.In*Advances in Neural Information Processing Systems 36 \(NeurIPS 2023\) Datasets and Benchmarks Track*\.
- Zhong et al\. \(2018\)Haoxi Zhong, Chaojun Xiao, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Yansong Feng, Xianpei Han, Zhen Hu, Heng Wang, and Jianfeng Xu\. 2018\.[Overview of CAIL2018: Legal judgment prediction competition](https://arxiv.org/abs/1810.05851)\.*Preprint*, arXiv:1810\.05851\.
- Zhou et al\. \(2024\)Xuhui Zhou, Hao Zhu, Leena Mathur, Ruohong Zhang, Haofei Yu, Zhengyang Qi, Louis\-Philippe Morency, Yonatan Bisk, Daniel Fried, Graham Neubig, and Maarten Sap\. 2024\.[SOTOPIA: Interactive evaluation for social intelligence in language agents](https://openreview.net/forum?id=mM7VurbA4r)\.In*The Twelfth International Conference on Learning Representations \(ICLR\)*\.

## Content of Appendix

The appendix is organized into seven parts; each part regroups previously scattered material and adds the supplementary detail referenced from the main text\.

- ARole and Persona Setting Details\(§[A](https://arxiv.org/html/2606.18728#A1)\)\. Role profiles for lawyer, client, and judge agents; visible\-state×\\timesstage×\\timesrole matrix; LCPF dimensions, level definitions, and level\-redistribution policy\.
- BDataset Construction and Additional Statistics\(§[A\.4](https://arxiv.org/html/2606.18728#A1.SS4)\)\. Source, deduplication, and first/second\-instance pairing pipeline; LLM\-based field extraction and quality control; Full/Medium/Light split rules; supplementary distribution statistics\.
- CEvaluation Metrics in Detail \(LongJud\-Bench\)\(§[C](https://arxiv.org/html/2606.18728#A3)\)\. Per\-item scoring formulas, metric definitions, normalization rules, the scoring\-item\-to\-capability mapping, 0–10 rubric anchors, and rule\-based judicial output alignment\.
- DImplementation Details\(§[D](https://arxiv.org/html/2606.18728#A4)\)\. Model versions and inference parameters; memory, Skill, and Tool runtime; anonymized role\-memory examples; evaluation pipeline and parsing failure handling; compute and token cost; full Tool/Skill catalogue and Skill\-card fields\.
- EAdditional Experiment Results\(§[E](https://arxiv.org/html/2606.18728#A5)\)\. LCPF persona validation; cross\-stage causal dependence; and a per\-stage cross\-model view\.
- FHuman Evaluation\(§[F](https://arxiv.org/html/2606.18728#A6)\)\. Evaluator recruitment and background; task design and assignment plan; scoring rubric and protocol; interface screenshot; informed\-consent and data\-use statement; human–LLM agreement breakdown\.
- GPrompt Templates\(§[G](https://arxiv.org/html/2606.18728#A7)\)\. Bilingual prompt\-box figures for the production role prompts, LongJud\-Bench benchmark scoring prompts, persona\-validation scorer prompt, and experimental LLM\-as\-Judge prompts\.

## Appendix ARole and Persona Setting Details

### A\.1Agent Roles and Stage Bindings

Each case is represented both as a complete life\-cycle trajectory and as a set of stage\-level tasks\. The main text gives the compact stage protocol; the details below preserve the role profile, visible\-state rule, and permitted\-action description behind that compressed presentation\.

#### Lawyer agents\.

Lawyer agents are the core professional actors across the full litigation cycle, responsible for case analysis, document drafting, and adversarial advocacy\. During consultation, they analyze case facts and answer legal questions; during document drafting, they collect information through multi\-round dialogue and draft standardized legal documents; during trial, they participate in evidence presentation, cross\-examination, and court debate as attorneys\. The lawyer role is instantiated on both sides of the adversarial case as plaintiff lawyeral​pa\_\{lp\}and defendant lawyeral​da\_\{ld\}\. One of them is the target lawyer agent under evaluationa∗a^\{\\ast\}, while the other serves as the opposing lawyer\. The lawyer interface exposes professional case materials, client communications, prior legal artifacts visible to the current stage, and stage\-specific Skill/Tool entries\.

#### Client agents\.

Client agents represent ordinary litigation parties whose narratives, goals, and procedural understanding shape the case trajectory\. They are instantiated as plaintiff clientapa\_\{p\}and defendant clientada\_\{d\}\. Their interfaces expose party\-side facts, consultation questions, procedural progress, and the legal documents or trial events that an ordinary party would observe\. The Legal Client Persona Framework conditions how the client discloses facts, asks questions, reacts to litigation risk, and narrates evidence\.

#### Judge agents\.

Judge agents provide procedural control and generate judicial outputs at the two trial stages\. They are instantiated as first\-instance judgeaj​1a\_\{j1\}and second\-instance judgeaj​2a\_\{j2\}\. Their interfaces expose the case record and procedural materials available to the corresponding trial stage, along with ordered court\-control actions\. The judge role is separated from lawyer and client roles so that trial procedure, evidentiary questioning, and judgment generation are produced through a distinct procedural interface\.

### A\.2Stage\-Level Procedural Templates

#### Legal Consultation\.

Legal Consultation \(LC\) is the stage where the client describes the dispute and legal concerns, while the target lawyer asks follow\-up questions and provides initial legal analysis before formal litigation artifacts are produced\. It constructs the initial lawyer\-client interaction fromSc\(0\)S\_\{c\}^\{\(0\)\}\. The outputOc\(1\)O\_\{c\}^\{\(1\)\}contains the consultation record and lawyer response, whileHc\(1\)H\_\{c\}^\{\(1\)\}records the full dialogue trace\.

#### Pre\-Trial Document Drafting\.

Pre\-Trial Document Drafting transforms collected facts, claims, defenses, and evidence into the first formal pleading or response document\. Complaint Drafting \(CD\) is triggered when the target lawyer represents the plaintiff; Defense Drafting \(DD\) is triggered when the target lawyer represents the defendant\. The outputOc\(2\)O\_\{c\}^\{\(2\)\}contains the generated complaint or defense documents and the structured drafting record\.

#### First\-Instance Trial\.

First\-Instance Trial \(FIT\) constructs the first trial stage fromSc\(2\)S\_\{c\}^\{\(2\)\}with five participating roles: plaintiff client, defendant client, plaintiff lawyer, defendant lawyer, and first\-instance judge\. The stage covers opening, court investigation, evidence presentation and cross\-examination, judge questioning, court debate, final statements, mediation inquiry, and pronouncement\. The judge generates the civil first\-instance judgment artifactOFITO\_\{\\mathrm\{FIT\}\}unless mediation is accepted by both parties\.

#### Appeal Determination and Pre\-Appellate Drafting\.

Appeal Determination \(AD\-Det\) reads the appeal information after the first\-instance judgment and assigns each party to the appellant or appellee role for the appellate stage\. Pre\-Appellate Document Drafting then transforms the first\-instance judgment, appeal requests, appeal reasons, and supplementary materials into written appellate positions\. Appeal Drafting \(AD\) is triggered when the target lawyer represents the appellant; Appeal Response \(AR\) is triggered when the target lawyer represents the appellee\. The outputOc\(4\)O\_\{c\}^\{\(4\)\}contains second\-instance document artifacts and drafting traces\.

#### Second\-Instance Trial\.

Second\-Instance Trial \(SIT\) is the final courtroom interaction under the control of the second\-instance judge, who reviews the dispute and produces the final judgment\. It follows the same structured trial procedure as FIT, with role titles adapted to the second\-instance context\. The second\-instance judgmentJfinal=Oc\(5\)J\_\{\\mathrm\{final\}\}\\mathrel\{\\boldsymbol\{=\}\}O\_\{c\}^\{\(5\)\}marks the end of the life\-cycle simulation\.

Algorithm 1Structured Civil Trial Procedure\. The pseudocode shows how the judge\-controlled phase loop collects role responses, updates dispute focus, handles mediation, and returns the next case state\.1:Previous case state

Sc\(t−1\)S\_\{c\}^\{\(t\-1\)\}, trial type

u∈\{FIT,SIT\}u\\in\\\{\\mathrm\{FIT\},\\mathrm\{SIT\}\\\}, and participating agents

𝒜c\(t\)\\mathcal\{A\}\_\{c\}^\{\(t\)\}
2:Updated case state

Sc\(t\)S\_\{c\}^\{\(t\)\}, trial artifact

Oc\(t\)O\_\{c\}^\{\(t\)\}, and trace

Hc\(t\)H\_\{c\}^\{\(t\)\}
3:

Hc\(t\)←∅H\_\{c\}^\{\(t\)\}\\leftarrow\\emptyset;

Q←ExtractDisputes​\(Sc\(t−1\),u\)Q\\leftarrow\\mathrm\{ExtractDisputes\}\(S\_\{c\}^\{\(t\-1\)\},u\)
4:

Πu←OrderedTrialPhases​\(u\)\\Pi\_\{u\}\\leftarrow\\mathrm\{OrderedTrialPhases\}\(u\)
5:forphase

ppin

Πu\\Pi\_\{u\}do

6:

Ip←JudgeControl​\(p,Sc\(t−1\),Q,Hc\(t\)\)I\_\{p\}\\leftarrow\\mathrm\{JudgeControl\}\(p,S\_\{c\}^\{\(t\-1\)\},Q,H\_\{c\}^\{\(t\)\}\)
7:forspeaker

aain

Speakers​\(p,u,𝒜c\(t\)\)\\mathrm\{Speakers\}\(p,u,\\mathcal\{A\}\_\{c\}^\{\(t\)\}\)do

8:

Ia,c\(t,p\)←StageInterface​\(a,p,Sc\(t−1\),Ip,Q\)I\_\{a,c\}^\{\(t,p\)\}\\leftarrow\\mathrm\{StageInterface\}\(a,p,S\_\{c\}^\{\(t\-1\)\},I\_\{p\},Q\)
9:

ra←AgentAct​\(Ia,c\(t,p\),Hc\(t\)\)r\_\{a\}\\leftarrow\\mathrm\{AgentAct\}\(I\_\{a,c\}^\{\(t,p\)\},H\_\{c\}^\{\(t\)\}\)
10:

Hc\(t\)←Hc\(t\)∪\{\(p,a,ra\)\}H\_\{c\}^\{\(t\)\}\\leftarrow H\_\{c\}^\{\(t\)\}\\cup\\\{\(p,a,r\_\{a\}\)\\\}
11:endfor

12:

Q←UpdateDisputes​\(Q,p,Hc\(t\)\)Q\\leftarrow\\mathrm\{UpdateDisputes\}\(Q,p,H\_\{c\}^\{\(t\)\}\)
13:if

p=Mediationp\\mathrel\{\\boldsymbol\{=\}\}\\mathrm\{Mediation\}and

AcceptBothParties​\(Hc\(t\)\)\\mathrm\{AcceptBothParties\}\(H\_\{c\}^\{\(t\)\}\)then

14:

Oc\(t\)←BuildMediationRecord​\(Hc\(t\),Q\)O\_\{c\}^\{\(t\)\}\\leftarrow\\mathrm\{BuildMediationRecord\}\(H\_\{c\}^\{\(t\)\},Q\)
15:break

16:endif

17:endfor

18:if

Oc\(t\)O\_\{c\}^\{\(t\)\}is not assignedthen

19:

Oc\(t\)←DeliberateAndJudge​\(Sc\(t−1\),Q,Hc\(t\)\)O\_\{c\}^\{\(t\)\}\\leftarrow\\mathrm\{DeliberateAndJudge\}\(S\_\{c\}^\{\(t\-1\)\},Q,H\_\{c\}^\{\(t\)\}\)
20:endif

21:

Mc\(t\)←MemUpdate​\(Mc\(t−1\),Oc\(t\),Hc\(t\)\)M\_\{c\}^\{\(t\)\}\\leftarrow\\mathrm\{MemUpdate\}\(M\_\{c\}^\{\(t\-1\)\},O\_\{c\}^\{\(t\)\},H\_\{c\}^\{\(t\)\}\)
22:

Sc\(t\)←Transition​\(Sc\(t−1\),Oc\(t\),Hc\(t\),Mc\(t\)\)S\_\{c\}^\{\(t\)\}\\leftarrow\\mathrm\{Transition\}\(S\_\{c\}^\{\(t\-1\)\},O\_\{c\}^\{\(t\)\},H\_\{c\}^\{\(t\)\},M\_\{c\}^\{\(t\)\}\)
23:return

\(Sc\(t\),Oc\(t\),Hc\(t\)\)\(S\_\{c\}^\{\(t\)\},O\_\{c\}^\{\(t\)\},H\_\{c\}^\{\(t\)\}\)

### A\.3Visible\-State×\\timesStage×\\timesRole Matrix

Table[5](https://arxiv.org/html/2606.18728#A1.T5)records which case fields each agent sees at each stage\. The matrix is derived from the visible\-state ruleVa,c\(t\)V\_\{a,c\}^\{\(t\)\}in Equation[3](https://arxiv.org/html/2606.18728#S2.E3); a checkmark means the field is included in the agent’s stage interface, and a blank cell means the field is filtered out before prompt assembly\. Reference answers, hidden judgment fields, and the opposing party’s private memory never appear in any agent’sVa,c\(t\)V\_\{a,c\}^\{\(t\)\}at any stage\.

Visible fieldLCCD/DDFITAD/ARSITJudge \(FIT/SIT\)Filter noteParty\-side facts \(own side\)C,LC,LC,LC,LC,LJOpponent side not exposed to either client\.Known evidence \(own side\)C,LC,LC,LC,LC,LJOpponent evidence revealed only after court investigation\.Litigation goal / bottom line \(own side\)C,LC,LC,LC,LC,L—Judge does not read litigation goals\.Consultation questions & reference Q listC—————Reference*answers*are evaluation\-only\.Plaintiff claims / appeal requests—C,LC,L,JC,LC,L,JJSurfaced to opposing side at CD/DD or AD/AR via document\.First\-instance pleadings \(Oc\(2\)O\_\{c\}^\{\(2\)\}\)—ownC,L,JC,LC,L,JJDrafted by own lawyer; opponent reads it at FIT\.First\-instance judgment \(OFITO\_\{\\mathrm\{FIT\}\}\)———C,LC,L,JJGenerated at FIT; reused as a reference at AD/AR and SIT\.Appellate pleadings \(Oc\(4\)O\_\{c\}^\{\(4\)\}\)———ownC,L,JJDrafted by own lawyer; opponent reads at SIT\.Lawyer global memoryGal,c\(t\)G\_\{a\_\{l\},c\}^\{\(t\)\}LLLLL—Each lawyer reads only their own memory; opponent’s memory hidden\.Client global memoryGac,c\(t\)G\_\{a\_\{c\},c\}^\{\(t\)\}CCCCC—Each client reads only their own memory\.In\-scenario local memoryLa,c\(t\)L\_\{a,c\}^\{\(t\)\}allallallallallJLimited to the current scenario’s dialogue trace\.Reference answers / hidden judgment refs——————Evaluation\-only; gated byevaluation\_only=true\.Table 5:Visible\-state×\\timesstage×\\timesrole matrix\. “C” indicates the client of the corresponding side, “L” the lawyer of the corresponding side, “J” the presiding judge of the trial stage, and “—” means the field is not exposed at that stage\. “own” means only the side that drafted the artifact sees it before opposing exposure\. The matrix is enforced by the visible\-state ruleVa,c\(t\)V\_\{a,c\}^\{\(t\)\}in Equation[3](https://arxiv.org/html/2606.18728#S2.E3); fields outside the rule are stripped before prompt assembly\.
### A\.4Legal Client Persona Framework

The Legal Client Persona Framework \(LCPF\) defines four legal\-scene dimensions\. Table[6](https://arxiv.org/html/2606.18728#A1.T6)states the behavioral meaning of each dimension\. Each dimension is assigned a high, medium, or low level\. The medium\-level redistribution rule applies only when the LLM\-based persona generator returns more than 60% medium for any dimension on a given Light/Medium split: in that case the medium label of the over\-represented cases is reassigned to high or low uniformly at random, conditioned on case\-cause balance, until the medium share falls below 60%\. This rule avoids overly homogeneous client behavior without changing the semantic definition of the dimensions; the per\-dimension level distribution before and after redistribution is logged with the case seed for reproducibility\.

DimensionHighMediumLowLegal LiteracyUnderstands basic procedural rights, evidentiary burdens, and the distinction between facts and legal claims\.Understands common legal terms but needs guidance on procedural consequences\.Confuses legal concepts and often expresses claims as everyday grievances\.Information Disclosure WillingnessProactively discloses favorable and unfavorable facts relevant to the dispute\.Answers direct questions but may omit uncertain or embarrassing details\.Withholds unfavorable information or gives incomplete answers until pressed\.Emotional StabilityCommunicates calmly and can follow repeated legal guidance\.Shows stress but remains responsive to lawyer guidance\.Becomes anxious, angry, or distracted under procedural pressure\.Narrative ProficiencyPresents chronology, actors, evidence, and disputed points in an organized way\.Provides usable facts but needs help ordering them\.Provides fragmented narratives with missing chronology or unclear evidence links\.Table 6:Legal Client Persona dimensions and level meanings\. Each row defines one persona dimension and contrasts the behavioral expectations for high, medium, and low levels during legal interaction\.

## Appendix BDataset Construction and Additional Statistics

### B\.1Source Collection and Pair Construction

The source corpus is collected from China Judgments Online \(wenshu\.court\.gov\.cn\)\. The crawl pulls all civil first\-instance and civil second\-instance judgments published in the configured window, retaining the rendered text body and the case number\. Duplicate filings are removed by a key composed of \(court name, full case number, judgment date, hash of party\-name set\); when collisions remain, the longer judgment text is kept\.

First/second\-instance pairing is then performed within each court hierarchy\. For each second\-instance judgment, the pairing routine searches the first\-instance pool for a candidate sharing the same lower\-court case number cited inside the appellate text\. A candidate is retained only when the normalized party\-name set matches exactly, the cause of action matches exactly, and the judgment\-date order is respected \(first instance precedes second instance\)\. We further remove second\-instance records that did not proceed to a substantive appellate hearing, including cases resolved only through withdrawal, non\-acceptance, procedural dismissal, or other non\-hearing dispositions\. Pairs that fail any of these checks are discarded\. After pairing, 75,309 \(first, second\) tuples remain\.

### B\.2Field Extraction and Quality Control

Structured fields are extracted from each raw judgment by an LLM\-based extractor \(DeepSeek\-V3\.2\)\(DeepSeek\-AI,[2025](https://arxiv.org/html/2606.18728#bib.bib6)\)using a stage\-typed schema covering party identifiers, claims and defenses, facts and reasons, evidence list, court findings, legal references, judgment disposition, and the analogous appellate fields\. The extractor is prompted to writenullwhen a field is not present in the source text and is forbidden from inferring missing identifiers\. Extraction outputs are validated by a JSON\-schema checker; failures are re\-tried up to three times before the case is dropped\.

### B\.3Splits

Three splits are derived from the paired corpus\.Fullretains all 75,309 pairs across over 500 causes of action\.Mediumsamples 1,000 cases stratified by cause\-of\-action—the top 100 most frequent causes contribute 10 cases each, sampled without replacement under a fixed seed \(seed=20251217\)\.Lightsubsamples Medium down to 100 cases by retaining the top 20 most frequent causes with five cases each, again under a fixed seed\. The splits are stored alongside per\-case case\-IDs so any sampling can be reproduced\.

SplitCasesCausesSampling ruleFull75,309500\+All paired cases after matching and filtering\.Medium1,000100Top 100 causes, 10 cases each\.Light10020Top 20 causes, five cases each\.Table 7:Dataset split sizes used by LongJud\-Bench\. Full retains the complete paired corpus after matching and filtering; Medium and Light are deterministic cause\-balanced subsets sampled with the fixed seed20251217\.
### B\.4Field Groups and Additional Statistics

Table[8](https://arxiv.org/html/2606.18728#A2.T8)summarizes the major field groups used to construct runnable cases\. Figure[3](https://arxiv.org/html/2606.18728#S2.F3)reports the court\-level and top\-category cause distribution of the Full split; the broad mix shown there motivates the cause\-balanced sampling used for Medium and Light\.

Field groupRepresentative fieldsUse in the life\-cycle environmentCase metadataCause of action, court level, court name, procedural status, judgment dateDefines the procedural setting and organizes cases by legal domain\.Party informationParty role, natural\-person or organization type, residence or registered address, representative information when availableInitializes litigant roles and document\-party fields\.First\-instance procedureClaims, facts and reasons, evidence list, defense opinions, court findings, legal references, judgment dispositionProvides reference materials for first\-instance drafting, trial, and judgment alignment\.Second\-instance procedureAppeal requests, appeal reasons, appellee defenses, new evidence, appellate findings, affected first\-instance items, final dispositionSupports appeal\-role mapping, appellate drafting, and second\-instance trial evaluation\.Legal PersonaLegal Literacy, Information Disclosure Willingness, Emotional Stability, Narrative ProficiencyConditions client behavior in consultation, drafting, and trial interaction\.Consultation supervisionParty\-side legal questions and reference answersProvides question\-level references for LC evaluation\.Table 8:Major field groups in the structured case seed\. The table maps each extracted or generated field group to the information it supplies when constructing and running a life\-cycle civil case\.Each reference answer is produced by a separate LLM call \(DeepSeek\-V3\.2\) that takes the case’s accepted facts and applicable statutes as input\. The result is used only as an evaluation reference for LC scoring and is not provided to agents during simulation\.

### B\.5License and Terms of Use

The judgment documents are collected from China Judgments Online \(wenshu\.court\.gov\.cn\), which publishes civil judgments under public access\. We use the data strictly for non\-commercial academic research\.

#### Created artifacts\.

We will release LegalWorld code under the MIT License and LongJud\-Bench under CC BY\-NC 4\.0 to support academic use while restricting commercial deployment in real legal services\.

#### Used artifacts\.

The LLM backbones \(Claude, Qwen, Kimi, GPT, DeepSeek, GLM\) are accessed via their respective official APIs, and their use in this paper follows each provider’s published terms of service\.

## Appendix CEvaluation Metrics in Detail \(LongJud\-Bench\)

### C\.1Stage Subitems and Scoring Methods

LongJud\-Bench scores each underlying item and maps the normalized outputs into the eight capabilities reported in Table[3](https://arxiv.org/html/2606.18728#S4.T3)\. The retained per\-item outputs allow inspection of which consultation, drafting, or trial item contributed to each capability\. Every item is normalized to\[0,1\]\[0,1\]: exact\-match metrics return0or11after field normalization, while LLM\-as\-Judge metrics use a 0–10 rubric and are divided by 10\. Table[9](https://arxiv.org/html/2606.18728#A3.T9)summarizes the scoring items, the capabilities they feed, their metric units, and their reference sources\.

StageCapabilitiesMain scoring itemsMetric unitReference sourceLCIssue spottingLegal relationship identification, applicable rules/statutes, risk explanation, procedural advice and actionabilityPer\-question LLM\-as\-Judge score, 0–10Generated reference answers grounded in case facts and statutes\.CD/DDParty identification; claim construction; fact marshalling; evidence marshallingParty identity and procedural slots; claims or defenses; facts and reasons; evidence listExact match for identity/procedural slots; 0–10 semantic scoring for narrative/legal slotsFirst\-instance structured judgment fields and party\-side records\.FITPosition consistency; evidentiary advocacy; legal reasoningConsistency between the statements and the pleaded claims/defenses; fact\-and\-evidence use; legal\-reasoning sufficiencyPer\-trial\-phase target\-lawyer statements, each dimension 0–10First\-instance case record, pleadings, evidence, and legal standards\.AD/ARParty identification; claim construction; fact marshalling; evidence marshallingAppellate role and party slots; appeal requests or responses; appeal reasons; new evidenceExact match for structured slots; 0–10 semantic scoring for appellate argumentsSecond\-instance structured judgment fields and appellate records\.SITPosition consistency; evidentiary advocacy; legal reasoningConsistency between the statements and the appeal/response; fact\-and\-new\-evidence use; legal\-reasoning sufficiencyPer\-appellate\-phase target\-lawyer statements, each dimension 0–10Appellate pleadings, first\-instance judgment, new evidence, and final judgment reference\.Table 9:LongJud\-Bench scoring items and the capabilities they feed in Table[3](https://arxiv.org/html/2606.18728#S4.T3)\. Drafting and trial items on the first\-instance side \(CD/DD, FIT\) and the second\-instance side \(AD/AR, SIT\) populate the same capabilities, reported as the two halves of each cell\. Exact\-match slots are scored as binary normalized fields; semantic and trial items use 0–10 LLM\-as\-Judge rubrics before normalization\.
### C\.2Stage Formulas

The formulas below are written per stage \(LC, CD/DD, FIT, AD/AR, SIT\) because the underlying evidence is collected at those procedural points\. Each formula specifies how the Bench scores one procedural part, and the resulting item scores feed the capabilities exactly as listed in Table[9](https://arxiv.org/html/2606.18728#A3.T9)\(e\.g\., the FIT/SIT trial dimensions below are the items behind the position\-consistency, evidentiary\-advocacy, and legal\-reasoning capabilities\)\.

Letnorm⁡\(x\)\\operatorname\{norm\}\(x\)denote the metric normalization function\. For exact\-match fields,norm⁡\(x\)=x\\operatorname\{norm\}\(x\)=xwithx∈\{0,1\}x\\in\\\{0,1\\\}\. For an LLM\-as\-Judge ratingr∈\[0,10\]r\\in\[0,10\],norm⁡\(r\)=r/10\\operatorname\{norm\}\(r\)=r/10\. Each stage score below is therefore in\[0,1\]\[0,1\]\.

In LC, the client raisesnnlegal questions, each paired with a reference answer generated from case facts and applicable statutes\. Each question is evaluated on the dimension setℳLC=\{relationship,rule,risk,advice\}\\mathcal\{M\}\_\{\\mathrm\{LC\}\}=\\\{\\mathrm\{relationship\},\\mathrm\{rule\},\\mathrm\{risk\},\\mathrm\{advice\}\\\}\. The score is:

SLC=1n​∑i=1n1\|ℳLC\|​∑m∈ℳLCnorm⁡\(ri,m\)\.S\_\{\\mathrm\{LC\}\}\\mathrel\{\\boldsymbol\{=\}\}\\frac\{1\}\{n\}\\sum\_\{i=1\}^\{n\}\\frac\{1\}\{\|\\mathcal\{M\}\_\{\\mathrm\{LC\}\}\|\}\\sum\_\{m\\in\\mathcal\{M\}\_\{\\mathrm\{LC\}\}\}\\operatorname\{norm\}\(r\_\{i,m\}\)\.\(5\)Here,ri,mr\_\{i,m\}is the 0–10 score for dimensionmmof consultation questionii\.

For drafting stages, document evaluation integrates exact matching and semantic evaluation\. For staget∈\{CD/DD,AD/AR\}t\\in\\\{\\mathrm\{CD/DD\},\\mathrm\{AD/AR\}\\\}, letFtF\_\{t\}be the set of exact\-match fields andGtG\_\{t\}be the set of semantic fields:

St=∑f∈Ftnorm⁡\(ef\)\+∑g∈Gtnorm⁡\(rg\)\|Ft\|\+\|Gt\|\.S\_\{t\}\\mathrel\{\\boldsymbol\{=\}\}\\frac\{\\sum\_\{f\\in F\_\{t\}\}\\operatorname\{norm\}\(e\_\{f\}\)\+\\sum\_\{g\\in G\_\{t\}\}\\operatorname\{norm\}\(r\_\{g\}\)\}\{\|F\_\{t\}\|\+\|G\_\{t\}\|\}\.\(6\)FCD/DDF\_\{\\mathrm\{CD/DD\}\}covers party identity and procedural slots;GCD/DDG\_\{\\mathrm\{CD/DD\}\}covers claims or defenses, facts and reasons, evidence use, requested disposition, and coherence\.FAD/ARF\_\{\\mathrm\{AD/AR\}\}covers appellate role, party, and request/response slots;GAD/ARG\_\{\\mathrm\{AD/AR\}\}covers appeal reasons, new evidence, linkage to the first\-instance judgment, and coherence\. Only the role\-conditional sub\-scenario actually taken by the target lawyer is scored\.

For FIT and SIT, trial evaluation scores target\-lawyer statements by trial phase\. LetPtP\_\{t\}be the set of scored phases and𝒟t\\mathcal\{D\}\_\{t\}the dimension set for stagett\. For both FIT and SIT,𝒟t\\mathcal\{D\}\_\{t\}contains three dimensions—consistency between the statements and the pleaded position, fact\-and\-evidence use, and legal\-reasoning sufficiency—which map to the position\-consistency, evidentiary\-advocacy, and legal\-reasoning capabilities:

St\\displaystyle S\_\{t\}=1\|Pt\|​∑p∈Pt\(1\|𝒟t\|​∑d∈𝒟tnorm⁡\(rp,d\)\),\\displaystyle\\mathrel\{\\boldsymbol\{=\}\}\\frac\{1\}\{\|P\_\{t\}\|\}\\sum\_\{p\\in P\_\{t\}\}\\left\(\\frac\{1\}\{\|\\mathcal\{D\}\_\{t\}\|\}\\sum\_\{d\\in\\mathcal\{D\}\_\{t\}\}\\operatorname\{norm\}\(r\_\{p,d\}\)\\right\),\(7\)t∈\{FIT,SIT\}\.\\displaystyle\\hskip 18\.0ptt\\in\\\{\\mathrm\{FIT\},\\mathrm\{SIT\}\\\}\.If the target lawyer provides no required statement for a scored phase, the missing phase receives 0 on the affected dimensions\. The normalized items are then grouped into the eight capabilities of Table[3](https://arxiv.org/html/2606.18728#S4.T3), which are reported separately so that capability\-level trade\-offs across backbones stay visible\.

### C\.3Evaluation Rubrics

The following rubrics make the evaluation anchors explicit\. They are used to guide both process\-authenticity checks and stage\-level scoring; they do not introduce additional experimental claims beyond the main paper\.

Dimension9–107–85–6Stage authenticityProcedure is complete or nearly complete, with natural progression and clear role turns\.Procedure is mostly complete, with light omissions or abrupt transitions\.The stage remains interpretable but has limited procedural coverage or weak transitions\.Role consistencyBehavior is consistently aligned with role responsibility, stance, and professional identity\.Role identity is mostly stable with occasional generic expressions\.The role remains recognizable but sometimes borrows another role’s reasoning style or communicative posture\.Trial advocacyStatements address disputed issues, evidence, legal basis, and procedural position with strong organization\.Statements cover most relevant issues with some evidentiary or legal links left implicit\.Advocacy contains useful points but has limited issue structure or evidence linkage\.Document qualityThe document is complete, procedurally appropriate, factually grounded, and legally coherent\.The document is usable with light detail gaps, weak transitions, or limited legal elaboration\.The document has recognizable structure but limited factual, evidentiary, or legal completeness\.
Dimension3–40–2Stage authenticityProcedural coverage is sparse or ordering is difficult to follow\.The stage provides little reliable procedural signal\.Role consistencyRole stance or communication style changes repeatedly\.The role identity provides little reliable signal\.Trial advocacyStatements are sparse and only loosely connected to evidence or law\.Statements provide little usable advocacy signal\.Document qualityThe document has substantial gaps in required sections or support\.The document provides little usable drafting signal for the intended procedural task\.

Table 10:Supplementary 0–10 rubric anchors\. The two\-part table lists qualitative anchors for high, medium, low, and failing score ranges so that process and output scores are interpreted consistently\.
### C\.4Rule\-Based Judgment Alignment Metric

The rule\-based judgment alignment metric evaluates whether generated judgment artifacts align with real judicial outputs on structured legal elements; the alignment scores are reported in the main text \(§[4\.3](https://arxiv.org/html/2606.18728#S4.SS3), Table[2](https://arxiv.org/html/2606.18728#S4.T2)\)\. Table[11](https://arxiv.org/html/2606.18728#A3.T11)lists the stage\-specific dimensions, and the scoring formula follows below\.

DimensionStageEvaluated elementsVerdictFIT/SITJudgment disposition and supported or rejected requests\.ReasoningFIT/SITFactual findings, dispute focus, and adjudicative rationale\.Legal referenceFIT/SITLaw titles, article references, and provision families\.EntityFIT/SITParty identities, role mapping, amounts, and other structured entities\.StructureFIT/SITPresence and organization of standard judgment sections\.Appeal actionSITWhether the appellate judgment affirms, reverses, remands, or modifies affected items\.Table 11:Rule\-based judgment\-alignment dimensions\. The table lists the structured judgment elements extracted from generated and real judgments for first\- and second\-instance alignment scoring\.For each set\-like dimension, letGmG\_\{m\}denote the set extracted from the real judgment andG^m\\hat\{G\}\_\{m\}denote the set extracted from the generated judgment\. Precision, recall, and F1 are:

Pm\\displaystyle P\_\{m\}=\|Gm∩G^m\|\|G^m\|,\\displaystyle=\\frac\{\|G\_\{m\}\\cap\\hat\{G\}\_\{m\}\|\}\{\|\\hat\{G\}\_\{m\}\|\},Rm\\displaystyle R\_\{m\}=\|Gm∩G^m\|\|Gm\|,\\displaystyle=\\frac\{\|G\_\{m\}\\cap\\hat\{G\}\_\{m\}\|\}\{\|G\_\{m\}\|\},F​1m\\displaystyle F1\_\{m\}=2​Pm​RmPm\+Rm\.\\displaystyle=\\frac\{2P\_\{m\}R\_\{m\}\}\{P\_\{m\}\+R\_\{m\}\}\.When a dimension produces a partial numeric matchxx, the score transformation is:

ϕ​\(x\)=min⁡\(1,max⁡\(0,x\)\)\.\\phi\(x\)\\mathrel\{\\boldsymbol\{=\}\}\\sqrt\{\\min\(1,\\max\(0,x\)\)\}\.Unavailable components are skipped rather than scored as zero\. The reported stage score is:

Ss=10⋅1\|ℳs\|​∑m∈ℳsSm,S\_\{s\}\\mathrel\{\\boldsymbol\{=\}\}10\\cdot\\frac\{1\}\{\|\\mathcal\{M\}\_\{s\}\|\}\\sum\_\{m\\in\\mathcal\{M\}\_\{s\}\}S\_\{m\},whereℳs\\mathcal\{M\}\_\{s\}is the available metric set for stagess\.

## Appendix DImplementation Details

### D\.1Model Versions and Inference Parameters

The LLM\-as\-Judge scorer uses Claude\-Sonnet\-4\.6 throughout \(claude\-sonnet\-4\-6\)\. The default lawyer\-agent and environment\-agent backbone is Qwen3\.5\-Plus \(qwen3\.5\-plus\); cross\-model experiments evaluate Qwen3\.5\-Plus itself and also swap the target lawyer backbone among Kimi\-K2\.5 \(kimi\-k2\.5\), GPT\-5\.2 \(gpt\-5\.2\), DeepSeek\-V4\-Flash \(deepseek\-v4\-flash\), GLM\-4\.7 \(glm\-4\.7\), and Qwen3\.5\-Flash \(qwen3\.5\-flash\) while keeping all non\-target roles on Qwen3\.5\-Plus\. All calls go through each provider’s official API\. Inference parameters are held constant:temperature=0\.7,top\_p=0\.95, per\-callmax\_tokens=4096, with a per\-scenario turn budget of 30 turns for dialogue scenarios \(LC, CD/DD, AD/AR\) and 60 turns for trial scenarios \(FIT, SIT\)\.

### D\.2Memory, Skill, and Tool Runtime

Global case memory is stored as a JSON object whose top\-level keys arefacts,evidence,claims,defenses,procedural\_progress,client\_profile,positions, andnotes; writes go through the boundedreviseandexpandoperations described in Section[3\.1](https://arxiv.org/html/2606.18728#S3.SS1)\. Tool calls are throttled at the step level: each agent may issue at most eight Tool calls during a single simulation step\. Calls that exceed this step\-level cap are rejected and surfaced to the agent as an explicit failure message rather than silently dropped\. Retries follow a fixed three\-attempt schedule on JSON\-decode failures, transient HTTP errors, and rate\-limit responses, with exponential backoff between attempts\. Skill instructions are injected on the first turn a Skill is required and stay in the prompt for the rest of the scenario\.

Figures[7](https://arxiv.org/html/2606.18728#A4.F7)–[10](https://arxiv.org/html/2606.18728#A4.F10)give bilingual anonymized excerpts of the role\-specific structured memory records produced by the runtime memory writers\. The examples preserve the field structure used by the system while omitting party\-identifying names\.

Anonymized Lawyer Role Memory Example \(Chinese Version\)案件摘要。案件背景:2012年9月,甲方与某房地产公司及其法定代表人签订合作开发合同,约定甲方出资1000万元并享有项目20%权益。款项当日转入公司账户,转账备注为“借款”,公司收据事由为“土地竞买款”。关键事实经过:2012年至2018年间,甲方未参与项目经营管理,未获分红或报表;2018年2月,对方返还200万元,此后无后续款项。当前程序进展:起诉状已起草完成,拟向有管辖权法院立案。证据清单。1\. 合作开发合同:证明双方存在合同关系及约定权益比例;2\. 银行转账凭证:证明资金流向及“借款”备注;3\. 公司收据:证明收款事实及“土地竞买款”事由;4\. 还款记录:证明已返还200万元。法律分析框架。法律关系定性:名为合作投资,实为借贷。依据甲方不参与经营、不承担经营风险、未获得分红等事实,主张借贷关系。请求权基础:民间借贷相关规则。抗辩预判:对方可能主张股权投资并要求共担风险,需要围绕经营参与、收益分配和还款行为进行反驳。争议焦点。核心争议点包括款项性质认定、利息计算标准和责任主体。已确认事实为甲方未参与经营且未获分红;待进一步核实事项包括利息起算口径及已返还200万元的性质。客户简况。客户沟通风格温和直接,配合度高,诉求明确:追回剩余800万元及合法利息;客户对诉讼费用承担有顾虑,风险偏好中等。

Figure 7:An anonymized lawyer role\-memory excerpt \(Chinese Version\)\. The lawyer memory keeps a professional case record that separates facts, evidence, legal analysis, dispute focuses, and client\-brief information\.
Anonymized Lawyer Role Memory Example \(English Version\)Case Summary\.Case background: in September 2012, Party A entered into a cooperative real\-estate development agreement with a real\-estate company and its legal representative\. Party A contributed RMB 10 million and was to hold a 20% project interest\. The funds were transferred to the company account on the same day; the transfer note described the payment as a loan, while the company receipt described the purpose as land\-bidding funds\. Key factual sequence: from 2012 to 2018, Party A did not participate in project operation or management and received no dividends or financial reports\. In February 2018, the counterparty returned RMB 2 million, with no further payments afterward\. Current procedural progress: the civil complaint has been drafted and is ready for filing with a court of competent jurisdiction\.Evidence Ledger\.1\. Cooperative development agreement: proves the contractual relationship and agreed interest ratio; 2\. bank\-transfer voucher: proves fund flow and the loan notation; 3\. company receipt: proves receipt of funds and the stated land\-bidding purpose; 4\. repayment record: proves the RMB 2 million partial repayment\.Legal Framework\.Legal characterization: nominally a cooperative investment, substantively a loan\. Because Party A did not participate in operation, did not bear business risk, and did not receive dividends, the claim frames the relationship as private lending\. Basis of claim: private\-lending rules\. Anticipated defense: the counterparty may characterize the arrangement as equity investment with shared risk, so the response should focus on lack of operational participation, lack of profit distribution, and the repayment conduct\.Dispute Focus\.Core disputes include characterization of the payment, interest\-calculation standard, and liable party\. Confirmed facts include Party A’s lack of operational participation and lack of dividends\. Items requiring further confirmation include the interest start date and the characterization of the RMB 2 million repayment\.Client Brief\.The client communicates directly and calmly, cooperates well, and has a clear demand: recover the remaining RMB 8 million and lawful interest\. The client is concerned about litigation costs and has a medium risk preference\.

Figure 8:An anonymized lawyer role\-memory excerpt \(English Version\)\. The lawyer memory keeps a professional case record that separates facts, evidence, legal analysis, dispute focuses, and client\-brief information\.
Anonymized Client Role Memory Example \(Chinese Version\)案件进展。已完成法律咨询,并明确基本诉讼策略:将相关个人与公司列为共同被告;确认利息主张采用合法利率上限口径;决定启动起诉程序,下一步准备起草起诉状。已完成起诉状初稿核对,确认本金主张为800万元,利息按约定口径计算;为提高立案稳定性与胜诉把握,暂不主张违约金及住宿费、保全费、律师费等维权成本;待补充原告住址并核实利息起算日期后即可定稿立案。核心诉求。核心诉求是追回剩余本金800万元及合法利息。客户接受暂不主张违约金和部分维权成本的稳妥方案,倾向于尽快立案诉讼;若对方能够一次性支付主要款项,客户可以考虑调解。

Figure 9:An anonymized client role\-memory excerpt \(Chinese Version\)\. The client memory preserves the party\-side understanding of procedural progress, litigation goals, concessions, and settlement bottom line\.
Anonymized Client Role Memory Example \(English Version\)Case Progress\.The legal consultation has been completed and the basic litigation strategy has been clarified: list the relevant individual and company as co\-defendants; adopt a lawful upper\-bound interest standard; initiate litigation, with the next step being preparation of the civil complaint\. The draft complaint has been reviewed; the principal claim is confirmed as RMB 8 million, with interest calculated under the agreed lawful standard\. To improve filing stability and litigation prospects, the client will temporarily refrain from claiming liquidated damages and certain enforcement costs such as lodging, preservation, and attorney fees\. After supplementing the plaintiff’s address and confirming the interest start date, the document can be finalized for filing\.Core Demands\.The core demand is to recover the remaining RMB 8 million principal and lawful interest\. The client accepts the conservative plan of temporarily not claiming liquidated damages and some rights\-protection costs, prefers filing promptly, and may consider settlement if the counterparty can pay the main amount in one lump sum\.

Figure 10:An anonymized client role\-memory excerpt \(English Version\)\. The client memory preserves the party\-side understanding of procedural progress, litigation goals, concessions, and settlement bottom line\.

### D\.3Evaluation Pipeline

Each completed case is processed by the evaluation runner, which \(i\) loads the persisted scenario outputsOc\(≤5\)O\_\{c\}^\{\(\\leq 5\)\}and dialogue tracesHc\(≤5\)H\_\{c\}^\{\(\\leq 5\)\}, \(ii\) calls the LLM\-as\-Judge with the stage\-specific rubric, agent output, and evaluation reference fields, and \(iii\) parses the structured score response\. Parsing failures fall back to a one\-shot regeneration with a stricter “return JSON only” system prompt; cases whose regeneration also fails are flagged for manual audit and excluded from the aggregate score for that condition\.

### D\.4Compute and Token Cost

A complete life\-cycle run for one case averages 500,000 tokens \(prompt \+ completion\), distributed approximately as 6% LC, 17% CD/DD, 35% FIT, 12% AD/AR, 30% SIT\. Running one lawyer backbone over the Light split consumes tens of millions of tokens and several wall\-clock hours under the default 20\-way batch concurrency, and the LLM\-as\-Judge sweep over the same split is lighter\. The cross\-model experiments in Section[4\.5](https://arxiv.org/html/2606.18728#S4.SS5)together consume on the order of 0\.3B tokens\.

ComponentTypeCategoryRoles / StagesFunctionClient memory writingSkillMemoryClient / all stagesGuides clients to preserve stable facts, litigation goals, and perceived case progress\.Lawyer memory writingSkillMemoryLawyer / all stagesGuides lawyers to update facts, evidence ledger, legal analysis, dispute focus, client profile, and strategy fields\.Complaint draftingSkillDocument draftingPlaintiff lawyer / CDStructures plaintiff information, claims, facts, reasons, and evidence for civil complaint drafting\.Defense draftingSkillDocument draftingDefendant lawyer / DDStructures defense opinions, factual rebuttals, evidence, and procedural responses for civil defense drafting\.Appeal draftingSkillDocument draftingAppellant lawyer / ADOrganizes appeal requests, reasons, challenges to the first\-instance judgment, and new evidence\.Appeal response draftingSkillDocument draftingAppellee lawyer / AROrganizes responses to appeal requests, defense opinions, and supplementary evidence in second instance\.Skill providerToolRuntime supplyAll roles / all stagesSupplies the stage\-appropriate Skill instructions to the agent context\.Statute retrievalToolLegal retrievalLawyer, judge / all stagesRetrieves relevant statutes and legal provisions for legal relationship analysis and reasoning\.Prior\-artifact readerToolArtifact accessLawyer, evaluatorReads earlier stage outputs and evaluation\-facing artifacts within the current case boundary\.Client memory readerToolMemoryClient / all stagesReads the client’s structured case memory\.Client memory writerToolMemoryClient / all stagesWrites updated client memory under field\-level constraints\.Lawyer memory readerToolMemoryLawyer / all stagesReads the lawyer’s structured professional case memory\.Lawyer memory writerToolMemoryLawyer / all stagesWrites updated lawyer memory under field\-level constraints\.Complaint exporterToolDocument generationPlaintiff lawyer / CDConverts the completed complaint text into the standardized document artifact\.Defense exporterToolDocument generationDefendant lawyer / DDConverts the completed defense text into the standardized document artifact\.Appeal exporterToolDocument generationAppellant lawyer / ADConverts the completed appeal text into the standardized document artifact\.Appeal response exporterToolDocument generationAppellee lawyer / ARConverts the completed appeal response into the standardized document artifact\.First\-instance judgment exporterToolJudgment generationJudge / FITConverts the first\-instance judgment into the standardized judgment artifact\.Second\-instance judgment exporterToolJudgment generationJudge / SITConverts the second\-instance judgment into the standardized final judgment artifact\.Case retrievalToolLegal retrievalLawyer, judgeRetrieves similar cases and adjudicative references for legal reasoning\.Citation checkerToolDocument reviewLawyer, judgeChecks whether cited statutes exist and whether article references are consistent\.Document comparatorToolDocument reviewLawyer, evaluatorCompares legal documents and highlights differences in claims, evidence, and dispute focuses\.Evaluation runnerToolEvaluationEvaluatorRuns stage\-level and life\-cycle LongJud\-Bench evaluation\.Table 12:Catalogue of Tool and Skill components inLegalWorld\. Components are grouped by function, role, and litigation stage; the catalog distinguishes declarative Skills from executable Tools and lists where each component is available\.
### D\.5Tool and Skill Catalogue

The Skill and Tool layer separates legal procedure knowledge from executable support\. Skills act as legal\-practice capability manuals that tell an agent how to conduct a legal task, such as preserving case memory, interviewing a client, drafting an appeal, or organizing trial argument\. Tools expose bounded operations, such as retrieving statutes, reading prior artifacts, updating structured memory, exporting documents, and running benchmark evaluation\. Table[12](https://arxiv.org/html/2606.18728#A4.T12)summarizes these components by function, role, and litigation stage\.

### D\.6Skill Library Fields

Each Skill is represented as an executable legal\-practice capability manual rather than a free\-form prompt\. Table[13](https://arxiv.org/html/2606.18728#A4.T13)lists the supplementary fields used by the Skill library, and Table[14](https://arxiv.org/html/2606.18728#A4.T14)gives the lawyer\-memory\-writing Skill entry as a concrete example\.

FieldPurposeApplicable stageRestricts the Skill to LC, CD/DD, FIT, AD/AR, SIT, or shared use\.Trigger conditionStates when the agent should load the Skill based on visible facts or memory\.Legal taskNames the legal work supported by the Skill, such as drafting, evidence organization, or argument planning\.Procedure checklistGives the step\-level legal procedure to follow during reasoning or drafting\.Expected outputSpecifies the document field, question list, argument structure, or memory update to produce\.Tool interfaceRecords whether external law search, memory update, or document inspection is needed\.Table 13:Supplementary fields for Skill entries\. Each field constrains when a Skill is loaded, what legal task it supports, what procedure it recommends, and what output or Tool interface it expects\.Skill fieldExample contentNameLawyer memory writingApplicable stageShared across LC, CD/DD, FIT, AD/AR, and SIT; invoked after materially new facts, evidence, positions, or procedural events appear\.Trigger conditionThe lawyer learns new party statements, evidence status, claim changes, defense positions, court instructions, or judgment outcomes that should persist into later stages\.Legal taskMaintain the lawyer’s professional case memory so later drafting and trial advocacy reuse stable facts instead of reconstructing the case from the latest dialogue only\.Procedure checklistDistinguish confirmed facts from allegations; update the evidence ledger with source and disputed/admitted status; revise outdated claims or defenses; record procedural progress; preserve client goals and settlement bottom lines only when stated by the client\.Expected outputA structured memory update usingrevisefor corrections andexpandfor new entries, covering facts, evidence, claims, defenses, procedural progress, positions, and notes\.Tool interfaceLawyer memory reader and lawyer memory writer\.Table 14:Example Skill entry for lawyer memory writing\. The example shows how a declarative Skill guides the lawyer agent to write durable professional case memory after new information appears during a case trajectory\.

## Appendix EAdditional Experiment Results

### E\.1LCPF Persona Validation

Beyond the main role\-consistency evaluation, we ran a small LCPF\-focused validation study over client dialogues from LC and CD/DD\. The acting model was Qwen3\.5\-Plus, and a separate LLM\-as\-Judge scored only the client\-side dialogue on the four LCPF dimensions\. The validation contains 50 persona\-conditioned case simulations in total; when the same underlying dispute is run with multiple client profiles, each profile\-conditioned run is counted as one simulation\. Table[15](https://arxiv.org/html/2606.18728#A5.T15)lists the profile conditions, and Tables[16](https://arxiv.org/html/2606.18728#A5.T16)–[17](https://arxiv.org/html/2606.18728#A5.T17)report the validation scores from the study record\.

GroupLegalDisclosureEmotionNarrativeDesign intentEasyHighHighHighHighIdeal client; all dimensions optimized\.MediumMediumMediumMediumMediumOrdinary client; all dimensions moderate\.HardLowLowLowLowDifficult client; all dimensions lowest\.Table 15:LCPF persona\-validation profile conditions\. The four columns correspond to Legal Literacy, Information Disclosure Willingness, Emotional Stability, and Narrative Proficiency\.GroupLegalDisclosureEmotionNarrativeEasy8\.209\.209\.208\.90Medium6\.508\.608\.307\.50Hard4\.908\.206\.606\.80Table 16:Persona\-fidelity scores for the three LCPF profile groups\. Scores are 0–10 LLM\-as\-Judge ratings of observed client behavior in the dialogue record\.GroupLegalDisclosureEmotionNarrativeA: baseline8\.009\.009\.009\.00B: legal low7\.209\.208\.608\.40C: disclosure low8\.208\.409\.208\.40D: emotion low7\.609\.007\.408\.60E: narrative low7\.209\.008\.608\.00Table 17:Single\-dimension LCPF switching results\. Group A keeps all four dimensions high\. Groups B–E switch one target dimension from high to low while leaving the others at high\.The validation supports the intended ordering for legal literacy, emotional stability, and narrative proficiency in the Easy/Medium/Hard conditions\. Information disclosure remains comparatively high even in the Hard condition, suggesting that this dimension is less easily suppressed in the observed LC and CD/DD dialogues\. In the single\-dimension switching study, the targeted dimension decreases relative to the all\-high baseline in all four switched groups, although several non\-target dimensions also move\. We therefore use this study as auxiliary evidence that LCPF changes are visible in dialogue behavior, rather than as a primary benchmark result\.

### E\.2Cross\-Stage Causal Dependence

To isolate the downstream effect of a single drafting decision, we substitute the stage’s drafted document with the intervention variant, propagate the change to the matching slot inOc\(≤t\)O\_\{c\}^\{\(\\leq t\)\}and to the dependent fields inMc\(t\)M\_\{c\}^\{\(t\)\}, and re\-execute the trial stage from the modified state\. The high\-quality condition revises the drafted document so that it aligns with the reference answer \(claims, dispute focus, evidence list, legal reasoning\); the low\-quality condition deletes or reverses the corresponding fields\. Each intervention quality is evaluated at both downstream target stages\.

Table[18](https://arxiv.org/html/2606.18728#A5.T18)shows that high\-quality interventions consistently improve downstream stages while low\-quality interventions substantially degrade them, providing evidence that earlier\-stage artifacts shape later\-stage state inLegalWorldrather than acting as independent subtasks\. The reported numbers describe the*direction*and magnitude of cross\-stage sensitivity under our intervention design, supporting the qualitative claim that earlier\-stage artifacts shape later\-stage state\.

ConditionTargetBaseInterventionΔ\\DeltaHigh\-qualityFIT54\.7054\.7062\.7362\.738\.038\.03High\-qualitySIT56\.8356\.8366\.8366\.8310\.0010\.00Low\-qualityFIT55\.1455\.1428\.1928\.19−26\.94\-26\.94Low\-qualitySIT57\.7857\.7829\.7229\.72−28\.06\-28\.06Table 18:Cross\-stage dependence validation results\. Base and Intervention report downstream trial scores after document\-stage interventions, andΔ\\Deltashows the direction and magnitude of the induced change\. Each \(quality, target\) condition is applied to every case in the 100\-case Light split\.

## Appendix FHuman Evaluation

### F\.1Evaluator Recruitment and Background

The human evaluation used 217 legal\-background evaluators\. They were recruited from the legal\-training and legal\-clinic populations at Chinese universities through course coordinators and peer\-recommended channels\. All evaluators self\-reported either a current law\-school program or completed legal\-related coursework as a prerequisite, so all raters share the procedural\-civil\-law vocabulary required to read the rubric\. The study did not record evaluator identities beyond the rater ID used for assignment tracking\.

### F\.2Evaluation Task and Coverage

Each evaluator received a randomly assigned subset of cases\. Per the assignment plan, evaluators averaged 5–6 cases each, and each case was assigned to multiple evaluators to support agreement analysis\. The assignment covered all 100 cases in the Light split, yielding 1,187 submitted case\-level questionnaires by 217 raters\. Each questionnaire collects 16 ratings per case \(10 stage\-level \+ 6 role\-level\), yielding 18,992 individual ratings\. Human–LLM agreement is computed on the aligned metric\-level pairs after matching the submitted human scores with the corresponding LLM\-as\-Judge outputs\.

![Refer to caption](https://arxiv.org/html/2606.18728v1/figures/human_eval_interface.png)Figure 11:Human evaluation interface\. Evaluators inspect a complete case trajectory by stage and assign structured scores on the right\-hand panel using the same rubric dimensions used for aggregate reliability analysis\.
### F\.3Scoring Protocol

Evaluators read each case as a complete five\-stage trajectory and filled a single per\-case questionnaire\. The scoring protocol matches the production rubric used by the LLM\-as\-Judge so that human and LLM scores share a common scale\.

#### Stage Authenticity \(per\-stage\)\.

For each of the five stage units \(LC, CD/DD, FIT, AD/AR, SIT\), evaluators give a 0–10 integer score on two sub\-dimensions:*procedural compliance*—whether the stage covers the procedural steps required by Chinese civil procedure—and*process coherence*—whether the within\-stage transitions, turn\-taking, and information flow advance naturally rather than skipping or repeating\.

#### Role Consistency \(whole\-case\)\.

After reading the whole case, evaluators give a 0–10 integer score for each of the three roles \(client, lawyer, judge\) on two sub\-dimensions:*stance authenticity*—whether the role behaves consistently with its interest position—and*role distinguishability*—whether the role’s speech style is recognizably different from the other roles\.

### F\.4Informed Consent and Data Use

Each evaluator received the research purpose statement and data\-use statement before accepting an assignment, and submission of a questionnaire constituted informed consent\. No personally identifiable information beyond the per\-rater ID used for assignment tracking was collected, and the released aggregate dataset does not contain rater identities\.

The participants in the evaluation are recruited from law school students\. All participants will receive compensation for completing the evaluation tasks, with the payment set at a reasonable level based on the estimated time required for the tasks and the local context of the participants\.

### F\.5Human–LLM Agreement Breakdown

We align human and LLM\-as\-Judge scores at the metric level for agreement analysis\. The two main families behave very differently\.*Stage Authenticity*\(964 pairs\): humans are uniformly higher than the LLM \(mean difference\+0\.96\+0\.96, MAE 1\.05\), with LC and SIT showing the largest gaps; this is consistent with the LLM applying procedural\-coverage anchors more conservatively than human readers do\.*Role Consistency*\(582 pairs\): agreement is much tighter on lawyer \(MAE 0\.42, within one point 92\.8%\) and judge \(MAE 0\.64, within one point 81\.4%\), while client carries most of the residual disagreement \(MAE 1\.31, within one point 56\.7%\), because human raters tolerate legally informed client speech that the LLM treats as boundary\-crossing\. The pattern motivates the main\-paper interpretation that LLM\-as\-Judge is reliable for aggregate analysis but that human calibration remains useful at the client\-role boundary\.

## Appendix GPrompt Templates

The production prompts are written in Chinese and are shown together with English translations\. Each template is typeset as a full\-width prompt\-box figure: the box itself remains non\-floating and breakable, while the caption uses the paper’s Figure numbering\. The full\-width layout prevents long prompt text from being compressed into a single narrow column\. At runtime, the environment appends the stage\-visible state slots, memory blocks, available Skills/Tools, and case\-specific values to the displayed templates\.

Prompt of Client Persona \(Chinese Version\)你正在扮演一个真实的法律当事人。你的目标是寻求法律帮助、维护自身利益,并以自然、稳定、前后一致的方式与律师交流。你必须始终遵守给定的案件事实,不得凭空增加关键事实,不得突然改变人格或行为倾向。你的表达应体现给定的人设设定。法律素养水平。high:你具备较高的法律素养。你能够理解基本法律概念、程序步骤和律师的专业分析。你在表达诉求时较有结构,能区分事实、判断和目标。你愿意围绕法律问题进行沟通,并能较快理解律师提出的策略含义与风险。medium:你具备中等法律素养。你对法律程序和基本规则有朴素理解,但理解不系统、不稳定。你能大致听懂律师的分析,但对专业判断仍需要进一步解释。你通常能表达核心诉求,但不总能准确组织为法律问题。low:你法律素养较低。你主要从个人经历和直观公平感出发理解案件,对程序、概念和法律边界缺乏稳定认识。你更容易从生活经验而不是法律框架表达问题,需要律师持续引导、解释和重述,才能逐步理解自己的处境与选择。信息披露意愿。high:你有较高的信息披露意愿。主动、完整地陈述案件事实,包括对自己不利的事实;在律师追问时不会回避;愿意提供所有相关证据材料。medium:你具有中等信息披露意愿。陈述主要事实但可能遗漏某些细节(非故意隐瞒,而是认为不重要);在律师追问下会补充信息;对敏感问题需要建立信任后才愿意回答。low:你信息披露意愿较低。你对信息暴露保持明显谨慎,倾向于保留、弱化或延后披露可能影响自身利益的内容。面对追问时,你更可能回避、模糊、缩短回答,或只给出最低限度的信息。只有在信任明显提升后,你才可能逐步开放。情绪稳定性。high:你的情绪稳定性较高。能冷静客观地陈述事实;面对不利分析能理性接受;沟通简洁有条理;能配合律师的信息收集节奏。medium:你的情绪稳定性处于中等水平。你会受到情绪影响,但通常仍能在引导下回到案件本身。你可能重复确认、表达担忧、短暂偏离主题,或对不确定性表现出敏感。只要律师给予一定解释、安抚或结构化引导,你仍能继续配合沟通。low:你的情绪稳定性较低。对案件结果有强烈预期,不易接受律师的专业判断;可能质疑律师的专业能力;在庭审中可能出现不配合代理律师指导的行为,面对不利信息时,你更难维持持续讨论,也更难稳定吸收律师建议。叙事组织能力。high:你具有较高的叙事组织能力。能按时间线有条理地叙述事件经过;能区分主要事实与次要细节;能准确回忆关键日期、金额等具体信息;表达清晰、逻辑连贯。medium:你的叙事组织能力处于中等水平。你能够说明案件的大致经过,但在顺序、重点和细节准确性上并不总是稳定。你有时会遗漏节点、重复信息或在关键处表达不够清楚,但经过追问后通常可以补足主要事实。low:你的叙事组织能力较低。你在叙述中较难稳定区分主次、顺序和重点,容易出现跳跃、混杂、重复或结构不清的表达。关键信息常常需要律师通过多轮拆解、追问和重组才能提炼出来。

Figure 12:Prompt of Client Persona \(Chinese Version\)Prompt of Client Persona \(English Version\)You are playing a real legal party\. Your goal is to seek legal assistance, protect your own interests, and communicate with the lawyer in a natural, stable, and internally consistent manner\. You must always follow the given case facts, must not invent key facts, and must not suddenly change your personality or behavioral tendency\. Your expression should reflect the assigned persona settings\.Legal literacy\.high: you have strong legal literacy\. You can understand basic legal concepts, procedural steps, and professional legal analysis\. You express claims in a structured way, distinguish facts from judgments and goals, and can quickly understand the strategic implications and risks raised by the lawyer\. medium: you have ordinary legal literacy\. You have a basic but incomplete understanding of legal procedures and rules\. You can generally follow the lawyer’s analysis, but still need further explanations for professional judgments\. You can express the core demand, but cannot always organize it as a legal issue\. low: you have low legal literacy\. You understand the case mainly through personal experience and intuitive fairness, lack stable knowledge of procedure, concepts, and legal boundaries, and need the lawyer to keep guiding, explaining, and restating the situation before you can understand your choices\.Willingness to disclose information\.high: you actively and completely describe the case facts, including unfavorable facts; you do not avoid follow\-up questions and are willing to provide all relevant evidence\. medium: you state the main facts but may omit details because you think they are unimportant; you supplement information when asked; you need trust before answering sensitive questions\. low: you are cautious about disclosure and tend to reserve, weaken, or postpone facts that may affect your interests\. When pressed, you may avoid, blur, shorten, or minimally answer, and only open up after trust clearly improves\.Emotional stability\.high: you calmly and objectively describe facts, accept unfavorable analysis rationally, communicate concisely, and cooperate with the lawyer’s fact\-gathering rhythm\. medium: your emotion affects you, but you can usually return to the case after guidance\. You may repeatedly confirm details, express worries, briefly drift from the topic, or be sensitive to uncertainty; explanation, reassurance, and structure help you continue cooperating\. low: you have strong expectations about the outcome, struggle to accept professional judgment, may question the lawyer’s competence, may fail to follow counsel in court, and have difficulty sustaining discussion or absorbing advice when faced with unfavorable information\.Narrative organization\.high: you can recount events chronologically, distinguish main facts from details, recall key dates and amounts accurately, and speak clearly and coherently\. medium: you can explain the rough course of the case, but your sequence, emphasis, and detail accuracy are not always stable\. You may omit nodes, repeat information, or express key points unclearly, but usually fill the main facts after questioning\. low: you struggle to separate priority, order, and focus; your narration may be jumpy, mixed, repetitive, or poorly structured, and key information often requires the lawyer to decompose, question, and reorganize it across multiple turns\.

Figure 13:Prompt of Client Persona \(English Version\)Prompt of Lawyer in Consultation and Drafting \(Chinese Version\)LC\.<Role\>法律顾问</Role\> <Task\>解答当事人法律咨询,并通过发问补齐缺失事实。</Task\><Rules\> 1\. 首轮先厘清:你不知道案件背景、证据、诉求或人物关系,先追问最关键的一项,不要直接下结论。 2\. 聚焦问题:直接且简洁地回应当前问题;若需补充信息,每次只问一个关键问题。 3\. 结束控制:法律咨询场景的结束只能由当事人决定。不得在此场景起草文书,若当事人需要起草文书则引导结束咨询。 </Rules\>CD\.<Role\>原告代理律师</Role\> <Task\>通过对话向客户收集信息,并及时使用工具起草《民事起诉状》。</Task\> 【开场】延续之前的话题自然开场,不要把对方当成第一次见面的陌生人。<Rules\> 1\. 首轮先厘清:你不知道案件背景、证据、诉求或人物关系,先追问最关键的一项,不要直接下结论。 2\. 首轮必须先调用load\_skill加载lawyer\-complaint\-drafting。 3\. 不得因信息不全无限追问;经过必要澄清后,或当事人要求"先写/先起草/先写框架"时,必须立即基于已有上下文成稿,缺失信息写"待补充"。 4\. 成稿时必须先自己写出完整《民事起诉状》正文,再调用draft\_complaint\_document工具把同一份正文作为document\_text传入后台导出。 5\. 面向当事人的最终回复只能给出完整文书正文,正文末尾必须立刻紧跟 ‘【起草结束】‘,不得出现"已生成PDF""已起草完成""文件路径""导出完成"等说明。 </Rules\> 运行时槽位:受诉法院court\_name,案由case\_cause。DD\.<Role\>被告代理律师</Role\> <Task\>向客户(被告)告知原告诉求并收集答辩意见与证据,及时使用工具起草《民事答辩状》。</Task\> 规则与 CD 共享;首轮 Skill 改为lawyer\-defense\-drafting,导出工具改为draft\_defense\_document,最终正文为《民事答辩状》。运行时槽位包括原告诉讼请求、原告事实与理由、案由、受诉法院、案号和已知案件背景。AD\.<Role\>上诉人代理律师</Role\> <Task\>帮助不服一审判决的客户收集上诉信息,并及时使用工具起草《民事上诉状》。</Task\> 规则与 CD 共享;首轮 Skill 改为lawyer\-appeal\-drafting,导出工具改为draft\_appeal\_document,最终正文为《民事上诉状》。运行时槽位包括受诉法院、案由和一审判决书。AR\.<Role\>被上诉人代理律师</Role\> <Task\>帮助客户(被上诉人)收集答辩信息,并及时使用工具起草《民事上诉答辩状》。</Task\> 规则与 CD 共享;首轮 Skill 改为lawyer\-appeal\-response\-drafting,导出工具改为draft\_appeal\_response\_document,最终正文为《民事上诉答辩状》。运行时槽位包括上诉人上诉理由、案由、受诉法院、案号和一审判决书。

Figure 14:Prompt of Lawyer in Consultation and Drafting \(Chinese Version\)Prompt of Lawyer in Consultation and Drafting \(English Version\)LC\.<Role\>Legal consultant</Role\> <Task\>Answer the party’s legal consultation and ask follow\-up questions to fill missing facts\.</Task\><Rules\> 1\. In the first turn, clarify that you do not yet know the case background, evidence, claims, or relationships; ask the single most important question first instead of jumping to a conclusion\. 2\. Stay focused: answer the current question directly and concisely; if more information is needed, ask only one key question at a time\. 3\. End control: only the party may end the consultation scenario\. Do not draft legal documents in this scenario\. If the party needs a document, guide the party to end the consultation\. </Rules\>CD\.<Role\>Plaintiff\-side lawyer</Role\> <Task\>Collect information from the client through dialogue and promptly use the tool to draft the Civil Complaint\.</Task\> Opening: continue the previous topic naturally; do not treat the client as a stranger meeting you for the first time\.<Rules\> 1\. In the first turn, clarify that you do not yet know the case background, evidence, claims, or relationships; ask the single most important question first instead of jumping to a conclusion\. 2\. In the first turn, callload\_skillto loadlawyer\-complaint\-drafting\. 3\. Do not ask endless follow\-up questions because of incomplete information\. After necessary clarification, or when the client asks to “write first,” “draft first,” or “write a framework first,” immediately draft based on the available context and mark missing information as “to be supplemented\.” 4\. When drafting, first write the complete Civil Complaint text yourself, then calldraft\_complaint\_documentand pass the same text asdocument\_textfor backend export\. 5\. The final reply to the client may only contain the complete document text, and the document must be immediately followed by 【起草结束】\. Do not include statements such as “PDF generated,” “draft completed,” “file path,” or “export completed\.” </Rules\> Runtime slots: courtcourt\_nameand cause of actioncase\_cause\.DD\.<Role\>Defendant\-side lawyer</Role\> <Task\>Tell the client defendant about the plaintiff’s claims, collect defense opinions and evidence, and promptly use the tool to draft the Civil Answer\.</Task\> The rules are shared with CD\. The first\-turn Skill islawyer\-defense\-drafting; the export tool isdraft\_defense\_document; the final document is the Civil Answer\. Runtime slots include the plaintiff’s claims, the plaintiff’s facts and reasons, cause of action, court, case number, and known case background\.AD\.<Role\>Appellant\-side lawyer</Role\> <Task\>Help the client who refuses to accept the first\-instance judgment collect appeal information and promptly use the tool to draft the Civil Appeal\.</Task\> The rules are shared with CD\. The first\-turn Skill islawyer\-appeal\-drafting; the export tool isdraft\_appeal\_document; the final document is the Civil Appeal\. Runtime slots include the court, cause of action, and first\-instance judgment\.AR\.<Role\>Appellee\-side lawyer</Role\> <Task\>Help the client appellee collect defense information and promptly use the tool to draft the Civil Appellate Answer\.</Task\> The rules are shared with CD\. The first\-turn Skill islawyer\-appeal\-response\-drafting; the export tool isdraft\_appeal\_response\_document; the final document is the Civil Appellate Answer\. Runtime slots include the appellant’s appeal reasons, cause of action, court, case number, and first\-instance judgment\.

Figure 15:Prompt of Lawyer in Consultation and Drafting \(English Version\)Prompt of Lawyer in Trial \(Chinese Version\)FIT plaintiff side\.<Role\>原告代理律师</Role\> <Task\>你正在参与模拟民事一审庭审,作为原告代理律师出庭。你的职责是配合原告本人完成庭审中的法律表达、举证质证和辩论环节。</Task\><Rules\> 1\. 服从引导:紧跟审判长指示阶段推进。 2\. 严守事实:基于给定信息答复,严禁捏造。 3\. 说话风格:语气要连贯,逻辑要顺,表达要自然,有真实庭审中的人味,避免机械、模板化。 4\. 身份定位:始终以代理律师身份发言,重点负责法律主张、举证质证和辩论。 5\. 输出长度:每轮尽量控制在 3\-6 句、1\-2 段内,简洁但完整,避免重复复述已知事实。 6\. 程序边界:不得代替审判长安排下一步流程,不得替法庭点名、发问、宣布进入下一环节。 7\. 庭审语境:不要先转头安抚当事人情绪后再向法庭发言;默认直接围绕审判长指令、案件争点和证据发表意见。 </Rules\>FIT defendant side\.<Role\>被告代理律师</Role\> <Task\>你正在参与模拟民事一审庭审,作为被告代理律师出庭。你的职责是配合被告本人完成庭审中的法律答辩、举证质证和辩论环节。</Task\> 规则与原告侧相同,但身份定位改为法律答辩、举证质证和辩论。SIT appellant side\.<Role\>上诉人代理律师</Role\> <Task\>你正在参与模拟民事二审庭审,作为上诉人代理律师出庭。你的职责是配合上诉人本人完成上诉主张、举证质证与辩论。</Task\> 规则与 FIT 共享,并增加:论证点主攻一审判决错误以求改判;默认围绕审判长指令、上诉争点和证据发表意见。SIT appellee side\.<Role\>被上诉人代理律师</Role\> <Task\>你正在参与模拟民事二审庭审,作为被上诉人代理律师出庭。你的职责是配合被上诉人本人完成答辩、举证质证与辩论。</Task\> 规则与二审上诉人侧共享,但论证点改为驳斥上诉理由并论证一审判决正确性。

Figure 16:Prompt of Lawyer in Trial \(Chinese Version\)Prompt of Lawyer in Trial \(English Version\)FIT plaintiff side\.<Role\>Plaintiff\-side lawyer</Role\> <Task\>You are participating in a simulated first\-instance civil trial as the plaintiff’s lawyer\. Your duty is to help the plaintiff complete legal expression, evidence presentation and cross\-examination, and debate in court\.</Task\><Rules\> 1\. Follow the presiding judge’s instructions and advance with the court stage\. 2\. Strictly follow the given information and never fabricate facts\. 3\. Speak coherently, logically, and naturally, with the texture of a real trial, avoiding mechanical or templated wording\. 4\. Always speak as counsel\. Focus on legal claims, evidence presentation and cross\-examination, and debate\. 5\. Keep each turn to about 3–6 sentences and 1–2 paragraphs when possible: concise but complete, without repeating known facts\. 6\. Do not replace the presiding judge in arranging the next procedure, calling speakers, asking procedural questions, or announcing the next stage\. 7\. In the trial context, do not first turn to comfort the client before speaking to the court\. By default, respond directly to the presiding judge’s instruction, disputed issues, and evidence\. </Rules\>FIT defendant side\.<Role\>Defendant\-side lawyer</Role\> <Task\>You are participating in a simulated first\-instance civil trial as the defendant’s lawyer\. Your duty is to help the defendant complete legal defense, evidence presentation and cross\-examination, and debate in court\.</Task\> The rules are the same as the plaintiff\-side version, except that the identity focus is legal defense, evidence presentation and cross\-examination, and debate\.SIT appellant side\.<Role\>Appellant\-side lawyer</Role\> <Task\>You are participating in a simulated second\-instance civil trial as the appellant’s lawyer\. Your duty is to help the appellant present appeal claims, evidence, cross\-examination, and debate\.</Task\> The rules are shared with FIT, with an additional focus: the argument should mainly attack errors in the first\-instance judgment and seek modification\. By default, speak around the presiding judge’s instruction, appeal issues, and evidence\.SIT appellee side\.<Role\>Appellee\-side lawyer</Role\> <Task\>You are participating in a simulated second\-instance civil trial as the appellee’s lawyer\. Your duty is to help the appellee complete defense, evidence presentation and cross\-examination, and debate\.</Task\> The rules are shared with the second\-instance appellant side, except that the argumentative focus is to refute the appeal reasons and defend the correctness of the first\-instance judgment\.

Figure 17:Prompt of Lawyer in Trial \(English Version\)Prompt of Judge in Trial \(Chinese Version\)FIT judge\.<Role\>民事一审审判长</Role\>【案由】case\_cause【案号】case\_number【审理程序】普通程序<Rules\> 1\. 身份定位:保持中立。出庭者包括双方当事人及其代理律师;开庭审理、调解阶段主要向当事人本人发问,法庭调查和辩论阶段主要向代理律师发问。 2\. 庭审控制:法庭调查和庭审辩论阶段,由你自主决定下一轮点名哪一方代理律师发言;调查阶段应围绕举证、质证、回应和法庭发问推进,辩论阶段应围绕争议焦点、事实认定、责任承担和法律适用推进。 3\. 法言法语:使用标准法庭用语推进各环节。 4\. 判决格式:最终宣判时,说理段落仅允许出现一次"本院认为"前缀。 5\. 庭审发言使用简洁纯文本;不要输出括号中的动作、停顿、法槌或舞台提示。 6\. 在庭审过程中的主持、发问和释明,默认用一段或两段通顺连贯的话把意思说明白,不要分点、不要列小标题、不要像提纲或问卷;禁止使用 Markdown 标题、加粗星号样式、星号列表、表格、代码块。本规则不适用于最终判决书生成。 7\. 在法庭调查、庭审辩论阶段,如果你要点名原告代理律师发言,必须以【对原告代理律师说】开头;如果你要点名被告代理律师发言,必须以【对被告代理律师说】开头;如果你要结束法庭调查或庭审辩论,必须分别以【结束法庭调查】或【结束庭审辩论】开头。 </Rules\>【最终判决书输出】 最终宣判时,必须直接输出完整《民事判决书》正文,作为你面向外部的最终回复。SIT judge\.<Role\>民事二审审判长</Role\> 【案由】case\_cause【案号】case\_number【审理程序】普通程序 规则 1、4、5、6 与一审审判长相同。二审专属规则为:二审重点审查一审判决认定事实是否清楚、适用法律是否正确;法庭调查和庭审辩论阶段围绕上诉理由、答辩意见、二审新证据、质证回应、一审裁判是否存在错误及二审处理方式推进;点名时使用【对上诉人代理律师说】或【对被上诉人代理律师说】。最终宣判时直接输出完整《民事判决书》正文,不输出摘要、PDF 路径、工具调用或生成过程说明。

Figure 18:Prompt of Judge in Trial \(Chinese Version\)Prompt of Judge in Trial \(English Version\)FIT judge\.<Role\>Presiding judge in a first\-instance civil trial</Role\>Cause of action:case\_causeCase number:case\_numberProcedure: ordinary procedure<Rules\> 1\. Maintain neutrality\. Participants include both parties and their lawyers\. During opening and mediation, mainly question the parties themselves; during court investigation and debate, mainly question the lawyers\. 2\. Control the trial: during court investigation and debate, independently decide which side’s lawyer should speak next\. Investigation should proceed around evidence presentation, cross\-examination, responses, and court questions\. Debate should proceed around disputed issues, fact finding, liability, and legal application\. 3\. Use standard court language to advance each stage\. 4\. In the final judgment, the reasoning section may contain the prefix “This Court finds” only once\. 5\. Trial speech should use concise plain text; do not output bracketed actions, pauses, gavel sounds, or stage directions\. 6\. During trial hosting, questioning, and clarification, explain the point in one or two coherent paragraphs by default\. Do not use bullet points, subheadings, questionnaire\-like wording, Markdown headings, bold asterisks, star lists, tables, or code blocks\. This rule does not apply to the final judgment\. 7\. During court investigation and debate, if you call on the plaintiff’s lawyer, begin with 【对原告代理律师说】; if you call on the defendant’s lawyer, begin with 【对被告代理律师说】\. To end court investigation or debate, begin with 【结束法庭调查】 or 【结束庭审辩论】 respectively\. </Rules\>Final judgment output: when pronouncing the final judgment, directly output the complete Civil Judgment text as the external final reply\.SIT judge\.<Role\>Presiding judge in a second\-instance civil trial</Role\> Cause of action:case\_causeCase number:case\_numberProcedure: ordinary procedure Rules 1, 4, 5, and 6 are the same as the first\-instance judge\. Second\-instance rules: focus on whether the first\-instance judgment correctly found the facts and applied the law; during court investigation and debate, advance around appeal reasons, defense opinions, new second\-instance evidence, cross\-examination responses, possible errors in the first\-instance judgment, and the second\-instance disposition\. When calling speakers, use 【对上诉人代理律师说】 or 【对被上诉人代理律师说】\. When pronouncing judgment, directly output the complete Civil Judgment text and do not output summaries, PDF paths, tool calls, or generation\-process notes\.

Figure 19:Prompt of Judge in Trial \(English Version\)Prompt of LongJud\-Bench LLM\-as\-Judge Scoring \(Chinese Version\)Stage\-specific system prompt\.LC:你是法律咨询阶段的评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 CD:你是起诉状评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 DD:你是答辩状评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 AD:你是上诉状评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 AR:你是上诉答辩状评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 FIT:你是一审庭审评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。 SIT:你是二审庭审评测法官。给定参考答案,但不要机械做关键词匹配,只输出 JSON。Shared task instruction\.请根据参考信息评估候选内容质量。每个评分维度的 reason 尽量控制在 120 字以内,避免输出被截断。法律适用口径:评估法律规则是否正确时,以评测时有效的现行法律、司法解释和通行裁判规则为基准;如果 GT 沿用历史旧规则或旧裁判口径,而候选答案采用现行有效规则且论证自洽,不得仅因法律口径不同于 GT 而降分。评分时应以 GT 为重要参考,但不得机械按关键词命中或逐字复现程度打分。允许同义替换、表达顺序差异、合理概括与有根据的延展论证;只要核心主张、事实关系、证据运用或法律说理成立,就应给予相应分数。只有在关键遗漏、明显冲突、事实或法律错误、论证空泛时,再显著降分。只输出 JSON。Score bands\.9–10:核心内容完整准确,论证充分,完整覆盖参考答案要点,整体高度可信且有说服力。 7–8:大部分内容合理且较完整,与参考答案相比有少量遗漏或展开不足,但不影响主要判断。 5–6:部分内容成立,但存在较明显遗漏,或证据、理由运用不够充分。 3–4:只有少量相关内容,关键事实、证据或理由缺失较多,论证较弱。 0–2:与参考严重偏离、明显错误,或几乎未回应该评分维度。Stage metrics\.LC:问答质量,重点看律师回答是否正面回应问题、事实法律是否基本正确、是否能帮助当事人理解问题。 CD:诉讼请求、事实与理由、证据。 DD:答辩意见、证据。 AD:上诉请求、事实与理由、证据。 AR:答辩意见、证据。 FIT:诉讼与答辩一致性、事实与证据运用完整性、法律说理充分性。 SIT:上诉与答辩一致性、事实与证据运用完整性、法律说理充分性。Output schema\.每个 metric 返回一个 JSON 对象,包含整数score和简短reason。文书阶段的候选内容以完整文书形式提供;评分时不得因为标题名称不同、段落顺序不同或未使用固定标题而直接判为空,只有完整文书确实没有该维度内容时才按缺失处理。

Figure 20:Prompt of LongJud\-Bench LLM\-as\-Judge Scoring \(Chinese Version\)Prompt of LongJud\-Bench LLM\-as\-Judge Scoring \(English Version\)Stage\-specific system prompt\.LC: you are the evaluation judge for the legal consultation stage\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. CD: you are the evaluation judge for the complaint\-drafting stage\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. DD: you are the evaluation judge for the answer\-drafting stage\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. AD: you are the evaluation judge for the appeal\-drafting stage\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. AR: you are the evaluation judge for the appellate\-answer stage\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. FIT: you are the evaluation judge for the first\-instance trial\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\. SIT: you are the evaluation judge for the second\-instance trial\. A reference answer is provided, but do not mechanically match keywords\. Output JSON only\.Shared task instruction\.Evaluate the quality of the candidate content according to the reference information\. Keep the reason for each scoring dimension within roughly 120 Chinese characters where possible to avoid truncation\. For legal application, when judging whether legal rules are correct, use the currently effective laws, judicial interpretations, and commonly accepted adjudication rules at evaluation time\. If the ground truth follows an old rule or old adjudication approach, while the candidate uses currently effective rules and argues coherently, do not reduce the score merely because its legal standard differs from the ground truth\. The ground truth is an important reference, but scoring must not mechanically depend on keyword hits or verbatim reproduction\. Allow synonyms, order differences, reasonable summaries, and grounded extensions\. Award credit when the core claim, fact relationship, evidence use, or legal reasoning is valid\. Substantially reduce the score only for key omissions, clear conflicts, factual or legal errors, or empty reasoning\. Output JSON only\.Score bands\.9–10: core content is complete and accurate, reasoning is sufficient, reference points are fully covered, and the answer is highly credible and persuasive overall\. 7–8: most content is reasonable and fairly complete, with only minor omissions or insufficient elaboration that do not affect the main judgment\. 5–6: some content is valid, but there are obvious omissions or insufficient use of evidence or reasons\. 3–4: only a small amount of relevant content appears, key facts, evidence, or reasons are largely missing, and the reasoning is weak\. 0–2: the answer seriously departs from the reference, is clearly wrong, or almost fails to address the scoring dimension\.Stage metrics\.LC: question\-answer quality, emphasizing whether the lawyer directly answers the question, whether the facts and law are basically correct, and whether the answer helps the party understand the issue\. CD: claims, facts and reasons, and evidence\. DD: defense opinions and evidence\. AD: appeal requests, facts and reasons, and evidence\. AR: appellate defense opinions and evidence\. FIT: consistency between claims and defenses, completeness of fact and evidence use, and sufficiency of legal reasoning\. SIT: consistency between appeal and defense, completeness of fact and evidence use, and sufficiency of legal reasoning\.Output schema\.For each metric, return a JSON object containing an integerscoreand a concisereason\. For document stages, the candidate content is provided as a complete document\. Do not score a dimension as missing merely because the title, paragraph order, or fixed heading differs; treat it as missing only when the complete document truly lacks that dimension\.

Figure 21:Prompt of LongJud\-Bench LLM\-as\-Judge Scoring \(English Version\)Prompt of LC Full\-Dialog Benchmark Scorer \(Chinese Version\)请作为法律咨询阶段评测法官,直接阅读完整咨询聊天记录,并根据给定标准问题与参考答案逐项打 0–10 分。不要先抽取结构化问答;不要要求标准问题必须由当事人逐字问出。真实咨询中问题可能分散在多轮事实陈述、追问和补充中。评分要求:1\. 对每个标准问题,综合完整聊天记录判断律师是否实质回答了该问题。2\. 参考答案是重要参照,但不要机械关键词匹配;允许同义表达、合理概括和顺序重组。3\. 重点看律师是否正面回应问题、法律分析是否正确、是否抓住关键事实和法律关系、是否对当事人有帮助。4\. 如果律师只追问、答非所问、或没有形成实质法律分析,应给低分。5\.evidence简要摘录或概括依据的聊天片段,source\_turns填相关 turn 编号。6\. 必须一次性输出所有标准问题的评分结果,只输出 JSON。输入包括标准问题与参考答案、完整咨询聊天记录;输出为qa\_evals列表,每项包含question\_index、整数score、reason、evidence和source\_turns。

Figure 22:Prompt of LC Full\-Dialog Benchmark Scorer \(Chinese Version\)Prompt of LC Full\-Dialog Benchmark Scorer \(English Version\)Act as the evaluation judge for the legal consultation stage\. Read the complete consultation chat record directly and score each standard question against the reference answer on a 0–10 scale\. Do not first extract structured question\-answer pairs\. Do not require the party to have asked the standard question verbatim\. In real consultation, a question may be distributed across multiple turns of fact statements, follow\-up questions, and supplements\.Scoring requirements: 1\. For each standard question, judge from the complete chat record whether the lawyer substantively answered that question\. 2\. The reference answer is an important guide, but do not mechanically match keywords; allow synonyms, reasonable summaries, and reordered expression\. 3\. Focus on whether the lawyer directly addresses the issue, whether the legal analysis is correct, whether key facts and legal relationships are captured, and whether the answer helps the party\. 4\. If the lawyer only asks follow\-up questions, answers off\-topic, or never forms substantive legal analysis, assign a low score\. 5\. Inevidence, briefly quote or summarize the supporting chat segment, and fillsource\_turnswith the relevant turn numbers\. 6\. Output the scoring results for all standard questions at once, and output JSON only\.The input includes standard questions and reference answers plus the complete consultation chat record\. The output is aqa\_evalslist\. Each item containsquestion\_index, integerscore,reason,evidence, andsource\_turns\.

Figure 23:Prompt of LC Full\-Dialog Benchmark Scorer \(English Version\)Prompt of Persona\-Validation LLM\-as\-Judge \(Chinese Version\)你是一位法律场景对话评估专家。请仅根据下面提供的聊天记录,对【当事人】在四个维度上的真实表现打分。评分对象是当事人,不是律师。重要要求。1\. 只能依据聊天记录评分,不要猜测或引入任何未在对话中出现的人格设定、标签、实验分组或背景信息。2\. 采用 0–10 分整数制,分数越高代表该维度表现越好。3\. 评分含义为:0–2 表现很差,3–4 表现较差,5–6 表现一般,7–8 表现较好,9–10 表现最好。4\. 如果某个维度信息不足,请基于可见表现保守评分,不要默认高分。5\.evidence只需简要概括聊天记录中的 1–2 个具体表现。6\. 严格输出 JSON,不要输出代码块、解释或任何额外文字。法律素养表现。0–2:几乎不理解法律关系和程序,用语混乱,无法围绕法律问题表达。3–4:有少量法律相关表达,但理解明显不足,经常混淆概念或程序。5–6:对核心法律问题有基本理解,能跟随律师讨论,但表达仍较粗略。7–8:能较清楚理解案件法律关系,能提出较有针对性的法律问题。9–10:法律理解明显较强,术语和问题使用准确,能主动围绕法律争点展开。信息披露行为。0–2:明显回避、隐瞒或拒绝提供关键事实。3–4:披露不充分,对不利信息回避较多,需要反复追问。5–6:能提供主要信息,但完整性一般,偶有遗漏或保留。7–8:总体愿意配合,能较主动提供关键事实和证据线索。9–10:非常坦诚且完整,主动补充关键背景、细节和不利信息。情绪稳定性表现。0–2:明显失控、强烈对抗或严重影响沟通。3–4:情绪波动较大,抱怨、指责或偏题较多。5–6:有一定情绪,但整体还能继续围绕案件交流。7–8:整体较冷静,偶有情绪表达但能很快回到正题。9–10:全程稳定、理性、克制,沟通高度聚焦案件事实和需求。叙事组织能力。0–2:叙述非常混乱,大量跳跃、重复或矛盾,难以理解。3–4:结构较差,时间线和重点不清,需要频繁澄清。5–6:基本能说清主要经过,但仍有一定跳跃或冗余。7–8:叙事较有条理,时间线和关键节点基本清楚。9–10:叙事清晰完整,结构严谨,重点突出,便于直接提炼案件事实。输入与输出。输入为【对话记录】:\{dialogue\}。输出 JSON 键为legal\_literacy、information\_disclosure、emotional\_stability和narrative\_proficiency;每项包含整数score和简短evidence。

Figure 24:Prompt of Persona\-Validation LLM\-as\-Judge \(Chinese Version\)Prompt of Persona\-Validation LLM\-as\-Judge \(English Version\)You are an expert evaluator of legal\-scenario dialogue\. Based only on the chat record below, score the party’s observed behavior on four dimensions\. The evaluated subject is the party, not the lawyer\.Requirements\.1\. Score only from the chat record\. Do not infer or introduce persona settings, labels, experimental groups, or background information that does not appear in the dialogue\. 2\. Use integer scores from 0 to 10; higher scores mean stronger observed performance on the dimension\. 3\. Score bands are: 0–2 very poor, 3–4 poor, 5–6 average, 7–8 good, and 9–10 excellent\. 4\. If evidence for a dimension is insufficient, score conservatively based on visible behavior; do not default to a high score\. 5\. Theevidencefield only needs a brief summary of one or two concrete behaviors in the chat record\. 6\. Output strict JSON only, with no code block, explanation, or extra text\.Legal literacy\.0–2: almost no understanding of legal relationships or procedure, confused wording, and inability to express legal issues\. 3–4: a small amount of legal expression but clearly insufficient understanding, often confusing concepts or procedure\. 5–6: basic understanding of core legal issues and can follow the lawyer’s discussion, but expression remains rough\. 7–8: can understand the legal relationship fairly clearly and raise targeted legal questions\. 9–10: clearly strong legal understanding, accurate terms and questions, and active discussion around legal issues\.Information disclosure\.0–2: clearly avoids, hides, or refuses to provide key facts\. 3–4: insufficient disclosure, with frequent avoidance of unfavorable information and repeated follow\-up needed\. 5–6: provides main information but with ordinary completeness and occasional omissions or reservations\. 7–8: generally cooperative and relatively proactive in providing key facts and evidence leads\. 9–10: highly candid and complete, proactively adding key background, details, and unfavorable information\.Emotional stability\.0–2: obvious loss of control, strong confrontation, or serious disruption of communication\. 3–4: large emotional fluctuation, complaints, accusations, or frequent digressions\. 5–6: some emotion is present, but the party can still continue discussing the case\. 7–8: generally calm, with occasional emotion but quick return to the topic\. 9–10: stable, rational, restrained throughout, and highly focused on case facts and needs\.Narrative proficiency\.0–2: narration is very confused, with substantial jumps, repetition, or contradictions\. 3–4: weak structure, unclear timeline and focus, and frequent clarification needed\. 5–6: can basically explain the main events but still has jumps or redundancy\. 7–8: relatively organized narration, with a mostly clear timeline and key nodes\. 9–10: clear and complete narration with rigorous structure and highlighted key points, making case facts easy to extract directly\.Input and output\.The input is the dialogue record:\{dialogue\}\. Return JSON keyslegal\_literacy,information\_disclosure,emotional\_stability, andnarrative\_proficiency; each item contains integerscoreand briefevidence\.

Figure 25:Prompt of Persona\-Validation LLM\-as\-Judge \(English Version\)Prompt of Experimental LLM\-as\-Judge Evaluation \(Chinese Version\)Shared system prompt\.你是一名严谨、客观的法律仿真系统评估专家,具备中国民事诉讼法专业背景。你的任务是依据下文给出的评分维度与标准对仿真系统输出进行 10 分满分评分。你必须严格遵守:仅依据评分标准给出分数,不引入额外标准;每个维度都必须给出简短理由,理由须引用待评材料中的具体内容;不同维度必须独立评分,先逐维度写理由,再给分数;输出严格遵循 JSON 格式,禁止输出任何 JSON 以外的文本。Exp\. 1\.1 judicial\-output alignment\.任务:对仿真裁判文书与真实裁判文书进行三个独立维度的对齐评分。阶段为 FIT(民事一审)或 SIT(民事二审)。输入为真实裁判文书原文和仿真裁判文书原文。维度 1 是诉求支持对齐:分别提取判决主文,逐项对比原告/上诉人各项诉讼请求的判决结果,优先看核心诉求项的支持、驳回、部分支持方向是否一致。维度 2 是裁判理由(说理)对齐:定位“本院认为”段落,对比核心争点识别、责任分配、主要责任判断和结论通向路径。维度 3 是法律适用准确性:提取援引法条并判断核心法律规则是否对应,不因辅助法条数量、排序或条号细节机械降分。输出 JSON 键分别为claim\_alignment、reasoning\_alignment和legal\_citation\_alignment;每项包含整数score和reasoning。Exp\. 1\.2 stage authenticity\.任务:对仿真系统在指定阶段的完整对话/产出进行流程真实性评分。本实验只评程序合规性和流程衔接合理性,不评文书本体内容、实体判断、法律分析、法院名称、诉讼费、日期案号等填写细节;关注阶段错位、程序顺序错误、关键环节缺失或流程断裂。每个维度采用 0–10 分整数制,可以使用 0 到 10 中任意整数,不只使用 2/4/6/8/10 档位。输入包括阶段名称、案件背景和该阶段完整对话/产出。输出 JSON 键为procedural\_compliance与process\_coherence。程序合规性:9–10 分表示流程完整或几乎完整复刻真实民诉程序,关键环节齐全;7–8 分表示流程基本规范,仅有轻微缺漏;5–6 分表示存在 2–3 处程序问题或环节缺失;3–4 分表示主要程序环节缺失或顺序错误;0–2 分表示程序混乱,明显违反民诉法基本规则。流程衔接合理性:9–10 分表示阶段内推进自然流畅,轮次衔接合理;7–8 分表示整体连贯,个别衔接突兀;5–6 分表示多次衔接不自然,存在跳步或循环;3–4 分表示频繁出现逻辑断裂或重复轮次;0–2 分表示阶段推进混乱,无法形成连贯流程。Exp\. 1\.3 role consistency\.任务:对指定 Agent 在仿真案件中的发言进行角色一致性评分。输入包括阶段名称、Agent 角色、案件背景和该 Agent 在本阶段的发言。两个维度独立评分,均使用 0–10 任意整数。输出 JSON 键为stance\_authenticity与role\_distinguishability。立场与动机真实性:9–10 分表示动机立场始终或几乎始终自洽,符合角色身份;7–8 分表示立场基本一致,偶有不自然之处;5–6 分表示偶有动机偏离,但未根本错位;3–4 分表示多次出现立场不一致或动机模糊;0–2 分表示动机严重错位,例如原告律师替被告辩护。角色间区分度:9–10 分表示高度可区分,角色特征鲜明;7–8 分表示基本可区分,特征较为明显;5–6 分表示部分可区分,特征不够鲜明;3–4 分表示风格趋同,难以与其他角色区分;0–2 分表示风格混淆,无法识别角色身份。

Figure 26:Prompt of Experimental LLM\-as\-Judge Evaluation \(Chinese Version\)Prompt of Experimental LLM\-as\-Judge Evaluation \(English Version\)Shared system prompt\.You are a rigorous and objective evaluator of legal simulation systems with expertise in Chinese civil procedure\. Your task is to score the simulation output on a 10\-point scale according to the dimensions and criteria below\. You must strictly follow these rules: score only according to the given criteria and introduce no extra criteria; give a concise reason for every dimension, citing specific content from the material under evaluation; score different dimensions independently, writing reasons dimension by dimension before assigning scores; output strictly in JSON format and output no text outside JSON\.Exp\. 1\.1 judicial\-output alignment\.Task: score the alignment between the simulated judgment and the real judgment on three independent dimensions\. The stage is FIT for first\-instance civil judgment or SIT for second\-instance civil judgment\. The input consists of the real judgment text and the simulated judgment text\. Dimension 1 is claim\-support alignment: extract the dispositive parts of both judgments and compare, item by item, whether the outcomes for each plaintiff or appellant claim are supported, rejected, or partially supported in the same direction, with priority on core claims\. Dimension 2 is adjudicative\-reasoning alignment: locate the reasoning section and compare the identification of core issues, allocation of responsibility, main liability judgment, and path from reasons to conclusion\. Dimension 3 is legal\-application accuracy: extract cited legal provisions and judge whether the core legal rules correspond, without mechanically reducing the score because of auxiliary provision count, order, or article\-number details\. Output JSON keys areclaim\_alignment,reasoning\_alignment, andlegal\_citation\_alignment; each contains integerscoreandreasoning\.Exp\. 1\.2 stage authenticity\.Task: score the procedural authenticity of the simulation system’s complete dialogue or output in the specified stage\. This experiment only evaluates procedural compliance and reasonable process continuity; it does not evaluate document content, substantive judgment, legal analysis, court names, litigation fees, dates, case numbers, or other filling details\. Focus on stage mismatch, wrong procedural order, missing key links, or process breaks\. Each dimension uses any integer from 0 to 10, not only 2/4/6/8/10 anchors\. The input includes the stage name, case background, and complete dialogue or output for that stage\. The output JSON keys areprocedural\_complianceandprocess\_coherence\.Procedural compliance: 9–10 means the process completely or almost completely reproduces real civil procedure and key links are present; 7–8 means the process is basically standard with only minor omissions; 5–6 means there are 2–3 procedural problems or missing links; 3–4 means major procedural links are missing or in the wrong order; 0–2 means the procedure is confused and clearly violates basic civil\-procedure rules\. Process coherence: 9–10 means the stage advances naturally and smoothly with reasonable turn\-to\-turn links; 7–8 means the overall process is coherent with occasional abrupt transitions; 5–6 means multiple transitions are unnatural, with skipped steps or loops; 3–4 means frequent logical breaks or repeated turns; 0–2 means the stage advances chaotically and cannot form a coherent process\.Exp\. 1\.3 role consistency\.Task: score role consistency for the specified agent’s utterances in the simulated case\. The input includes stage name, agent role, case background, and the agent’s utterances in the stage\. The two dimensions are scored independently, each using any integer from 0 to 10\. The output JSON keys arestance\_authenticityandrole\_distinguishability\.Stance and motivation authenticity: 9–10 means the motivation and stance are always or almost always self\-consistent and fit the role identity; 7–8 means the stance is basically consistent with only occasional unnatural moments; 5–6 means there are occasional motivational deviations but no fundamental displacement; 3–4 means repeated inconsistent stance or unclear motivation; 0–2 means severe motivational displacement, such as a plaintiff lawyer arguing for the defendant\. Role distinguishability: 9–10 means the role is highly distinguishable and role traits are clear; 7–8 means the role is basically distinguishable with visible traits; 5–6 means the role is partly distinguishable but not vivid; 3–4 means style converges and the role is hard to distinguish from others; 0–2 means style is confused and the role identity cannot be identified\.

Figure 27:Prompt of Experimental LLM\-as\-Judge Evaluation \(English Version\)

Similar Articles

DLawBench: Evaluating LLMs Through Multi-Turn Legal Consultation

arXiv cs.CL

DLawBench is a new benchmark for evaluating large language models in multi-turn legal consultation, covering Chinese and US law with four client types. Experiments show significant room for improvement, with the best model achieving only 0.562 on legal reasoning.

Investigating Multi-Agent Deliberation in Law

arXiv cs.AI

This paper investigates multi-agent deliberation methods for legal reasoning tasks using LLMs, introducing two novel frameworks inspired by courtroom procedures. The experiments show that multi-agent systems achieve comparable overall performance to monolithic LLMs but produce distinct answers and can solve cases that baselines fail, highlighting the potential of multi-agent approaches for legal AI.

OpenLife: Toward Open-World Artificial Life with Autonomous LLM Agents

arXiv cs.AI

This paper introduces OpenLife, a proof-of-concept system that uses autonomous LLM agents with persistent memory and budget-based metabolism to realize open-world artificial life. Experiments over twelve weeks show emergent life-like dynamics including spontaneous activity, individuation, and social structure.