• serversdown released this 2026-10-27 11:02:29 -04:00 | 332 commits to main since this release

    v0.32.0: event times you can trust, and Series 4 mapped

    Release PR, dev → main. The full notes are in CHANGELOG.md under v0.32.0 — 2026-10-27; this is the summary.

    What ships

    Correct stored data

    • Series-3 waveform event times come from the instrument's own event record, which the unit sends inside its 5A stream.
      • They were the monitoring-session start, often hours off (#43).
      • The new time matches Blastware's report on 1,320/1,320, the filename on 7,935/7,935, and the unit's 0C record on 10/10.
      • No filename is needed: it's only a cross-check.
      • Without a validated record, the event is kept with a flagged estimate that can never move, merge into or duplicate a row.
      • Series-III reference §7.8.9.
    • Re-storing an event at its corrected time moves its row in place (same id, review kept), instead of inserting a duplicate.
    • Prod's ISO-dated Blastware reports are read. Their event time is used only where no record exists.
    • Sub-minute histograms recorded with the mic off now decode, and mic-on ones are read correctly (#47, #49).
    • Micromate .h5 samples are on Thor's own scale (#42, already closed).

    Series IV (no shipped code path changes): the live wire protocol is mapped, with a read-only client and the setup decoded. Plus the SFM webapp's Diagnostics tab.

    ⚠ Deploy: owes a backfill, and moves stored waveform times

    TOOL_VERSION is 0.32.0. Back up seismo_relay.db first. Then, in the sfm container:

    1. python scripts/backfill_sidecars.py --force --reparse-txt (~2 h on the NAS; --reparse-txt is required the first time)
    2. python scripts/backfill_thor_events.py
    3. python scripts/backfill_event_shape.py --db-path bridges/captures/seismo_relay.db --store-root bridges/captures/waveforms

    Rehearsed on prod's 2026-09-30 store snapshot (11,827 Series-3 files, stored with v0.31.0 as the watcher does, then step 1):

    • waveforms on Blastware's exact time went from 1,016 to 1,394 of 1,394 (373 had been hours off, up to 14.3 h);
    • every row id kept; none lost or merged; 0 errors;
    • histograms don't move (#51).

    One known pre-existing extra row is added (#52). Terra-View needs no change, but it will show the corrected times: some events land on a different day or deployment window.

    Verification

    • Tests: suite on dev 582 passed. The 16 failures are the same tests with byte-identical reasons as before this release's changes: 15 missing fixtures in test_bw_ascii_report, 1 in test_event_file_io.
    • Archive: the DL2 archive harness is still 14,338/14,338.
    • Raw bytes, no names: 7,961/7,961 waveforms decode on the event record, with 0 disagreements against filename or report.
    • Merge: dev merges into main with no conflicts.

    Issues

    Fixes #47
    Fixes #49

    Addresses #43. That event (N844LTF1.QB0W) isn't on the dev box; its symptom (06:00:13) is the BE12844 session-start case this release corrects. Verify it after the deploy, then close.

    Follow-ups, not in this release: #51 (histogram times need the events key changed), #52 (restamp follow-ups), #53 (Series-III binary audit), #46 (MiniMate config-write escaping).

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01MUHR251NLznsFvPSrfegqL

    Downloads