feat: validate real-bench seat orchestration and self-repair

This commit is contained in:
vee
2026-08-09 19:00:16 +08:00
parent 3bceb0d5a1
commit 3701192a11
41 changed files with 10403 additions and 3392 deletions
+12
View File
@@ -1,5 +1,6 @@
from __future__ import annotations
import os
import unittest
from pathlib import Path
from unittest.mock import patch
@@ -162,6 +163,17 @@ class NativeCanIntegrationTests(unittest.TestCase):
self.assertEqual(info["data"]["bitrate"], 2_000_000)
self.assertEqual(info["data"]["sample_point_percent"], 80)
def test_enabling_seat_hardware_does_not_implicitly_enable_vehicle_can(self) -> None:
with patch.dict(
os.environ,
{"COGNITIVE_AGENT_HARDWARE_EXECUTION_ENABLED": "true"},
clear=False,
):
os.environ.pop("COGNITIVE_AGENT_VEHICLE_CAN_ENABLED", None)
settings = VehicleCanSettings.from_env(Path(REPOSITORY_ROOT))
self.assertFalse(settings.enabled)
if __name__ == "__main__":
unittest.main()