fix(sfm): a MiniMate download stores what its own file says, at the range it was recorded at (#17)

With the decode checker's fixes merged (histogram vector sum 625bc39, mic psi
5644dbd, the file's geophone range 4844135), the event file reads everything
Blastware reports.  So a live download's row and samples are now the file's:
peaks, vector sum, mic -- and the geophone range from the file's own setup
block, the setting when the event was recorded.  The live 1A is the unit's
setting now, which may have changed since; it is the fallback only when the
file's range does not read.

Measured: K557J1KB.RQ0W (Sensitive waveform) downloaded with its settings unread
-- e.g. while monitoring -- stores 0.019 / 0.055 / 0.019 and PVS 0.061,
Blastware's report; its .h5 read 0.155 / 0.44 (8x) before.  M010HR6K.OA0H
(Sensitive histogram) likewise.  K441LTON.900 (Normal) stores Blastware's
values whatever the unit's current settings say, and its mic is 5.80e-4 psi
(Blastware: 106.0 dB(L)).

The unit's 0C summary stays the download check, and fills in the channel peaks
and vector sum only when the file's range does not read (never seen in DL2) and
the unit is not confirmed Normal -- the impossible-vector-sum guard kept there.
The mic is the file's always.  Closes the range part of open finding #17.

Store consequence: new live downloads only; no backfill, no migration.

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-02 13:48:59 -05:00
1 parent d0c14aaec8
commit f98c4ff129
4 files changed
+150 -77

No files matched your search

@@ -685,12 +685,15 @@ a short plan; #14 waits for the line-hold decision above.
7. `/db/events` 500 "database is locked" on the first page load against a new DB.
8. ✅ **Fixed `9492e49`**, plus `3a1d34a` ("already stored" also matches the Blastware
name: a histogram's row sits a second off its 0C time). The download carries the assembled Blastware file and is
stored through `save_imported_bw` (`source.kind` "sfm-live"), and its range scales
the samples. The unit's 0C mic is overlaid (the file reads it as 0). Its channel
peaks and vector sum were overlaid too until 2026-10-31; since the checker's
histogram-PVS fix (625bc39, merged `6945009`) the file's are taken when the unit
confirms Normal range, and the unit's stand for Sensitive or an unread range (the
file reader assumes Normal: 8x off). The label came with #41 (`a1d2b61`).
stored through `save_imported_bw` (`source.kind` "sfm-live"). Since 2026-11-02
(after the checker's fixes for the histogram vector sum 625bc39, the mic psi
5644dbd and the file's geophone range 4844135) the row and samples are the
file's: peaks, vector sum, mic, and the range the event was recorded at (the live
1A is the unit's setting *now*, a fallback only when the file's range does not
read). The unit's 0C summary is the download check, and fills in peaks only when
the file's range does not read and the unit is not confirmed Normal. Until then
the unit's 0C values were overlaid (`9492e49`, narrowed `0a87d85`). The label
came with #41 (`a1d2b61`).
**S3 downloads are stored from the live waveform decoder** (`store.save`), not
the file reader that Series 4 uses (`save_imported_idf`): a histogram gets no
samples and is labelled Waveform. Fix: store S3 downloads through the
@@ -716,12 +719,13 @@ a short plan; #14 waits for the line-hold decision above.
ring instead of its ack is exactly unknown, and the row's `error` says it was sent.
16. Page: a 504 on a unit THOR holds should say "connected, but no reply --
another program may be holding this unit's line".
17. **Found by the Batch 1 review (open):** a MiniMate downloaded *while monitoring*
answers 1A with its device-info block, so no range is read and the stored
`.h5` samples assume Normal -- 8x off on a sensitive-range unit (the row's
peaks are the unit's, overlaid). Pre-existing on the old path too. The same
reply decodes a setup name of `:S338.17`. Live S3 downloads also no longer
keep the `.a5.pkl` wire record.
17. ✅ **Range part fixed 2026-11-02:** a MiniMate downloaded *while monitoring*
answers 1A with its device-info block, so no range was read and the stored
`.h5` samples assumed Normal -- 8x off on a sensitive-range unit. The range now
comes from the event file itself (measured: K557J1KB.RQ0W stores 0.019 / 0.055 /
0.019, Blastware's report, with the settings unread). Still open: the same reply
decodes a setup name of `:S338.17`, and live S3 downloads no longer keep the
`.a5.pkl` wire record.
- **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.
- **A lost `0C` during a Series-3 list (1c).** The strict walk raises on a lost `0A`