docs: phase 5 benched on both series (2026-11-04)

Both protocol references, the spec's bench section and CLAUDE.md record
the bench: every settings change acknowledged, read back and confirmed on
the unit's screen, both units restored byte for byte; the escaped-
checksum stray byte (fixed); a MiniMate's open setup menu writes its
whole-block copy back on Cancel or Save, losing a remote change; the
alarm write at channel +38; [26:28] re-set by the unit while monitoring;
the first Micromate setup push with the unit's CRC equal to SFM's; the
Micromate scheduler switch in none of the blocks SFM reads.

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:16:40 -05:00
1 parent c790e20116
commit 3564c4a744
4 files changed
+79 -4

No files matched your search

+12 -3
View File
@@ -308,7 +308,7 @@ Read this first when picking the project back up.
menu. ⚠ **Neither series takes a call-home change while monitoring:** a MiniMate
returns its device-info block, and a Micromate acks the write and ignores it.
SFM refuses both up front.
**Phase 5 built 2026-11-03, bench pending:** change a unit's settings by serial,
**Phase 5 built 2026-11-03, benched 2026-11-04:** change a unit's settings by serial,
both series (`POST /device/settings/change`; the Config tab's Preview, then Send).
Spec `docs/superpowers/specs/2026-11-03-sfm-phase5-settings-design.md`.
- 🔑 **A MiniMate's settings block IS Series IV's `0x1A` layout** (measured):
@@ -319,8 +319,17 @@ Read this first when picking the project back up.
needs its preview's revision; refused up front: monitoring, a Micromate on
its factory setup or whose schedule would load another setup.
- Retired: `/device/config` (410), `apply_config`, `_encode_compliance_config`.
- ⚠ Not yet sent to a unit. The MiniMate alarm level is read-only until a
bench write is checked (`S3_ALARM_WRITE_MEASURED`).
- **Benched 2026-11-04, both series:** every change acknowledged, read back,
and confirmed on the unit's screen; both units restored byte for byte. The
MiniMate alarm write is measured and now on.
- ⚠ **A MiniMate's open setup menu wins:** a change sent while it is open is
lost when the operator presses Cancel or Save (the menu writes its whole-block
copy back). The preview warns; nobody in the menus while the office sends.
- ⚠ An escaped checksum byte leaves a stray `0x10` in a Series-3 reply's data
(about 1 frame in 85). The settings and waveform reads take exactly what they
asked for; other reads are unaudited for it.
- ⚠ The Micromate scheduler switch is not in any block SFM reads, so a leftover
schedule blocks a change even with the scheduler Off.
**Ring path measured the same night:** with THOR's watchdog off, a call-home
reaches THOR when nobody holds the line, and **is lost when SFM holds it** --
the unit takes SFM's connection for the call, times out and does not retry.
+1
View File
@@ -11,6 +11,7 @@
| Date | Section | Change |
|---|---|---|
| 2026-11-04 | SUB 1A / 09 reads, SUB 68–74 settings write, the keypad | **SFM's settings write, benched on BE9441 (Brian at the unit; ~12 writes, each with his go).** **Every write** -- trigger 0.04 ↔ 0.05, a note, several fields at once (Project, job number + its report flag, trigger), the alarm 1.0 ↔ 1.5, and a full restore -- was acknowledged on all nine steps (`97 8C 8E×5 8D 7D 7C 96 8B 8D`), read back as sent, and **confirmed on the unit's own screen**; the unit ended byte for byte as found. Moved bytes were exactly the field's: trigger f32 at each geophone channel +30 (`+31..+33` moved), **alarm f32 at channel +38** (`+39` moved; the first Series-3 alarm write), job number `[40:42]`, its report bit `[39]` `0x02`, a note's value window. **`[26:28]`** went `01 7f` → `00 00` on SFM's first write (Blastware's value) and the unit **set `01 7f` again during the next monitoring session**. The **two bytes after the block** went out as `00 00` (Blastware sends a per-unit constant) and were taken. **🔑 Escaped-checksum artifact:** when a reply's checksum byte is itself escaped (02 / 03 / 04, ~1 frame in 85), `S3FrameParser` keeps the escape's `0x10` and strips only the byte after it, so the frame's data gains one trailing `0x10`. It hit the first live 1A read (frame B 1,026 bytes after the header); the 12 recorded reads never had. SFM's settings read and waveform read now take exactly the length they asked for. **🔑 The keypad menu wins:** a write sent while the setup menu was open was acknowledged and read back, then **lost when the operator pressed Cancel or Save** -- the menu writes its own copy of the **whole** block back (both times the block returned byte for byte to its state when the menu was opened). A keypad Cancel with nothing pending leaves the block unchanged. **While monitoring**, the 1A read returns the device-info block (SFM refuses, nothing sent), and the opening poll was answered only intermittently (2 of 3 attempts timed out). Code: `minimateplus.protocol.read_compliance_content` / `read_waveform_data_raw`, `micromate.setup_fields`; notes `~/bench-logs/2026-11-04-sfm-settings/`. |
| 2026-11-03 (5) | SUB 1A / 71 / 69 (settings read and write) | **The settings block, read and written as content (measured, BE9441's 10-26 recording and BE11529's 2026-04-20 captures).** **Read:** unescape each 1A data frame and take `data[11:]`; every frame but the last starts with one `00` that is not content; dropped, the frames join into **2,090 bytes headed by N = 2090: Series IV's `0x1A` content layout** (12 / 12 reads, Blastware's 4 × 512 + 42 and SFM's 1024 + 1024 + 42). The old "stable anchor" `be 80 00 00 00 00` is content `[12:18]` (pre-trigger −0.25 + stop mode Fixed). **Round trip:** the read after each of Blastware's two 10-26 writes equals the image it had just written, all 2,090 bytes (2 / 2). While monitoring, the read returns the device-info block (`0e 'BE9441' …`, 5 / 5). **`[26:28]`:** Blastware writes `00 00` on all 11 writes; the unit reads `01 7f` after a monitoring session (BE9441 10-26, BE11529 4-20 15:19) and sets it by itself; meaning unknown. **The two bytes after the block** (`[2090:2092]` of the 0x71 image) are Blastware's own per-unit constant -- `7c ea` on all nine of BE11529's writes, `0c e9` on both of BE9441's -- not the block's CRC-16/AUG, and in no reply of BE9441's three-hour session; SFM sends `00 00`. **`0x09` `[200:202]`:** Blastware echoed the unit's `8c 76` on all nine April writes; on 10-26 it read `17 17` and wrote `78 76` (read back so); meaning unknown. **Blastware re-renders the mic trigger level:** on BE11529's first write (4-20 15:19) the unit read 0.005 and 0.01 psi in its two `MicL` channel blocks (3 and 7; Series 3 carries 8 channel blocks of 48 bytes from `[1708]`, the second four prefixed `0x32`) and Blastware wrote 0.004983 and 0.010058 -- the same levels to its 0.1 dB; every other write left them alone. **Every one of the 11 Blastware writes reproduces** from the block before it with only the fields Blastware changed (plus that re-render and, on 10-26, the mic bit of `[25]`). Code: `minimateplus.protocol.assemble_compliance_content`, `read_compliance_content`, `micromate.setup_fields`; tests `tests/test_s3_settings_read.py`, `tests/test_setup_fields.py`. |
| 2026-11-03 (4) | Appendix D.6.10 (NEW), D.6.11 | ✅ **Histogram timing from its own event record (#51).** `00 28 05 00` `04 00` `fe f5` [start][stop]: Blastware's Histogram Start and Stop on 63,490 / 63,490 each; exactly one per histogram, start 0–1 s after the footer's ts1. Interval time = its end (start + (i + 1) × interval, capped at the stop), 2,308,524 / 2,308,524 rows; a peak's date/time = its interval's. Retracted: "histograms stay on ts1" (it held only while SFM's events were unique on serial + time; now unit + time + type). 47 of 88 report fields match on every DL2 event. |
| 2026-11-03 (3) | Appendix D.6.9 (NEW), D.6.10 | ✅ **Histogram interval detail.** Interval size = uint16 seconds at `k − 40`; stop = footer ts2. Frequency = (sample rate / 2) / half-period, 527,915 / 527,915 cells at 1024 sps and 1,725 / 1,725 at 2048 — **#50 retracted** (a fixed 512 halved 2048-sps frequencies). Blastware's words: `N/A` (half-period 0), `>100` / `>200` (≤ 5 samples), `<1.0`. Per-interval vector sum √PVS²: 63,497 histograms; `OORANGE` when over range with a clamped channel, 17 / 17. 34 of 88 report fields now match on every DL2 event. |
+33
View File
@@ -2745,6 +2745,39 @@ were wrong.
established** — only one setting was varied. Series III's offsets are a starting
hypothesis, not a transfer.
#### Bench 2026-11-04: SFM's first setup push (UM20147)
SFM's audited `POST /device/settings/change`, one send per go (Brian at the
unit). Notes: `~/bench-logs/2026-11-04-sfm-settings/`.
**Measured:**
- **The setup push works as THOR's.** Trigger 0.6 → 0.5, then a five-field
change (Location, Client, job number + its report flag, record time), then a
full restore. Each send was THOR's seven frames, acknowledged in THOR's order
(`25 97 8C 7D 7C 8E 8D`), read back as sent, and confirmed in the unit's menu.
The setup block ended byte for byte as found, CRC included.
- **The unit's recomputed CRC equals SFM's** (`with_crc`): after the first push
the stored block equalled SFM's computed image byte for byte, CRC `ea8d`
included.
- **`schedule.dat` read on a real unit** (`0x94` → `0x6B`; `0x48` → descriptor
`04 00 … 01 … 01`, body, all-zero end). UM20147 holds a leftover THOR
schedule: repeat on, 07:00, start monitoring with
`Fay - Commercial Street - Irish Center.mmb`. The unit runs `test2.MMB`, so
SFM blocked the change, as designed.
- 🔑 **The scheduler On/Off switch is in none of the blocks SFM reads.** With
the keypad switch Off, then On (saved), these were byte for byte identical:
`0x08` prefs, `0x2E`, `0x1A`, `0x2C`, `0x41` and `schedule.dat`. The
firmware's `SysPref.bMonitorScheduler` lives elsewhere. THOR's end-of-push
`0x47` pair (`params[7]` 1 then 3; replies `04 00 … 0N … 00 01`) was only
ever captured with the switch On. **Next:** a THOR bridge recording with the
switch Off (parked for the work-hours project).
- **While monitoring**, a settings preview and a live attempt were both refused
on the run state before any block was read (409, nothing sent, 0 write frames).
- **With call-home off, a stop goes straight to idle** (`monitoring` →
`idle`): no calling-home state and no ring.
- Call-home `0x01` ↔ `0x00` was taken again, both ways. The plan's
"unobserved" warning is retired for those values.
## What the THOR manual settles about the ACH session (2026-09-24)
Source: `manuals/723U0201 THOR Operator Manual Rev 08.pdf` §6.2, §3.6.
@@ -1,7 +1,8 @@
# Phase 5: changing a unit's settings by serial (design)
**Date:** 2026-11-03. **Status:** approved by Brian 2026-11-03; built 2026-11-03
(plan `docs/superpowers/plans/2026-11-03-sfm-phase5-settings.md`); bench pending. Phase 5 of
(plan `docs/superpowers/plans/2026-11-03-sfm-phase5-settings.md`); **benched 2026-11-04** on both
series (results at the end). Phase 5 of
`docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md` (row 10, "change
recording settings"; build phase 5, "setup push: one field first, then several").
**Branch:** `feat/series4-sfm-parity`.
@@ -342,6 +343,37 @@ intervals 2/5/15/60/300/900 s, and each series' measured mode codes.
3. A several-field "backup unit" change.
4. A dry run while monitoring, expecting the refusal.
## Bench 2026-11-04 (results)
Brian at BE9441 and UM20147, each on its own modem; every send with his go.
Notes: `~/bench-logs/2026-11-04-sfm-settings/`.
- **Both series change correctly.** Each change was acknowledged, read back as
sent, and confirmed on the unit's own screen; both units ended byte for byte as
found.
- BE9441: trigger each way, a note, several fields at once, the alarm, a full
restore.
- UM20147: trigger, several fields (two notes, job number and its flag, record
time), a full restore. The unit's recomputed CRC equalled SFM's.
- **Fixed at the bench (`9992b25`):** the first live MiniMate read came back one
byte long. An escaped checksum byte leaves its `0x10` behind (about 1 frame in
85; the recordings never had it). The read now takes exactly the lengths it
asked for, and so does the waveform read (`c790e20`).
- **🔑 The keypad menu wins.** A MiniMate change sent while its setup menu is
open is acknowledged and read back, then lost when the operator presses Cancel
or Save: the menu writes its copy of the whole block back. SFM cannot see this
happen; the MiniMate preview now warns. Rule for the field-plus-office routine:
nobody in the unit's menus while the office sends.
- **The MiniMate alarm write is measured**, so it is now writable (`55c7b7b`).
- **Refused while recording, both series, nothing sent.** A recording MiniMate
sometimes leaves a preview at "no answer" rather than the refusal.
- **The Micromate scheduler switch is in no block SFM reads.** UM20147 carries a
leftover THOR schedule (Fay setup, 07:00 daily) with the switch Off; SFM blocks
it, a false alarm here. The bench used a scratch-only override.
- Next: a THOR bridge recording to find the switch (parked for work hours).
- Meanwhile, worth considering: let the operator confirm "scheduler off" in the
preview.
## Calls I made (Claude), for Brian to check
- **Series 3 `[26:28]` goes out as `00 00`, as Blastware writes it**, rather than