EV-13: a refused current write showed two amber rows (refused, and "reading may be stuck").
Cause: ManualWriter._write armed the stuck check on every write. A charger that ignores a write keeps its read-back, so 60 s later it read as stuck, and the car figure was not trusted (EV-15 rig: it latched the quarter).
Fix (brief v3, decision b): a refused write arms the check only when the charger shows no life. Life is a change in the energy counter, a phase current or the power, in a sample taken after the send and within TOOK_S of it, against the last value before. Unchanged, absent before, or taken before the send is not life. No life arms as before, dated the send, so a frozen charger is still caught after 60 s. Accepted and raising writes are unchanged.
Changes: chargers.py (tracker window, taken_at on the reading, the driver keeps what its read-back wait saw), carmode.py (passes the result and the samples), test_ev13.py (new), CHANGELOG, DECISIONS. No constant and no row text changed. test_ev04 section 9 is untouched.
EV-13: a refused current write showed two amber rows (refused, and "reading may be stuck").
Cause: `ManualWriter._write` armed the stuck check on every write. A charger that ignores a write keeps its read-back, so 60 s later it read as stuck, and the car figure was not trusted (EV-15 rig: it latched the quarter).
Fix (brief v3, decision b): a refused write arms the check only when the charger shows no life. Life is a change in the energy counter, a phase current or the power, in a sample taken after the send and within `TOOK_S` of it, against the last value before. Unchanged, absent before, or taken before the send is not life. No life arms as before, dated the send, so a frozen charger is still caught after 60 s. Accepted and raising writes are unchanged.
Changes: `chargers.py` (tracker window, `taken_at` on the reading, the driver keeps what its read-back wait saw), `carmode.py` (passes the result and the samples), `test_ev13.py` (new), CHANGELOG, DECISIONS. No constant and no row text changed. test_ev04 section 9 is untouched.
Tests: test_ev13 (red on 76f4de2, green here); test_ev03, ev04, ev10, ev10b, ev15, ev16, ev18, ev19, ev28, modes_p3, modes_p4, opt20, opt36, ux77, named_absence, bytecode green.
🤖 Generated with [Claude Code](https://claude.ai/code)
https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
A refused write on a live charger no longer reads as a stuck reading 60 s
later, so a refused write shows one amber row (charger_refused). A frozen
charger still arms and is still caught.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
A phase that drops out or comes back shifted the compressed current_a tuple and
read as life, so a frozen charger never armed. ChargerReading.phase_a keeps
L1/L2/L3 with None for a missing phase and the life test uses it.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
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-13: a refused current write showed two amber rows (refused, and "reading may be stuck").
Cause:
ManualWriter._writearmed the stuck check on every write. A charger that ignores a write keeps its read-back, so 60 s later it read as stuck, and the car figure was not trusted (EV-15 rig: it latched the quarter).Fix (brief v3, decision b): a refused write arms the check only when the charger shows no life. Life is a change in the energy counter, a phase current or the power, in a sample taken after the send and within
TOOK_Sof it, against the last value before. Unchanged, absent before, or taken before the send is not life. No life arms as before, dated the send, so a frozen charger is still caught after 60 s. Accepted and raising writes are unchanged.Changes:
chargers.py(tracker window,taken_aton the reading, the driver keeps what its read-back wait saw),carmode.py(passes the result and the samples),test_ev13.py(new), CHANGELOG, DECISIONS. No constant and no row text changed. test_ev04 section 9 is untouched.Tests: test_ev13 (red on
76f4de2, green here); test_ev03, ev04, ev10, ev10b, ev15, ev16, ev18, ev19, ev28, modes_p3, modes_p4, opt20, opt36, ux77, named_absence, bytecode green.🤖 Generated with Claude Code
https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w