MAINT-25: clean test_maint25.py, split its DECISIONS note
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
de0790e62d
commit
33cfc733d3
@@ -1,6 +1,6 @@
|
||||
# MAINT-24 - a started maintenance charge gets the cheap night
|
||||
|
||||
**Status: for review.** Also fixes MAINT-25 (last section). Tests: `test_maint24.py` (`test_opt20.py`'s `ch_ch_maint` digest moved with it). No option added; the MAINT-13
|
||||
**Status: for review.** Tests: `test_maint24.py` (`test_opt20.py`'s `ch_ch_maint` digest moved with it). No option added; the MAINT-13
|
||||
timeout numbers are unchanged. Folds in SAFETY-80. SAFETY-111 stays on its card (section 3).
|
||||
|
||||
**What happened (live 0.21.0, A, 2026-11-08..11).** A sat in its maintenance
|
||||
@@ -69,13 +69,4 @@ The MAINT-13 timeout, the peak aim itself, the month peak, `P_MAINT_SHAPE` and
|
||||
`P_ARBITRAGE`. The Home card for B does not say "the other battery is cycling"
|
||||
for a CHARGE phase (`other_cycle` reads "emptying"); that is a wording card.
|
||||
|
||||
## MAINT-25: the Home plan honours the 7-day back-off
|
||||
|
||||
After a failed cycle `wants_start()` waits 7 days (MAINT-13, `backoff_until()`),
|
||||
but `homeview.maintenance_runs()` only asked `due()`, so the plan drew a cycle at
|
||||
the start hour every night of the wait. During the back-off it now draws no run
|
||||
for that battery and shows one line instead: "Battery A: the monthly cycle waits
|
||||
until 19 November." (Dutch: "... wacht tot 19 november."). A cycle completed
|
||||
after the failure ends it, as in `backoff_until()`. The other battery is planned
|
||||
as before. Tests: `test_maint25.py` (N=1 and N=2, 1 day, 7 days, completion
|
||||
before and after the failure, Dutch).
|
||||
MAINT-25 (the Home plan and the back-off) has its own note: `MAINT-25-plan-backoff.md`.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# MAINT-25 - the Home plan honours the 7-day back-off
|
||||
|
||||
**Status: for review.** Added to the MAINT-24 PR by the owner (2026-11-12).
|
||||
Tests: `test_maint25.py`. After a failed cycle `wants_start()` waits 7 days
|
||||
(MAINT-13, `backoff_until()`), but `homeview.maintenance_runs()` only asked
|
||||
`due()`, so the plan drew a cycle at the start hour every night of the wait.
|
||||
During the back-off it now draws no run for that battery and shows one line
|
||||
instead: "Battery A: the monthly cycle waits until 19 November." (Dutch: "...
|
||||
wacht tot 19 november."). A cycle completed after the failure ends it, as in
|
||||
`backoff_until()`. The other battery is planned as before.
|
||||
Reference in New Issue
Block a user