From 4058dec641479c23e981afe8f4de1ab48ac51414 Mon Sep 17 00:00:00 2001 From: serversdown Date: Mon, 26 Oct 2026 19:30:28 -0400 Subject: [PATCH] docs(changelog): waveform times from the Blastware filename, restamp in place, ISO report dates Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MUHR251NLznsFvPSrfegqL --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7aa8d6..8587a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ All notable changes to seismo-relay are documented here. Histograms keep `ts1` (the ~24 h window start). A paired report's `event_datetime` stays authoritative (unit-clock drift). ⚠ **Needs a re-decode backfill** to correct existing stored events' timestamps. + ⚠ **As released, the time comes from the Blastware filename** (entry below): + `ts2 - record time` turned out a second off on 260 of prod's 1,394 waveforms, + and the backfill this needs duplicated every corrected event until the + restamp fix below. See *Migration*. - **`scratch/mm_frame_parse.py` accepted either checksum rule, so it could not @@ -115,6 +119,42 @@ All notable changes to seismo-relay are documented here. `backfill_event_shape.py` to regenerate stored histograms -- the same run this release's other fixes need (~2 h on the NAS). No schema change. +- **Re-storing an event at a corrected time duplicated it.** The event-time + fix above moves a waveform's time, and `events` is unique on + `(serial, timestamp)`, so re-storing an old event -- the release backfill, a + watcher re-forward -- found no row at the new time and inserted a second one. + Measured by storing real files with v0.31.0 and running this release's + `backfill_sidecars.py --force`: `N844LQHB.ZT0W` came out at 06:00:13 **and** + 10:33:29, its false-trigger mark on the wrong copy. `insert_events` now + matches a row by its Blastware filename first and moves it to the new time in + place -- same id, review kept. When a different stored file already holds + that second, nothing moves and nothing is written (the old upsert wrote this + event over that one). Only Blastware names are matched (every unnamed upload + is `imported.bw`); of several copies a reviewed one with a time moves first. + Follow-ups: #52. No schema change, no migration. +- **A paired report's event time was never read from prod's reports.** + `_parse_event_date` read only "August 14, 2026"; all 81 report-paired + waveforms in prod's store (2026-09-30 snapshot) write "2026-08-14" -- + Blastware follows the PC's settings. It reads both now (81/81, was 0/81). + The sidecar's `bw_report` block also never stored the event time and the + backfill's overlay never applied it; both do now, and `--reparse-txt` + re-reads the saved `.TXT`s. Codec-library change. +- **A Series-3 waveform's time comes from its Blastware filename.** The name + encodes Blastware's own time to the second: equal to the report's Event Time + on 81/81 prod and 1,249/1,249 DL2 report-paired waveforms. The binary's + `ts2 - record time` is a second off on 260 of prod's 1,394 (199 late, 61 + early). That second mattered: on BE9558 the 61 early ones landed on their + histogram twin's second, so a fresh import wrote each waveform over its + histogram's row (888 files -> 827 rows), and the backfill would have moved + 161 rows v0.31.0 had right a second off. New + `blastware_file.blastware_filename_time()`; `read_blastware_file(path, + name=...)`, which the import passes the upload's real name. The binary's + estimate remains the fallback for other names. **Histograms keep `ts1`**, + though it runs a second early against Blastware on 97% of them: with both on + Blastware's times a waveform and its histogram share a second 209 times in + prod's store, which `(serial, timestamp)` cannot hold -- #51. Codec-library + change. + ### Added - **Diagnostics tab in the SFM standalone webapp.** Surfaces the device