• serversdown released this 2026-11-04 18:20:24 -05:00 | 51 commits to main since this release

    SFM reaches Series-4 parity, and reads most of Blastware's report from the event file alone.

    What changes

    Series-4 parity (feat/series4-sfm-parity). One device door, by serial, for both series. Each change is audited, identity-checked, sent once and read back. Benched on BE9441 and UM20147.

    • reads and downloads
    • start / stop monitoring
    • call-home on / off
    • settings changes: preview → send → read back

    It also fixes MiniMate request framing (#46) and the 5A walk across a unit's 64 KB page.

    The file-only decode, groups A–D. 47 of Blastware's 88 report fields now match on every DL2 event, about 6 before v0.33.0. Eight more match on all but one or two of 6,524 waveforms.

    • Fixed:
      • Sensitive-range events no longer read 8× high
      • the histograms that decoded wrongly now decode
      • histograms are no longer a day late
      • every histogram's start and stop are Blastware's own (#51)
      • interval frequencies follow the sample rate (#50)
    • New from the file:
      • the job number
      • the unit's serial, version, calibration and battery
      • the trigger source and levels
      • each interval's frequencies, vector sum and time
      • the peak dates and times
      • a waveform's time of peak and peak acceleration
    • Events are identified by unit + time + type (UNIQUE(serial, timestamp, record_type)), so a waveform and its histogram may share a second.

    Prod still overlays a paired ASCII report onto the decode. Retiring that overlay is the plan's step 3, not part of this release.

    Verified

    • Decode checker, all 70,112 DL2 event files: every fix proven by a full run with 0 regressions. After the parity merge, the run matches pre-parity dev on every verdict of every event.
    • Migration and backfills rehearsed twice on a copy of prod's 2026-09-30 snapshot (15,432 events), before and after the parity merge, with identical results:
      • migration: every row identical, integrity ok
      • backfill_sidecars.py: 11,944 files, 0 errors; 9,852 Series-3 histograms moved +1 s in place, 0 refused, no id lost, review state untouched; the 209 same-second waveform/histogram pairs now coexist
      • backfill_event_shape.py: exit 0, cleared_stale 0
    • Suite: 16 known failures, 1,566 passed.

    Deploy

    ⚠ Schema migration plus an overnight backfill. Full notes are in CHANGELOG Migration.

    1. Back up seismo_relay.db.
    2. Deploy. SFM migrates by itself on first start: it re-keys events and creates device_commands.
    3. In the sfm container, run python scripts/backfill_sidecars.py. TOOL_VERSION 0.34.0 gates it, so no --force. ⚠ About 64,000 events, roughly 12 h on the NAS. It moves every Series-3 histogram time +1 s in place.
    4. Then run python scripts/backfill_event_shape.py --db-path bridges/captures/seismo_relay.db --store-root bridges/captures/waveforms.

    Terra-View needs no change: twins pair by peak values, and rows are read by id.

    Fixes #46
    Fixes #50
    Fixes #51

    #44 and #45 stay open for their Micromate half (no closing statement recorded yet). #48 stays open.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9

    Downloads