P08-03: 配置の通常操作受入

This commit is contained in:
Agent Control Runner
2026-10-14 16:08:32 +09:00
parent 7e2368f5c4
commit 47750010b8
9 changed files with 498 additions and 56 deletions
+3 -3
View File
@@ -239,8 +239,8 @@ def make(base, source, checker):
row.update(expected=code, status=message)
elif label == 'missing_connection':
row['expected'] = 'STAIR_LANDING_MISSING'
row['results'] = [result('VALIDATION_FAILED', {'reason': row['expected']}, 'missing landing')]
row['status'] = '操作に失敗しました: missing landing'
report.update(can_build=False, error_codes=[row['expected']], reasons=[{'code':row['expected'], 'message':'先に階段の一つ下の階に通路を作ってください。', 'cells':[], 'details':{'reason':row['expected']}}])
row['status'] = report['reasons'][0]['message']
elif label == 'cancel_demolition':
row.update(kind='cancel', status='撤去を取り消しました。')
elif label in ('demolition', 'refused_demolition'):
@@ -257,7 +257,7 @@ def make(base, source, checker):
runtime['facilities']['instances'] = [v for v in runtime['facilities']['instances'] if v['instance_id'] != fid]
runtime['world']['occupancies'] = [v for v in runtime['world']['occupancies'] if v['entity_id'] != fid]
r = row['results'][0]
row['status'] = '%s | %s | %s' % (r['code'], r['details'].get('reason', ''), r['message'])
row['status'] = '撤去できません: '+r['message'] if row['expected'] else '撤去しました(返金: 資材 2)'
elif label == 'pan_zoom':
row.update(kind='camera', original_local=[1, 2], ctrl_pressed=False,
pan_before=[0,0], pan_after=[0,10],
+1 -1
View File
@@ -122,7 +122,7 @@ func build(id: StringName, cell: Vector3i, label: String, expected: String = "")
if expected.is_empty():
expect(not results.is_empty() and results.back().code == "OK", label + " accepted")
elif expected == "STAIR_LANDING_MISSING":
expect(not results.is_empty() and results.back().details.get("reason") == expected, label + " domain refusal")
expect(not report.can_build and expected in report.error_codes and results.is_empty(), label + " preview refusal")
else:
expect(expected in report.error_codes and results.is_empty(), label + " preview refusal")
var row := {"id": label, "kind": "build", "definition": String(id), "expected": expected,