diff --git a/docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md b/docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md index b2c8481..0fd2aad 100644 --- a/docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md +++ b/docs/superpowers/specs/2026-10-20-sfm-series4-parity-design.md @@ -329,7 +329,26 @@ Each safety piece arrives with its first real use, so nothing sits untested. sessions with ring safety. Rows 1–5 for **both** series through the same endpoints. **No writes.** Split into three plans: - 1a. The foundation plus identify / status / settings for both series. - - 1b. Event list and download for both series (rows 4–5). + - 1b. Event list and download for both series (rows 4–5). Decided with + Brian 2026-10-21: + - **MiniMate events are listed from their headers** (`0A` + `1E` arm + + `0C` + `1F` browse, no `5A`) instead of downloading every event to list + it, and one event downloads without the ones before it. It reuses the + bypass `skip_waveform_for_events` already takes, so no new command + reaches the wire. 🔶 Unproven on a unit: **a MiniMate bench check is + owed before this branch merges.** The legacy serial-less + `/device/events` keeps its full-download walk. + - **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 + file and waveform are then served by the existing `/db/events/{id}/…` + routes. The database matches on (serial, timestamp), so storing an + event already stored, including one THOR's watcher forwarded, refreshes + the row instead of duplicating it. + - **`event_id` = `::`.** Both series reuse + keys (after an erase, and across Micromates), so a download whose key + now holds a different event fails with 409 instead of fetching it. + - **Micromate downloads walk to the event first** (the only order captured + from THOR), with THOR's 1,024-byte chunks. - 1c. **The webapp:** serial + address, and the same read panels for both series. - **HARD PREREQUISITE:** before any poller or webapp sends `serial`, add a