fix: bench follow-ups -- the setup-menu warning, observed call-home values, waveform read

From the 2026-11-04 bench:
- A MiniMate settings preview warns that a change is lost if someone is in
  the unit's setup menu: a write sent with the menu open was acknowledged
  and read back, then lost on Cancel or Save -- the menu writes its own
  copy of the whole block back (measured both ways on BE9441).
- The two bytes after the MiniMate settings block went out as 00 00 and
  the unit took them; the preview note says so instead of 'unmeasured'.
- A Micromate call-home plan no longer warns about 0x00 / 0x01: UM20147
  took both, each way, on 11-03 and 11-04, matching its menu.
- read_waveform_data_raw drops the escaped-checksum's stray 0x10, as the
  settings read does (it failed closed: the write's block check refused
  203 bytes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-04 16:15:28 -05:00
1 parent 55c7b7b5ae
commit c790e20116
6 files changed
+68 -10

No files matched your search

+12 -2
View File
@@ -193,12 +193,22 @@ def test_steps_cannot_be_reassigned():
def test_call_home_off_from_an_unobserved_start_value_carries_a_warning():
r = bytearray(_call_home_reads()[0])
r[5] = 0x01 # UM20147 reads 0x01, not THOR's 0x04/0x05
r[5] = 0x03 # a value no unit has been seen holding
plan = plan_call_home_enabled(bytes(r), False)
assert any("unobserved" in w and "0x01 -> 0x00" in w for w in plan.warnings)
assert any("unobserved" in w and "0x03 -> 0x02" in w for w in plan.warnings)
assert plan.describe()["warnings"] and plan.describe()["warnings"] == list(plan.warnings)
@pytest.mark.parametrize("start,enabled", [(0x01, False), (0x00, True)])
def test_um20147s_values_are_observed_since_the_bench(start, enabled):
# Bench 2026-11-03 (UM20147): 0x01 -> 0x00 and 0x00 -> 0x01 both acknowledged, read
# back, and matched in the unit's own menu (and again 2026-11-04).
r = bytearray(_call_home_reads()[0])
r[5] = start
plan = plan_call_home_enabled(bytes(r), enabled)
assert not any("unobserved" in w for w in plan.warnings)
def test_call_home_on_when_already_on_says_it_changes_nothing():
r = next(x for x in _call_home_reads() if x[5] == 0x05)
plan = plan_call_home_enabled(r, True)