docs(spec): park the phase 1b review's open items; scope the owed MiniMate bench check
- New section "Left open by the phase 1b review (2026-10-21)", after the 1a one: twelve one-line items, each naming the phase it matters to (retry re-running a whole download, last_used after a kept-line error, verified:null's two meanings, mic naming + the S4 0x0C mic denormal, 500 detail text, the serial as a directory name, no server-level ring test, S3 stored record_type, a fresh S4 download's gaps, orphan files, same-second collisions, 423 Retry-After). - The 1b bullets now give the owed MiniMate bench check's scope: a 3+ event list (1F(browse) after 1E(arm) without 1F(arm)), a non-first event, a histogram (capture its 0C), an event past 64 KB (the named 502), a stale id (no 5A), and a dropped reply via mm_link-style fault injection. - The 1b "Download" bullet's "refreshes the row" is retracted in place: the final review changed it to "returns the row, writes nothing". 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
2a70faf7b5
commit
a5ebe8d4b1
1 file changed
+37
-5
@@ -335,15 +335,29 @@ Each safety piece arrives with its first real use, so nothing sits untested.
|
|||||||
`0C` + `1F` browse, no `5A`) instead of downloading every event to list
|
`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
|
it, and one event downloads without the ones before it. It reuses the
|
||||||
bypass `skip_waveform_for_events` already takes, so no new command
|
bypass `skip_waveform_for_events` already takes, so no new command
|
||||||
reaches the wire. 🔶 Unproven on a unit: **a MiniMate bench check is
|
reaches the wire. The legacy serial-less `/device/events` keeps its
|
||||||
owed before this branch merges.** The legacy serial-less
|
full-download walk. 🔶 Unproven on a unit: **a MiniMate bench check is
|
||||||
`/device/events` keeps its full-download walk.
|
owed before this branch merges.** Its scope (final review,
|
||||||
|
2026-10-21):
|
||||||
|
- a list of three or more events, confirming `1F(browse)` advances
|
||||||
|
after a `1E(arm)` without `1F(arm)`;
|
||||||
|
- a non-first event;
|
||||||
|
- a histogram-mode event, capturing its `0C` (which would let Series
|
||||||
|
3's `record_type`, `null` today, be decoded);
|
||||||
|
- an event past 64 KB, expecting the named 502;
|
||||||
|
- a stale-id download, confirming no `5A` goes out;
|
||||||
|
- a dropped reply, via `bridges/mm_link.py`-style fault injection.
|
||||||
- **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}/…`
|
||||||
routes. The database matches on (serial, timestamp), so storing an
|
routes. The database matches on (serial, timestamp), so storing an
|
||||||
event already stored, including one THOR's watcher forwarded, refreshes
|
event already stored, including one THOR's watcher forwarded, ~~refreshes
|
||||||
the row instead of duplicating it.
|
the row instead of duplicating it~~. **Changed by the final review
|
||||||
|
(2026-10-21):** it returns the existing row and writes nothing
|
||||||
|
(`inserted: false`, `detail.already_stored: true`). Never merge: the
|
||||||
|
watcher's copy, with its paired report, is the richer one, and a
|
||||||
|
refresh measurably downgraded it (PVS, project strings and ZC
|
||||||
|
frequencies went NULL).
|
||||||
- **`event_id` = `<serial>:<key>:<YYYYmmddHHMMSS>`.** Both series reuse
|
- **`event_id` = `<serial>:<key>:<YYYYmmddHHMMSS>`.** Both series reuse
|
||||||
keys (after an erase, and across Micromates), so a download whose key
|
keys (after an erase, and across Micromates), so a download whose key
|
||||||
now holds a different event fails with 409 instead of fetching it.
|
now holds a different event fails with 409 instead of fetching it.
|
||||||
@@ -429,6 +443,24 @@ plan's scratch ledger. None blocks 1a; the phase each one matters to is named.
|
|||||||
keep-alive; it looks like a dead unit. Open with `exclusive=True`, or don't
|
keep-alive; it looks like a dead unit. Open with `exclusive=True`, or don't
|
||||||
hold serial links.
|
hold serial links.
|
||||||
|
|
||||||
|
## Left open by the phase 1b review (2026-10-21)
|
||||||
|
|
||||||
|
Parked from the whole-branch review of 1b; none blocks it. The phase each
|
||||||
|
matters to is named.
|
||||||
|
|
||||||
|
- **Retry re-runs a whole download (1c).** The retry-once on a held-line timeout re-runs the full download, roughly doubling time-to-error; narrow it to failures before the first reply.
|
||||||
|
- **`last_used` after a kept-line error (1c).** It is not refreshed when an op's verdict (404/409) keeps the line, so the idle hang-up comes early.
|
||||||
|
- **`verified: null` is ambiguous (1c).** It means both "a histogram" (no check exists) and "a waveform whose check could not run".
|
||||||
|
- **Mic naming and the Series-4 mic decode (1c).** `detail.mic_psi` on Series 3, `detail.mic` on Series 4; Series 4's `0x0C` mic decodes as a denormal (~5e-39) — fix the decode before 1c shows it.
|
||||||
|
- **500 detail leaks paths (1c, before SFM is reachable beyond Terra-View).** The download handler's 500 detail includes raw exception text, filesystem paths included.
|
||||||
|
- **Serial as a directory name (1c).** The serial is never checked against `[A-Z0-9]+` before it names a store directory; only the unit can choose it, but the check is cheap.
|
||||||
|
- **No server-level RADIO RING mid-download test (1c).** Covered structurally (DeviceAccess-level test + the ring transport), not through the handler.
|
||||||
|
- **Series-3 stored `record_type` (MiniMate bench check).** Rows SFM stores for Series 3 still say "Waveform" for histograms — pre-existing, the same as the legacy `blastware_file` route; fix it with the `0C` decode.
|
||||||
|
- **A fresh Series-4 download's gaps (1c).** No `sample_rate` is stored, and the sidecar has no vector sum; the DB row has the unit's PVS (overlaid from `0x0C`).
|
||||||
|
- **Orphan files (SDM).** An event file in the store with no DB row is still overwritten by a download.
|
||||||
|
- **Same-second collisions (SDM).** Two events of one unit in the same second collide on (serial, timestamp) — a DB-wide dedup property, not 1b's.
|
||||||
|
- **423 without `Retry-After` (1c).** Add `Retry-After` to the 423 a request gets while a download holds the unit.
|
||||||
|
|
||||||
## Table 2: to be added later (both series)
|
## Table 2: to be added later (both series)
|
||||||
|
|
||||||
| area | item |
|
| area | item |
|
||||||
|
|||||||
Reference in new issue
Block a user