EV-20 rig round 1: no false stuck after Solar's own write; no amp ping-pong; hold and meter age (with EV-32, EV-36) #272

Open
ems-agent wants to merge 3 commits from EV-20 into release/1.0
Collaborator

EV-20 rig round 1 (rig FAIL on cc8c0dc), with EV-32 and EV-36. Fix forward on top of the merged #271.

  • Critical: the stuck-reading check is armed on the signature of the reading taken before the write was sent (kept at begin_write), not on one that arrived while the write waited for its read-back. A car that stays paused after Solar's own write is no longer "stuck". EV-32 is the same race.
  • EV-36 (SPIKE-05 C4): for a refused write, the first sample after the send is the baseline; life must show after it.
  • Major: no 1 A ping-pong on an amp boundary (a step up after a step down needs 100 W past the boundary).
  • Major and Minors: Solar's 15 s meter-age gate applies only where the age measures arrival; on ha_signed (age = time since the value changed) the source's meter_max_age_s is the bound.

Rows in test_ev20_rig.py; details and red evidence in reports/EV-20-dev-report.md, section "Rig round 1".

🤖 Generated with Claude Code

https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w

EV-20 rig round 1 (rig FAIL on cc8c0dc), with EV-32 and EV-36. Fix forward on top of the merged #271. - Critical: the stuck-reading check is armed on the signature of the reading taken before the write was sent (kept at `begin_write`), not on one that arrived while the write waited for its read-back. A car that stays paused after Solar's own write is no longer "stuck". EV-32 is the same race. - EV-36 (SPIKE-05 C4): for a refused write, the first sample after the send is the baseline; life must show after it. - Major: no 1 A ping-pong on an amp boundary (a step up after a step down needs 100 W past the boundary). - Major and Minors: Solar's 15 s meter-age gate applies only where the age measures arrival; on `ha_signed` (age = time since the value changed) the source's `meter_max_age_s` is the bound. Rows in `test_ev20_rig.py`; details and red evidence in reports/EV-20-dev-report.md, section "Rig round 1". 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-23 14:28:32 +01:00
EV-20 rig round 1: stuck check armed on the reading before the send; no amp ping-pong; ha_signed meter age
infra-pin / fresh (pull_request) Successful in 4s
checks / unit (pull_request) Failing after 1h11m9s
711c5f3627
The stuck check's baseline is the signature of the latest reading taken
before the send (kept at begin_write), never one that arrived while the write
waited; a refused write's first post-send sample is its baseline (EV-36).
After a step down, a step back up needs UP_HYST_W past the boundary. Solar's
15 s meter-age gate applies only where the age measures arrival; on
ha_signed it is the source's meter_max_age_s. Rows in test_ev20_rig.py;
harness modes for the rig's interleave and an on-change meter.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-23 15:16:45 +01:00
EV-20 rig round 1: stuck check clears on the car's answer or a paused car; EV-36 first-sample rule
checks / unit (pull_request) Successful in 46m35s
infra-pin / fresh (pull_request) Successful in 2s
3a170127a3
An accepted write keeps the car's power from the reading before the send
(begin_write); a later reading whose power differs from it, or that shows a
paused car (not charging, under PAUSED_W), clears the armed check. A refused
write's first sample after the send is not life by itself (EV-36). EV-13 T7/T8
and the refusal-window row get two-change variants so mutant M3 stays killed.
DECISIONS records the arming rule.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
ems-agent added 1 commit 2026-11-23 17:03:23 +01:00
EV-20 SPIKE-06 round: arm the stuck check on the pre-send reading; Solar restarts after its own 0 A under a stuck verdict
checks / unit (pull_request) Waiting to run
infra-pin / fresh (pull_request) Waiting to run
82dc77df62
SPIKE-06 option 2 (PM decision). The stuck check's baseline is the reading
before the send, for accepted and refused writes; it clears on any change
from it (3a17012's power rules removed), so the race cannot arm it (C10,
C11, C13). Frozen power under an accepted write is left to the energy meter
and the read-back cap (EV-13 T14/T17/T18 changed). Once Solar's own 0 A
stands, a stuck verdict no longer blocks the start rule (C12), at most
MAX_TRIES starts per verdict, then CHARGER_REFUSED until Solar is pressed.
Rows in test_ev20_rig.py section 6.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
Some checks are pending
checks / unit (pull_request) Waiting to run
Required
Details
infra-pin / fresh (pull_request) Waiting to run
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin EV-20:EV-20
git checkout EV-20
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#272