docs(spec): phase 1b decisions -- header-only MiniMate list, download stores, event_id
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
89433c1fdb
commit
6b4161ddfb
1 file changed
+20
-1
@@ -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
|
sessions with ring safety. Rows 1–5 for **both** series through the same
|
||||||
endpoints. **No writes.** Split into three plans:
|
endpoints. **No writes.** Split into three plans:
|
||||||
- 1a. The foundation plus identify / status / settings for both series.
|
- 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` = `<serial>:<key>:<YYYYmmddHHMMSS>`.** 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
|
- 1c. **The webapp:** serial + address, and the same read panels for both
|
||||||
series.
|
series.
|
||||||
- **HARD PREREQUISITE:** before any poller or webapp sends `serial`, add a
|
- **HARD PREREQUISITE:** before any poller or webapp sends `serial`, add a
|
||||||
|
|||||||
Reference in new issue
Block a user