EV-20 SPIKE-06: stuck start cap backs off instead of holding
checks / unit (pull_request) Successful in 44m16s
infra-pin / fresh (pull_request) Successful in 2s

Under one stuck verdict Solar still makes at most MAX_TRIES starts and gives
one CHARGER_REFUSED; then one more start after 15 min and one every 30 min
(each by the start rule and the write clock), so a fault that clears is
found again. The episode ends when the reading follows a start, on a press
of Solar, Off, Manual, shadow or a stop. Rows: cap, backoff times,
recovery, press, episode end; T28 (b) no flapping. DOCS and DECISIONS.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
Claude
2026-11-23 19:01:36 +01:00
parent b99f8c7e52
commit d17f15b33c
5 changed files with 135 additions and 47 deletions
+6
View File
@@ -240,6 +240,12 @@ check(f"T28 (b): frozen at 0 A, then Solar starts (the write unconfirmed): "
bool(st28) and [x for x in w28b if x[0] >= st28[0]][:1]
and [x for x in w28b if x[0] >= st28[0]][0][1] == 0.0
and r28b["sim"].setpoint_a == 0.0)
# SPIKE-06 (PM): under the verdict at most MAX_TRIES starts, then the backoff
# (15 min, then 30 min; test_ev20_rig.py): no 72 s flapping.
s28b = [t for t, a, _ in w28b if a > 0.0 and st28 and t >= st28[0]]
check(f"T28 (b): at most {carmode.MAX_TRIES} starts under the verdict in the "
f"run, then none before the 15 min backoff ({s28b})",
len(s28b) <= carmode.MAX_TRIES)
# T29: the charger unavailable 300-420 s.
T29 = {"i": lambda p, c: None,