docs(changelog): the Series-4 call-home session, and two more corrections

Folded into the existing Unreleased sections.

Added: bridges/mm_ach_server.py, flagged as implementing the listener path only.

Changed: the captured ACH session (101 frames, every command already
implemented bar one); the two call-home paths and what decides between them; the
0xA2 collision with series III's CONFIRM ERASE; monitor-while-calling-home
blocking erase while THOR reports success; THOR rewriting unit IPs from the
call-home source; and the CLAUDE.md refresh.

Fixed: mm_client_check misreporting its own request count, the ACH server
buffering its output and leaving modem chatter as a hex dump, and .gitignore
missing capture artefacts beside tracked bridge source.

TWO ENTRIES CORRECT THIS FILE'S OWN EARLIER TEXT, which is the part worth
reading: 0x06 content[4:8] was recorded here as "a constant, 9 on both units"
and is the monitor-log count; SUB 0x49 was recorded as two states and has three.

Migration stays None -- no codec, store, DB or schema change and no TOOL_VERSION
bump -- but the note now says explicitly that THE 0xA2 COLLISION IS DOCUMENTATION
RATHER THAN A FIX.  minimateplus can already send 0xA2 as the last step of its
erase sequence, and nothing yet stops a future shared path confusing the two
meanings.  A guard is outstanding, and a reader deciding whether this release is
safe deserves to know that.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ru8Lg9HkkYvX9VWWo65SmL
This commit is contained in:
serversdownandClaude Opus 5 committed 2026-10-15 00:06:45 -04:00
1 parent 8b48b3f42b
commit 4c29820831
1 file changed
+75
+75
View File
@@ -54,6 +54,23 @@ All notable changes to seismo-relay are documented here.
passed. Pinned to `THOR_CHUNK_SIZE`, the only size with THOR's captures behind
it.
- **`mm_client_check.py` reported THOR's request count, not its own.** It printed
"71 chunks" for a download that made **5 requests**, computing `size / 1024`
while the download used the 16 KB default — nearly reading a working 16 KB
download as a broken 1 KB one. A diagnostic that misreports what it did is
worse than one that says nothing.
- **The ACH server buffered its own output and mislabelled modem chatter.**
stdout was block-buffered, so the log read **empty** while a call was in
progress — useless for a tool whose job is being watched during a one-shot
event. It also left `RADIO RING` as a hex dump; it now names known modem
strings and, on rings without a `CONNECT`, says what to check. And its
docstring promised scanners leave no trace on disk while the failure path
created a session directory regardless.
- **`.gitignore` missed capture artefacts beside the bridge scripts.** Targets
`*.bin`/`*.log`/`*.set` specifically — **not** `/bridges/s3-bridge/`, which
holds tracked source.
### Added
- **Diagnostics tab in the SFM standalone webapp.** Surfaces the device
@@ -178,6 +195,15 @@ All notable changes to seismo-relay are documented here.
caller ask "is there anything here?" in one command. `content[4:8]` reads **9**
on both units regardless of count, so it is a constant, not a count.
- **`bridges/mm_ach_server.py` — an inbound Auto Call Home receiver.** Read-only,
and deliberately more so than its Series III sibling, which has rescue actions
that stop monitoring and disable ACH. Its grace window is the experiment: it
stays **silent** after accepting, to answer the one question no packet capture
can — does the unit speak first? Captures land as `raw_bw_*`/`raw_s3_*` so
`scratch/mm_frame_parse.py` reads the pair unchanged.
⚠ Implements the **listener** path only. See *Changed* — there are two.
### Changed
- **Connecting to a unit no longer walks its event chain.** `/device/events`
@@ -305,6 +331,46 @@ All notable changes to seismo-relay are documented here.
deduplicates must key on `(serial, event_key)`; `MicromateEventRef.uid` is that
pair.
- **🔑 The Series-4 call-home session is captured end to end.** A MITM between a
unit's modem and THOR 1.5.0.29: **101 request frames, 101 responses, 0 bad
checksums, 34,872 B of event data in 65 s.** **Every command in a real ACH
session is one `micromate/protocol.py` already implements** — `POLL`×36,
`BULK_DOWNLOAD`×27, `STATE`×10, `EVENT_RECORD`×8, `EVENT_NEXT`×7,
`STORAGE_RANGE`×4, `MONITOR_STATUS`×3, `ARM_EVENT`×3, `SERIAL`, `EVENT_FIRST`
— bar one. **The last protocol unknown is closed.**
- **🔑 Call-home has TWO paths, and timing decides which runs.** If anything
already holds the modem's single TCP session, the unit's `RADIO RING` travels
**up that existing connection**; if nothing is connected, the modem **dials
out** to a listener. THOR's `UnitWatchDogTimer` reconnects continuously, so
THOR usually holds that slot — which is why probes and relays see "connected,
no reply". **That is contention, not a fault**, and it accounted for a full
afternoon of apparent failures.
- **⚠⚠ `SUB 0xA2` ends a call-home on Series IV — and is CONFIRM ERASE on
Series III.** Same opcode, same `0x5D` response, opposite consequence: on a
MiniMate Plus it is the final step of the erase-all sequence. `minimateplus`
and `micromate` already share a transport, so **any shared path must dispatch
on series before that byte reaches a wire.** Corroborates the firmware string
`CMD_EXIT_CALL_HOME_DELETE_EVENTS_START_MONITORING` found by static analysis.
- **⚠ "Monitor While Calling Home" silently blocks erase, and THOR reports the
session successful anyway.** Both refusals are INFO lines. Delete-after-
download is the necessary fleet setting; a unit left on monitor-while-calling
accumulates events forever while looking healthy.
**Consequence: a receiver cannot rely on erase to manage storage** — the
server-side high-water mark is load-bearing, not an optimisation. Detectable
on any call from `0x06`'s event count plus `0x1C`'s memory fields.
- **⚠ Corrected: `0x06` content[4:8] is the monitor-log count, not a constant.**
Recorded in this file as "9 on both units regardless". It reads 47 against
THOR's `Monitor Log count: 45` twelve minutes earlier on the same unit; both
units simply held 9 records.
- **⚠ Corrected: `SUB 0x49` has a third state.** `0x00` idle, `0x02` monitoring,
and **`0x03` in-call-home** — ten for ten through a session. Exactly why the
rule is *test for non-zero*: `== 0x02` calls a unit mid-call-home idle.
- **THOR rewrites a unit's stored IP from the call-home source address**, so a
relay silently poisons its record of where that unit lives.
- **`CLAUDE.md`'s "Where things stand" refreshed** — it still claimed `micromate/`
had no live client, and that the call-home was the only protocol unknown.
### Migration
**None.** No codec change, no waveform-store change, no DB or schema change,
@@ -323,6 +389,15 @@ and nothing imports them yet, so an existing deployment behaves identically.
only callers are the new client and the bench tooling. Nothing in `sfm/` or the
ingest path is affected.
⚠ Likewise `bridges/mm_ach_server.py` and the bench tooling have **no shipped
caller**, and `micromate/client.py` gained only a ring-answering branch inside
that ACH path. Nothing under `sfm/` or `minimateplus/` changed.
⚠ **The `SUB 0xA2` collision above is documentation, not a fix.** `minimateplus`
can already send `0xA2` as the last step of its erase sequence; nothing yet
prevents a future shared path from confusing the two meanings. A guard is
outstanding.
---
## v0.31.0 — 2026-09-18