docs: the first MiniMate bench run -- four bugs found, what remains of the check
Series-III reference: the 0x15 serial is a C string (BE9441's "BE9441\x00?"), A5 replies echo their address at data[2:6] (metadata pages only on the event-1 walk), the unit boots on serial-port open (banner ~3 s, answered 8.8 s after a reboot's banner), one mid-download reboot, and 24 index entries vs 20 listed events (inferred: monitor-log entries). Spec: the MiniMate check's first run, item by item, and what is still owed. CLAUDE.md: the phase-1b "unproven" line retracted in place, with the four bugs and the re-run owed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
d73a27d2e3
commit
3898d03236
3 files changed
+3709
-3664
No files matched your search
@@ -130,8 +130,26 @@ Read this first when picking the project back up.
|
|||||||
series** -- the MiniMate list comes from headers only (no 5A), and a download
|
series** -- the MiniMate list comes from headers only (no 5A), and a download
|
||||||
is checked and stored in SFM's DB (`db_event_id`). Bench-checked on UM20147:
|
is checked and stored in SFM's DB (`db_event_id`). Bench-checked on UM20147:
|
||||||
5 events, a waveform that verified, a histogram, one call-up for the whole
|
5 events, a waveform that verified, a histogram, one call-up for the whole
|
||||||
sequence. ⚠ The MiniMate header walk is **unproven on a unit; a MiniMate
|
sequence. ~~⚠ The MiniMate header walk is **unproven on a unit; a MiniMate
|
||||||
bench check is owed before the branch merges.** Next: 1c (webapp).
|
bench check is owed before the branch merges.**~~ **2026-10-25, first
|
||||||
|
MiniMate bench run (BE9441, serial cable):** the header walk listed 20
|
||||||
|
events correctly, and the check found four bugs, all fixed and tested on its
|
||||||
|
logged bytes.
|
||||||
|
1. **Every non-first event SFM assembled was 2 bytes short.** The body
|
||||||
|
builder assumed the 0x1002/0x1004 metadata pages in every 5A stream; it
|
||||||
|
now reads each A5 reply's echoed address. This also affected legacy
|
||||||
|
`get_events` and `ach_server.py` files. Blastware's own files were not
|
||||||
|
affected.
|
||||||
|
2. **A reboot mid-download stored a partial event as a success.** A strict
|
||||||
|
5A stream now raises on any early end.
|
||||||
|
3. **The unit boots when its port opens** and ignores a POLL sent before the
|
||||||
|
`Operating System` banner. Startup now waits for it.
|
||||||
|
4. **The 0x15 serial is a C string** (`"BE9441\x00?"`).
|
||||||
|
|
||||||
|
Series-3 downloads are now checked against the unit's own 0C peaks before
|
||||||
|
being stored. ⚠ **A re-run with the fixes in place is still owed before
|
||||||
|
merge**, plus the rest of the check's scope (spec, phase 1b). Next: 1c
|
||||||
|
(webapp).
|
||||||
- **✅ Phase 3: start / stop monitoring by serial (2026-10-23) — built,
|
- **✅ Phase 3: start / stop monitoring by serial (2026-10-23) — built,
|
||||||
reviewed, and bench-verified on UM20147 (2026-10-25).** Start acked in
|
reviewed, and bench-verified on UM20147 (2026-10-25).** Start acked in
|
||||||
0.46 s and read back as monitoring at the first 2 s poll (during the sensor
|
0.46 s and read back as monitoring at the first 2 s poll (during the sensor
|
||||||
|
|||||||
+3665
-3662
File diff suppressed because it is too large.
Load diff
@@ -354,6 +354,30 @@ Each safety piece arrives with its first real use, so nothing sits untested.
|
|||||||
Measured for Series 4: 1,016/1,016 watcher imports found by the
|
Measured for Series 4: 1,016/1,016 watcher imports found by the
|
||||||
lookup (2026-10-21).
|
lookup (2026-10-21).
|
||||||
- a dropped reply, via `bridges/mm_link.py`-style fault injection.
|
- a dropped reply, via `bridges/mm_link.py`-style fault injection.
|
||||||
|
|
||||||
|
**First run, 2026-10-25, on BE9441** (S338.17, mic disabled, serial
|
||||||
|
cable). It found four bugs; all four are fixed with tests built on its
|
||||||
|
logged bytes (`a8cc516`, `352f694`, `75d79ec`, `36f4e5d`, `d73a27d`).
|
||||||
|
- ✅ **List: 20 events,** in order, with distinct keys. The header walk
|
||||||
|
advances.
|
||||||
|
- ❌→✅ **A non-first event:** stored 2 bytes short, so it decoded
|
||||||
|
truncated. The body builder assumed metadata pages in every stream.
|
||||||
|
Fixed. A Series-3 download is now checked against the unit's own
|
||||||
|
peaks, so this class of bug is refused rather than stored.
|
||||||
|
- ❌→✅ **The first request after the port opens failed.** The unit
|
||||||
|
boots on connect, and its banner came ~3 s after the POLL had already
|
||||||
|
gone out. Fixed: startup waits for a unit it sees booting.
|
||||||
|
- ❌→✅ **A reboot mid-download stored a partial event as a success.**
|
||||||
|
This was the dropped reply, occurring live. Fixed: a one-event
|
||||||
|
download is whole or it is an error.
|
||||||
|
- Still owed:
|
||||||
|
- a re-run with the fixes in place;
|
||||||
|
- a histogram event (this unit records single shot);
|
||||||
|
- an event that *spans* the 64 KB page boundary. Event 3 sits in page
|
||||||
|
`0x12`, but within that one page;
|
||||||
|
- the stale-id check;
|
||||||
|
- `already_stored` against Blastware's copy;
|
||||||
|
- start/stop through the new path.
|
||||||
- **Download = fetch, check, store** in SFM's database, the same as
|
- **Download = fetch, check, store** in SFM's database, the same as
|
||||||
Series 3's `blastware_file` route, and returns the stored row's id. The
|
Series 3's `blastware_file` route, and returns the stored row's id. The
|
||||||
file and waveform are then served by the existing `/db/events/{id}/…`
|
file and waveform are then served by the existing `/db/events/{id}/…`
|
||||||
|
|||||||
Reference in new issue
Block a user