feat: integrate cabin CAN and verified dynamic seat modes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Load model-facing capability context from domain-owned catalogs."""
|
||||
"""Load model-facing capability context from domain and native-CAN catalogs."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -21,18 +21,25 @@ class CapabilityRegistry:
|
||||
|
||||
def _load(self) -> dict[str, Any]:
|
||||
domains = []
|
||||
for catalog_path in sorted(
|
||||
(self.root / "domains").glob("*/config/capabilities.yaml")
|
||||
):
|
||||
catalog_paths = [
|
||||
*(self.root / "domains").glob("*/config/capabilities.yaml"),
|
||||
*(self.root / "config" / "native_can_capabilities").glob("*.yaml"),
|
||||
]
|
||||
for catalog_path in sorted(catalog_paths):
|
||||
if catalog_path.parts[-3] == "_template":
|
||||
continue
|
||||
catalog = yaml.safe_load(catalog_path.read_text(encoding="utf-8"))
|
||||
domain = catalog["spec"]["domain"]
|
||||
native_can_catalog = catalog_path.parent.name == "native_can_capabilities"
|
||||
domains.append(
|
||||
{
|
||||
"domain": domain,
|
||||
"availability": (
|
||||
"executable" if domain in self.executable_domains else "catalog_only"
|
||||
"native_can"
|
||||
if native_can_catalog
|
||||
else "executable"
|
||||
if domain in self.executable_domains
|
||||
else "catalog_only"
|
||||
),
|
||||
"capabilities": catalog["spec"]["capabilities"],
|
||||
}
|
||||
@@ -45,6 +52,9 @@ class CapabilityRegistry:
|
||||
"execution_policy": {
|
||||
"executable_domains": sorted(self.executable_domains),
|
||||
"catalog_only_behavior": "return_as_deferred_request",
|
||||
"native_can_behavior": (
|
||||
"compile_for_body_can_when_hardware_mode_is_authorized"
|
||||
),
|
||||
"planning_environment": "dry_run_candidate_synthesis",
|
||||
"named_preset_required": False,
|
||||
"fuzzy_goal_behavior": (
|
||||
|
||||
Reference in New Issue
Block a user