EV-20 rig round 2: no pause on a short charger read gap; ha_signed pause timed from the meter age #274

Merged
ems-agent merged 9 commits from EV-20-r2 into release/1.0 2026-11-24 10:10:11 +01:00
Collaborator

EV-20 rig round 2 (rig FAIL on merge 09b6af9), PM rulings.

  • A charger reading missing for less than stale_input_s keeps the last trusted reading (CarTracker, shared by Solar, Manual and the peak guard). Nothing is decided or written in that cycle, and the gap neither arms nor clears the stuck check. At stale_input_s the existing safe path applies. This also ends the false PEAK_GUARD_FLOOR_LIMITED after one gap.
  • On ha_signed, Solar's unknown-sun pause comes when the meter's age reaches meter_max_age_s + ev_pause_min (330 s), checked every cycle.

Rows are in test_ev20_rig.py section 7 and test_ev18.py (T-gap, T10(b)). Details are in reports/EV-20-dev-report.md, section "Rig round 2".

🤖 Generated with Claude Code

https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w

EV-20 rig round 2 (rig FAIL on merge 09b6af9), PM rulings. - A charger reading missing for less than `stale_input_s` keeps the last trusted reading (`CarTracker`, shared by Solar, Manual and the peak guard). Nothing is decided or written in that cycle, and the gap neither arms nor clears the stuck check. At `stale_input_s` the existing safe path applies. This also ends the false PEAK_GUARD_FLOOR_LIMITED after one gap. - On `ha_signed`, Solar's unknown-sun pause comes when the meter's age reaches `meter_max_age_s` + `ev_pause_min` (330 s), checked every cycle. Rows are in `test_ev20_rig.py` section 7 and `test_ev18.py` (T-gap, T10(b)). Details are in reports/EV-20-dev-report.md, section "Rig round 2". 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-23 23:47:01 +01:00
EV-20 rig round 2: a short charger read gap keeps the last reading; ha_signed pause timed from the meter age
checks / unit (pull_request) Failing after 43m21s
infra-pin / fresh (pull_request) Failing after 2s
8d62abe36b
A charger reading missing for less than stale_input_s keeps the last trusted
reading in CarTracker (shared by Solar, Manual and the peak guard): no
decision or write in that cycle, no stuck arm or clear. At stale_input_s the
safe path is unchanged. This also stops the false PEAK_GUARD_FLOOR_LIMITED
after one gap (EV-18 T10(b) updated). On ha_signed Solar's unknown-sun pause
comes at meter age meter_max_age_s + ev_pause_min, checked every cycle.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-23 23:55:21 +01:00
EV-20 rig round 2: the age row notices the stale meter late, as the rig's cycle does
checks / unit (pull_request) Successful in 41m15s
infra-pin / fresh (pull_request) Failing after 1s
49e010fdfb
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 00:46:38 +01:00
EV-20 rig round 2: hold only real read gaps, not a reading's own unavailable cause
checks / unit (pull_request) Successful in 40m43s
infra-pin / fresh (pull_request) Failing after 1s
f62501174d
A failed read or every required entity unavailable is a gap and keeps the
last reading; one entity missing, a wrong power unit or login off stay the
reading they are (EV-03 round 4 rows green again).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 01:24:38 +01:00
EV-20 round 3: no non-zero write while the meter is silent (C17); the age pause on a held read (C18)
checks / unit (pull_request) Successful in 35m34s
infra-pin / fresh (pull_request) Failing after 2s
3083093e22
While the meter's age is past meter_max_age_s, or on a held charger read,
Solar sends no non-zero current: no retry, no raise, no phase change begun,
and a phase change under way ends at its 0 A. 0 A is always allowed. On a
held read Solar still steps (Manual does not), so a pause due then is not
slipped. Rows in test_ev20_rig.py section 8.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 02:05:07 +01:00
EV-20 round 3: on a held read Solar writes only a new 0 A, no retry
checks / unit (pull_request) Successful in 35m24s
infra-pin / fresh (pull_request) Failing after 2s
0ef8de26cb
A retry on a held cycle went to a charger that was not answering and changed
the try count (test_ev20_fuzz T54 N14, seed 1). Held cycles now allow only a
new 0 A decision, such as the age pause.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 03:19:21 +01:00
EV-20 C19: a held read does nothing to a phase change under way
checks / unit (pull_request) Successful in 33m15s
infra-pin / fresh (pull_request) Failing after 2s
6fbf2600f9
The C17 branch (end a phase change at its 0 A and pause) ran on a held read
too, so one failed read just after a select stopped the car for the 600 s
phase gap. A held read now leaves the change alone; it goes on at the next
real reading. The silent meter still ends it at its 0 A. Rows: test_ev20_rig
section 9.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 05:53:53 +01:00
Merge release/1.0 (2768755, infra pin bump #273) into EV-20-r2
checks / unit (pull_request) Successful in 31m32s
infra-pin / fresh (pull_request) Successful in 2s
a60ebd3286
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 06:54:11 +01:00
EV-20 review r3: a held read moves no plan count; only the meter-age pause may fire
checks / unit (pull_request) Successful in 54m0s
infra-pin / fresh (pull_request) Successful in 1s
0cfb99ed65
On a held charger read no writer steps and the Solar plan does nothing: no
phase change or switching start begins, no _set or end_switch, ok_since,
up_since, down_since, low_since and set_at stay, and the hold pause does not
fire; a decision due then runs on the next real reading. The one exception
is the pause by the meter's age (C18, SolarWriter.held_pause). Rows: the
reviewer's three shapes with 1- and 2-read gaps on and before the decision
cycle, and the hold pause on a held cycle. DECISIONS wording fixed.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-24 09:40:34 +01:00
EV-20 review r4: wording only (DECISIONS held-read sentence, step docstring)
checks / unit (pull_request) Successful in 29m14s
infra-pin / fresh (pull_request) Successful in 2s
4dc030929a
Co-Authored-By: Claude <noreply@anthropic.com>
ems-agent merged commit 5bff894cca into release/1.0 2026-11-24 10:10:11 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/goodwe-addon#274