# Changelog All notable changes to seismo-relay are documented here. --- ## Unreleased ### Fixed - **A Blastware event imported without its ASCII report now carries its setup and notes (#44, #45).** Until now such an event stored no sample rate, a record time of "70 s" (the STRT record-type byte, 0x46), a pre-trigger and sample count read from STRT bytes that are neither, and blank project / client / operator / location (the reader stopped at the NUL after each label). All of DL2's 2016–2024 events arrive this way. - The recording-setup block is found by structure (`1c 08`, the setup name, NUL), not by the name "Standard Recording Setup", which 37% of DL2's files do not use. - Sample rate, pre-trigger and record time come from that block; a waveform's sample count is the decoded count. A histogram gets a sample rate only: Blastware reports no record time or pre-trigger for one. - The setup name and the four notes are read by position, as the ASCII parser does: their labels are operator-editable. - Verified against Blastware's own `_XML.XML` reports for the 70,042 DL2 events that have one (2016–2026): sample rate 70,042/70,042, record time 6,524/6,524, pre-trigger 6,484/6,484, notes 70,042/70,042, sample count 6,523/6,524. The one miss is the harness's, not the decoder's: `T438HGTZ.B30W`'s Tran, Vert and MicL end 3 samples before Long, in Blastware's own sample table too, and the harness compared Tran's length with the table's row count. - Events imported with an ASCII report are unchanged: the report still overlays. Not yet read: the job number (2,997 archive events carry one). The waveform-time estimate still finds the record time by the name, pending a measurement. The Micromate half of #44/#45 (SFM's own downloads, no report) stays with the parity branch. - ⚠ **Codec change: bump `TOOL_VERSION` at release** and run `backfill_sidecars.py` then `backfill_event_shape.py` on prod (~2 h on the NAS) so stored report-less events pick the fields up. No schema change, no migration. ### Added - **The Series 3 decode checker.** It proves SFM can produce everything Blastware reports from the event file alone, the first of four pieces toward retiring Blastware's reports. - `scratch/check_s3_decode.py ` decodes each event the way ingest does, from its bytes alone (no filename, no report). - It compares every field, waveform sample and histogram interval with Blastware's `_XML.XML` report of the same event. DL2's `Sent/` holds those reports, every sample included, for 70,042 events back to 2016; its ASCII reports start in 2025. - Each comparison gets one verdict: match, mismatch, SFM blank, accepted (a written carve-out with evidence), no reference, or error. - **Any disagreement counts as SFM's bug** unless a carve-out covers it. The only carve-out so far is saturation: Blastware clamps a clipped channel and prints `OORANGE`. - **Output** goes to `~/dl2-archive/checker-runs/