EV-21 fix round 2 (review): a cut during Solar's own phase change ends it; wait cap in watts
checks / unit (pull_request) Successful in 46m35s
infra-pin / fresh (pull_request) Successful in 2s

PM R1: a cut due while Solar's own phase change is under way (seq set or plan.switch) is 0 A at once and ends the change at its 0 A; the 15 s wait cap is held in watts and converted with the phases at the write. test_ev21_fix2.py: T34 (iv) red at 5759e9d, T34 (v) 3->1, N6/P27 refused close red with seq_uncapped, N9 standing cap red with stale_drop. test_ev21_fix1.py: C18 now R1; C16 and Q1 accepted as coded (R5).

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ems-agent
2026-11-28 18:27:18 +01:00
co-authored by Claude
parent 5759e9dc9f
commit 83e5b9c51f
4 changed files with 252 additions and 19 deletions
@@ -68,8 +68,12 @@ the failure catalogue it answers.
- **A lowering on its way** (`CUT_SENT_S`, 2 s) counts as Solar's own for
grading, once per value (PM Q1): a re-send of the same value, a retry
included, gets no new grace; after it, not read back is not cut.
- **While the 15 s wait runs** the cap is the current Solar has then (C4: no
raise while due).
- **While the 15 s wait runs** the cap is the power Solar gives the car then
(C4: no raise while due), held in watts and turned into amps with the
phases Solar writes on (PM R1).
- **A cut due during Solar's own phase change ends the change** at its 0 A,
at once (PM R1, C12): no select after it and no closing current. The
read-back may still show the old phases, so a cut is never sized there.
- **Under a cut the plan may lower** (formal C10), by its own 30 s rule.
- **The cut's own ramp-down.** The trusted car figure is capped by the new,
lower read-back, so for one corroboration window (60 s) after a cut the