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

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VSY9UpTaUYnjJF5oVtbM1w
This commit is contained in:
Claude
2026-11-23 23:55:17 +01:00
parent 8d62abe36b
commit 49e010fdfb
+7 -5
View File
@@ -575,8 +575,10 @@ check("a held gap does not clear a stuck verdict (+70 s gap, still stuck)",
# ha_signed: the pause is timed from the meter's age (PM): unknown since the
# age passed meter_max_age_s, so 0 A when the age reaches 330 s. A plan
# stepped every 10 s (the rig's cycle) that notices the stale meter 7 s late
# pauses at the first step at or after age 330 (bound: 330 + one cycle).
# stepped every 10 s (the rig's cycle) that first sees the unknown sun at age
# 57 (a cycle or two after the bound passed) still pauses at the first step at
# or after age 330 (bound: 330 + one cycle); timed from the noticing step it
# would be age 357.
plan = carmode.SolarPlan()
plan.reset(1)
kw = dict(n_now=1, auto=False, clamp=16.0, start_s=120.0, pause_s=300.0)
@@ -590,10 +592,10 @@ while t < age0 + 400:
age = t - age0
over = max(0.0, age - 30.0)
try:
plan.step(t, target_w=None if age > 30.0 else 2900.0,
unknown_s=over, **kw)
plan.step(t, target_w=None if age > 50.0 else 2900.0,
unknown_s=over if age > 50.0 else 0.0, **kw)
except TypeError: # a build without the age rule
plan.step(t, target_w=None if age > 30.0 else 2900.0, **kw)
plan.step(t, target_w=None if age > 50.0 else 2900.0, **kw)
if plan.a == 0.0 and paused_at is None:
paused_at = age
break