From a468bb75b97749fa52c49c683eab311f9000bbc0 Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Sat, 14 Nov 2026 10:02:27 -0600 Subject: [PATCH] Align VW Cancel contract with independent lateral intent --- openpilot/starpilot/aol/tests/test_volkswagen.py | 6 ++++++ prebuilt.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/openpilot/starpilot/aol/tests/test_volkswagen.py b/openpilot/starpilot/aol/tests/test_volkswagen.py index 3578fd0230..0de2fe2f10 100644 --- a/openpilot/starpilot/aol/tests/test_volkswagen.py +++ b/openpilot/starpilot/aol/tests/test_volkswagen.py @@ -95,6 +95,12 @@ def test_intent_main_brake_temporary_fault_and_current_serialized_native_receipt cs.steerFaultTemporary = False cs.buttonEvents = [structs.CarState.ButtonEvent(type=structs.CarState.ButtonEvent.Type.cancel, pressed=True)] owner.update(cs, now_ns=now + 50_000_000) + # Unassigned Cancel ends cruise, not separately armed lateral intent. + assert owner.allowed_latch + cs.buttonEvents = [] + cs.cruiseState.available = False + owner.update(cs, now_ns=now + 60_000_000) + # MAIN off must still revoke the lateral latch. assert not owner.allowed_latch diff --git a/prebuilt.json b/prebuilt.json index 9d45e9949e..0b2bfe4549 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "48bdf642b57bb456c64886c0eb9be4c451fc1b7003975315bbf35cc14533aee2", "schema_version": 1} +{"protected_inventory_sha256": "a2135cc530bdaa6fdb759c7641c4cca606f13e88b59244414bbb14e217e7565b", "schema_version": 1}