EV-22: Solar and Manual never write over another writer; one rule of control
checks / unit (pull_request) Failing after 57m18s
infra-pin / fresh (pull_request) Successful in 3s

C7: the other-writer watch now runs in every step of a phase change (zero,
select, settle) in both writers, with the change's own 0 A and every closing
current it tried counted as own. While a difference or a hold stands, nothing
non-zero is written over it: no settle close, no EV-28 restore, no select, no
Manual undo or abandon. The 6 A raise check stays and runs first.

D4 (Solar): the read-back phases are judged like the current, against the
phases Solar itself chose (start state = first known read-back outside an own
select window, or an own select seen taken), never the plan's adopted n.
Same mismatch_since, hold and CHARGER_OTHER; lift only when current and
phases both match, or a press. The window of an own select is SETTLE_S from
the try's return; a take seen after it is another writer's.

DA1: a press that lifts a difference inside a phase change ends the change
at its 0 A (both writers); the raise check never holds over a value the
press took. DA2: the not-writing path does not judge the current with the
reading from before its own 0 A.

test_ev22.py (T1-T49, review row T48 (stale)), test_ev22_fuzz.py (T38,
N1-N10). test_ev20_writers T46 (a)(b)(c) edited as ruled (PM, v3).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-12-03 04:21:38 +01:00
parent 19c5d5a61e
commit c7b1b7dbd1
6 changed files with 1700 additions and 50 deletions
+5 -4
View File
@@ -3370,10 +3370,11 @@ changes at most once per 30 seconds and only by 1 A or more.
be charging* follows.
- **Shadow mode** writes nothing but that one 0 A; a start in shadow mode writes
nothing at all. The card says what Solar would set.
- **Another writer.** If the charger shows a current Solar did not set for 30
seconds, Solar writes nothing over it (also no 0 A), shows an amber row and
logs one warning, until you press Solar again or the charger shows Solar's
value.
- **Another writer.** If the charger shows a current or a number of phases
that Solar did not set, Solar writes nothing over it from the first moment,
also in the middle of a phase change. After 30 seconds it writes nothing more
(also no 0 A), shows an amber row and logs one warning, until you press Solar
again or the charger shows Solar's own current and phases.
- **The peak limit: the car is cut first.** When the 15-minute period heads
over the peak limit, Solar lowers the car first, also while the batteries
could instead charge less: by the excess, to 0 A when less than 6 A would be left.