EV-54: a refused peak cut no longer stops Solar; tried again next quarter
Refused cut tries are capped at 3 per quarter key and never set the session-wide gave_up. The next quarter tries again while a cut is needed. Once no cut stands, a refused cut value is dropped (sent_a and the plan current = the read-back, taken), never re-sent; the drop waits for a good, known read-back. A cut write that raises counts as a refused try. New notice text (Q3); the hold path's text is unchanged. Tests: test_ev54.py, test_ev54_drop.py (T1-T35); test_ev52 N8 knows the new text. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# EV-54 — Solar: a refused peak cut is tried again next quarter
|
||||
|
||||
EV-21 sent its cut tries through Solar's normal retry, whose third refusal set
|
||||
the session-wide `gave_up`. A cut is held at 0 A (or a partial value) under a
|
||||
standing cap, so neither way out of `gave_up` could come: after three refused
|
||||
tries Solar never wrote again, also once the charger took writes again (EV-21
|
||||
rig, finding 1). The rules below are the PM rulings Q1-Q9, G1-G6, QA, QB and
|
||||
QC (brief v6); the formal check is reports/EV-54-formal-report.md.
|
||||
|
||||
## The rule, in plain words
|
||||
|
||||
- **A cut try** is a Solar write while a cut is due or stands, at or under its
|
||||
cap (the cut, its retry, a 0 A of a phase change or a way out): `_cut_try`.
|
||||
- **At most 3 refused cut tries per quarter key** (the projection's
|
||||
`block_start`), across cut values and episodes. A deeper cut does not give
|
||||
new tries; a press of Solar, or Off then Solar, does not either. The count
|
||||
is in memory only: a restart starts afresh (`cut_quarter`, `cut_fails`).
|
||||
- **A refused cut try never sets `gave_up`.** Solar's normal writes go on. The
|
||||
third refusal of a quarter logs one warning per episode: "The charger did not
|
||||
take the peak cut, so the add-on tries again next quarter: CHARGER_REFUSED."
|
||||
(DEBUG after; a taken cut or a mode change re-arms it). The amber row and
|
||||
the card's Why show it while the tries are used up and the charger shows
|
||||
more than the cut (`cut_refused`). The hold path's text is unchanged.
|
||||
- **The next quarter tries again** while a cut is still needed, as EV-21's cut:
|
||||
at once without headroom, else after the 15 s wait; a same-value retry no
|
||||
sooner than 60 s after the last refusal.
|
||||
- **The drop.** Once no cut stands (the cap lifted, or a new quarter's cut
|
||||
waits) a refused cut value is never sent again. Solar takes the read-back
|
||||
as its own: `sent_a` = read-back, taken, `gave_up` cleared, and the plan's
|
||||
current = read-back, timed as a new decision (`_drop`). The retry clock
|
||||
stays, so nothing non-zero reaches the charger within 60 s of its refusal.
|
||||
The drop waits while the reading is stuck (QA) or the read-back is unknown
|
||||
(QB); meanwhile Solar sends nothing but a way out's 0 A.
|
||||
- **A stuck reading after the lift** keeps base's fault path: its 0 A goes
|
||||
out three times 60 s apart with reason Solar, then `gave_up` with the hold
|
||||
path's text; the first good reading drops it and clears `gave_up` (QC).
|
||||
- **A cut write that raises** counts as a refused cut try (no Traceback, no
|
||||
try per cycle). The same gap outside the cut is EV-56.
|
||||
|
||||
## Choices the rulings left open
|
||||
|
||||
- Refused cut tries still count in `fails` (without `gave_up`), and outside the
|
||||
cut `fails >= MAX_TRIES` stops a write as `gave_up` did. So Off's way-out 0 A
|
||||
after refused cut tries is written exactly as before (N10). When the cut
|
||||
stops standing in Solar and the value cannot be dropped yet (stuck), that
|
||||
value becomes Solar's own: reason Solar, a fresh `fails` count (QC).
|
||||
- At a new quarter's wait the cut tick holds the read-back the writer is about
|
||||
to take, not the refused value, so the wait never re-sends it (G1).
|
||||
- No drop over another writer's value (a hold or a difference being watched).
|
||||
Reference in New Issue
Block a user