From 36b6fada3fa04b89a5157223804156db99bf8df7 Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 22 Oct 2026 17:48:35 -0400 Subject: [PATCH] docs: say exactly what the phase-2 dry run and gate showed Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44 --- CLAUDE.md | 5 ++++- docs/micromate_protocol_reference.md | 21 ++++++++++++++++++--- micromate/protocol.py | 3 ++- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 58a4cac..e8f6dea 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -34,7 +34,10 @@ Read this first when picking the project back up. reads (run on UM20147: sizes equal UM12947's). `MicromateProtocol._send` refuses every write opcode unless explicitly allowed, and `0xA2` always, so "no command has ever been originated against a unit" is still true and is now - enforced in code. + enforced in `micromate/` (its `_send` gate); the Series-3 `minimateplus` + stack and raw-socket bench bridges are outside it. The reproduction's + breadth is one distinct input per block (the five pushes share the same name, + prefs and trigger block). - **✅ `micromate/` HAS a live client (2026-10-02).** `framing.py`, `protocol.py`, `client.py` + models, **119 tests**, mirroring the `minimateplus/` stack and reusing its `transport.py` unchanged. Connect over diff --git a/docs/micromate_protocol_reference.md b/docs/micromate_protocol_reference.md index 3694f0e..27b438e 100644 --- a/docs/micromate_protocol_reference.md +++ b/docs/micromate_protocol_reference.md @@ -1784,19 +1784,34 @@ Do **not** retune `_GEO_LSB_IPS` — this is corroboration, not a correction. ### Write-plan dry run on a second unit and firmware line (2026-10-22) -2026-10-22 — UM20147 (11.0BD) block sizes equal UM12947's (11.0CB): `0x1A` +Firmware, stated as line and version separately. UM20147: Thor firmware line +(flags `0x03`, measured 2026-10-22), version 11.0BD per the 2026-09-30 check; +UM12947: Blastware firmware line (flags `0xC5` in all 152 responses of the +seven write sessions), version 11.0CB. + +2026-10-22 — UM20147 block sizes equal UM12947's: `0x1A` content 2092 B, `0x08` 90 B, `0x2E` 28 B, `0x2C` 126 B (all CRCs good where a CRC applies). Its dry-run plans (`bridges/mm_dry_run.py`) have the same SUB order, offsets and data lengths as THOR's frames from UM12947: `0x96` / `0x97` (offset `0xFFFF`, 0 B); `0x7E` @ `0x007E` 126 B + `0x7F`; `0xDA` @ `0x0100` 256 B, `0x68` @ `0x005A` 88 B, `0x73`, `0x82` @ `0x001C` 28 B, `0x83`, `0x71` @ `0x082C` 2090 B, `0x72`. So THOR's write offsets apply to both firmware lines **as far -as size goes** (measured, one unit each; **nothing sent** -- reads only, the -opcode gate refused every write SUB). Not shown: that 11.0BD *accepts* these +as size goes** (measured, one unit each; **nothing sent** -- reads only; the +opcode gate was armed throughout and refused nothing, because no write was +attempted). Not shown: that 11.0BD *accepts* these frames. The call-home on/off plans differ in exactly one data byte (`[5]`); the setup-rewrite `0x71` data equals the unit's `0x1A` content `[3:2090]` behind three zero bytes. +🔶 **Unobserved:** UM20147 call-home `content[5]` reads `0x01` (THOR's UM12947: +`0x04`/`0x05`). Our "off" plan writes `0x00`, which no capture shows being +written. Unobserved; settle at the phase-4 bench. + +Breadth of the reproduction (measured): across the five pushes, the `0xDA`, +`0x68` and `0x82` inputs are byte-identical (one distinct name, prefs and +trigger block), and the three no-edit `0x71` reproductions are the same frame. +So each block was reproduced from one distinct input, not five. + ### ✅ `0xDA` CREATES setup files (confirmed on the device, 2026-09-24) `TEST1.mmb` did not exist on the unit before the push. Afterwards it is diff --git a/micromate/protocol.py b/micromate/protocol.py index e958225..8fb22fd 100644 --- a/micromate/protocol.py +++ b/micromate/protocol.py @@ -4,7 +4,8 @@ protocol.py — one method per Micromate (Series IV) wire command. Returns raw payload bytes. Interpretation belongs in ``client.py``; this layer knows frames, offsets and sequencing, and nothing about what a field means. -Scope: **reads only on the wire, enforced.** Every outgoing frame passes +Scope: **reads only on the wire, enforced** (in this package: the Series-3 +`minimateplus` stack and raw-socket bench bridges are outside the gate). Every outgoing frame passes `micromate.opcodes.check_transmit()` in `_send`: a write opcode is refused unless this connection was constructed with it in `allowed_writes` (nothing in the codebase does so yet), and `0xA2` -- CONFIRM ERASE on Series III -- is