From 368f24e0979f789f2781b97addba335ef04e5557 Mon Sep 17 00:00:00 2001 From: ems-agent Date: Thu, 19 Nov 2026 00:37:22 +0100 Subject: [PATCH] EV-05 round 9: pin that no cut goes to the plan of a car another writer runs Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w --- goodwe_controller/test_ev05.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/goodwe_controller/test_ev05.py b/goodwe_controller/test_ev05.py index 2799add..b60f5a7 100644 --- a/goodwe_controller/test_ev05.py +++ b/goodwe_controller/test_ev05.py @@ -2204,6 +2204,13 @@ def phases_vs_off(T, dur, label): f"({a_s} vs {a_o}), the car never explained away ({ex} cycles)", late == [] and w.hold and a_s is not None and a_o is not None and abs(a_s - a_o) <= 2 and ex == 0) + want9 = [x["t"] for x in rs["trace"] if x["t"] > T and (x["want"] or 0) > 0] + cut9 = [x["t"] for x in rs["trace"] if x["t"] > T and x["cut"] > 0] + a9 = {x["a"] for x in rs["trace"] if x["t"] > T} + check(f"R9 {label}: the guard wants power ({want9[:1]}) but no cut goes " + f"to the plan of a car another writer runs ({cut9[:3]}), the plan " + f"keeps its current ({sorted(a9)})", + want9 and cut9 == [] and len(a9) == 1) return rs, ro, own