EV-54: after 3 refused peak-cut tries in a quarter, Solar no longer stops for the session.
Root cause (confirmed red at bdfd3e6): EV-21 sent its cut tries through Solar's normal retry, whose 3rd refusal set the session-wide gave_up (SolarWriter._failed). Under a standing cap neither way out of gave_up could come, so Solar never wrote again (EV-21 rig finding 1; formal C1-C5).
A cut try = a Solar write while a cut is due or stands, at or under its cap. At most 3 refused cut tries per quarter key, across values and episodes; a refused cut try never sets gave_up. In memory only.
The next quarter tries again while a cut is needed. New notice: "The charger did not take the peak cut, so the add-on tries again next quarter: CHARGER_REFUSED." (one WARNING per episode; the hold path's text unchanged).
Drop rule: once no cut stands (lifted, or a new quarter's cut waits), a refused cut value is never sent again: sent_a = read-back, taken, gave_up cleared, plan current = read-back. Waits for a good (not stuck) and known read-back.
EV-54: after 3 refused peak-cut tries in a quarter, Solar no longer stops for the session.
**Root cause (confirmed red at bdfd3e6):** EV-21 sent its cut tries through Solar's normal retry, whose 3rd refusal set the session-wide `gave_up` (`SolarWriter._failed`). Under a standing cap neither way out of `gave_up` could come, so Solar never wrote again (EV-21 rig finding 1; formal C1-C5).
**Fix (brief v6 rulings Q1-Q9, G1-G6, QA, QB, QC; formal drop rule):**
- A cut try = a Solar write while a cut is due or stands, at or under its cap. At most 3 refused cut tries per quarter key, across values and episodes; a refused cut try never sets `gave_up`. In memory only.
- The next quarter tries again while a cut is needed. New notice: "The charger did not take the peak cut, so the add-on tries again next quarter: CHARGER_REFUSED." (one WARNING per episode; the hold path's text unchanged).
- Drop rule: once no cut stands (lifted, or a new quarter's cut waits), a refused cut value is never sent again: `sent_a` = read-back, taken, `gave_up` cleared, plan current = read-back. Waits for a good (not stuck) and known read-back.
- A cut write that raises counts as a refused try.
- Files: `app/carmode.py`, `app/ctl_car.py`, `app/ctl_status.py` (amber row), `app/homeview.py` (Why), DOCS, CHANGELOG, `DECISIONS/EV-54-refused-cut-retry.md`; tests `test_ev54.py`, `test_ev54_drop.py`, `tools/ev54_kit.py`.
Dev report: reports/EV-54-dev-report.md.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
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>
Mutant M18 (the drop leaves taken False) re-sent the standing read-back at the lift and T26 missed it; the T8 checks were filed under T2/T5 by name. Test-only.
Co-Authored-By: Claude <noreply@anthropic.com>
The fails >= MAX_TRIES block on non-cut writes applies only while the refused cut value is still owed, so Solar resumes after the charger came back under a capped quarter (it froze before). The quarter's cut count is untouched and D2's 0 A stays held while capped. A new cut value under the read-back above a refused one logs 'peak cut'. New rows T36 (away while capped, 0 A and 6 A), T37 (F6), T38 (Off after 3 tries), T39 (reason replay).
Co-Authored-By: Claude <noreply@anthropic.com>
Where a refused cut value stops being owed without a drop (the charger's return, another value written in its place), fails goes to 0; cut_fails is untouched. After a return under a capped quarter, Solar's own write gets its own 3 tries again instead of giving up after 1. New rows T40 (refused to 1430), T41 (to 1600, against the run without the away), T42 (replaced value).
Co-Authored-By: Claude <noreply@anthropic.com>
ems-agent
merged commit 344c974f90 into release/1.02026-11-30 09:14:12 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
EV-54: after 3 refused peak-cut tries in a quarter, Solar no longer stops for the session.
Root cause (confirmed red at
bdfd3e6): EV-21 sent its cut tries through Solar's normal retry, whose 3rd refusal set the session-widegave_up(SolarWriter._failed). Under a standing cap neither way out ofgave_upcould come, so Solar never wrote again (EV-21 rig finding 1; formal C1-C5).Fix (brief v6 rulings Q1-Q9, G1-G6, QA, QB, QC; formal drop rule):
gave_up. In memory only.sent_a= read-back, taken,gave_upcleared, plan current = read-back. Waits for a good (not stuck) and known read-back.app/carmode.py,app/ctl_car.py,app/ctl_status.py(amber row),app/homeview.py(Why), DOCS, CHANGELOG,DECISIONS/EV-54-refused-cut-retry.md; teststest_ev54.py,test_ev54_drop.py,tools/ev54_kit.py.Dev report: reports/EV-54-dev-report.md.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w