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

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
This commit is contained in:
Claude
2026-11-24 03:19:19 +01:00
parent 0ef8de26cb
commit 6fbf2600f9
3 changed files with 51 additions and 0 deletions
+5
View File
@@ -1146,6 +1146,11 @@ class SolarWriter(ManualWriter):
gap = self._gap_ok(now)
if self.sent_a == 0.0 and not self.taken:
self.plan.ok_since = None # 0 A first, then the start rule
if self.seq is not None and self.held_step:
# SPIKE-06 C19: a held read decides nothing for a phase change
# under way (no write, no pause); it goes on at the next real
# reading. A gap that reaches `stale_input_s` takes the safe path.
return
if self.seq is not None and self.nz_block:
# C17: a phase change under way ends at its 0 A; no select and no
# closing current while the meter is silent. The plan pauses and