feat: harden seat intent and expand HIL coverage
This commit is contained in:
@@ -68,6 +68,36 @@
|
||||
"tolerance": {"type": "number", "minimum": 0},
|
||||
"timeout_ms": {"type": "integer", "minimum": 1, "maximum": 3600000}
|
||||
}
|
||||
},
|
||||
"relative_fallback": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id", "operation_ref", "bus", "message", "signals", "completion"],
|
||||
"properties": {
|
||||
"id": {"type": "string", "pattern": "^[a-z][a-z0-9_-]{1,63}$"},
|
||||
"operation_ref": {"type": "string", "minLength": 2},
|
||||
"bus": {"type": "string", "pattern": "^[a-z][a-z0-9_-]*$"},
|
||||
"message": {"type": "string", "minLength": 1},
|
||||
"signals": {
|
||||
"type": "object",
|
||||
"minProperties": 1,
|
||||
"additionalProperties": {"type": ["number", "integer", "boolean", "string"]}
|
||||
},
|
||||
"send_offset_ms": {"type": "integer", "minimum": 0, "maximum": 3600000},
|
||||
"completion": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["message", "signal", "operator", "value", "timeout_ms"],
|
||||
"properties": {
|
||||
"message": {"type": "string", "minLength": 1},
|
||||
"signal": {"type": "string", "minLength": 1},
|
||||
"operator": {"type": "string", "enum": ["eq", "neq", "gte", "lte", "within"]},
|
||||
"value": {"type": ["number", "integer", "boolean", "string"]},
|
||||
"tolerance": {"type": "number", "minimum": 0},
|
||||
"timeout_ms": {"type": "integer", "minimum": 1, "maximum": 3600000}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,13 +17,36 @@
|
||||
"additionalProperties": false,
|
||||
"required": ["mode", "direction", "start_position_pct", "delta_position_pct"],
|
||||
"properties": {
|
||||
"mode": {"const": "relative"},
|
||||
"mode": {"type": "string", "enum": ["relative", "timed"]},
|
||||
"direction": {"type": "string", "enum": ["increase", "decrease"]},
|
||||
"start_position_pct": {"type": "integer", "minimum": 0, "maximum": 100},
|
||||
"delta_position_pct": {"type": "integer", "minimum": 0, "maximum": 100},
|
||||
"start_angle_deg": {"type": "number"},
|
||||
"delta_angle_deg": {"type": "number", "minimum": 0}
|
||||
}
|
||||
"delta_angle_deg": {"type": "number", "minimum": 0},
|
||||
"requested_delta_angle_deg": {"type": "number", "minimum": 0},
|
||||
"requested_delta_position_pct": {"type": "integer", "minimum": 0},
|
||||
"range_clamped": {"type": "boolean"},
|
||||
"requested_duration_ms": {"type": "integer", "minimum": 1},
|
||||
"applied_duration_ms": {"type": "integer", "minimum": 1},
|
||||
"max_duration_ms": {"type": "integer", "minimum": 1},
|
||||
"min_duration_ms": {"type": "integer", "minimum": 1},
|
||||
"duration_clamped": {"type": "boolean"},
|
||||
"endpoint_expected": {"type": "string", "enum": ["near", "far"]}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {"properties": {"mode": {"const": "timed"}}},
|
||||
"then": {
|
||||
"required": [
|
||||
"requested_duration_ms",
|
||||
"applied_duration_ms",
|
||||
"max_duration_ms",
|
||||
"min_duration_ms",
|
||||
"duration_clamped"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"transition": {"$ref": "common.schema.json#/$defs/transition"},
|
||||
"depends_on": {
|
||||
|
||||
Reference in New Issue
Block a user