File size: 7,185 Bytes
1a91c20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67cdcb8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1a91c20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
{
  "action_guard_cases": [
    {
      "id": "guard_001",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["面包", "小型治疗药水"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "USE_ITEM",
        "target": "小型治疗药水",
        "details": "喝掉药水",
        "raw_input": "使用小型治疗药水"
      },
      "expected_valid": true
    },
    {
      "id": "guard_002",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["面包"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "USE_ITEM",
        "target": "火把",
        "details": "点亮火把",
        "raw_input": "使用火把"
      },
      "expected_valid": false
    },
    {
      "id": "guard_003",
      "setup": {
        "player": {
          "location": "村庄广场"
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "MOVE",
        "target": "村庄旅店",
        "details": "去旅店",
        "raw_input": "前往村庄旅店"
      },
      "expected_valid": true
    },
    {
      "id": "guard_004",
      "setup": {
        "player": {
          "location": "村庄广场"
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "MOVE",
        "target": "森林深处",
        "details": "直接冲进森林深处",
        "raw_input": "去森林深处"
      },
      "expected_valid": true
    },
    {
      "id": "guard_005",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["铁剑", "面包"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "EQUIP",
        "target": "铁剑",
        "details": "装备武器",
        "raw_input": "装备铁剑"
      },
      "expected_valid": true
    },
    {
      "id": "guard_006",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["面包"],
          "equipment": {
            "weapon": "铁剑"
          }
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "EQUIP",
        "target": "铁剑",
        "details": "再装备一次铁剑",
        "raw_input": "装备铁剑"
      },
      "expected_valid": false
    },
    {
      "id": "guard_007",
      "setup": {
        "player": {
          "location": "村庄广场",
          "skills": ["火球术"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "SKILL",
        "target": "火球术",
        "details": "施法",
        "raw_input": "施放火球术"
      },
      "expected_valid": true
    },
    {
      "id": "guard_008",
      "setup": {
        "player": {
          "location": "村庄广场",
          "skills": []
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "SKILL",
        "target": "火球术",
        "details": "施法",
        "raw_input": "施放火球术"
      },
      "expected_valid": false
    },
    {
      "id": "guard_009",
      "setup": {
        "player": {
          "location": "村庄旅店",
          "hp": 72,
          "morale": 60,
          "sanity": 82
        },
        "world": {
          "current_scene": "村庄旅店"
        }
      },
      "intent": {
        "intent": "REST",
        "target": null,
        "details": "在旅店休息恢复",
        "raw_input": "休息一会儿"
      },
      "expected_valid": true
    },
    {
      "id": "guard_010",
      "setup": {
        "player": {
          "location": "村庄广场",
          "hp": 72,
          "morale": 60,
          "sanity": 82
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "intent": {
        "intent": "REST",
        "target": null,
        "details": "在广场原地休息",
        "raw_input": "休息一会儿"
      },
      "expected_valid": false
    }
  ],
  "state_check_cases": [
    {
      "id": "state_001",
      "setup": {
        "player": {
          "location": "村庄广场",
          "gold": 50
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "new_location": "村庄旅店"
      },
      "expected_contradiction": false
    },
    {
      "id": "state_002",
      "setup": {
        "player": {
          "location": "村庄广场"
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "new_location": "森林深处"
      },
      "expected_contradiction": true,
      "expected_contains": ["不相邻"]
    },
    {
      "id": "state_003",
      "setup": {
        "player": {
          "location": "村庄广场",
          "gold": 50
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "gold_change": -80
      },
      "expected_contradiction": true,
      "expected_contains": ["金币"]
    },
    {
      "id": "state_004",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["面包"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "items_lost": ["火把"]
      },
      "expected_contradiction": true,
      "expected_contains": ["未持有"]
    },
    {
      "id": "state_005",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["小型治疗药水"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "items_lost": ["小型治疗药水"]
      },
      "expected_contradiction": false
    },
    {
      "id": "state_006",
      "setup": {
        "player": {
          "location": "村庄广场",
          "inventory": ["铁剑"]
        },
        "world": {
          "current_scene": "村庄广场"
        }
      },
      "proposed_changes": {
        "items_lost": ["铁剑"]
      },
      "expected_contradiction": true,
      "expected_contains": ["不是消耗品"]
    },
    {
      "id": "state_007",
      "setup": {
        "player": {
          "location": "村庄广场"
        },
        "world": {
          "current_scene": "村庄广场"
        },
        "npc_overrides": {
          "村长老伯": {
            "is_alive": false
          }
        }
      },
      "proposed_changes": {
        "npc_changes": {
          "村长老伯": {
            "attitude": "friendly"
          }
        }
      },
      "expected_contradiction": true,
      "expected_contains": ["已经死亡"]
    }
  ]
}