chore(release): v0.34.0 — Series-4 parity, and most of Blastware's report from the event file alone

- CHANGELOG: Unreleased -> v0.34.0 — 2026-11-04, with the release theme
  and a Migration section (schema re-key + overnight backfill that moves
  every Series-3 histogram time by one second; rehearsed twice on a copy
  of prod's 2026-09-30 snapshot).
- pyproject.toml, CLAUDE.md, README: 0.34.0 (README gains its status
  entry).
- TOOL_VERSION 0.34.0: the codec changed, so the backfill regenerates.

Verified on dev before this commit: the full decode checker matches
pre-parity dev on every verdict of all 70,112 DL2 events (47 of 88
fields), group D part 1 ran clean on its branch, and the suite has only
the 16 known failures (1,566 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-04 17:58:54 -05:00
1 parent 9f3434ff2b
commit c9f41deadd
5 files changed
+107 -5

No files matched your search

+84 -1
View File
@@ -4,7 +4,50 @@ All notable changes to seismo-relay are documented here.
---
## Unreleased
## v0.34.0 — 2026-11-04
**SFM reaches Series-4 parity, and reads most of Blastware's report from the
event file alone.**
Two lines of work ship together.
**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 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
- histograms the waveform codec had claimed, and short histograms with a
loud interval, now decode
- histograms are no longer a day late
- every histogram's start and stop are Blastware's own (#51), not a second
early
- interval frequencies follow the sample rate (#50)
- **New from the file:**
- the job number
- the unit's serial, version, calibration date 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:** a waveform and its histogram
may share a second.
Prod still overlays a paired ASCII report onto the decode. That overlay is the
plan's step 3 and is not part of this release.
⚠ **This release migrates the events table and owes a backfill that moves every
Series-3 histogram's stored time by one second.** See *Migration*.
### Fixed
- ✅ **MiniMate requests and config writes are framed as Blastware frames them
@@ -416,6 +459,46 @@ All notable changes to seismo-relay are documented here.
- **CLAUDE.md "Where things stand"** now reflects the range fix.
- Docs only: no code change, no migration.
### Migration
⚠ **Schema migration and backfill.** Rehearsed twice on a copy of prod's
2026-09-30 snapshot (15,432 events), before and after the parity merge, with
identical results.
**Before you start:**
- `TOOL_VERSION` is bumped to **0.34.0**, which gates the regeneration, so no
`--force` is needed.
- **Back up `seismo_relay.db` first.**
**Then:**
1. **Deploy.** On first start SFM migrates the database by itself.
- The events table is re-keyed `UNIQUE(serial, timestamp, record_type)`
(Migration 3): every row and id is kept and the indexes are rebuilt.
Rehearsal: 0.27 s, every row identical, integrity ok.
- `device_commands` is created.
2. **In the `sfm` container, `python scripts/backfill_sidecars.py`** re-decodes
every event file. ⚠ **Plan an overnight run:** the store holds about 64,000
events after the 2200-day watcher forward, at about 1.5 files/s on the NAS,
so roughly 12 hours.
- **Every Series-3 histogram's time moves forward one second, in place**,
with id and review state kept. Rehearsal: 9,852 moved, 0 refused, no id
lost.
- **The same-second waveform/histogram pairs coexist** (209 in the
snapshot).
- It also creates a row for any store file that never had one (341 in the
snapshot): the known one-time behaviour, not duplicates.
- **Report-less events** pick up every new field. **Report-paired events**
keep the report's overlaid peaks, notes, sample rate and record time.
3. **`python scripts/backfill_event_shape.py --db-path bridges/captures/seismo_relay.db
--store-root bridges/captures/waveforms`** recomputes shape and offset
metrics. Rehearsal: exit 0, `cleared_stale` 0.
**Terra-View** needs no change: it pairs twins by peak values and reads rows by
id. Moving a histogram forward one second can carry an event across a
deployment-window edge.
**Series-4** event times do not move.
## v0.33.0 — 2026-11-01
**SFM reads Series-3 events from the file alone, and proves it against
+1 -1
View File
@@ -2,7 +2,7 @@
Ground-up Python replacement for **Blastware**, Instantel's Windows-only software for
managing MiniMate Plus seismographs. Connects over direct RS-232 or cellular modem
(Sierra Wireless RV50 / RV55). Current version: **v0.33.0**.
(Sierra Wireless RV50 / RV55). Current version: **v0.34.0**.
Stack-level context — which repo owns what, and how the three project versions
pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as
+20 -1
View File
@@ -1,4 +1,4 @@
# seismo-relay `v0.33.0`
# seismo-relay `v0.34.0`
A ground-up replacement for **Blastware** — Instantel's aging Windows-only
software for managing seismographs. Supports both the **MiniMate Plus
@@ -95,6 +95,25 @@ over direct RS-232 or cellular modem (Sierra Wireless RV50 / RV55).
>
> ⚠ The deploy owes a backfill; it does not move event times. See the
> changelog's *Migration*.
>
> **v0.34.0 (2026-11-04)** reaches Series-4 parity and reads most of
> Blastware's report from the event file alone.
> - **Series-4 parity:** one device door by serial for both series, with
> reads, downloads, start/stop, call-home and settings changes, each audited
> and read back. MiniMate request framing is fixed (#46).
> - **The file-only decode:** 47 of Blastware's 88 report fields match on
> every DL2 event, and 8 more on all but one or two.
> - Sensitive-range events are no longer 8× high.
> - Histograms decode correctly and carry Blastware's own times (#51).
> - Interval frequencies follow the sample rate (#50).
> - New from the file: the job number, serial, version, calibration,
> battery, trigger source and levels, interval detail, peak times and
> peak acceleration.
> - **Events are identified by unit + time + type.**
>
> ⚠ The deploy migrates the events table and owes an overnight backfill that
> moves every Series-3 histogram time by one second. See the changelog's
> *Migration*.
> See [CHANGELOG.md](CHANGELOG.md) for full version history.
---
+1 -1
View File
@@ -52,7 +52,7 @@ SIDECAR_KIND = "sfm.event"
# bumped without a `pip install` re-run — leading to confusing stale
# version stamps in sidecars. Bump this constant and CHANGELOG.md
# together at release time.
TOOL_VERSION = "0.33.0" # setup + notes, record type, histogram PVS and mic from the file; gates the backfill regen
TOOL_VERSION = "0.34.0" # file-only decode groups A-D, histogram times (#51); gates the backfill regen
try:
# Best-effort: prefer the installed metadata when it's NEWER than the
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "seismo-relay"
version = "0.33.0"
version = "0.34.0"
description = "Python client and REST server for MiniMate Plus seismographs"
requires-python = ">=3.10"
dependencies = [