This commit is contained in:
orin
2026-07-30 08:45:38 +08:00
commit 25b24ac4cd
1333 changed files with 170092 additions and 0 deletions
@@ -0,0 +1,124 @@
apiVersion: cognitive-agent/v1alpha1
kind: CommandPlan
metadata:
id: plan-req-20260723022645-074729
name: Seat CAN command plan
version: 1.0.0
request_id: req-20260723022645-074729
labels:
execution_scope: virtual_only
spec:
domain: seat
platform: reference_vehicle
source:
config_id: seat-req-20260723022645-074729
config_version: 1.0.0
config_sha256: b9da8e3b099683b1a2b12f0668111e16467732ad1e1a7cad3eeec411606177a1
compiler_version: 1.1.0
mapping_version: 1.1.0
commands:
- id: move_driver_longitudinal_35pct
operation_ref: driver_longitudinal_35pct
bus: body_can
message: Driver_Seat_Motion_Command_550
signals:
Command_Checksum: 37
Command_Counter: 0
Command_Mode: 1
Longitudinal_Target_Pct: 35
Motion_Enable_Mask: 1
send_offset_ms: 0
repeat:
count: 3
period_ms: 20
completion:
message: Driver_Seat_Motion_Status_558
signal: Longitudinal_Actual_Pct
operator: within
value: 35
tolerance: 1
timeout_ms: 8000
- id: move_driver_height_40pct
operation_ref: driver_height_40pct
bus: body_can
message: Driver_Seat_Motion_Command_550
signals:
Command_Checksum: 44
Command_Counter: 1
Command_Mode: 1
Height_Target_Pct: 40
Motion_Enable_Mask: 2
send_offset_ms: 50
repeat:
count: 3
period_ms: 20
completion:
message: Driver_Seat_Motion_Status_558
signal: Height_Actual_Pct
operator: within
value: 40
tolerance: 1
timeout_ms: 8000
- id: move_driver_backrest_recline_50pct
operation_ref: driver_backrest_recline_50pct
bus: body_can
message: Driver_Seat_Motion_Command_550
signals:
Backrest_Recline_Target_Pct: 50
Command_Checksum: 61
Command_Counter: 2
Command_Mode: 1
Motion_Enable_Mask: 8
send_offset_ms: 100
repeat:
count: 3
period_ms: 20
completion:
message: Driver_Seat_Motion_Status_558
signal: Backrest_Recline_Actual_Pct
operator: within
value: 50
tolerance: 1
timeout_ms: 8000
- id: move_driver_legrest_height_45pct
operation_ref: driver_legrest_height_45pct
bus: body_can
message: Driver_Seat_Motion_Command_550
signals:
Command_Checksum: 65
Command_Counter: 3
Command_Mode: 1
Legrest_Height_Target_Pct: 45
Motion_Enable_Mask: 16
send_offset_ms: 150
repeat:
count: 3
period_ms: 20
completion:
message: Driver_Seat_Motion_Status_558
signal: Legrest_Height_Actual_Pct
operator: within
value: 45
tolerance: 1
timeout_ms: 8000
- id: move_driver_legrest_extension_45pct
operation_ref: driver_legrest_extension_45pct
bus: body_can
message: Driver_Seat_Motion_Command_550
signals:
Command_Checksum: 82
Command_Counter: 4
Command_Mode: 1
Legrest_Extension_Target_Pct: 45
Motion_Enable_Mask: 32
send_offset_ms: 200
repeat:
count: 3
period_ms: 20
completion:
message: Driver_Seat_Motion_Status_558
signal: Legrest_Extension_Actual_Pct
operator: within
value: 45
tolerance: 1
timeout_ms: 8000
@@ -0,0 +1,240 @@
apiVersion: cognitive-agent/v1alpha1
kind: ExecutionReport
metadata:
id: report-req-20260723022645-074729
name: Seat virtual execution report
version: 1.0.0
request_id: req-20260723022645-074729
labels:
simulation: 'true'
spec:
mode: dry_run
status: succeeded
started_at: '2026-07-23T02:26:58.107215Z'
finished_at: '2026-07-23T02:26:58.107492Z'
results:
- ref: driver_longitudinal_35pct
domain: seat
status: succeeded
message: 虚构电机反馈确认 driver longitudinal 从 50% 到达 35%
telemetry:
motion_axis: longitudinal
start_position_pct: 50
requested_position_pct: 35
effective_position_pct: 35
position_tolerance_pct: 1
motion_samples_pct:
- 50
- 42
- 35
motion_state: stopped
moving_mask: 0
fault_mask: 0
position_valid_mask: 1
command_signal: Longitudinal_Target_Pct
feedback_signal: Longitudinal_Actual_Pct
command_frame:
message: Driver_Seat_Motion_Command_550
frame_id: '0x550'
payload_size: 8
data_hex: 23 00 00 00 00 04 10 25
signals:
Command_Checksum: 37
Command_Counter: 0
Command_Mode: 1
Longitudinal_Target_Pct: 35
Motion_Enable_Mask: 1
encoding: lsb0/intel inferred for virtual execution
feedback_frame:
message: Driver_Seat_Motion_Status_558
frame_id: '0x558'
payload_size: 8
data_hex: 23 00 00 00 00 00 40 00
signals:
Longitudinal_Actual_Pct: 35
Moving_Mask: 0
Fault_Mask: 0
Position_Valid_Mask: 1
encoding: lsb0/intel inferred for virtual execution
matrix_source: synthetic_demo
simulated: true
- ref: driver_height_40pct
domain: seat
status: succeeded
message: 虚构电机反馈确认 driver height 从 50% 到达 40%
telemetry:
motion_axis: height
start_position_pct: 50
requested_position_pct: 40
effective_position_pct: 40
position_tolerance_pct: 1
motion_samples_pct:
- 50
- 45
- 40
motion_state: stopped
moving_mask: 0
fault_mask: 0
position_valid_mask: 2
command_signal: Height_Target_Pct
feedback_signal: Height_Actual_Pct
command_frame:
message: Driver_Seat_Motion_Command_550
frame_id: '0x550'
payload_size: 8
data_hex: 00 14 00 00 00 08 11 2C
signals:
Command_Checksum: 44
Command_Counter: 1
Command_Mode: 1
Height_Target_Pct: 40
Motion_Enable_Mask: 2
encoding: lsb0/intel inferred for virtual execution
feedback_frame:
message: Driver_Seat_Motion_Status_558
frame_id: '0x558'
payload_size: 8
data_hex: 00 14 00 00 00 00 80 00
signals:
Height_Actual_Pct: 40
Moving_Mask: 0
Fault_Mask: 0
Position_Valid_Mask: 2
encoding: lsb0/intel inferred for virtual execution
matrix_source: synthetic_demo
simulated: true
- ref: driver_backrest_recline_50pct
domain: seat
status: succeeded
message: 虚构电机反馈确认 driver backrest_recline 从 20% 到达 50%
telemetry:
motion_axis: backrest_recline
start_position_pct: 20
requested_position_pct: 50
effective_position_pct: 50
position_tolerance_pct: 1
motion_samples_pct:
- 20
- 35
- 50
motion_state: stopped
moving_mask: 0
fault_mask: 0
position_valid_mask: 8
command_signal: Backrest_Recline_Target_Pct
feedback_signal: Backrest_Recline_Actual_Pct
command_frame:
message: Driver_Seat_Motion_Command_550
frame_id: '0x550'
payload_size: 8
data_hex: 00 00 40 06 00 20 12 3D
signals:
Backrest_Recline_Target_Pct: 50
Command_Checksum: 61
Command_Counter: 2
Command_Mode: 1
Motion_Enable_Mask: 8
encoding: lsb0/intel inferred for virtual execution
feedback_frame:
message: Driver_Seat_Motion_Status_558
frame_id: '0x558'
payload_size: 8
data_hex: 00 00 40 06 00 00 00 02
signals:
Backrest_Recline_Actual_Pct: 50
Moving_Mask: 0
Fault_Mask: 0
Position_Valid_Mask: 8
encoding: lsb0/intel inferred for virtual execution
matrix_source: synthetic_demo
simulated: true
- ref: driver_legrest_height_45pct
domain: seat
status: succeeded
message: 虚构电机反馈确认 driver legrest_height 从 0% 到达 45%
telemetry:
motion_axis: legrest_height
start_position_pct: 0
requested_position_pct: 45
effective_position_pct: 45
position_tolerance_pct: 1
motion_samples_pct:
- 0
- 22
- 45
motion_state: stopped
moving_mask: 0
fault_mask: 0
position_valid_mask: 16
command_signal: Legrest_Height_Target_Pct
feedback_signal: Legrest_Height_Actual_Pct
command_frame:
message: Driver_Seat_Motion_Command_550
frame_id: '0x550'
payload_size: 8
data_hex: 00 00 00 D0 02 40 13 41
signals:
Command_Checksum: 65
Command_Counter: 3
Command_Mode: 1
Legrest_Height_Target_Pct: 45
Motion_Enable_Mask: 16
encoding: lsb0/intel inferred for virtual execution
feedback_frame:
message: Driver_Seat_Motion_Status_558
frame_id: '0x558'
payload_size: 8
data_hex: 00 00 00 D0 02 00 00 04
signals:
Legrest_Height_Actual_Pct: 45
Moving_Mask: 0
Fault_Mask: 0
Position_Valid_Mask: 16
encoding: lsb0/intel inferred for virtual execution
matrix_source: synthetic_demo
simulated: true
- ref: driver_legrest_extension_45pct
domain: seat
status: succeeded
message: 虚构电机反馈确认 driver legrest_extension 从 0% 到达 45%
telemetry:
motion_axis: legrest_extension
start_position_pct: 0
requested_position_pct: 45
effective_position_pct: 45
position_tolerance_pct: 1
motion_samples_pct:
- 0
- 22
- 45
motion_state: stopped
moving_mask: 0
fault_mask: 0
position_valid_mask: 32
command_signal: Legrest_Extension_Target_Pct
feedback_signal: Legrest_Extension_Actual_Pct
command_frame:
message: Driver_Seat_Motion_Command_550
frame_id: '0x550'
payload_size: 8
data_hex: 00 00 00 00 68 81 14 52
signals:
Command_Checksum: 82
Command_Counter: 4
Command_Mode: 1
Legrest_Extension_Target_Pct: 45
Motion_Enable_Mask: 32
encoding: lsb0/intel inferred for virtual execution
feedback_frame:
message: Driver_Seat_Motion_Status_558
frame_id: '0x558'
payload_size: 8
data_hex: 00 00 00 00 68 01 00 08
signals:
Legrest_Extension_Actual_Pct: 45
Moving_Mask: 0
Fault_Mask: 0
Position_Valid_Mask: 32
encoding: lsb0/intel inferred for virtual execution
matrix_source: synthetic_demo
simulated: true
@@ -0,0 +1,65 @@
apiVersion: cognitive-agent/v1alpha1
kind: FunctionConfig
metadata:
id: seat-req-20260723022645-074729
name: Seat function
version: 1.0.0
request_id: req-20260723022645-074729
generated_at: '2026-07-23T02:26:58.100620Z'
labels:
provider: openai:gpt-5.6-sol
execution_scope: virtual_only
spec:
domain: seat
operations:
- id: driver_longitudinal_35pct
capability: seat.set_longitudinal_position
target: &id001
device: seat
zone: front_left
instance: driver
parameters:
position_pct: 35
timeout_ms: 8000
failure_policy: abort
- id: driver_height_40pct
capability: seat.set_height
target: *id001
parameters:
position_pct: 40
timeout_ms: 8000
failure_policy: abort
- id: driver_backrest_recline_50pct
capability: seat.set_backrest_recline
target: *id001
parameters:
position_pct: 50
timeout_ms: 8000
failure_policy: abort
- id: driver_legrest_height_45pct
capability: seat.set_legrest_height
target: *id001
parameters:
position_pct: 45
timeout_ms: 8000
failure_policy: abort
- id: driver_legrest_extension_45pct
capability: seat.set_legrest_extension
target: *id001
parameters:
position_pct: 45
timeout_ms: 8000
failure_policy: abort
assumptions:
- The supplied matrix is partial; this configuration is eligible for virtual execution
only.
- Operation driver_longitudinal_35pct uses an explicitly synthetic position CAN
mapping; it is never eligible for hardware transmission.
- Operation driver_height_40pct uses an explicitly synthetic position CAN mapping;
it is never eligible for hardware transmission.
- Operation driver_backrest_recline_50pct uses an explicitly synthetic position
CAN mapping; it is never eligible for hardware transmission.
- Operation driver_legrest_height_45pct uses an explicitly synthetic position CAN
mapping; it is never eligible for hardware transmission.
- Operation driver_legrest_extension_45pct uses an explicitly synthetic position
CAN mapping; it is never eligible for hardware transmission.
+58
View File
@@ -0,0 +1,58 @@
apiVersion: cognitive-agent/v1alpha1
kind: IntentIR
metadata:
id: intent-req-20260723022645-074729
name: Seat function intent
version: 1.0.0
request_id: req-20260723022645-074729
generated_at: '2026-07-23T02:26:58.100583Z'
labels:
provider: openai:gpt-5.6-sol
spec:
utterance: 主驾调整为休憩模式
language: zh-CN
mode: single_domain
detected_domains:
- seat
requests:
- domain: seat
goal: Set driver longitudinal position to 35 percent
target: &id001
device: seat
zone: front_left
instance: driver
parameters:
axis: longitudinal
position_pct: 35
source_span: 主驾调整为休憩模式
- domain: seat
goal: Set driver height position to 40 percent
target: *id001
parameters:
axis: height
position_pct: 40
source_span: 主驾调整为休憩模式
- domain: seat
goal: Set driver backrest_recline position to 50 percent
target: *id001
parameters:
axis: backrest_recline
position_pct: 50
source_span: 主驾调整为休憩模式
- domain: seat
goal: Set driver legrest_height position to 45 percent
target: *id001
parameters:
axis: legrest_height
position_pct: 45
source_span: 主驾调整为休憩模式
- domain: seat
goal: Set driver legrest_extension position to 45 percent
target: *id001
parameters:
axis: legrest_extension
position_pct: 45
source_span: 主驾调整为休憩模式
ambiguities: []
confidence: 0.94
requires_confirmation: false
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-01-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.100495Z", "stage": "intent_parse", "status": "succeeded", "domain": "seat", "summary": "使用 openai:gpt-5.6-sol 完成结构化意图抽取。", "details": {"provider": "openai:gpt-5.6-sol", "confidence": 0.94, "conversation_turn": 0}, "duration_ms": 12816}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-02-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.100546Z", "stage": "context_resolve", "status": "succeeded", "domain": "seat", "summary": "已将会话 conv-rest-policy-driver-b 的第 0 轮执行状态和域能力注册表作为模型上下文;本地层不改写 GPT 动作。", "details": {"conversation_id": "conv-rest-policy-driver-b", "turn_count": 0, "last_target": null, "state_before": {"driver": {"ventilation": {"state": "off", "level": 0}, "heating": {"state": "off", "level": 0}, "position": {"longitudinal": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "height": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "cushion_tilt": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "backrest_recline": {"position_pct": 20, "motion_state": "stopped", "fault": false}, "legrest_height": {"position_pct": 0, "motion_state": "stopped", "fault": false}, "legrest_extension": {"position_pct": 0, "motion_state": "stopped", "fault": false}}}, "passenger": {"ventilation": {"state": "off", "level": 0}, "heating": {"state": "off", "level": 0}, "position": {"longitudinal": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "height": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "cushion_tilt": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "backrest_recline": {"position_pct": 20, "motion_state": "stopped", "fault": false}, "legrest_height": {"position_pct": 0, "motion_state": "stopped", "fault": false}, "legrest_extension": {"position_pct": 0, "motion_state": "stopped", "fault": false}}}}, "capability_domains": ["ambient_light", "climate", "roof", "seat"]}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-03-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.100559Z", "stage": "domain_route", "status": "succeeded", "domain": "seat", "summary": "仅识别到 seat 领域,绕过跨域 SceneConfig 编排。", "details": {"domains": ["seat"], "mode": "single_domain"}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-04-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.100630Z", "stage": "function_generate", "status": "succeeded", "domain": "seat", "summary": "已生成座椅 FunctionConfig。", "details": {"operation_count": 5}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-05-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.105139Z", "stage": "schema_validate", "status": "succeeded", "domain": "seat", "summary": "公共与领域 Schema 校验通过。", "details": {"error_count": 0}, "duration_ms": 4}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-06-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.105198Z", "stage": "domain_validate", "status": "succeeded", "domain": "seat", "summary": "座椅能力和目标映射校验通过。", "details": {"error_count": 0, "warning_count": 3}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-07-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.107190Z", "stage": "compile", "status": "succeeded", "domain": "seat", "summary": "配置已确定性编译为座椅 CAN 语义信号计划。", "details": {"messages": ["Driver_Seat_Motion_Command_550", "Driver_Seat_Motion_Command_550", "Driver_Seat_Motion_Command_550", "Driver_Seat_Motion_Command_550", "Driver_Seat_Motion_Command_550"], "command_count": 5, "signal_count": 25}, "duration_ms": 1}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-08-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.107205Z", "stage": "safety_check", "status": "succeeded", "domain": "seat", "summary": "平台、矩阵和策略均限制为 dry-run;硬件发送路径未启用。", "details": {"hardware_execution_allowed": false, "mapping_status": "draft"}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-09-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.108251Z", "stage": "execute", "status": "succeeded", "domain": "seat", "summary": "虚拟 CAN 已编码命令帧并生成模拟回读。", "details": {"mode": "dry_run", "result_count": 5}, "duration_ms": 1}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-10-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.108473Z", "stage": "state_update", "status": "succeeded", "domain": "seat", "summary": "会话状态已更新为第 1 轮,可用于下一条指令。", "details": {"state_after": {"driver": {"ventilation": {"state": "off", "level": 0}, "heating": {"state": "off", "level": 0}, "position": {"longitudinal": {"position_pct": 35, "motion_state": "stopped", "fault": false}, "height": {"position_pct": 40, "motion_state": "stopped", "fault": false}, "cushion_tilt": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "backrest_recline": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "legrest_height": {"position_pct": 45, "motion_state": "stopped", "fault": false}, "legrest_extension": {"position_pct": 45, "motion_state": "stopped", "fault": false}}}, "passenger": {"ventilation": {"state": "off", "level": 0}, "heating": {"state": "off", "level": 0}, "position": {"longitudinal": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "height": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "cushion_tilt": {"position_pct": 50, "motion_state": "stopped", "fault": false}, "backrest_recline": {"position_pct": 20, "motion_state": "stopped", "fault": false}, "legrest_height": {"position_pct": 0, "motion_state": "stopped", "fault": false}, "legrest_extension": {"position_pct": 0, "motion_state": "stopped", "fault": false}}}}}, "duration_ms": 0}
{"apiVersion": "cognitive-agent/v1alpha1", "kind": "TraceEvent", "event_id": "evt-11-req-20260723022645-074729", "request_id": "req-20260723022645-074729", "timestamp": "2026-07-23T02:26:58.108483Z", "stage": "telemetry", "status": "succeeded", "domain": "seat", "summary": "虚构反馈帧中的最终状态与请求目标一致。", "details": {"command_frame": "23 00 00 00 00 04 10 25", "feedback_frame": "23 00 00 00 00 00 40 00", "simulated": true}, "duration_ms": 0}