From 4cf0fda804646ad6b7051bf1bb23db30b69433ad Mon Sep 17 00:00:00 2001 From: serversdown Date: Wed, 2 Sep 2026 04:55:42 +0000 Subject: [PATCH] =?UTF-8?q?chore(release):=20v0.28.0=20=E2=80=94=20offset?= =?UTF-8?q?=20(DC-baseline)=20false-trigger=20detector?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps TOOL_VERSION 0.27.0 -> 0.28.0 (drives the SFM /health + OpenAPI version too). Rolls CHANGELOG [Unreleased] -> v0.28.0. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01YDXjZCr4RqT2U3QvMDhgzf --- CHANGELOG.md | 24 ++++++++++++++++++++++++ minimateplus/event_file_io.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b4fad0..a753803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,30 @@ All notable changes to seismo-relay are documented here. --- +## v0.28.0 — 2026-09-02 + +**Offset (DC-baseline) false-trigger detector.** Productionizes the validated +pre-trigger detector: a geophone event whose baseline sits off zero and stays +flat across the record (sensor bumped / settled / drifted) is now flagged and +surfaced in Terra-View as an `offset` false-trigger reason — catching offsets the +crest/near-peak spike rule misses (an offset is low-crest and flat). + +### Added +- `shape_metrics.offset_from_samples` / `offset_from_h5`: per geophone channel, + `|median(pre-trigger)| ≥ 0.025 in/s` AND `pre/mid/end spread ≤ 0.02` → offset; + the consistency test rejects transients (a real event moves one third). Reads + the `.h5` samples + the `pretrig_samples` attr, range-aware via the in/s float + samples. Constants `OFFSET_FLOOR` / `OFFSET_MAX_SPREAD` are tunable. +- `events.shape_offset` / `shape_offset_axis` / `shape_offset_pre` / + `shape_offset_spread` columns (auto-migrated: `_SCHEMA` + the `_migrate` + ADD COLUMN loop), computed at all three ingest paths and by + `backfill_event_shape.py`, exposed via `/db/events`. + +Requires the shape/offset backfill on the prod store to populate existing events: +`python scripts/backfill_event_shape.py --db-path … --store-root …`. + +--- + ## v0.27.0 — 2026-08-28 **Per-sample decoder verification at scale, plus the offset investigation.** diff --git a/minimateplus/event_file_io.py b/minimateplus/event_file_io.py index 09a5bf1..2537ba3 100644 --- a/minimateplus/event_file_io.py +++ b/minimateplus/event_file_io.py @@ -50,7 +50,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.27.0" +TOOL_VERSION = "0.28.0" try: # Best-effort: prefer the installed metadata when it's NEWER than the