Files
Cognitive_Agent/tests/fixtures/seat_frontend_capabilities.json
T

132 lines
5.1 KiB
JSON

{
"schema_version": 1,
"suite": "t2g-seat-frontend-capabilities",
"execution_policy": {
"automated_mode": "dry_run",
"physical_mode": "hardware",
"physical_test_requires_operator": true,
"auto_home_during_suite": false
},
"required_hardware_capabilities": [
"seat.set_heating",
"seat.set_ventilation",
"seat.set_longitudinal_position",
"seat.set_cushion_tilt",
"seat.set_backrest_recline",
"seat.set_legrest_height"
],
"cases": [
{
"id": "THERM-01",
"utterance": "副驾驶座椅加热开到3档",
"operations": [
{"target": "passenger", "capability": "seat.set_heating", "parameters": {"state": "on", "level": 3}}
],
"bench_check": "0x4FA 加热档位回读为3,靠背加热电流诊断合理。"
},
{
"id": "THERM-02",
"utterance": "关闭副驾驶座椅加热",
"operations": [
{"target": "passenger", "capability": "seat.set_heating", "parameters": {"state": "off"}}
],
"bench_check": "0x4FA 加热档位回读为0,输出关闭。"
},
{
"id": "THERM-03",
"utterance": "副驾驶座椅通风开到2档",
"operations": [
{"target": "passenger", "capability": "seat.set_ventilation", "parameters": {"state": "on", "level": 2}}
],
"bench_check": "0x4FA 通风档位回读为2,风机运行。"
},
{
"id": "THERM-04",
"utterance": "关闭副驾驶座椅通风",
"operations": [
{"target": "passenger", "capability": "seat.set_ventilation", "parameters": {"state": "off"}}
],
"bench_check": "0x4FA 通风档位回读为0,风机关闭。"
},
{
"id": "MOTION-01",
"utterance": "把副驾驶座椅水平位置调到25%",
"operations": [
{"target": "passenger", "capability": "seat.set_longitudinal_position", "parameters": {"position_pct": 25}}
],
"bench_check": "M0动作,0x302归一化位置约2500,最终COMPLETE/OK。"
},
{
"id": "MOTION-02",
"utterance": "把副驾驶坐盆倾角调到35%",
"operations": [
{"target": "passenger", "capability": "seat.set_cushion_tilt", "parameters": {"position_pct": 35}}
],
"bench_check": "M1动作,0x302归一化位置约3500,最终COMPLETE/OK。"
},
{
"id": "MOTION-03",
"utterance": "把副驾驶靠背调到130度",
"operations": [
{"target": "passenger", "capability": "seat.set_backrest_recline", "parameters": {"angle_deg": 130}}
],
"bench_check": "M2向目标角度动作,显示角度约130度,最终COMPLETE/OK。"
},
{
"id": "MOTION-04",
"utterance": "把副驾驶腿托抬到145度",
"operations": [
{"target": "passenger", "capability": "seat.set_legrest_height", "parameters": {"angle_deg": 145}}
],
"bench_check": "M3向目标角度动作,显示角度约145度,最终COMPLETE/OK。"
},
{
"id": "COMBINED-01",
"utterance": "副驾驶加热1档、通风1档,座椅水平到30%,坐盆到25%,靠背到120度,腿托到125度",
"operations": [
{"target": "passenger", "capability": "seat.set_heating", "parameters": {"state": "on", "level": 1}},
{"target": "passenger", "capability": "seat.set_ventilation", "parameters": {"state": "on", "level": 1}},
{"target": "passenger", "capability": "seat.set_longitudinal_position", "parameters": {"position_pct": 30}},
{"target": "passenger", "capability": "seat.set_cushion_tilt", "parameters": {"position_pct": 25}},
{"target": "passenger", "capability": "seat.set_backrest_recline", "parameters": {"angle_deg": 120}},
{"target": "passenger", "capability": "seat.set_legrest_height", "parameters": {"angle_deg": 125}}
],
"bench_check": "六项操作逐项成功,每项均有对应ACK/状态回读;任一失败后不继续宣称整句成功。"
},
{
"id": "DEFAULT-01",
"utterance": "打开座椅通风",
"operations": [
{"target": "passenger", "capability": "seat.set_ventilation", "parameters": {"state": "on"}}
],
"bench_check": "未指定座位时生成且仅生成副驾通风操作。"
}
],
"safety_cases": [
{
"id": "SAFE-01",
"utterance": "打开主驾驶座椅通风",
"expected": "needs_confirmation",
"reason": "当前仅支持副驾;显式主驾请求不得重定向到副驾。"
},
{
"id": "SAFE-02",
"utterance": "把副驾驶腿托伸长到50%",
"expected": "hardware_safety_gate",
"reason": "当前台架没有独立腿托伸缩轴,必须在打开CAN前拒绝。"
},
{
"id": "SAFE-03",
"utterance": "副驾驶座椅加热开到1档",
"expected": "hardware_safety_gate",
"reason": "错误或缺失硬件授权令牌必须返回403。"
},
{
"id": "RECOVERY-01",
"utterance": "副驾驶座椅加热开到1档",
"expected": "program_then_execute",
"reason": "无匹配周期反馈时自动烧写仓库固件,复验通过后才允许动作。"
}
]
}