EV-10 round 2: judge the car against the alarm's own landing; test failed writes; honest hold wording
checks / unit (pull_request) Successful in 22m4s
infra-pin / fresh (pull_request) Successful in 2s

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-16 18:07:25 +01:00
parent a60342e4e8
commit 646f61e730
3 changed files with 150 additions and 36 deletions
@@ -86,18 +86,24 @@ up to 1.8 kW; the 40 Wh floor fixes that.)
## EV-10, EV-11, EV-12: the rig's three findings (EV-04 test F-1 to F-3)
- **The car is the cause when the period without it would not need the
batteries** (EV-10). `car_cycle` tests `projected - car_avg_w <= aim` (the car's
average over the same window, fresh and corroborated only) instead of
`projected > aim`, so it also holds when the car alone has taken the batteries
to the reserve and the projection is still under the aim (rig: 5888 W against
6000 W). The car must draw at least `CAR_PEAK_MIN_W`. A stale, stuck or
- **The car is the cause when the alarm's own test says so** (EV-10).
`car_cycle` (`_car_explains_alarm`) grades the alarm's test on the period as it
is and on the period without the car's fresh, corroborated average
(`car_exclude`): the car explains the alarm only if the test is true with it
and false without it. The test is the alarm's own landing (`_car_grade`: the
batteries give only what they still can, `load_too_high` for a saturated guard
and for a floor with other batteries, `misses_aim` for a floor with none), not
the plain projection, which still counts the batteries' help. So the car alone
taking the batteries to the reserve is silent (rig: 5888 W against 6000 W),
while a house-caused drain with a small car still alarms. No minimum car power
is needed: a car that changes nothing cannot flip the test. A stale, stuck or
uncorroborated figure is `None` and the normal alarms stand.
- **Steady row, no hold on the alarm** (EV-11). Cause: after the car's own quarter
became the month peak, the aim sat on the grid it made (14.04 kW +-40 W), so
the test crossed the aim every few seconds. `car_over` (row, card, notice) now
stays on until the test has been false for `OVER_OFF_HOLD_S` = 180 s (the rig's
longest gap; shorter than a quarter) and a gap does not restart the 10 s
stays on until the test has been false for `OVER_OFF_HOLD_S` = 180 s (longer than
the gaps seen on the rig, 150 to 250 s at 50 s sampling, and shorter than a
quarter) and a gap does not restart the 10 s
on-count. `car_explains`, which the alarms read, has no hold.
- **Our own write is ours until its mute ends** (EV-12). The mute of the tracker's
own detector opens before the write and runs 15 s from when it returns, because