- micromate: ENABLEABLE_WRITES gains 0x7E/0x7F (the call-home write and its
confirm; spec row 9, enable/disable only); MicromateClient.get_call_home_content()
returns the 126-byte 0x2C content.
- sfm/device_access: CallHomeState (serial, series, enabled, dial_string, detail
with byte5 and the whole block); s4_call_home_state reads bit 0 of [5] and the
dial string at [6:46]; s4_change_call_home runs the shared change core with
micromate.writes.plan_call_home_enabled -- built from the read run_change made
just before, and that same plan is the one sent. A unit calling home (run
state 0x03) is refused, nothing sent. The read-back judges the edited bit
only; the snapshot records both blocks and every changed offset -- [118:120]
is unit-maintained and always moves.
- The write-ceiling tests take 0x71 (the setup write, phase 5) as their
over-the-ceiling example now that 0x7E is enableable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
READ_SUBS catalogues every read; a SUB in neither table is refused, and
allowed_writes may only name catalogued writes. Tables are MappingProxyType,
_send checks the exact bytes it writes, check_transmit documents precedence.
Tests cover unknown opcodes, concatenation smuggling and table immutability.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
micromate/opcodes.py holds WRITE_SUBS and the cross-series collision 0xA2.
MicromateProtocol._send reads the SUB of the bytes about to go out
(framing.request_sub) and refuses any write SUB not in allowed_writes, and
0xA2 unconditionally. Docstrings now say the reads-only policy is enforced.
request_sub also refuses any frame not in canonical form
(stuff(unstuff(body)) == body): an interior unescaped 02/03/04, a 10 XX
outside {02,03,04,10}, or a trailing lone DLE. What the gate checks is then
exactly what the unit parses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44