test(s3): SFM's call-home write equals Blastware's, frame for frame -- opens the live send

Ground truth: Blastware changing BE11529's call-home settings on 2026-04-20
(Remote Access -> Setup Unit), paired raw files of what it sent and what the
unit answered: the read, the enable (read 0x00 -> wrote 0x01), the disable
(read 0x01 -> wrote 0x00).  From the unit's own read before each write, SFM's
0x7E frame (call_home_image + build_bw_write_frame) is Blastware's byte for
byte -- nothing but byte 5 differs from the read -- and the 0x7F confirm too.
Mutation-checked: inverting the byte SFM writes fails the test.

S3_CALL_HOME_FRAME_VERIFIED is now True; the gate stays tested shut by
monkeypatch, and a test pins that its comment names this proof.

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-02 16:59:15 -05:00
1 parent 8612cd9df7
commit 453d42e32a
9 files changed
+76 -4

No files matched your search

+7 -1
View File
@@ -84,7 +84,13 @@ def test_s3_call_home_state():
assert fake.calls.index("wake") < fake.calls.index("read_call_home_raw")
def test_s3_live_change_is_refused_until_the_frame_is_verified():
def test_the_gate_is_open_and_names_its_proof():
assert s3mod.S3_CALL_HOME_FRAME_VERIFIED is True
assert "tests/test_s3_call_home_bw_frames.py" in open(s3mod.__file__).read()
def test_s3_live_change_is_refused_while_the_gate_is_shut(monkeypatch):
monkeypatch.setattr(s3mod, "S3_CALL_HOME_FRAME_VERIFIED", False)
a = adapter(FakeMiniMateClient())
with pytest.raises(NotSupported) as e:
change(a, enabled=False)