EV-20 rig round 2: hold only real read gaps, not a reading's own unavailable cause
checks / unit (pull_request) Successful in 40m43s
infra-pin / fresh (pull_request) Failing after 1s

A failed read or every required entity unavailable is a gap and keeps the
last reading; one entity missing, a wrong power unit or login off stay the
reading they are (EV-03 round 4 rows green again).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
Claude
2026-11-24 00:46:34 +01:00
parent 49e010fdfb
commit f62501174d
2 changed files with 22 additions and 4 deletions
@@ -148,7 +148,10 @@ one small set of facts and derives every path from them:
- **A short charger read gap** (chargers.py `CarTracker.observe`, shared by
Solar, Manual and the peak guard): a reading missing for less than
`stale_input_s` keeps the last trusted reading (`held`); nothing is decided
`stale_input_s` keeps the last trusted reading (`held`). A gap is a read
that got no answer, or every required entity unavailable; one entity
missing, a wrong power unit or the login off stay readings of their own
(EV-03 round 4, unchanged); nothing is decided
or written in that cycle (`ctl_car.car_step` returns), and it neither arms
nor clears the stuck check. At `stale_input_s` the missing reading is taken
as before (the safe path: the charger is gone, 0 A first on its return).